]> code.delx.au - gnu-emacs/blob - configure
*** empty log message ***
[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 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
1153 then
1154 srcdir="$PWD"
1155 else
1156 srcdir="`(cd ${srcdir}; pwd)`"
1157 fi
1158 ;;
1159 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1160 esac
1161
1162 #### Check if the source directory already has a configured system in it.
1163 if test `pwd` != `(cd ${srcdir} && pwd)` \
1164 && test -f "${srcdir}/src/config.h" ; then
1165 { echo "$as_me:1165: WARNING: The directory tree \`${srcdir}' is being used
1166 as a build directory right now; it has been configured in its own
1167 right. To configure in another directory as well, you MUST
1168 use GNU make. If you do not have GNU make, then you must
1169 now do \`make distclean' in ${srcdir},
1170 and then run $0 again." >&5
1171 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1172 as a build directory right now; it has been configured in its own
1173 right. To configure in another directory as well, you MUST
1174 use GNU make. If you do not have GNU make, then you must
1175 now do \`make distclean' in ${srcdir},
1176 and then run $0 again." >&2;}
1177
1178 extrasub='/^VPATH[ ]*=/c\
1179 vpath %.c $(srcdir)\
1180 vpath %.h $(srcdir)\
1181 vpath %.y $(srcdir)\
1182 vpath %.l $(srcdir)\
1183 vpath %.s $(srcdir)\
1184 vpath %.in $(srcdir)\
1185 vpath %.texi $(srcdir)'
1186 fi
1187
1188 #### Given the configuration name, set machfile and opsysfile to the
1189 #### names of the m/*.h and s/*.h files we should use.
1190
1191 ### Canonicalize the configuration name.
1192
1193 ac_aux_dir=
1194 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1195 if test -f $ac_dir/install-sh; then
1196 ac_aux_dir=$ac_dir
1197 ac_install_sh="$ac_aux_dir/install-sh -c"
1198 break
1199 elif test -f $ac_dir/install.sh; then
1200 ac_aux_dir=$ac_dir
1201 ac_install_sh="$ac_aux_dir/install.sh -c"
1202 break
1203 elif test -f $ac_dir/shtool; then
1204 ac_aux_dir=$ac_dir
1205 ac_install_sh="$ac_aux_dir/shtool install -c"
1206 break
1207 fi
1208 done
1209 if test -z "$ac_aux_dir"; then
1210 { { echo "$as_me:1210: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1211 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1212 { (exit 1); exit 1; }; }
1213 fi
1214 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1215 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1216 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1217
1218 # Make sure we can run config.sub.
1219 $ac_config_sub sun4 >/dev/null 2>&1 ||
1220 { { echo "$as_me:1220: error: cannot run $ac_config_sub" >&5
1221 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1222 { (exit 1); exit 1; }; }
1223
1224 echo "$as_me:1224: checking build system type" >&5
1225 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1226 if test "${ac_cv_build+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 else
1229 ac_cv_build_alias=$build_alias
1230 test -z "$ac_cv_build_alias" &&
1231 ac_cv_build_alias=`$ac_config_guess`
1232 test -z "$ac_cv_build_alias" &&
1233 { { echo "$as_me:1233: error: cannot guess build type; you must specify one" >&5
1234 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1235 { (exit 1); exit 1; }; }
1236 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1237 { { echo "$as_me:1237: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1238 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1239 { (exit 1); exit 1; }; }
1240
1241 fi
1242 echo "$as_me:1242: result: $ac_cv_build" >&5
1243 echo "${ECHO_T}$ac_cv_build" >&6
1244 build=$ac_cv_build
1245 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1246 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1247 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1248
1249 test -z "$build_alias" &&
1250 build_alias=$ac_cv_build
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 test -z "$host_alias" &&
1274 host_alias=$ac_cv_host
1275
1276 canonical=$host
1277 configuration=${host_alias-$host}
1278
1279 ### If you add support for a new configuration, add code to this
1280 ### switch statement to recognize your configuration name and select
1281 ### the appropriate operating system and machine description files.
1282
1283 ### You would hope that you could choose an m/*.h file pretty much
1284 ### based on the machine portion of the configuration name, and an s-
1285 ### file based on the operating system portion. However, it turns out
1286 ### that each m/*.h file is pretty manufacturer-specific - for
1287 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1288 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1289 ### machines. So we basically have to have a special case for each
1290 ### configuration name.
1291 ###
1292 ### As far as handling version numbers on operating systems is
1293 ### concerned, make sure things will fail in a fixable way. If
1294 ### /etc/MACHINES doesn't say anything about version numbers, be
1295 ### prepared to handle anything reasonably. If version numbers
1296 ### matter, be sure /etc/MACHINES says something about it.
1297 ###
1298 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1299 ### "System V Release 4"; he writes, "The old convention encouraged
1300 ### confusion between `system' and `release' levels'."
1301
1302 machine='' opsys='' unported=no
1303 case "${canonical}" in
1304
1305 ## FreeBSD ports
1306 *-*-freebsd* )
1307 opsys=freebsd
1308 case "${canonical}" in
1309 alpha*-*-freebsd*) machine=alpha ;;
1310 i[3456]86-*-freebsd*) machine=intel386 ;;
1311 esac
1312 ;;
1313
1314 ## NetBSD ports
1315 *-*-netbsd* )
1316 opsys=netbsd
1317 case "${canonical}" in
1318 alpha*-*-netbsd*) machine=alpha ;;
1319 i[3456]86-*-netbsd*) machine=intel386 ;;
1320 m68k-*-netbsd*)
1321 # This is somewhat bogus.
1322 machine=hp9000s300 ;;
1323 powerpc-apple-netbsd*) machine=macppc ;;
1324 mips-*-netbsd*) machine=pmax ;;
1325 mipsel-*-netbsd*) machine=pmax ;;
1326 ns32k-*-netbsd*) machine=ns32000 ;;
1327 powerpc-*-netbsd*) machine=macppc ;;
1328 sparc*-*-netbsd*) machine=sparc ;;
1329 vax-*-netbsd*) machine=vax ;;
1330 arm-*-netbsd*) machine=arm ;;
1331 esac
1332 ;;
1333
1334 ## OpenBSD ports
1335 *-*-openbsd* )
1336 opsys=openbsd
1337 case "${canonical}" in
1338 alpha*-*-openbsd*) machine=alpha ;;
1339 i386-*-openbsd*) machine=intel386 ;;
1340 m68k-*-openbsd*) machine=hp9000s300 ;;
1341 mipsel-*-openbsd*) machine=pmax ;;
1342 ns32k-*-openbsd*) machine=ns32000 ;;
1343 sparc-*-openbsd*) machine=sparc ;;
1344 vax-*-openbsd*) machine=vax ;;
1345 esac
1346 ;;
1347
1348 ## Acorn RISCiX:
1349 arm-acorn-riscix1.1* )
1350 machine=acorn opsys=riscix1-1
1351 ;;
1352 arm-acorn-riscix1.2* | arm-acorn-riscix )
1353 ## This name is riscix12 instead of riscix1.2
1354 ## to avoid a file name conflict on MSDOS.
1355 machine=acorn opsys=riscix12
1356 ;;
1357
1358 ## BSDI ports
1359 *-*-bsdi* )
1360 opsys=bsdi
1361 case "${canonical}" in
1362 i[345]86-*-bsdi*) machine=intel386 ;;
1363 sparc-*-bsdi*) machine=sparc ;;
1364 powerpc-*-bsdi*) machine=macppc ;;
1365 esac
1366 case "${canonical}" in
1367 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1368 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1369 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1370 *-*-bsdi3* ) opsys=bsdos3 ;;
1371 *-*-bsdi4* ) opsys=bsdos4 ;;
1372 esac
1373 ;;
1374
1375 ## Alliant machines
1376 ## Strictly speaking, we need the version of the alliant operating
1377 ## system to choose the right machine file, but currently the
1378 ## configuration name doesn't tell us enough to choose the right
1379 ## one; we need to give alliants their own operating system name to
1380 ## do this right. When someone cares, they can help us.
1381 fx80-alliant-* )
1382 machine=alliant4 opsys=bsd4-2
1383 ;;
1384 i860-alliant-* )
1385 machine=alliant-2800 opsys=bsd4-3
1386 ;;
1387
1388 ## Alpha (DEC) machines.
1389 alpha*-dec-osf* )
1390 machine=alpha opsys=osf1
1391 # This is needed to find X11R6.1 libraries for certain tests.
1392 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1393 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1394 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1395 # due to non-traditional preprocessing with the current compiler
1396 # defaults. OSF 4 can also have that compiler version, and there
1397 # seems always to have been a usable /usr/bin/cpp.
1398 NON_GNU_CPP=/usr/bin/cpp
1399 case "${canonical}" in
1400 alpha*-dec-osf[5-9]*)
1401 opsys=osf5-0 ;;
1402 esac
1403 ;;
1404
1405 alpha*-*-linux-gnu* )
1406 machine=alpha opsys=gnu-linux
1407 ;;
1408
1409 arm*-*-linux-gnu* )
1410 machine=arm opsys=gnu-linux
1411 ;;
1412
1413 ppc-*-linux | \
1414 powerpc-*-linux* )
1415 machine=macppc opsys=gnu-linux
1416 ;;
1417
1418 ## Altos 3068
1419 m68*-altos-sysv* )
1420 machine=altos opsys=usg5-2
1421 ;;
1422
1423 ## Amdahl UTS
1424 580-amdahl-sysv* )
1425 machine=amdahl opsys=usg5-2-2
1426 ;;
1427
1428 ## Apollo, Domain/OS
1429 m68*-apollo-* )
1430 machine=apollo opsys=bsd4-3
1431 ;;
1432
1433 ## AT&T 3b2, 3b5, 3b15, 3b20
1434 we32k-att-sysv* )
1435 machine=att3b opsys=usg5-2-2
1436 ;;
1437
1438 ## AT&T 3b1 - The Mighty Unix PC!
1439 m68*-att-sysv* )
1440 machine=7300 opsys=usg5-2-2
1441 ;;
1442
1443 ## Bull dpx20
1444 rs6000-bull-bosx* )
1445 machine=ibmrs6000 opsys=aix3-2
1446 ;;
1447
1448 ## Bull dpx2
1449 m68*-bull-sysv3* )
1450 machine=dpx2 opsys=usg5-3
1451 ;;
1452
1453 ## Bull sps7
1454 m68*-bull-sysv2* )
1455 machine=sps7 opsys=usg5-2
1456 ;;
1457
1458 ## CCI 5/32, 6/32 -- see "Tahoe".
1459
1460 ## Celerity
1461 ## I don't know what configuration name to use for this; config.sub
1462 ## doesn't seem to know anything about it. Hey, Celerity users, get
1463 ## in touch with us!
1464 celerity-celerity-bsd* )
1465 machine=celerity opsys=bsd4-2
1466 ;;
1467
1468 ## Clipper
1469 ## What operating systems does this chip run that Emacs has been
1470 ## tested on?
1471 clipper-* )
1472 machine=clipper
1473 ## We'll use the catch-all code at the bottom to guess the
1474 ## operating system.
1475 ;;
1476
1477 ## Convex
1478 *-convex-bsd* | *-convex-convexos* )
1479 machine=convex opsys=bsd4-3
1480 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1481 NON_GNU_CPP="cc -E -P"
1482 ;;
1483
1484 ## Cubix QBx/386
1485 i[3456]86-cubix-sysv* )
1486 machine=intel386 opsys=usg5-3
1487 ;;
1488
1489 ## Cydra 5
1490 cydra*-cydrome-sysv* )
1491 machine=cydra5 opsys=usg5-3
1492 ;;
1493
1494 ## Data General AViiON Machines
1495 ## DG changed naming conventions with the release of 5.4.4.10, they
1496 ## dropped the initial 5.4 but left the intervening R. Because of the
1497 ## R this shouldn't conflict with older versions of the OS (which I
1498 ## think were named like dgux4.*). In addition, DG new AViiONs series
1499 ## uses either Motorola M88k or Intel Pentium CPUs.
1500 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1501 machine=aviion opsys=dgux4
1502 ;;
1503 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1504 ## This name is dgux5-4-3 instead of dgux5-4r3
1505 ## to avoid a file name conflict on MSDOS.
1506 machine=aviion opsys=dgux5-4-3
1507 ;;
1508 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1509 machine=aviion opsys=dgux5-4r2
1510 ;;
1511 m88k-dg-dgux* )
1512 machine=aviion opsys=dgux
1513 ;;
1514
1515 ## Data General AViiON Intel (x86) Machines
1516 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1517 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1518 i[345]86-dg-dguxR4* )
1519 machine=aviion-intel opsys=dgux4
1520 ;;
1521
1522 ## DECstations
1523 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1524 machine=pmax opsys=bsd4-2
1525 ;;
1526 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1527 machine=pmax opsys=bsd4-3
1528 ;;
1529 mips-dec-ultrix* )
1530 machine=pmax opsys=ultrix4-3
1531 ;;
1532 mips-dec-osf* )
1533 machine=pmax opsys=osf1
1534 ;;
1535 mips-dec-mach_bsd4.3* )
1536 machine=pmax opsys=mach-bsd4-3
1537 ;;
1538
1539 ## Motorola Delta machines
1540 m68k-motorola-sysv* | m68000-motorola-sysv* )
1541 machine=delta opsys=usg5-3
1542 if test -z "`type gnucc | grep 'not found'`"
1543 then
1544 if test -s /etc/167config
1545 then CC="gnucc -m68040"
1546 else CC="gnucc -m68881"
1547 fi
1548 else
1549 if test -z "`type gcc | grep 'not found'`"
1550 then CC=gcc
1551 else CC=cc
1552 fi
1553 fi
1554 ;;
1555 m88k-motorola-sysv4* )
1556 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1557 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1558 # I hope there are not other 4.0 versions for this machine
1559 # which really need usg5-4 instead.
1560 machine=delta88k opsys=usg5-4-2
1561 ;;
1562 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1563 machine=delta88k opsys=usg5-3
1564 ;;
1565
1566 ## Dual machines
1567 m68*-dual-sysv* )
1568 machine=dual opsys=usg5-2
1569 ;;
1570 m68*-dual-uniplus* )
1571 machine=dual opsys=unipl5-2
1572 ;;
1573
1574 ## Elxsi 6400
1575 elxsi-elxsi-sysv* )
1576 machine=elxsi opsys=usg5-2
1577 ;;
1578
1579 ## Encore machines
1580 ns16k-encore-bsd* )
1581 machine=ns16000 opsys=umax
1582 ;;
1583
1584 ## The GEC 63 - apparently, this port isn't really finished yet.
1585 # I'm sure we finished off the last of the machines, though. -- fx
1586
1587 ## Gould Power Node and NP1
1588 pn-gould-bsd4.2* )
1589 machine=gould opsys=bsd4-2
1590 ;;
1591 pn-gould-bsd4.3* )
1592 machine=gould opsys=bsd4-3
1593 ;;
1594 np1-gould-bsd* )
1595 machine=gould-np1 opsys=bsd4-3
1596 ;;
1597
1598 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1599 ## as far as Emacs is concerned).
1600 m88k-harris-cxux* )
1601 # Build needs to be different on 7.0 and later releases
1602 case "`uname -r`" in
1603 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1604 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1605 esac
1606 NON_GNU_CPP="/lib/cpp"
1607 ;;
1608 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1609 m68k-harris-cxux* )
1610 machine=nh3000 opsys=cxux
1611 ;;
1612 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1613 powerpc-harris-powerunix )
1614 machine=nh6000 opsys=powerunix
1615 NON_GNU_CPP="cc -Xo -E -P"
1616 ;;
1617 ## SR2001/SR2201 running HI-UX/MPP
1618 hppa1.1-hitachi-hiuxmpp* )
1619 machine=sr2k opsys=hiuxmpp
1620 ;;
1621 hppa1.1-hitachi-hiuxwe2* )
1622 machine=sr2k opsys=hiuxwe2
1623 ;;
1624 ## Honeywell XPS100
1625 xps*-honeywell-sysv* )
1626 machine=xps100 opsys=usg5-2
1627 ;;
1628
1629 ## HP 9000 series 200 or 300
1630 m68*-hp-bsd* )
1631 machine=hp9000s300 opsys=bsd4-3
1632 ;;
1633 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1634 m68*-hp-hpux* )
1635 case "`uname -r`" in
1636 ## Someone's system reports A.B8.05 for this.
1637 ## I wonder what other possibilities there are.
1638 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1639 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1640 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1641 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1642 *) machine=hp9000s300 opsys=hpux ;;
1643 esac
1644 ;;
1645
1646 ## HP 9000 series 700 and 800, running HP/UX
1647 hppa*-hp-hpux7* )
1648 machine=hp800 opsys=hpux
1649 ;;
1650 hppa*-hp-hpux8* )
1651 machine=hp800 opsys=hpux8
1652 ;;
1653 hppa*-hp-hpux9shr* )
1654 machine=hp800 opsys=hpux9shr
1655 ;;
1656 hppa*-hp-hpux9* )
1657 machine=hp800 opsys=hpux9
1658 ;;
1659 hppa*-hp-hpux10* )
1660 machine=hp800 opsys=hpux10
1661 ;;
1662 hppa*-hp-hpux1[1-9]* )
1663 machine=hp800 opsys=hpux11
1664 ;;
1665
1666 ## HP 9000 series 700 and 800, running HP/UX
1667 hppa*-hp-hpux* )
1668 ## Cross-compilation? Nah!
1669 case "`uname -r`" in
1670 ## Someone's system reports A.B8.05 for this.
1671 ## I wonder what other possibilities there are.
1672 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1673 *.08.* ) machine=hp800 opsys=hpux8 ;;
1674 *.09.* ) machine=hp800 opsys=hpux9 ;;
1675 *) machine=hp800 opsys=hpux10 ;;
1676 esac
1677 ;;
1678 hppa*-*-nextstep* )
1679 machine=hp800 opsys=nextstep
1680 ;;
1681
1682 ## Orion machines
1683 orion-orion-bsd* )
1684 machine=orion opsys=bsd4-2
1685 ;;
1686 clipper-orion-bsd* )
1687 machine=orion105 opsys=bsd4-2
1688 ;;
1689
1690 ## IBM machines
1691 i[3456]86-ibm-aix1.1* )
1692 machine=ibmps2-aix opsys=usg5-2-2
1693 ;;
1694 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1695 machine=ibmps2-aix opsys=usg5-3
1696 ;;
1697 i370-ibm-aix*)
1698 machine=ibm370aix opsys=usg5-3
1699 ;;
1700 s390-*-linux-gnu)
1701 machine=ibms390 opsys=gnu-linux
1702 ;;
1703 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1704 machine=ibmrs6000 opsys=aix3-1
1705 ;;
1706 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1707 machine=ibmrs6000 opsys=aix3-2-5
1708 ;;
1709 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1710 machine=ibmrs6000 opsys=aix4-1
1711 ;;
1712 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1713 machine=ibmrs6000 opsys=aix4-2
1714 ;;
1715 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1716 machine=ibmrs6000 opsys=aix4
1717 ;;
1718 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1719 machine=ibmrs6000 opsys=aix4-1
1720 ;;
1721 rs6000-ibm-aix* | powerpc-ibm-aix* )
1722 machine=ibmrs6000 opsys=aix3-2
1723 ;;
1724 romp-ibm-bsd4.3* )
1725 machine=ibmrt opsys=bsd4-3
1726 ;;
1727 romp-ibm-bsd4.2* )
1728 machine=ibmrt opsys=bsd4-2
1729 ;;
1730 romp-ibm-aos4.3* )
1731 machine=ibmrt opsys=bsd4-3
1732 ;;
1733 romp-ibm-aos4.2* )
1734 machine=ibmrt opsys=bsd4-2
1735 ;;
1736 romp-ibm-aos* )
1737 machine=ibmrt opsys=bsd4-3
1738 ;;
1739 romp-ibm-bsd* )
1740 machine=ibmrt opsys=bsd4-3
1741 ;;
1742 romp-ibm-aix* )
1743 machine=ibmrt-aix opsys=usg5-2-2
1744 ;;
1745
1746 ## Integrated Solutions `Optimum V'
1747 m68*-isi-bsd4.2* )
1748 machine=isi-ov opsys=bsd4-2
1749 ;;
1750 m68*-isi-bsd4.3* )
1751 machine=isi-ov opsys=bsd4-3
1752 ;;
1753
1754 ## Intel 386 machines where we do care about the manufacturer
1755 i[3456]86-intsys-sysv* )
1756 machine=is386 opsys=usg5-2-2
1757 ;;
1758
1759 ## Prime EXL
1760 i[3456]86-prime-sysv* )
1761 machine=i386 opsys=usg5-3
1762 ;;
1763
1764 ## Sequent Symmetry running Dynix
1765 i[3456]86-sequent-bsd* )
1766 machine=symmetry opsys=bsd4-3
1767 ;;
1768
1769 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1770 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1771 machine=sequent-ptx opsys=ptx4
1772 NON_GNU_CPP=/lib/cpp
1773 ;;
1774
1775 ## Sequent Symmetry running DYNIX/ptx
1776 ## Use the old cpp rather than the newer ANSI one.
1777 i[3456]86-sequent-ptx* )
1778 machine=sequent-ptx opsys=ptx
1779 NON_GNU_CPP="/lib/cpp"
1780 ;;
1781
1782 ## ncr machine running svr4.3.
1783 i[3456]86-ncr-sysv4.3 )
1784 machine=ncr386 opsys=usg5-4-3
1785 ;;
1786
1787 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1788 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1789 i[3456]86-ncr-sysv* )
1790 machine=ncr386 opsys=usg5-4-2
1791 ;;
1792
1793 ## Intel Paragon OSF/1
1794 i860-intel-osf1* )
1795 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1796 ;;
1797
1798 ## Intel 860
1799 i860-*-sysv4* )
1800 machine=i860 opsys=usg5-4
1801 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1802 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1803 ;;
1804
1805 ## Macintosh PowerPC
1806 powerpc*-*-linux-gnu* )
1807 machine=macppc opsys=gnu-linux
1808 ;;
1809
1810 ## Masscomp machines
1811 m68*-masscomp-rtu* )
1812 machine=masscomp opsys=rtu
1813 ;;
1814
1815 ## Megatest machines
1816 m68*-megatest-bsd* )
1817 machine=mega68 opsys=bsd4-2
1818 ;;
1819
1820 ## Workstations sold by MIPS
1821 ## This is not necessarily all workstations using the MIPS processor -
1822 ## Irises are produced by SGI, and DECstations by DEC.
1823
1824 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1825 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1826 ## it gives for choosing between the alternatives seems to be "Use
1827 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1828 ## the BSD world." I'll assume that these are instructions for
1829 ## handling two odd situations, and that every other situation
1830 ## should use mips.h and usg5-2-2, they being listed first.
1831 mips-mips-usg* )
1832 machine=mips4
1833 ## Fall through to the general code at the bottom to decide on the OS.
1834 ;;
1835 mips-mips-riscos4* )
1836 machine=mips4 opsys=bsd4-3
1837 NON_GNU_CC="cc -systype bsd43"
1838 NON_GNU_CPP="cc -systype bsd43 -E"
1839 ;;
1840 mips-mips-riscos5* )
1841 machine=mips4 opsys=riscos5
1842 NON_GNU_CC="cc -systype bsd43"
1843 NON_GNU_CPP="cc -systype bsd43 -E"
1844 ;;
1845 mips-mips-bsd* )
1846 machine=mips opsys=bsd4-3
1847 ;;
1848 mips-mips-* )
1849 machine=mips opsys=usg5-2-2
1850 ;;
1851
1852 ## NeXT
1853 m68*-next-* | m68k-*-nextstep* )
1854 machine=m68k opsys=nextstep
1855 ;;
1856
1857 ## The complete machine from National Semiconductor
1858 ns32k-ns-genix* )
1859 machine=ns32000 opsys=usg5-2
1860 ;;
1861
1862 ## NCR machines
1863 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1864 machine=tower32 opsys=usg5-2-2
1865 ;;
1866 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1867 machine=tower32v3 opsys=usg5-3
1868 ;;
1869
1870 ## NEC EWS4800
1871 mips-nec-sysv4*)
1872 machine=ews4800 opsys=ux4800
1873 ;;
1874
1875 ## Nixdorf Targon 31
1876 m68*-nixdorf-sysv* )
1877 machine=targon31 opsys=usg5-2-2
1878 ;;
1879
1880 ## Nu (TI or LMI)
1881 m68*-nu-sysv* )
1882 machine=nu opsys=usg5-2
1883 ;;
1884
1885 ## Plexus
1886 m68*-plexus-sysv* )
1887 machine=plexus opsys=usg5-2
1888 ;;
1889
1890 ## PowerPC reference platform
1891 powerpcle-*-solaris2* )
1892 machine=prep
1893 opsys=sol2-5
1894 ;;
1895
1896 ## Pyramid machines
1897 ## I don't really have any idea what sort of processor the Pyramid has,
1898 ## so I'm assuming it is its own architecture.
1899 pyramid-pyramid-bsd* )
1900 machine=pyramid opsys=bsd4-2
1901 ;;
1902
1903 ## Sequent Balance
1904 ns32k-sequent-bsd4.2* )
1905 machine=sequent opsys=bsd4-2
1906 ;;
1907 ns32k-sequent-bsd4.3* )
1908 machine=sequent opsys=bsd4-3
1909 ;;
1910
1911 ## Siemens Nixdorf
1912 mips-siemens-sysv* | mips-sni-sysv*)
1913 machine=mips-siemens opsys=usg5-4
1914 NON_GNU_CC=/usr/ccs/bin/cc
1915 NON_GNU_CPP=/usr/ccs/lib/cpp
1916 ;;
1917
1918 ## Silicon Graphics machines
1919 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1920 m68*-sgi-iris3.5* )
1921 machine=irist opsys=iris3-5
1922 ;;
1923 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1924 machine=irist opsys=iris3-6
1925 ;;
1926 ## Iris 4D
1927 mips-sgi-irix3* )
1928 machine=iris4d opsys=irix3-3
1929 ;;
1930 mips-sgi-irix4* )
1931 machine=iris4d opsys=irix4-0
1932 ;;
1933 mips-sgi-irix6.5 )
1934 machine=iris4d opsys=irix6-5
1935 # Without defining _LANGUAGE_C, things get masked out in the headers
1936 # so that, for instance, grepping for `free' in stdlib.h fails and
1937 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1938 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1939 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1940 ;;
1941 mips-sgi-irix6* )
1942 machine=iris4d opsys=irix6-0
1943 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1944 # but presumably it does no harm.
1945 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1946 # -32 probably isn't necessary in later v.6s -- anyone know which?
1947 NON_GCC_TEST_OPTIONS=-32
1948 ;;
1949 mips-sgi-irix5.[01]* )
1950 machine=iris4d opsys=irix5-0
1951 ;;
1952 mips-sgi-irix5* | mips-sgi-irix* )
1953 machine=iris4d opsys=irix5-2
1954 ;;
1955
1956 ## SONY machines
1957 m68*-sony-bsd4.2* )
1958 machine=news opsys=bsd4-2
1959 ;;
1960 m68*-sony-bsd4.3* )
1961 machine=news opsys=bsd4-3
1962 ;;
1963 m68*-sony-newsos3* | m68*-sony-news3*)
1964 machine=news opsys=bsd4-3
1965 ;;
1966 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
1967 machine=news-risc opsys=bsd4-3
1968 ;;
1969 mips-sony-newsos6* )
1970 machine=news-r6 opsys=newsos6
1971 ;;
1972 mips-sony-news* )
1973 machine=news-risc opsys=newsos5
1974 ;;
1975
1976 ## Stride
1977 m68*-stride-sysv* )
1978 machine=stride opsys=usg5-2
1979 ;;
1980
1981 ## Suns
1982 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
1983 machine=sparc opsys=gnu-linux
1984 ;;
1985
1986 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
1987 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
1988 | rs6000-*-solaris2*)
1989 case "${canonical}" in
1990 m68*-sunos1* ) machine=sun1 ;;
1991 m68*-sunos2* ) machine=sun2 ;;
1992 m68* ) machine=sun3 ;;
1993 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
1994 i[3456]86-*-* ) machine=intel386 ;;
1995 powerpcle* ) machine=powerpcle ;;
1996 powerpc* | rs6000* ) machine=ibmrs6000 ;;
1997 sparc* ) machine=sparc ;;
1998 * ) unported=yes ;;
1999 esac
2000 case "${canonical}" in
2001 ## The Sun386 didn't get past 4.0.
2002 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2003 *-sunos4.0* ) opsys=sunos4-0 ;;
2004 *-sunos4.1.[3-9]*noshare )
2005 ## This name is sunos413 instead of sunos4-1-3
2006 ## to avoid a file name conflict on MSDOS.
2007 opsys=sunos413
2008 NON_GNU_CPP=/usr/lib/cpp
2009 NON_GCC_TEST_OPTIONS=-Bstatic
2010 GCC_TEST_OPTIONS=-static
2011 ;;
2012 *-sunos4.1.[3-9]* | *-sunos4shr*)
2013 opsys=sunos4shr
2014 NON_GNU_CPP=/usr/lib/cpp
2015 ;;
2016 *-sunos4* | *-sunos )
2017 opsys=sunos4-1
2018 NON_GCC_TEST_OPTIONS=-Bstatic
2019 GCC_TEST_OPTIONS=-static
2020 ;;
2021 *-sunos5.3* | *-solaris2.3* )
2022 opsys=sol2-3
2023 NON_GNU_CPP=/usr/ccs/lib/cpp
2024 ;;
2025 *-sunos5.4* | *-solaris2.4* )
2026 opsys=sol2-4
2027 NON_GNU_CPP=/usr/ccs/lib/cpp
2028 RANLIB="ar -ts"
2029 ;;
2030 *-sunos5.5* | *-solaris2.5* )
2031 opsys=sol2-5
2032 NON_GNU_CPP=/usr/ccs/lib/cpp
2033 RANLIB="ar -ts"
2034 ;;
2035 *-sunos5* | *-solaris* )
2036 opsys=sol2-5
2037 NON_GNU_CPP=/usr/ccs/lib/cpp
2038 ;;
2039 * ) opsys=bsd4-2 ;;
2040 esac
2041 ## Watch out for a compiler that we know will not work.
2042 case "${canonical}" in
2043 *-solaris* | *-sunos5* )
2044 if [ "x$CC" = x/usr/ucb/cc ]; then
2045 ## /usr/ucb/cc doesn't work;
2046 ## we should find some other compiler that does work.
2047 unset CC
2048 fi
2049 ;;
2050 *) ;;
2051 esac
2052 ;;
2053 sparc-*-nextstep* )
2054 machine=sparc opsys=nextstep
2055 ;;
2056
2057 ## Tadpole 68k
2058 m68*-tadpole-sysv* )
2059 machine=tad68k opsys=usg5-3
2060 ;;
2061
2062 ## Tahoe machines
2063 tahoe-tahoe-bsd4.2* )
2064 machine=tahoe opsys=bsd4-2
2065 ;;
2066 tahoe-tahoe-bsd4.3* )
2067 machine=tahoe opsys=bsd4-3
2068 ;;
2069
2070 ## Tandem Integrity S2
2071 mips-tandem-sysv* )
2072 machine=tandem-s2 opsys=usg5-3
2073 ;;
2074
2075 ## Tektronix XD88
2076 m88k-tektronix-sysv3* )
2077 machine=tekxd88 opsys=usg5-3
2078 ;;
2079
2080 ## Tektronix 16000 box (6130?)
2081 ns16k-tektronix-bsd* )
2082 machine=ns16000 opsys=bsd4-2
2083 ;;
2084 ## Tektronix 4300
2085 ## src/m/tek4300.h hints that this is a m68k machine.
2086 m68*-tektronix-bsd* )
2087 machine=tek4300 opsys=bsd4-3
2088 ;;
2089
2090 ## Titan P2 or P3
2091 ## We seem to have lost the machine-description file titan.h!
2092 titan-titan-sysv* )
2093 machine=titan opsys=usg5-3
2094 ;;
2095
2096 ## Ustation E30 (SS5E)
2097 m68*-unisys-uniplus* )
2098 machine=ustation opsystem=unipl5-2
2099 ;;
2100
2101 ## Vaxen.
2102 vax-dec-* )
2103 machine=vax
2104 case "${canonical}" in
2105 *-bsd4.1* ) opsys=bsd4-1 ;;
2106 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2107 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2108 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2109 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2110 *-vms* ) opsys=vms ;;
2111 * ) unported=yes
2112 esac
2113 ;;
2114
2115 ## Whitechapel MG1
2116 ns16k-whitechapel-* )
2117 machine=mg1
2118 ## We don't know what sort of OS runs on these; we'll let the
2119 ## operating system guessing code below try.
2120 ;;
2121
2122 ## Wicat
2123 m68*-wicat-sysv* )
2124 machine=wicat opsys=usg5-2
2125 ;;
2126
2127 ## IA-64
2128 ia64*-*-linux* )
2129 machine=ia64 opsys=gnu-linux
2130 ;;
2131
2132 ## Intel 386 machines where we don't care about the manufacturer
2133 i[3456]86-*-* )
2134 machine=intel386
2135 case "${canonical}" in
2136 *-lynxos* ) opsys=lynxos ;;
2137 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2138 *-isc2.2* ) opsys=isc2-2 ;;
2139 *-isc4.0* ) opsys=isc4-0 ;;
2140 *-isc4.* ) opsys=isc4-1
2141 GCC_TEST_OPTIONS=-posix
2142 NON_GCC_TEST_OPTIONS=-Xp
2143 ;;
2144 *-isc* ) opsys=isc3-0 ;;
2145 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2146 *-esix* ) opsys=esix ;;
2147 *-xenix* ) opsys=xenix ;;
2148 *-linux-gnu* ) opsys=gnu-linux ;;
2149 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2150 *-sco3.2v5* ) opsys=sco5
2151 NON_GNU_CPP=/lib/cpp
2152 # Prevent -belf from being passed to $CPP.
2153 # /lib/cpp does not accept it.
2154 OVERRIDE_CPPFLAGS=" "
2155 ;;
2156 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2157 *-386bsd* ) opsys=386bsd ;;
2158 *-nextstep* ) opsys=nextstep ;;
2159 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2160 esac
2161 ;;
2162
2163 ## m68k Linux-based GNU system
2164 m68k-*-linux-gnu* )
2165 machine=m68k opsys=gnu-linux
2166 ;;
2167
2168 ## Mips Linux-based GNU system
2169 mips-*-linux-gnu* )
2170 machine=mips opsys=gnu-linux
2171 ;;
2172
2173 ## UXP/DS
2174 sparc-fujitsu-sysv4* )
2175 machine=sparc opsys=uxpds
2176 NON_GNU_CPP=/usr/ccs/lib/cpp
2177 RANLIB="ar -ts"
2178 ;;
2179
2180 ## UXP/V
2181 f301-fujitsu-uxpv4.1)
2182 machine=f301 opsys=uxpv
2183 ;;
2184
2185 * )
2186 unported=yes
2187 ;;
2188 esac
2189
2190 ### If the code above didn't choose an operating system, just choose
2191 ### an operating system based on the configuration name. You really
2192 ### only want to use this when you have no idea what the right
2193 ### operating system is; if you know what operating systems a machine
2194 ### runs, it's cleaner to make it explicit in the case statement
2195 ### above.
2196 if test x"${opsys}" = x; then
2197 case "${canonical}" in
2198 *-gnu* ) opsys=gnu ;;
2199 *-bsd4.[01] ) opsys=bsd4-1 ;;
2200 *-bsd4.2 ) opsys=bsd4-2 ;;
2201 *-bsd4.3 ) opsys=bsd4-3 ;;
2202 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2203 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2204 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2205 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2206 *-sysv4.2uw* ) opsys=unixware ;;
2207 *-sysv4.1* | *-sysvr4.1* )
2208 NON_GNU_CPP=/usr/lib/cpp
2209 opsys=usg5-4 ;;
2210 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2211 if [ x$NON_GNU_CPP = x ]; then
2212 if [ -f /usr/ccs/lib/cpp ]; then
2213 NON_GNU_CPP=/usr/ccs/lib/cpp
2214 else
2215 NON_GNU_CPP=/lib/cpp
2216 fi
2217 fi
2218 opsys=usg5-4-2 ;;
2219 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2220 * )
2221 unported=yes
2222 ;;
2223 esac
2224 fi
2225
2226 if test $unported = yes; then
2227 { { echo "$as_me:2227: error: Emacs hasn't been ported to \`${canonical}' systems.
2228 Check \`etc/MACHINES' for recognized configuration names." >&5
2229 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2230 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233
2234 machfile="m/${machine}.h"
2235 opsysfile="s/${opsys}.h"
2236
2237 #### Choose a compiler.
2238 test -n "$CC" && cc_specified=yes
2239
2240 # Save the value of CFLAGS that the user specified.
2241 SPECIFIED_CFLAGS="$CFLAGS"
2242
2243 case ${with_gcc} in
2244 "yes" ) CC="gcc" GCC=yes ;;
2245 "no" ) : ${CC=cc} ;;
2246 * )
2247 esac
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253 if test -n "$ac_tool_prefix"; then
2254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2255 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2256 echo "$as_me:2256: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2258 if test "${ac_cv_prog_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 if test -n "$CC"; then
2262 ac_cv_prog_CC="$CC" # Let the user override the test.
2263 else
2264 ac_save_IFS=$IFS; IFS=$ac_path_separator
2265 ac_dummy="$PATH"
2266 for ac_dir in $ac_dummy; do
2267 IFS=$ac_save_IFS
2268 test -z "$ac_dir" && ac_dir=.
2269 $as_executable_p "$ac_dir/$ac_word" || continue
2270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2271 echo "$as_me:2271: found $ac_dir/$ac_word" >&5
2272 break
2273 done
2274
2275 fi
2276 fi
2277 CC=$ac_cv_prog_CC
2278 if test -n "$CC"; then
2279 echo "$as_me:2279: result: $CC" >&5
2280 echo "${ECHO_T}$CC" >&6
2281 else
2282 echo "$as_me:2282: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2284 fi
2285
2286 fi
2287 if test -z "$ac_cv_prog_CC"; then
2288 ac_ct_CC=$CC
2289 # Extract the first word of "gcc", so it can be a program name with args.
2290 set dummy gcc; ac_word=$2
2291 echo "$as_me:2291: checking for $ac_word" >&5
2292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296 if test -n "$ac_ct_CC"; then
2297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2298 else
2299 ac_save_IFS=$IFS; IFS=$ac_path_separator
2300 ac_dummy="$PATH"
2301 for ac_dir in $ac_dummy; do
2302 IFS=$ac_save_IFS
2303 test -z "$ac_dir" && ac_dir=.
2304 $as_executable_p "$ac_dir/$ac_word" || continue
2305 ac_cv_prog_ac_ct_CC="gcc"
2306 echo "$as_me:2306: found $ac_dir/$ac_word" >&5
2307 break
2308 done
2309
2310 fi
2311 fi
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314 echo "$as_me:2314: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2316 else
2317 echo "$as_me:2317: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2319 fi
2320
2321 CC=$ac_ct_CC
2322 else
2323 CC="$ac_cv_prog_CC"
2324 fi
2325
2326 if test -z "$CC"; then
2327 if test -n "$ac_tool_prefix"; then
2328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}cc; ac_word=$2
2330 echo "$as_me:2330: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 if test -n "$CC"; then
2336 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 else
2338 ac_save_IFS=$IFS; IFS=$ac_path_separator
2339 ac_dummy="$PATH"
2340 for ac_dir in $ac_dummy; do
2341 IFS=$ac_save_IFS
2342 test -z "$ac_dir" && ac_dir=.
2343 $as_executable_p "$ac_dir/$ac_word" || continue
2344 ac_cv_prog_CC="${ac_tool_prefix}cc"
2345 echo "$as_me:2345: found $ac_dir/$ac_word" >&5
2346 break
2347 done
2348
2349 fi
2350 fi
2351 CC=$ac_cv_prog_CC
2352 if test -n "$CC"; then
2353 echo "$as_me:2353: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6
2355 else
2356 echo "$as_me:2356: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360 fi
2361 if test -z "$ac_cv_prog_CC"; then
2362 ac_ct_CC=$CC
2363 # Extract the first word of "cc", so it can be a program name with args.
2364 set dummy cc; ac_word=$2
2365 echo "$as_me:2365: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 else
2373 ac_save_IFS=$IFS; IFS=$ac_path_separator
2374 ac_dummy="$PATH"
2375 for ac_dir in $ac_dummy; do
2376 IFS=$ac_save_IFS
2377 test -z "$ac_dir" && ac_dir=.
2378 $as_executable_p "$ac_dir/$ac_word" || continue
2379 ac_cv_prog_ac_ct_CC="cc"
2380 echo "$as_me:2380: found $ac_dir/$ac_word" >&5
2381 break
2382 done
2383
2384 fi
2385 fi
2386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2387 if test -n "$ac_ct_CC"; then
2388 echo "$as_me:2388: result: $ac_ct_CC" >&5
2389 echo "${ECHO_T}$ac_ct_CC" >&6
2390 else
2391 echo "$as_me:2391: result: no" >&5
2392 echo "${ECHO_T}no" >&6
2393 fi
2394
2395 CC=$ac_ct_CC
2396 else
2397 CC="$ac_cv_prog_CC"
2398 fi
2399
2400 fi
2401 if test -z "$CC"; then
2402 # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 echo "$as_me:2404: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2406 if test "${ac_cv_prog_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 else
2412 ac_prog_rejected=no
2413 ac_save_IFS=$IFS; IFS=$ac_path_separator
2414 ac_dummy="$PATH"
2415 for ac_dir in $ac_dummy; do
2416 IFS=$ac_save_IFS
2417 test -z "$ac_dir" && ac_dir=.
2418 $as_executable_p "$ac_dir/$ac_word" || continue
2419 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2420 ac_prog_rejected=yes
2421 continue
2422 fi
2423 ac_cv_prog_CC="cc"
2424 echo "$as_me:2424: found $ac_dir/$ac_word" >&5
2425 break
2426 done
2427
2428 if test $ac_prog_rejected = yes; then
2429 # We found a bogon in the path, so make sure we never use it.
2430 set dummy $ac_cv_prog_CC
2431 shift
2432 if test $# != 0; then
2433 # We chose a different compiler from the bogus one.
2434 # However, it has the same basename, so the bogon will be chosen
2435 # first if we set CC to just the basename; use the full file name.
2436 shift
2437 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2438 shift
2439 ac_cv_prog_CC="$@"
2440 fi
2441 fi
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 echo "$as_me:2446: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6
2448 else
2449 echo "$as_me:2449: result: no" >&5
2450 echo "${ECHO_T}no" >&6
2451 fi
2452
2453 fi
2454 if test -z "$CC"; then
2455 if test -n "$ac_tool_prefix"; then
2456 for ac_prog in cl
2457 do
2458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2460 echo "$as_me:2460: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 ac_save_IFS=$IFS; IFS=$ac_path_separator
2469 ac_dummy="$PATH"
2470 for ac_dir in $ac_dummy; do
2471 IFS=$ac_save_IFS
2472 test -z "$ac_dir" && ac_dir=.
2473 $as_executable_p "$ac_dir/$ac_word" || continue
2474 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2475 echo "$as_me:2475: found $ac_dir/$ac_word" >&5
2476 break
2477 done
2478
2479 fi
2480 fi
2481 CC=$ac_cv_prog_CC
2482 if test -n "$CC"; then
2483 echo "$as_me:2483: result: $CC" >&5
2484 echo "${ECHO_T}$CC" >&6
2485 else
2486 echo "$as_me:2486: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2488 fi
2489
2490 test -n "$CC" && break
2491 done
2492 fi
2493 if test -z "$CC"; then
2494 ac_ct_CC=$CC
2495 for ac_prog in cl
2496 do
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 echo "$as_me:2499: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506 else
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2508 ac_dummy="$PATH"
2509 for ac_dir in $ac_dummy; do
2510 IFS=$ac_save_IFS
2511 test -z "$ac_dir" && ac_dir=.
2512 $as_executable_p "$ac_dir/$ac_word" || continue
2513 ac_cv_prog_ac_ct_CC="$ac_prog"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2515 break
2516 done
2517
2518 fi
2519 fi
2520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521 if test -n "$ac_ct_CC"; then
2522 echo "$as_me:2522: result: $ac_ct_CC" >&5
2523 echo "${ECHO_T}$ac_ct_CC" >&6
2524 else
2525 echo "$as_me:2525: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2527 fi
2528
2529 test -n "$ac_ct_CC" && break
2530 done
2531
2532 CC=$ac_ct_CC
2533 fi
2534
2535 fi
2536
2537 test -z "$CC" && { { echo "$as_me:2537: error: no acceptable cc found in \$PATH" >&5
2538 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2539 { (exit 1); exit 1; }; }
2540
2541 # Provide some information about the compiler.
2542 echo "$as_me:2542:" \
2543 "checking for C compiler version" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (eval echo "$as_me:2545: \"$ac_compiler --version </dev/null >&5\"") >&5
2546 (eval $ac_compiler --version </dev/null >&5) 2>&5
2547 ac_status=$?
2548 echo "$as_me:2548: \$? = $ac_status" >&5
2549 (exit $ac_status); }
2550 { (eval echo "$as_me:2550: \"$ac_compiler -v </dev/null >&5\"") >&5
2551 (eval $ac_compiler -v </dev/null >&5) 2>&5
2552 ac_status=$?
2553 echo "$as_me:2553: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (eval echo "$as_me:2555: \"$ac_compiler -V </dev/null >&5\"") >&5
2556 (eval $ac_compiler -V </dev/null >&5) 2>&5
2557 ac_status=$?
2558 echo "$as_me:2558: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2560
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line 2562 "configure"
2563 #include "confdefs.h"
2564
2565 int
2566 main ()
2567 {
2568
2569 ;
2570 return 0;
2571 }
2572 _ACEOF
2573 ac_clean_files_save=$ac_clean_files
2574 ac_clean_files="$ac_clean_files a.out a.exe"
2575 # Try to create an executable without -o first, disregard a.out.
2576 # It will help us diagnose broken compilers, and finding out an intuition
2577 # of exeext.
2578 echo "$as_me:2578: checking for C compiler default output" >&5
2579 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2580 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2581 if { (eval echo "$as_me:2581: \"$ac_link_default\"") >&5
2582 (eval $ac_link_default) 2>&5
2583 ac_status=$?
2584 echo "$as_me:2584: \$? = $ac_status" >&5
2585 (exit $ac_status); }; then
2586 # Find the output, starting from the most likely. This scheme is
2587 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2588 # resort.
2589 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2590 ls a.out conftest 2>/dev/null;
2591 ls a.* conftest.* 2>/dev/null`; do
2592 case $ac_file in
2593 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2594 a.out ) # We found the default executable, but exeext='' is most
2595 # certainly right.
2596 break;;
2597 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2598 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2599 export ac_cv_exeext
2600 break;;
2601 * ) break;;
2602 esac
2603 done
2604 else
2605 echo "$as_me: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 { { echo "$as_me:2607: error: C compiler cannot create executables" >&5
2608 echo "$as_me: error: C compiler cannot create executables" >&2;}
2609 { (exit 77); exit 77; }; }
2610 fi
2611
2612 ac_exeext=$ac_cv_exeext
2613 echo "$as_me:2613: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6
2615
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:2618: checking whether the C compiler works" >&5
2619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2621 # If not cross compiling, check that we can run a simple program.
2622 if test "$cross_compiling" != yes; then
2623 if { ac_try='./$ac_file'
2624 { (eval echo "$as_me:2624: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:2627: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 cross_compiling=no
2630 else
2631 if test "$cross_compiling" = maybe; then
2632 cross_compiling=yes
2633 else
2634 { { echo "$as_me:2634: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'." >&5
2636 echo "$as_me: error: cannot run C compiled programs.
2637 If you meant to cross compile, use \`--host'." >&2;}
2638 { (exit 1); exit 1; }; }
2639 fi
2640 fi
2641 fi
2642 echo "$as_me:2642: result: yes" >&5
2643 echo "${ECHO_T}yes" >&6
2644
2645 rm -f a.out a.exe conftest$ac_cv_exeext
2646 ac_clean_files=$ac_clean_files_save
2647 # Check the compiler produces executables we can run. If not, either
2648 # the compiler is broken, or we cross compile.
2649 echo "$as_me:2649: checking whether we are cross compiling" >&5
2650 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2651 echo "$as_me:2651: result: $cross_compiling" >&5
2652 echo "${ECHO_T}$cross_compiling" >&6
2653
2654 echo "$as_me:2654: checking for executable suffix" >&5
2655 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2656 if { (eval echo "$as_me:2656: \"$ac_link\"") >&5
2657 (eval $ac_link) 2>&5
2658 ac_status=$?
2659 echo "$as_me:2659: \$? = $ac_status" >&5
2660 (exit $ac_status); }; then
2661 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2662 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2663 # work properly (i.e., refer to `conftest.exe'), while it won't with
2664 # `rm'.
2665 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2666 case $ac_file in
2667 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2669 export ac_cv_exeext
2670 break;;
2671 * ) break;;
2672 esac
2673 done
2674 else
2675 { { echo "$as_me:2675: error: cannot compute EXEEXT: cannot compile and link" >&5
2676 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2677 { (exit 1); exit 1; }; }
2678 fi
2679
2680 rm -f conftest$ac_cv_exeext
2681 echo "$as_me:2681: result: $ac_cv_exeext" >&5
2682 echo "${ECHO_T}$ac_cv_exeext" >&6
2683
2684 rm -f conftest.$ac_ext
2685 EXEEXT=$ac_cv_exeext
2686 ac_exeext=$EXEEXT
2687 echo "$as_me:2687: checking for object suffix" >&5
2688 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2689 if test "${ac_cv_objext+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #line 2693 "configure"
2694 #include "confdefs.h"
2695
2696 int
2697 main ()
2698 {
2699
2700 ;
2701 return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.o conftest.obj
2705 if { (eval echo "$as_me:2705: \"$ac_compile\"") >&5
2706 (eval $ac_compile) 2>&5
2707 ac_status=$?
2708 echo "$as_me:2708: \$? = $ac_status" >&5
2709 (exit $ac_status); }; then
2710 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2711 case $ac_file in
2712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2714 break;;
2715 esac
2716 done
2717 else
2718 echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 { { echo "$as_me:2720: error: cannot compute OBJEXT: cannot compile" >&5
2721 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2722 { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2726 fi
2727 echo "$as_me:2727: result: $ac_cv_objext" >&5
2728 echo "${ECHO_T}$ac_cv_objext" >&6
2729 OBJEXT=$ac_cv_objext
2730 ac_objext=$OBJEXT
2731 echo "$as_me:2731: checking whether we are using the GNU C compiler" >&5
2732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 cat >conftest.$ac_ext <<_ACEOF
2737 #line 2737 "configure"
2738 #include "confdefs.h"
2739
2740 int
2741 main ()
2742 {
2743 #ifndef __GNUC__
2744 choke me
2745 #endif
2746
2747 ;
2748 return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:2752: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>&5
2754 ac_status=$?
2755 echo "$as_me:2755: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:2758: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_compiler_gnu=yes
2764 else
2765 echo "$as_me: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2767 ac_compiler_gnu=no
2768 fi
2769 rm -f conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2771
2772 fi
2773 echo "$as_me:2773: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2778 CFLAGS="-g"
2779 echo "$as_me:2779: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line 2785 "configure"
2786 #include "confdefs.h"
2787
2788 int
2789 main ()
2790 {
2791
2792 ;
2793 return 0;
2794 }
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (eval echo "$as_me:2797: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2799 ac_status=$?
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:2803: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:2806: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cc_g=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 ac_cv_prog_cc_g=no
2813 fi
2814 rm -f conftest.$ac_objext conftest.$ac_ext
2815 fi
2816 echo "$as_me:2816: result: $ac_cv_prog_cc_g" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2818 if test "$ac_test_CFLAGS" = set; then
2819 CFLAGS=$ac_save_CFLAGS
2820 elif test $ac_cv_prog_cc_g = yes; then
2821 if test "$GCC" = yes; then
2822 CFLAGS="-g -O2"
2823 else
2824 CFLAGS="-g"
2825 fi
2826 else
2827 if test "$GCC" = yes; then
2828 CFLAGS="-O2"
2829 else
2830 CFLAGS=
2831 fi
2832 fi
2833 # Some people use a C++ compiler to compile C. Since we use `exit',
2834 # in C++ we need to declare it. In case someone uses the same compiler
2835 # for both compiling C and C++ we need to have the C++ compiler decide
2836 # the declaration of exit, since it's the most demanding environment.
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #ifndef __cplusplus
2839 choke me
2840 #endif
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:2843: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>&5
2845 ac_status=$?
2846 echo "$as_me:2846: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -s conftest.$ac_objext'
2849 { (eval echo "$as_me:2849: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:2852: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 for ac_declaration in \
2855 ''\
2856 '#include <stdlib.h>' \
2857 'extern "C" void std::exit (int) throw (); using std::exit;' \
2858 'extern "C" void std::exit (int); using std::exit;' \
2859 'extern "C" void exit (int) throw ();' \
2860 'extern "C" void exit (int);' \
2861 'void exit (int);'
2862 do
2863 cat >conftest.$ac_ext <<_ACEOF
2864 #line 2864 "configure"
2865 #include "confdefs.h"
2866 #include <stdlib.h>
2867 $ac_declaration
2868 int
2869 main ()
2870 {
2871 exit (42);
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:2877: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>&5
2879 ac_status=$?
2880 echo "$as_me:2880: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:2883: \"$ac_try\"") >&5
2884 (eval $ac_try) 2>&5
2885 ac_status=$?
2886 echo "$as_me:2886: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 :
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 continue
2893 fi
2894 rm -f conftest.$ac_objext conftest.$ac_ext
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line 2896 "configure"
2897 #include "confdefs.h"
2898 $ac_declaration
2899 int
2900 main ()
2901 {
2902 exit (42);
2903 ;
2904 return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext
2908 if { (eval echo "$as_me:2908: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>&5
2910 ac_status=$?
2911 echo "$as_me:2911: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:2914: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 break
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 cat conftest.$ac_ext >&5
2923 fi
2924 rm -f conftest.$ac_objext conftest.$ac_ext
2925 done
2926 rm -f conftest*
2927 if test -n "$ac_declaration"; then
2928 echo '#ifdef __cplusplus' >>confdefs.h
2929 echo $ac_declaration >>confdefs.h
2930 echo '#endif' >>confdefs.h
2931 fi
2932
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 fi
2937 rm -f conftest.$ac_objext conftest.$ac_ext
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943
2944 # On Suns, sometimes $CPP names a directory.
2945 if test -n "$CPP" && test -d "$CPP"; then
2946 CPP=
2947 fi
2948
2949 #### Some systems specify a CPP to use unless we are using GCC.
2950 #### Now that we know whether we are using GCC, we can decide whether
2951 #### to use that one.
2952 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
2953 then
2954 CPP="$NON_GNU_CPP"
2955 fi
2956
2957 #### Some systems specify a CC to use unless we are using GCC.
2958 #### Now that we know whether we are using GCC, we can decide whether
2959 #### to use that one.
2960 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
2961 test x$cc_specified != xyes
2962 then
2963 CC="$NON_GNU_CC"
2964 fi
2965
2966 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
2967 then
2968 CC="$CC $GCC_TEST_OPTIONS"
2969 fi
2970
2971 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
2972 then
2973 CC="$CC $NON_GCC_TEST_OPTIONS"
2974 fi
2975
2976 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
2977 then
2978 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
2979 fi
2980
2981 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2982 then
2983 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2984 fi
2985
2986 #### Some other nice autoconf tests. If you add a test here which
2987 #### should make an entry in src/config.h, don't forget to add an
2988 #### #undef clause to src/config.h.in for autoconf to modify.
2989
2990 echo "$as_me:2990: checking whether ln -s works" >&5
2991 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2992 LN_S=$as_ln_s
2993 if test "$LN_S" = "ln -s"; then
2994 echo "$as_me:2994: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6
2996 else
2997 echo "$as_me:2997: result: no, using $LN_S" >&5
2998 echo "${ECHO_T}no, using $LN_S" >&6
2999 fi
3000
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 echo "$as_me:3006: checking how to run the C preprocessor" >&5
3007 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3008 # On Suns, sometimes $CPP names a directory.
3009 if test -n "$CPP" && test -d "$CPP"; then
3010 CPP=
3011 fi
3012 if test -z "$CPP"; then
3013 if test "${ac_cv_prog_CPP+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 # Double quotes because CPP needs to be expanded
3017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3018 do
3019 ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3021 do
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # On the NeXT, cc -E runs the code through the compiler's parser,
3025 # not just through cpp. "Syntax error" is here to catch this case.
3026 cat >conftest.$ac_ext <<_ACEOF
3027 #line 3027 "configure"
3028 #include "confdefs.h"
3029 #include <assert.h>
3030 Syntax error
3031 _ACEOF
3032 if { (eval echo "$as_me:3032: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 ac_status=$?
3035 egrep -v '^ *\+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:3038: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev/null; then
3040 if test -s conftest.err; then
3041 ac_cpp_err=$ac_c_preproc_warn_flag
3042 else
3043 ac_cpp_err=
3044 fi
3045 else
3046 ac_cpp_err=yes
3047 fi
3048 if test -z "$ac_cpp_err"; then
3049 :
3050 else
3051 echo "$as_me: failed program was:" >&5
3052 cat conftest.$ac_ext >&5
3053 # Broken: fails on valid input.
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_ext
3057
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 #include <ac_nonexistent.h>
3064 _ACEOF
3065 if { (eval echo "$as_me:3065: \"$ac_cpp conftest.$ac_ext\"") >&5
3066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3067 ac_status=$?
3068 egrep -v '^ *\+' conftest.er1 >conftest.err
3069 rm -f conftest.er1
3070 cat conftest.err >&5
3071 echo "$as_me:3071: \$? = $ac_status" >&5
3072 (exit $ac_status); } >/dev/null; then
3073 if test -s conftest.err; then
3074 ac_cpp_err=$ac_c_preproc_warn_flag
3075 else
3076 ac_cpp_err=
3077 fi
3078 else
3079 ac_cpp_err=yes
3080 fi
3081 if test -z "$ac_cpp_err"; then
3082 # Broken: success on invalid input.
3083 continue
3084 else
3085 echo "$as_me: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 # Passes both tests.
3088 ac_preproc_ok=:
3089 break
3090 fi
3091 rm -f conftest.err conftest.$ac_ext
3092
3093 done
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then
3097 break
3098 fi
3099
3100 done
3101 ac_cv_prog_CPP=$CPP
3102
3103 fi
3104 CPP=$ac_cv_prog_CPP
3105 else
3106 ac_cv_prog_CPP=$CPP
3107 fi
3108 echo "$as_me:3108: result: $CPP" >&5
3109 echo "${ECHO_T}$CPP" >&6
3110 ac_preproc_ok=false
3111 for ac_c_preproc_warn_flag in '' yes
3112 do
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # On the NeXT, cc -E runs the code through the compiler's parser,
3116 # not just through cpp. "Syntax error" is here to catch this case.
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line 3118 "configure"
3119 #include "confdefs.h"
3120 #include <assert.h>
3121 Syntax error
3122 _ACEOF
3123 if { (eval echo "$as_me:3123: \"$ac_cpp conftest.$ac_ext\"") >&5
3124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3125 ac_status=$?
3126 egrep -v '^ *\+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:3129: \$? = $ac_status" >&5
3130 (exit $ac_status); } >/dev/null; then
3131 if test -s conftest.err; then
3132 ac_cpp_err=$ac_c_preproc_warn_flag
3133 else
3134 ac_cpp_err=
3135 fi
3136 else
3137 ac_cpp_err=yes
3138 fi
3139 if test -z "$ac_cpp_err"; then
3140 :
3141 else
3142 echo "$as_me: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3144 # Broken: fails on valid input.
3145 continue
3146 fi
3147 rm -f conftest.err conftest.$ac_ext
3148
3149 # OK, works on sane cases. Now check whether non-existent headers
3150 # can be detected and how.
3151 cat >conftest.$ac_ext <<_ACEOF
3152 #line 3152 "configure"
3153 #include "confdefs.h"
3154 #include <ac_nonexistent.h>
3155 _ACEOF
3156 if { (eval echo "$as_me:3156: \"$ac_cpp conftest.$ac_ext\"") >&5
3157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 ac_status=$?
3159 egrep -v '^ *\+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); } >/dev/null; then
3164 if test -s conftest.err; then
3165 ac_cpp_err=$ac_c_preproc_warn_flag
3166 else
3167 ac_cpp_err=
3168 fi
3169 else
3170 ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173 # Broken: success on invalid input.
3174 continue
3175 else
3176 echo "$as_me: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3178 # Passes both tests.
3179 ac_preproc_ok=:
3180 break
3181 fi
3182 rm -f conftest.err conftest.$ac_ext
3183
3184 done
3185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3186 rm -f conftest.err conftest.$ac_ext
3187 if $ac_preproc_ok; then
3188 :
3189 else
3190 { { echo "$as_me:3190: error: C preprocessor \"$CPP\" fails sanity check" >&5
3191 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3192 { (exit 1); exit 1; }; }
3193 fi
3194
3195 ac_ext=c
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200
3201 # Find a good install program. We prefer a C program (faster),
3202 # so one script is as good as another. But avoid the broken or
3203 # incompatible versions:
3204 # SysV /etc/install, /usr/sbin/install
3205 # SunOS /usr/etc/install
3206 # IRIX /sbin/install
3207 # AIX /bin/install
3208 # AmigaOS /C/install, which installs bootblocks on floppy discs
3209 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3210 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3211 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3212 # ./install, which can be erroneously created by make from ./install.sh.
3213 echo "$as_me:3213: checking for a BSD compatible install" >&5
3214 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3215 if test -z "$INSTALL"; then
3216 if test "${ac_cv_path_install+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 ac_save_IFS=$IFS; IFS=$ac_path_separator
3220 for ac_dir in $PATH; do
3221 IFS=$ac_save_IFS
3222 # Account for people who put trailing slashes in PATH elements.
3223 case $ac_dir/ in
3224 / | ./ | .// | /cC/* \
3225 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3226 | /usr/ucb/* ) ;;
3227 *)
3228 # OSF1 and SCO ODT 3.0 have their own names for install.
3229 # Don't use installbsd from OSF since it installs stuff as root
3230 # by default.
3231 for ac_prog in ginstall scoinst install; do
3232 if $as_executable_p "$ac_dir/$ac_prog"; then
3233 if test $ac_prog = install &&
3234 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3235 # AIX install. It has an incompatible calling convention.
3236 :
3237 elif test $ac_prog = install &&
3238 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3239 # program-specific install script used by HP pwplus--don't use.
3240 :
3241 else
3242 ac_cv_path_install="$ac_dir/$ac_prog -c"
3243 break 2
3244 fi
3245 fi
3246 done
3247 ;;
3248 esac
3249 done
3250
3251 fi
3252 if test "${ac_cv_path_install+set}" = set; then
3253 INSTALL=$ac_cv_path_install
3254 else
3255 # As a last resort, use the slow shell script. We don't cache a
3256 # path for INSTALL within a source directory, because that will
3257 # break other packages using the cache if that directory is
3258 # removed, or if the path is relative.
3259 INSTALL=$ac_install_sh
3260 fi
3261 fi
3262 echo "$as_me:3262: result: $INSTALL" >&5
3263 echo "${ECHO_T}$INSTALL" >&6
3264
3265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3266 # It thinks the first close brace ends the variable substitution.
3267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3268
3269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3270
3271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3272
3273 for ac_prog in 'bison -y' byacc
3274 do
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 echo "$as_me:3277: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_YACC+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 if test -n "$YACC"; then
3283 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3284 else
3285 ac_save_IFS=$IFS; IFS=$ac_path_separator
3286 ac_dummy="$PATH"
3287 for ac_dir in $ac_dummy; do
3288 IFS=$ac_save_IFS
3289 test -z "$ac_dir" && ac_dir=.
3290 $as_executable_p "$ac_dir/$ac_word" || continue
3291 ac_cv_prog_YACC="$ac_prog"
3292 echo "$as_me:3292: found $ac_dir/$ac_word" >&5
3293 break
3294 done
3295
3296 fi
3297 fi
3298 YACC=$ac_cv_prog_YACC
3299 if test -n "$YACC"; then
3300 echo "$as_me:3300: result: $YACC" >&5
3301 echo "${ECHO_T}$YACC" >&6
3302 else
3303 echo "$as_me:3303: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3305 fi
3306
3307 test -n "$YACC" && break
3308 done
3309 test -n "$YACC" || YACC="yacc"
3310
3311 if test "x$RANLIB" = x; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3315 echo "$as_me:3315: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_RANLIB+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$RANLIB"; then
3321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3322 else
3323 ac_save_IFS=$IFS; IFS=$ac_path_separator
3324 ac_dummy="$PATH"
3325 for ac_dir in $ac_dummy; do
3326 IFS=$ac_save_IFS
3327 test -z "$ac_dir" && ac_dir=.
3328 $as_executable_p "$ac_dir/$ac_word" || continue
3329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3330 echo "$as_me:3330: found $ac_dir/$ac_word" >&5
3331 break
3332 done
3333
3334 fi
3335 fi
3336 RANLIB=$ac_cv_prog_RANLIB
3337 if test -n "$RANLIB"; then
3338 echo "$as_me:3338: result: $RANLIB" >&5
3339 echo "${ECHO_T}$RANLIB" >&6
3340 else
3341 echo "$as_me:3341: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344
3345 fi
3346 if test -z "$ac_cv_prog_RANLIB"; then
3347 ac_ct_RANLIB=$RANLIB
3348 # Extract the first word of "ranlib", so it can be a program name with args.
3349 set dummy ranlib; ac_word=$2
3350 echo "$as_me:3350: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 if test -n "$ac_ct_RANLIB"; then
3356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3357 else
3358 ac_save_IFS=$IFS; IFS=$ac_path_separator
3359 ac_dummy="$PATH"
3360 for ac_dir in $ac_dummy; do
3361 IFS=$ac_save_IFS
3362 test -z "$ac_dir" && ac_dir=.
3363 $as_executable_p "$ac_dir/$ac_word" || continue
3364 ac_cv_prog_ac_ct_RANLIB="ranlib"
3365 echo "$as_me:3365: found $ac_dir/$ac_word" >&5
3366 break
3367 done
3368
3369 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3370 fi
3371 fi
3372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3373 if test -n "$ac_ct_RANLIB"; then
3374 echo "$as_me:3374: result: $ac_ct_RANLIB" >&5
3375 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3376 else
3377 echo "$as_me:3377: result: no" >&5
3378 echo "${ECHO_T}no" >&6
3379 fi
3380
3381 RANLIB=$ac_ct_RANLIB
3382 else
3383 RANLIB="$ac_cv_prog_RANLIB"
3384 fi
3385
3386 fi
3387
3388 echo "$as_me:3388: checking for AIX" >&5
3389 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #line 3391 "configure"
3392 #include "confdefs.h"
3393 #ifdef _AIX
3394 yes
3395 #endif
3396
3397 _ACEOF
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 egrep "yes" >/dev/null 2>&1; then
3400 echo "$as_me:3400: result: yes" >&5
3401 echo "${ECHO_T}yes" >&6
3402 cat >>confdefs.h <<\EOF
3403 #define _ALL_SOURCE 1
3404 EOF
3405
3406 else
3407 echo "$as_me:3407: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3409 fi
3410 rm -f conftest*
3411
3412 #### Extract some information from the operating system and machine files.
3413
3414 { echo "$as_me:3414: checking the machine- and system-dependent files to find out
3415 - which libraries the lib-src programs will want, and
3416 - whether the GNU malloc routines are usable..." >&5
3417 echo "$as_me: checking the machine- and system-dependent files to find out
3418 - which libraries the lib-src programs will want, and
3419 - whether the GNU malloc routines are usable..." >&6;}
3420
3421 ### First figure out CFLAGS (which we use for running the compiler here)
3422 ### and REAL_CFLAGS (which we use for real compilation).
3423 ### The two are the same except on a few systems, where they are made
3424 ### different to work around various lossages. For example,
3425 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3426 ### as implying static linking.
3427
3428 ### If the CFLAGS env var is specified, we use that value
3429 ### instead of the default.
3430
3431 ### It's not important that this name contain the PID; you can't run
3432 ### two configures in the same directory and have anything work
3433 ### anyway.
3434 tempcname="conftest.c"
3435
3436 echo '
3437 #include "'${srcdir}'/src/'${opsysfile}'"
3438 #include "'${srcdir}'/src/'${machfile}'"
3439 #ifndef LIBS_MACHINE
3440 #define LIBS_MACHINE
3441 #endif
3442 #ifndef LIBS_SYSTEM
3443 #define LIBS_SYSTEM
3444 #endif
3445 #ifndef C_SWITCH_SYSTEM
3446 #define C_SWITCH_SYSTEM
3447 #endif
3448 #ifndef C_SWITCH_MACHINE
3449 #define C_SWITCH_MACHINE
3450 #endif
3451 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3452 configure___ c_switch_system=C_SWITCH_SYSTEM
3453 configure___ c_switch_machine=C_SWITCH_MACHINE
3454
3455 #ifndef LIB_X11_LIB
3456 #define LIB_X11_LIB -lX11
3457 #endif
3458
3459 #ifndef LIBX11_MACHINE
3460 #define LIBX11_MACHINE
3461 #endif
3462
3463 #ifndef LIBX11_SYSTEM
3464 #define LIBX11_SYSTEM
3465 #endif
3466 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3467
3468 #ifdef UNEXEC
3469 configure___ unexec=UNEXEC
3470 #else
3471 configure___ unexec=unexec.o
3472 #endif
3473
3474 #ifdef SYSTEM_MALLOC
3475 configure___ system_malloc=yes
3476 #else
3477 configure___ system_malloc=no
3478 #endif
3479
3480 #ifdef USE_MMAP_FOR_BUFFERS
3481 configure___ use_mmap_for_buffers=yes
3482 #else
3483 configure___ use_mmap_for_buffers=no
3484 #endif
3485
3486 #ifndef C_DEBUG_SWITCH
3487 #define C_DEBUG_SWITCH -g
3488 #endif
3489
3490 #ifndef C_OPTIMIZE_SWITCH
3491 #ifdef __GNUC__
3492 #define C_OPTIMIZE_SWITCH -O2
3493 #else
3494 #define C_OPTIMIZE_SWITCH -O
3495 #endif
3496 #endif
3497
3498 #ifndef LD_SWITCH_MACHINE
3499 #define LD_SWITCH_MACHINE
3500 #endif
3501
3502 #ifndef LD_SWITCH_SYSTEM
3503 #define LD_SWITCH_SYSTEM
3504 #endif
3505
3506 #ifndef LD_SWITCH_X_SITE_AUX
3507 #define LD_SWITCH_X_SITE_AUX
3508 #endif
3509
3510 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3511 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3512
3513 #ifdef THIS_IS_CONFIGURE
3514
3515 /* Get the CFLAGS for tests in configure. */
3516 #ifdef __GNUC__
3517 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3518 #else
3519 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3520 #endif
3521
3522 #else /* not THIS_IS_CONFIGURE */
3523
3524 /* Get the CFLAGS for real compilation. */
3525 #ifdef __GNUC__
3526 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3527 #else
3528 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3529 #endif
3530
3531 #endif /* not THIS_IS_CONFIGURE */
3532 ' > ${tempcname}
3533
3534 # The value of CPP is a quoted variable reference, so we need to do this
3535 # to get its actual value...
3536 CPP=`eval "echo $CPP"`
3537 eval `${CPP} -Isrc ${tempcname} \
3538 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3539 if test "x$SPECIFIED_CFLAGS" = x; then
3540 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3541 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3542 else
3543 REAL_CFLAGS="$CFLAGS"
3544 fi
3545 rm ${tempcname}
3546
3547 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3548
3549 ### Make sure subsequent tests use flags consistent with the build flags.
3550
3551 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3552 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3553 else
3554 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3555 fi
3556
3557 # Check whether --enable-largefile or --disable-largefile was given.
3558 if test "${enable_largefile+set}" = set; then
3559 enableval="$enable_largefile"
3560
3561 fi;
3562 if test "$enable_largefile" != no; then
3563
3564 echo "$as_me:3564: checking for special C compiler options needed for large files" >&5
3565 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3566 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 else
3569 ac_cv_sys_largefile_CC=no
3570 if test "$GCC" != yes; then
3571 ac_save_CC=$CC
3572 while :; do
3573 # IRIX 6.2 and later do not support large files by default,
3574 # so use the C compiler's -n32 option if that helps.
3575 cat >conftest.$ac_ext <<_ACEOF
3576 #line 3576 "configure"
3577 #include "confdefs.h"
3578 #include <sys/types.h>
3579 /* Check that off_t can represent 2**63 - 1 correctly.
3580 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3581 since some C++ compilers masquerading as C compilers
3582 incorrectly reject 9223372036854775807. */
3583 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3584 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3585 && LARGE_OFF_T % 2147483647 == 1)
3586 ? 1 : -1];
3587 int
3588 main ()
3589 {
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:3596: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>&5
3598 ac_status=$?
3599 echo "$as_me:3599: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -s conftest.$ac_objext'
3602 { (eval echo "$as_me:3602: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:3605: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3607 break
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 fi
3612 rm -f conftest.$ac_objext
3613 CC="$CC -n32"
3614 rm -f conftest.$ac_objext
3615 if { (eval echo "$as_me:3615: \"$ac_compile\"") >&5
3616 (eval $ac_compile) 2>&5
3617 ac_status=$?
3618 echo "$as_me:3618: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:3621: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_sys_largefile_CC=' -n32'; break
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3630 fi
3631 rm -f conftest.$ac_objext
3632 break
3633 done
3634 CC=$ac_save_CC
3635 rm -f conftest.$ac_ext
3636 fi
3637 fi
3638 echo "$as_me:3638: result: $ac_cv_sys_largefile_CC" >&5
3639 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3640 if test "$ac_cv_sys_largefile_CC" != no; then
3641 CC=$CC$ac_cv_sys_largefile_CC
3642 fi
3643
3644 echo "$as_me:3644: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3645 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3646 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 while :; do
3650 ac_cv_sys_file_offset_bits=no
3651 cat >conftest.$ac_ext <<_ACEOF
3652 #line 3652 "configure"
3653 #include "confdefs.h"
3654 #include <sys/types.h>
3655 /* Check that off_t can represent 2**63 - 1 correctly.
3656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3657 since some C++ compilers masquerading as C compilers
3658 incorrectly reject 9223372036854775807. */
3659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3661 && LARGE_OFF_T % 2147483647 == 1)
3662 ? 1 : -1];
3663 int
3664 main ()
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:3672: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>&5
3674 ac_status=$?
3675 echo "$as_me:3675: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:3678: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 break
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3687 fi
3688 rm -f conftest.$ac_objext conftest.$ac_ext
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line 3690 "configure"
3691 #include "confdefs.h"
3692 #define _FILE_OFFSET_BITS 64
3693 #include <sys/types.h>
3694 /* Check that off_t can represent 2**63 - 1 correctly.
3695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3696 since some C++ compilers masquerading as C compilers
3697 incorrectly reject 9223372036854775807. */
3698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3700 && LARGE_OFF_T % 2147483647 == 1)
3701 ? 1 : -1];
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:3711: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3713 ac_status=$?
3714 echo "$as_me:3714: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:3717: \"$ac_try\"") >&5
3718 (eval $ac_try) 2>&5
3719 ac_status=$?
3720 echo "$as_me:3720: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_cv_sys_file_offset_bits=64; break
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3726 fi
3727 rm -f conftest.$ac_objext conftest.$ac_ext
3728 break
3729 done
3730 fi
3731 echo "$as_me:3731: result: $ac_cv_sys_file_offset_bits" >&5
3732 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3733 if test "$ac_cv_sys_file_offset_bits" != no; then
3734
3735 cat >>confdefs.h <<EOF
3736 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3737 EOF
3738
3739 fi
3740 rm -f conftest*
3741 echo "$as_me:3741: checking for _LARGE_FILES value needed for large files" >&5
3742 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3743 if test "${ac_cv_sys_large_files+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 while :; do
3747 ac_cv_sys_large_files=no
3748 cat >conftest.$ac_ext <<_ACEOF
3749 #line 3749 "configure"
3750 #include "confdefs.h"
3751 #include <sys/types.h>
3752 /* Check that off_t can represent 2**63 - 1 correctly.
3753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3754 since some C++ compilers masquerading as C compilers
3755 incorrectly reject 9223372036854775807. */
3756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3758 && LARGE_OFF_T % 2147483647 == 1)
3759 ? 1 : -1];
3760 int
3761 main ()
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:3769: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>&5
3771 ac_status=$?
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -s conftest.$ac_objext'
3775 { (eval echo "$as_me:3775: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:3778: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 break
3781 else
3782 echo "$as_me: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3784 fi
3785 rm -f conftest.$ac_objext conftest.$ac_ext
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line 3787 "configure"
3788 #include "confdefs.h"
3789 #define _LARGE_FILES 1
3790 #include <sys/types.h>
3791 /* Check that off_t can represent 2**63 - 1 correctly.
3792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3793 since some C++ compilers masquerading as C compilers
3794 incorrectly reject 9223372036854775807. */
3795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3797 && LARGE_OFF_T % 2147483647 == 1)
3798 ? 1 : -1];
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:3808: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>&5
3810 ac_status=$?
3811 echo "$as_me:3811: \$? = $ac_status" >&5
3812 (exit $ac_status); } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:3814: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:3817: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_sys_large_files=1; break
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3823 fi
3824 rm -f conftest.$ac_objext conftest.$ac_ext
3825 break
3826 done
3827 fi
3828 echo "$as_me:3828: result: $ac_cv_sys_large_files" >&5
3829 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3830 if test "$ac_cv_sys_large_files" != no; then
3831
3832 cat >>confdefs.h <<EOF
3833 #define _LARGE_FILES $ac_cv_sys_large_files
3834 EOF
3835
3836 fi
3837 rm -f conftest*
3838 fi
3839
3840 # Sound support for GNU/Linux and the free BSDs.
3841
3842 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3843 do
3844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3845 echo "$as_me:3845: checking for $ac_header" >&5
3846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 cat >conftest.$ac_ext <<_ACEOF
3851 #line 3851 "configure"
3852 #include "confdefs.h"
3853 #include <$ac_header>
3854 _ACEOF
3855 if { (eval echo "$as_me:3855: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
3858 egrep -v '^ *\+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:3861: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
3865 else
3866 ac_cpp_err=
3867 fi
3868 else
3869 ac_cpp_err=yes
3870 fi
3871 if test -z "$ac_cpp_err"; then
3872 eval "$as_ac_Header=yes"
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3876 eval "$as_ac_Header=no"
3877 fi
3878 rm -f conftest.err conftest.$ac_ext
3879 fi
3880 echo "$as_me:3880: result: `eval echo '${'$as_ac_Header'}'`" >&5
3881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3883 cat >>confdefs.h <<EOF
3884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3885 EOF
3886
3887 fi
3888 done
3889
3890 # Emulation library used on NetBSD.
3891 echo "$as_me:3891: checking for _oss_ioctl in -lossaudio" >&5
3892 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3893 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 ac_check_lib_save_LIBS=$LIBS
3897 LIBS="-lossaudio $LIBS"
3898 cat >conftest.$ac_ext <<_ACEOF
3899 #line 3899 "configure"
3900 #include "confdefs.h"
3901
3902 /* Override any gcc2 internal prototype to avoid an error. */
3903 #ifdef __cplusplus
3904 extern "C"
3905 #endif
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3908 char _oss_ioctl ();
3909 int
3910 main ()
3911 {
3912 _oss_ioctl ();
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.$ac_objext conftest$ac_exeext
3918 if { (eval echo "$as_me:3918: \"$ac_link\"") >&5
3919 (eval $ac_link) 2>&5
3920 ac_status=$?
3921 echo "$as_me:3921: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try='test -s conftest$ac_exeext'
3924 { (eval echo "$as_me:3924: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:3927: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 ac_cv_lib_ossaudio__oss_ioctl=yes
3930 else
3931 echo "$as_me: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3933 ac_cv_lib_ossaudio__oss_ioctl=no
3934 fi
3935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3936 LIBS=$ac_check_lib_save_LIBS
3937 fi
3938 echo "$as_me:3938: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
3939 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
3940 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
3941 LIBSOUND=-lossaudio
3942 else
3943 LIBSOUND=
3944 fi
3945
3946 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
3947 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
3948 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
3949 do
3950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3951 echo "$as_me:3951: checking for $ac_header" >&5
3952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line 3957 "configure"
3958 #include "confdefs.h"
3959 #include <$ac_header>
3960 _ACEOF
3961 if { (eval echo "$as_me:3961: \"$ac_cpp conftest.$ac_ext\"") >&5
3962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 ac_status=$?
3964 egrep -v '^ *\+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:3967: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null; then
3969 if test -s conftest.err; then
3970 ac_cpp_err=$ac_c_preproc_warn_flag
3971 else
3972 ac_cpp_err=
3973 fi
3974 else
3975 ac_cpp_err=yes
3976 fi
3977 if test -z "$ac_cpp_err"; then
3978 eval "$as_ac_Header=yes"
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3982 eval "$as_ac_Header=no"
3983 fi
3984 rm -f conftest.err conftest.$ac_ext
3985 fi
3986 echo "$as_me:3986: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989 cat >>confdefs.h <<EOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3991 EOF
3992
3993 fi
3994 done
3995
3996 echo "$as_me:3996: checking for ANSI C header files" >&5
3997 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3998 if test "${ac_cv_header_stdc+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 cat >conftest.$ac_ext <<_ACEOF
4002 #line 4002 "configure"
4003 #include "confdefs.h"
4004 #include <stdlib.h>
4005 #include <stdarg.h>
4006 #include <string.h>
4007 #include <float.h>
4008
4009 _ACEOF
4010 if { (eval echo "$as_me:4010: \"$ac_cpp conftest.$ac_ext\"") >&5
4011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012 ac_status=$?
4013 egrep -v '^ *\+' conftest.er1 >conftest.err
4014 rm -f conftest.er1
4015 cat conftest.err >&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); } >/dev/null; then
4018 if test -s conftest.err; then
4019 ac_cpp_err=$ac_c_preproc_warn_flag
4020 else
4021 ac_cpp_err=
4022 fi
4023 else
4024 ac_cpp_err=yes
4025 fi
4026 if test -z "$ac_cpp_err"; then
4027 ac_cv_header_stdc=yes
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4031 ac_cv_header_stdc=no
4032 fi
4033 rm -f conftest.err conftest.$ac_ext
4034
4035 if test $ac_cv_header_stdc = yes; then
4036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4037 cat >conftest.$ac_ext <<_ACEOF
4038 #line 4038 "configure"
4039 #include "confdefs.h"
4040 #include <string.h>
4041
4042 _ACEOF
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044 egrep "memchr" >/dev/null 2>&1; then
4045 :
4046 else
4047 ac_cv_header_stdc=no
4048 fi
4049 rm -f conftest*
4050
4051 fi
4052
4053 if test $ac_cv_header_stdc = yes; then
4054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 #line 4056 "configure"
4057 #include "confdefs.h"
4058 #include <stdlib.h>
4059
4060 _ACEOF
4061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062 egrep "free" >/dev/null 2>&1; then
4063 :
4064 else
4065 ac_cv_header_stdc=no
4066 fi
4067 rm -f conftest*
4068
4069 fi
4070
4071 if test $ac_cv_header_stdc = yes; then
4072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4073 if test "$cross_compiling" = yes; then
4074 :
4075 else
4076 cat >conftest.$ac_ext <<_ACEOF
4077 #line 4077 "configure"
4078 #include "confdefs.h"
4079 #include <ctype.h>
4080 #if ((' ' & 0x0FF) == 0x020)
4081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4083 #else
4084 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4085 || ('j' <= (c) && (c) <= 'r') \
4086 || ('s' <= (c) && (c) <= 'z'))
4087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4088 #endif
4089
4090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4091 int
4092 main ()
4093 {
4094 int i;
4095 for (i = 0; i < 256; i++)
4096 if (XOR (islower (i), ISLOWER (i))
4097 || toupper (i) != TOUPPER (i))
4098 exit(2);
4099 exit (0);
4100 }
4101 _ACEOF
4102 rm -f conftest$ac_exeext
4103 if { (eval echo "$as_me:4103: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>&5
4105 ac_status=$?
4106 echo "$as_me:4106: \$? = $ac_status" >&5
4107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4108 { (eval echo "$as_me:4108: \"$ac_try\"") >&5
4109 (eval $ac_try) 2>&5
4110 ac_status=$?
4111 echo "$as_me:4111: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 :
4114 else
4115 echo "$as_me: program exited with status $ac_status" >&5
4116 echo "$as_me: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4118 ac_cv_header_stdc=no
4119 fi
4120 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4121 fi
4122 fi
4123 fi
4124 echo "$as_me:4124: result: $ac_cv_header_stdc" >&5
4125 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4126 if test $ac_cv_header_stdc = yes; then
4127
4128 cat >>confdefs.h <<\EOF
4129 #define STDC_HEADERS 1
4130 EOF
4131
4132 fi
4133
4134 echo "$as_me:4134: checking whether time.h and sys/time.h may both be included" >&5
4135 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4136 if test "${ac_cv_header_time+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line 4140 "configure"
4141 #include "confdefs.h"
4142 #include <sys/types.h>
4143 #include <sys/time.h>
4144 #include <time.h>
4145
4146 int
4147 main ()
4148 {
4149 if ((struct tm *) 0)
4150 return 0;
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:4156: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>&5
4158 ac_status=$?
4159 echo "$as_me:4159: \$? = $ac_status" >&5
4160 (exit $ac_status); } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:4162: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:4165: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
4167 ac_cv_header_time=yes
4168 else
4169 echo "$as_me: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 ac_cv_header_time=no
4172 fi
4173 rm -f conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 echo "$as_me:4175: result: $ac_cv_header_time" >&5
4176 echo "${ECHO_T}$ac_cv_header_time" >&6
4177 if test $ac_cv_header_time = yes; then
4178
4179 cat >>confdefs.h <<\EOF
4180 #define TIME_WITH_SYS_TIME 1
4181 EOF
4182
4183 fi
4184
4185 echo "$as_me:4185: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4186 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4187 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 cat >conftest.$ac_ext <<_ACEOF
4191 #line 4191 "configure"
4192 #include "confdefs.h"
4193 #include <sys/types.h>
4194 #include <signal.h>
4195 /* NetBSD declares sys_siglist in unistd.h. */
4196 #if HAVE_UNISTD_H
4197 # include <unistd.h>
4198 #endif
4199
4200 int
4201 main ()
4202 {
4203 char *msg = *(sys_siglist + 1);
4204 ;
4205 return 0;
4206 }
4207 _ACEOF
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:4209: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>&5
4211 ac_status=$?
4212 echo "$as_me:4212: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:4215: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 ac_cv_decl_sys_siglist=yes
4221 else
4222 echo "$as_me: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 ac_cv_decl_sys_siglist=no
4225 fi
4226 rm -f conftest.$ac_objext conftest.$ac_ext
4227 fi
4228 echo "$as_me:4228: result: $ac_cv_decl_sys_siglist" >&5
4229 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4230 if test $ac_cv_decl_sys_siglist = yes; then
4231
4232 cat >>confdefs.h <<\EOF
4233 #define SYS_SIGLIST_DECLARED 1
4234 EOF
4235
4236 fi
4237
4238 echo "$as_me:4238: checking for sys/wait.h that is POSIX.1 compatible" >&5
4239 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4240 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 cat >conftest.$ac_ext <<_ACEOF
4244 #line 4244 "configure"
4245 #include "confdefs.h"
4246 #include <sys/types.h>
4247 #include <sys/wait.h>
4248 #ifndef WEXITSTATUS
4249 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4250 #endif
4251 #ifndef WIFEXITED
4252 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4253 #endif
4254
4255 int
4256 main ()
4257 {
4258 int s;
4259 wait (&s);
4260 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:4266: \"$ac_compile\"") >&5
4267 (eval $ac_compile) 2>&5
4268 ac_status=$?
4269 echo "$as_me:4269: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -s conftest.$ac_objext'
4272 { (eval echo "$as_me:4272: \"$ac_try\"") >&5
4273 (eval $ac_try) 2>&5
4274 ac_status=$?
4275 echo "$as_me:4275: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
4277 ac_cv_header_sys_wait_h=yes
4278 else
4279 echo "$as_me: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 ac_cv_header_sys_wait_h=no
4282 fi
4283 rm -f conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 echo "$as_me:4285: result: $ac_cv_header_sys_wait_h" >&5
4286 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4287 if test $ac_cv_header_sys_wait_h = yes; then
4288
4289 cat >>confdefs.h <<\EOF
4290 #define HAVE_SYS_WAIT_H 1
4291 EOF
4292
4293 fi
4294
4295 echo "$as_me:4295: checking for struct utimbuf" >&5
4296 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4297 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 cat >conftest.$ac_ext <<_ACEOF
4301 #line 4301 "configure"
4302 #include "confdefs.h"
4303 #ifdef TIME_WITH_SYS_TIME
4304 #include <sys/time.h>
4305 #include <time.h>
4306 #else
4307 #ifdef HAVE_SYS_TIME_H
4308 #include <sys/time.h>
4309 #else
4310 #include <time.h>
4311 #endif
4312 #endif
4313 #ifdef HAVE_UTIME_H
4314 #include <utime.h>
4315 #endif
4316 int
4317 main ()
4318 {
4319 static struct utimbuf x; x.actime = x.modtime;
4320 ;
4321 return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:4325: \"$ac_compile\"") >&5
4326 (eval $ac_compile) 2>&5
4327 ac_status=$?
4328 echo "$as_me:4328: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -s conftest.$ac_objext'
4331 { (eval echo "$as_me:4331: \"$ac_try\"") >&5
4332 (eval $ac_try) 2>&5
4333 ac_status=$?
4334 echo "$as_me:4334: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 emacs_cv_struct_utimbuf=yes
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 emacs_cv_struct_utimbuf=no
4341 fi
4342 rm -f conftest.$ac_objext conftest.$ac_ext
4343 fi
4344 echo "$as_me:4344: result: $emacs_cv_struct_utimbuf" >&5
4345 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4346 if test $emacs_cv_struct_utimbuf = yes; then
4347 cat >>confdefs.h <<\EOF
4348 #define HAVE_STRUCT_UTIMBUF 1
4349 EOF
4350
4351 fi
4352
4353 echo "$as_me:4353: checking return type of signal handlers" >&5
4354 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4355 if test "${ac_cv_type_signal+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 cat >conftest.$ac_ext <<_ACEOF
4359 #line 4359 "configure"
4360 #include "confdefs.h"
4361 #include <sys/types.h>
4362 #include <signal.h>
4363 #ifdef signal
4364 # undef signal
4365 #endif
4366 #ifdef __cplusplus
4367 extern "C" void (*signal (int, void (*)(int)))(int);
4368 #else
4369 void (*signal ()) ();
4370 #endif
4371
4372 int
4373 main ()
4374 {
4375 int i;
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (eval echo "$as_me:4381: \"$ac_compile\"") >&5
4382 (eval $ac_compile) 2>&5
4383 ac_status=$?
4384 echo "$as_me:4384: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
4386 { ac_try='test -s conftest.$ac_objext'
4387 { (eval echo "$as_me:4387: \"$ac_try\"") >&5
4388 (eval $ac_try) 2>&5
4389 ac_status=$?
4390 echo "$as_me:4390: \$? = $ac_status" >&5
4391 (exit $ac_status); }; }; then
4392 ac_cv_type_signal=void
4393 else
4394 echo "$as_me: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4396 ac_cv_type_signal=int
4397 fi
4398 rm -f conftest.$ac_objext conftest.$ac_ext
4399 fi
4400 echo "$as_me:4400: result: $ac_cv_type_signal" >&5
4401 echo "${ECHO_T}$ac_cv_type_signal" >&6
4402
4403 cat >>confdefs.h <<EOF
4404 #define RETSIGTYPE $ac_cv_type_signal
4405 EOF
4406
4407 echo "$as_me:4407: checking for speed_t" >&5
4408 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4409 if test "${emacs_cv_speed_t+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 cat >conftest.$ac_ext <<_ACEOF
4413 #line 4413 "configure"
4414 #include "confdefs.h"
4415 #include <termios.h>
4416 int
4417 main ()
4418 {
4419 speed_t x = 1;
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 rm -f conftest.$ac_objext
4425 if { (eval echo "$as_me:4425: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>&5
4427 ac_status=$?
4428 echo "$as_me:4428: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -s conftest.$ac_objext'
4431 { (eval echo "$as_me:4431: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:4434: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 emacs_cv_speed_t=yes
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4440 emacs_cv_speed_t=no
4441 fi
4442 rm -f conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 echo "$as_me:4444: result: $emacs_cv_speed_t" >&5
4445 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4446 if test $emacs_cv_speed_t = yes; then
4447 cat >>confdefs.h <<\EOF
4448 #define HAVE_SPEED_T 1
4449 EOF
4450
4451 fi
4452
4453 echo "$as_me:4453: checking for struct timeval" >&5
4454 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4455 if test "${emacs_cv_struct_timeval+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 cat >conftest.$ac_ext <<_ACEOF
4459 #line 4459 "configure"
4460 #include "confdefs.h"
4461 #ifdef TIME_WITH_SYS_TIME
4462 #include <sys/time.h>
4463 #include <time.h>
4464 #else
4465 #ifdef HAVE_SYS_TIME_H
4466 #include <sys/time.h>
4467 #else
4468 #include <time.h>
4469 #endif
4470 #endif
4471 int
4472 main ()
4473 {
4474 static struct timeval x; x.tv_sec = x.tv_usec;
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:4480: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4482 ac_status=$?
4483 echo "$as_me:4483: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:4486: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:4489: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 emacs_cv_struct_timeval=yes
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 emacs_cv_struct_timeval=no
4496 fi
4497 rm -f conftest.$ac_objext conftest.$ac_ext
4498 fi
4499 echo "$as_me:4499: result: $emacs_cv_struct_timeval" >&5
4500 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4501 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4502 if test $emacs_cv_struct_timeval = yes; then
4503 cat >>confdefs.h <<\EOF
4504 #define HAVE_TIMEVAL 1
4505 EOF
4506
4507 fi
4508
4509 echo "$as_me:4509: checking for struct exception" >&5
4510 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4511 if test "${emacs_cv_struct_exception+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 cat >conftest.$ac_ext <<_ACEOF
4515 #line 4515 "configure"
4516 #include "confdefs.h"
4517 #include <math.h>
4518 int
4519 main ()
4520 {
4521 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:4527: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>&5
4529 ac_status=$?
4530 echo "$as_me:4530: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:4533: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:4536: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 emacs_cv_struct_exception=yes
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4542 emacs_cv_struct_exception=no
4543 fi
4544 rm -f conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 echo "$as_me:4546: result: $emacs_cv_struct_exception" >&5
4547 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4548 HAVE_EXCEPTION=$emacs_cv_struct_exception
4549 if test $emacs_cv_struct_exception != yes; then
4550 cat >>confdefs.h <<\EOF
4551 #define NO_MATHERR 1
4552 EOF
4553
4554 fi
4555
4556 echo "$as_me:4556: checking whether struct tm is in sys/time.h or time.h" >&5
4557 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4558 if test "${ac_cv_struct_tm+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 cat >conftest.$ac_ext <<_ACEOF
4562 #line 4562 "configure"
4563 #include "confdefs.h"
4564 #include <sys/types.h>
4565 #include <time.h>
4566
4567 int
4568 main ()
4569 {
4570 struct tm *tp; tp->tm_sec;
4571 ;
4572 return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext
4576 if { (eval echo "$as_me:4576: \"$ac_compile\"") >&5
4577 (eval $ac_compile) 2>&5
4578 ac_status=$?
4579 echo "$as_me:4579: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -s conftest.$ac_objext'
4582 { (eval echo "$as_me:4582: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:4585: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_cv_struct_tm=time.h
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 ac_cv_struct_tm=sys/time.h
4592 fi
4593 rm -f conftest.$ac_objext conftest.$ac_ext
4594 fi
4595 echo "$as_me:4595: result: $ac_cv_struct_tm" >&5
4596 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4597 if test $ac_cv_struct_tm = sys/time.h; then
4598
4599 cat >>confdefs.h <<\EOF
4600 #define TM_IN_SYS_TIME 1
4601 EOF
4602
4603 fi
4604
4605 echo "$as_me:4605: checking for struct tm.tm_zone" >&5
4606 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4607 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line 4611 "configure"
4612 #include "confdefs.h"
4613 #include <sys/types.h>
4614 #include <$ac_cv_struct_tm>
4615
4616 int
4617 main ()
4618 {
4619 static struct tm ac_aggr;
4620 if (ac_aggr.tm_zone)
4621 return 0;
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest.$ac_objext
4627 if { (eval echo "$as_me:4627: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>&5
4629 ac_status=$?
4630 echo "$as_me:4630: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:4633: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_cv_member_struct_tm_tm_zone=yes
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4642 ac_cv_member_struct_tm_tm_zone=no
4643 fi
4644 rm -f conftest.$ac_objext conftest.$ac_ext
4645 fi
4646 echo "$as_me:4646: result: $ac_cv_member_struct_tm_tm_zone" >&5
4647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4649
4650 cat >>confdefs.h <<EOF
4651 #define HAVE_STRUCT_TM_TM_ZONE 1
4652 EOF
4653
4654 fi
4655
4656 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4657
4658 cat >>confdefs.h <<\EOF
4659 #define HAVE_TM_ZONE 1
4660 EOF
4661
4662 else
4663 echo "$as_me:4663: checking for tzname" >&5
4664 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4665 if test "${ac_cv_var_tzname+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line 4669 "configure"
4670 #include "confdefs.h"
4671 #include <time.h>
4672 #ifndef tzname /* For SGI. */
4673 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4674 #endif
4675
4676 int
4677 main ()
4678 {
4679 atoi(*tzname);
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (eval echo "$as_me:4685: \"$ac_link\"") >&5
4686 (eval $ac_link) 2>&5
4687 ac_status=$?
4688 echo "$as_me:4688: \$? = $ac_status" >&5
4689 (exit $ac_status); } &&
4690 { ac_try='test -s conftest$ac_exeext'
4691 { (eval echo "$as_me:4691: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:4694: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 ac_cv_var_tzname=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4700 ac_cv_var_tzname=no
4701 fi
4702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4703 fi
4704 echo "$as_me:4704: result: $ac_cv_var_tzname" >&5
4705 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4706 if test $ac_cv_var_tzname = yes; then
4707
4708 cat >>confdefs.h <<\EOF
4709 #define HAVE_TZNAME 1
4710 EOF
4711
4712 fi
4713 fi
4714
4715 echo "$as_me:4715: checking for tm_gmtoff in struct tm" >&5
4716 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
4717 if test "${emacs_cv_tm_gmtoff+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line 4721 "configure"
4722 #include "confdefs.h"
4723 #include <time.h>
4724 int
4725 main ()
4726 {
4727 struct tm t; t.tm_gmtoff = 0
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (eval echo "$as_me:4733: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4735 ac_status=$?
4736 echo "$as_me:4736: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest$ac_exeext'
4739 { (eval echo "$as_me:4739: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 emacs_cv_tm_gmtoff=yes
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 emacs_cv_tm_gmtoff=no
4749 fi
4750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4751 fi
4752 echo "$as_me:4752: result: $emacs_cv_tm_gmtoff" >&5
4753 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
4754 if test $emacs_cv_tm_gmtoff = yes; then
4755 cat >>confdefs.h <<\EOF
4756 #define HAVE_TM_GMTOFF 1
4757 EOF
4758
4759 fi
4760
4761 echo "$as_me:4761: checking for $CC option to accept ANSI C" >&5
4762 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4763 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 ac_cv_prog_cc_stdc=no
4767 ac_save_CC=$CC
4768 cat >conftest.$ac_ext <<_ACEOF
4769 #line 4769 "configure"
4770 #include "confdefs.h"
4771 #include <stdarg.h>
4772 #include <stdio.h>
4773 #include <sys/types.h>
4774 #include <sys/stat.h>
4775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4776 struct buf { int x; };
4777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4778 static char *e (p, i)
4779 char **p;
4780 int i;
4781 {
4782 return p[i];
4783 }
4784 static char *f (char * (*g) (char **, int), char **p, ...)
4785 {
4786 char *s;
4787 va_list v;
4788 va_start (v,p);
4789 s = g (p, va_arg (v,int));
4790 va_end (v);
4791 return s;
4792 }
4793 int test (int i, double x);
4794 struct s1 {int (*f) (int a);};
4795 struct s2 {int (*f) (double a);};
4796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4797 int argc;
4798 char **argv;
4799 int
4800 main ()
4801 {
4802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 # Don't try gcc -ansi; that turns off useful extensions and
4808 # breaks some systems' header files.
4809 # AIX -qlanglvl=ansi
4810 # Ultrix and OSF/1 -std1
4811 # HP-UX 10.20 and later -Ae
4812 # HP-UX older versions -Aa -D_HPUX_SOURCE
4813 # SVR4 -Xc -D__EXTENSIONS__
4814 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4815 do
4816 CC="$ac_save_CC $ac_arg"
4817 rm -f conftest.$ac_objext
4818 if { (eval echo "$as_me:4818: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
4820 ac_status=$?
4821 echo "$as_me:4821: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:4824: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:4827: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_prog_cc_stdc=$ac_arg
4830 break
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 fi
4835 rm -f conftest.$ac_objext
4836 done
4837 rm -f conftest.$ac_ext conftest.$ac_objext
4838 CC=$ac_save_CC
4839
4840 fi
4841
4842 case "x$ac_cv_prog_cc_stdc" in
4843 x|xno)
4844 echo "$as_me:4844: result: none needed" >&5
4845 echo "${ECHO_T}none needed" >&6 ;;
4846 *)
4847 echo "$as_me:4847: result: $ac_cv_prog_cc_stdc" >&5
4848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4849 CC="$CC $ac_cv_prog_cc_stdc" ;;
4850 esac
4851
4852 echo "$as_me:4852: checking for function prototypes" >&5
4853 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4854 if test "$ac_cv_prog_cc_stdc" != no; then
4855 echo "$as_me:4855: result: yes" >&5
4856 echo "${ECHO_T}yes" >&6
4857
4858 cat >>confdefs.h <<\EOF
4859 #define PROTOTYPES 1
4860 EOF
4861
4862 else
4863 echo "$as_me:4863: result: no" >&5
4864 echo "${ECHO_T}no" >&6
4865 fi
4866
4867 echo "$as_me:4867: checking for working volatile" >&5
4868 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4869 if test "${ac_cv_c_volatile+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 cat >conftest.$ac_ext <<_ACEOF
4873 #line 4873 "configure"
4874 #include "confdefs.h"
4875
4876 int
4877 main ()
4878 {
4879
4880 volatile int x;
4881 int * volatile y;
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 rm -f conftest.$ac_objext
4887 if { (eval echo "$as_me:4887: \"$ac_compile\"") >&5
4888 (eval $ac_compile) 2>&5
4889 ac_status=$?
4890 echo "$as_me:4890: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -s conftest.$ac_objext'
4893 { (eval echo "$as_me:4893: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 ac_cv_c_volatile=yes
4899 else
4900 echo "$as_me: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4902 ac_cv_c_volatile=no
4903 fi
4904 rm -f conftest.$ac_objext conftest.$ac_ext
4905 fi
4906 echo "$as_me:4906: result: $ac_cv_c_volatile" >&5
4907 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4908 if test $ac_cv_c_volatile = no; then
4909
4910 cat >>confdefs.h <<\EOF
4911 #define volatile
4912 EOF
4913
4914 fi
4915
4916 echo "$as_me:4916: checking for an ANSI C-conforming const" >&5
4917 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4918 if test "${ac_cv_c_const+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921 cat >conftest.$ac_ext <<_ACEOF
4922 #line 4922 "configure"
4923 #include "confdefs.h"
4924
4925 int
4926 main ()
4927 {
4928 /* FIXME: Include the comments suggested by Paul. */
4929 #ifndef __cplusplus
4930 /* Ultrix mips cc rejects this. */
4931 typedef int charset[2];
4932 const charset x;
4933 /* SunOS 4.1.1 cc rejects this. */
4934 char const *const *ccp;
4935 char **p;
4936 /* NEC SVR4.0.2 mips cc rejects this. */
4937 struct point {int x, y;};
4938 static struct point const zero = {0,0};
4939 /* AIX XL C 1.02.0.0 rejects this.
4940 It does not let you subtract one const X* pointer from another in
4941 an arm of an if-expression whose if-part is not a constant
4942 expression */
4943 const char *g = "string";
4944 ccp = &g + (g ? g-g : 0);
4945 /* HPUX 7.0 cc rejects these. */
4946 ++ccp;
4947 p = (char**) ccp;
4948 ccp = (char const *const *) p;
4949 { /* SCO 3.2v4 cc rejects this. */
4950 char *t;
4951 char const *s = 0 ? (char *) 0 : (char const *) 0;
4952
4953 *t++ = 0;
4954 }
4955 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4956 int x[] = {25, 17};
4957 const int *foo = &x[0];
4958 ++foo;
4959 }
4960 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4961 typedef const int *iptr;
4962 iptr p = 0;
4963 ++p;
4964 }
4965 { /* AIX XL C 1.02.0.0 rejects this saying
4966 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4967 struct s { int j; const int *ap[3]; };
4968 struct s *b; b->j = 5;
4969 }
4970 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4971 const int foo = 10;
4972 }
4973 #endif
4974
4975 ;
4976 return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:4980: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>&5
4982 ac_status=$?
4983 echo "$as_me:4983: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:4986: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:4989: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_cv_c_const=yes
4992 else
4993 echo "$as_me: failed program was:" >&5
4994 cat conftest.$ac_ext >&5
4995 ac_cv_c_const=no
4996 fi
4997 rm -f conftest.$ac_objext conftest.$ac_ext
4998 fi
4999 echo "$as_me:4999: result: $ac_cv_c_const" >&5
5000 echo "${ECHO_T}$ac_cv_c_const" >&6
5001 if test $ac_cv_c_const = no; then
5002
5003 cat >>confdefs.h <<\EOF
5004 #define const
5005 EOF
5006
5007 fi
5008
5009 echo "$as_me:5009: checking for void * support" >&5
5010 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5011 if test "${emacs_cv_void_star+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 cat >conftest.$ac_ext <<_ACEOF
5015 #line 5015 "configure"
5016 #include "confdefs.h"
5017
5018 int
5019 main ()
5020 {
5021 void * foo;
5022 ;
5023 return 0;
5024 }
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (eval echo "$as_me:5027: \"$ac_compile\"") >&5
5028 (eval $ac_compile) 2>&5
5029 ac_status=$?
5030 echo "$as_me:5030: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:5033: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:5036: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 emacs_cv_void_star=yes
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5042 emacs_cv_void_star=no
5043 fi
5044 rm -f conftest.$ac_objext conftest.$ac_ext
5045 fi
5046 echo "$as_me:5046: result: $emacs_cv_void_star" >&5
5047 echo "${ECHO_T}$emacs_cv_void_star" >&6
5048 if test $emacs_cv_void_star = yes; then
5049 cat >>confdefs.h <<\EOF
5050 #define POINTER_TYPE void
5051 EOF
5052
5053 else
5054 cat >>confdefs.h <<\EOF
5055 #define POINTER_TYPE char
5056 EOF
5057
5058 fi
5059
5060 echo "$as_me:5060: checking whether ${MAKE-make} sets \${MAKE}" >&5
5061 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5062 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5063 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 cat >conftest.make <<\EOF
5067 all:
5068 @echo 'ac_maketemp="${MAKE}"'
5069 EOF
5070 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5071 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5072 if test -n "$ac_maketemp"; then
5073 eval ac_cv_prog_make_${ac_make}_set=yes
5074 else
5075 eval ac_cv_prog_make_${ac_make}_set=no
5076 fi
5077 rm -f conftest.make
5078 fi
5079 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5080 echo "$as_me:5080: result: yes" >&5
5081 echo "${ECHO_T}yes" >&6
5082 SET_MAKE=
5083 else
5084 echo "$as_me:5084: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5086 SET_MAKE="MAKE=${MAKE-make}"
5087 fi
5088
5089 echo "$as_me:5089: checking for long file names" >&5
5090 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5091 if test "${ac_cv_sys_long_file_names+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 ac_cv_sys_long_file_names=yes
5095 # Test for long file names in all the places we know might matter:
5096 # . the current directory, where building will happen
5097 # $prefix/lib where we will be installing things
5098 # $exec_prefix/lib likewise
5099 # eval it to expand exec_prefix.
5100 # $TMPDIR if set, where it might want to write temporary files
5101 # if $TMPDIR is not set:
5102 # /tmp where it might want to write temporary files
5103 # /var/tmp likewise
5104 # /usr/tmp likewise
5105 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5106 ac_tmpdirs=$TMPDIR
5107 else
5108 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5109 fi
5110 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5111 test -d $ac_dir || continue
5112 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5113 ac_xdir=$ac_dir/cf$$
5114 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5115 ac_tf1=$ac_xdir/conftest9012345
5116 ac_tf2=$ac_xdir/conftest9012346
5117 (echo 1 >$ac_tf1) 2>/dev/null
5118 (echo 2 >$ac_tf2) 2>/dev/null
5119 ac_val=`cat $ac_tf1 2>/dev/null`
5120 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5121 ac_cv_sys_long_file_names=no
5122 rm -rf $ac_xdir 2>/dev/null
5123 break
5124 fi
5125 rm -rf $ac_xdir 2>/dev/null
5126 done
5127 fi
5128 echo "$as_me:5128: result: $ac_cv_sys_long_file_names" >&5
5129 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5130 if test $ac_cv_sys_long_file_names = yes; then
5131
5132 cat >>confdefs.h <<\EOF
5133 #define HAVE_LONG_FILE_NAMES 1
5134 EOF
5135
5136 fi
5137
5138 #### Choose a window system.
5139
5140 echo "$as_me:5140: checking for X" >&5
5141 echo $ECHO_N "checking for X... $ECHO_C" >&6
5142
5143 # Check whether --with-x or --without-x was given.
5144 if test "${with_x+set}" = set; then
5145 withval="$with_x"
5146
5147 fi;
5148 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5149 if test "x$with_x" = xno; then
5150 # The user explicitly disabled X.
5151 have_x=disabled
5152 else
5153 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5154 # Both variables are already set.
5155 have_x=yes
5156 else
5157 if test "${ac_cv_have_x+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 # One or both of the vars are not set, and there is no cached value.
5161 ac_x_includes=no ac_x_libraries=no
5162 rm -fr conftest.dir
5163 if mkdir conftest.dir; then
5164 cd conftest.dir
5165 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5166 cat >Imakefile <<'EOF'
5167 acfindx:
5168 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5169 EOF
5170 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5172 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5173 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5174 for ac_extension in a so sl; do
5175 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5176 test -f $ac_im_libdir/libX11.$ac_extension; then
5177 ac_im_usrlibdir=$ac_im_libdir; break
5178 fi
5179 done
5180 # Screen out bogus values from the imake configuration. They are
5181 # bogus both because they are the default anyway, and because
5182 # using them would break gcc on systems where it needs fixed includes.
5183 case $ac_im_incroot in
5184 /usr/include) ;;
5185 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5186 esac
5187 case $ac_im_usrlibdir in
5188 /usr/lib | /lib) ;;
5189 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5190 esac
5191 fi
5192 cd ..
5193 rm -fr conftest.dir
5194 fi
5195
5196 # Standard set of common directories for X headers.
5197 # Check X11 before X11Rn because it is often a symlink to the current release.
5198 ac_x_header_dirs='
5199 /usr/X11/include
5200 /usr/X11R6/include
5201 /usr/X11R5/include
5202 /usr/X11R4/include
5203
5204 /usr/include/X11
5205 /usr/include/X11R6
5206 /usr/include/X11R5
5207 /usr/include/X11R4
5208
5209 /usr/local/X11/include
5210 /usr/local/X11R6/include
5211 /usr/local/X11R5/include
5212 /usr/local/X11R4/include
5213
5214 /usr/local/include/X11
5215 /usr/local/include/X11R6
5216 /usr/local/include/X11R5
5217 /usr/local/include/X11R4
5218
5219 /usr/X386/include
5220 /usr/x386/include
5221 /usr/XFree86/include/X11
5222
5223 /usr/include
5224 /usr/local/include
5225 /usr/unsupported/include
5226 /usr/athena/include
5227 /usr/local/x11r5/include
5228 /usr/lpp/Xamples/include
5229
5230 /usr/openwin/include
5231 /usr/openwin/share/include'
5232
5233 if test "$ac_x_includes" = no; then
5234 # Guess where to find include files, by looking for Intrinsic.h.
5235 # First, try using that file with no special directory specified.
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line 5237 "configure"
5238 #include "confdefs.h"
5239 #include <X11/Intrinsic.h>
5240 _ACEOF
5241 if { (eval echo "$as_me:5241: \"$ac_cpp conftest.$ac_ext\"") >&5
5242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5243 ac_status=$?
5244 egrep -v '^ *\+' conftest.er1 >conftest.err
5245 rm -f conftest.er1
5246 cat conftest.err >&5
5247 echo "$as_me:5247: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_c_preproc_warn_flag
5251 else
5252 ac_cpp_err=
5253 fi
5254 else
5255 ac_cpp_err=yes
5256 fi
5257 if test -z "$ac_cpp_err"; then
5258 # We can compile using X headers with no special include directory.
5259 ac_x_includes=
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5263 for ac_dir in $ac_x_header_dirs; do
5264 if test -r "$ac_dir/X11/Intrinsic.h"; then
5265 ac_x_includes=$ac_dir
5266 break
5267 fi
5268 done
5269 fi
5270 rm -f conftest.err conftest.$ac_ext
5271 fi # $ac_x_includes = no
5272
5273 if test "$ac_x_libraries" = no; then
5274 # Check for the libraries.
5275 # See if we find them without any special options.
5276 # Don't add to $LIBS permanently.
5277 ac_save_LIBS=$LIBS
5278 LIBS="-lXt $LIBS"
5279 cat >conftest.$ac_ext <<_ACEOF
5280 #line 5280 "configure"
5281 #include "confdefs.h"
5282 #include <X11/Intrinsic.h>
5283 int
5284 main ()
5285 {
5286 XtMalloc (0)
5287 ;
5288 return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest.$ac_objext conftest$ac_exeext
5292 if { (eval echo "$as_me:5292: \"$ac_link\"") >&5
5293 (eval $ac_link) 2>&5
5294 ac_status=$?
5295 echo "$as_me:5295: \$? = $ac_status" >&5
5296 (exit $ac_status); } &&
5297 { ac_try='test -s conftest$ac_exeext'
5298 { (eval echo "$as_me:5298: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:5301: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 LIBS=$ac_save_LIBS
5304 # We can link X programs with no special library path.
5305 ac_x_libraries=
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5309 LIBS=$ac_save_LIBS
5310 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5311 do
5312 # Don't even attempt the hair of trying to link an X program!
5313 for ac_extension in a so sl; do
5314 if test -r $ac_dir/libXt.$ac_extension; then
5315 ac_x_libraries=$ac_dir
5316 break 2
5317 fi
5318 done
5319 done
5320 fi
5321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322 fi # $ac_x_libraries = no
5323
5324 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5325 # Didn't find X anywhere. Cache the known absence of X.
5326 ac_cv_have_x="have_x=no"
5327 else
5328 # Record where we found X for the cache.
5329 ac_cv_have_x="have_x=yes \
5330 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5331 fi
5332 fi
5333
5334 fi
5335 eval "$ac_cv_have_x"
5336 fi # $with_x != no
5337
5338 if test "$have_x" != yes; then
5339 echo "$as_me:5339: result: $have_x" >&5
5340 echo "${ECHO_T}$have_x" >&6
5341 no_x=yes
5342 else
5343 # If each of the values was on the command line, it overrides each guess.
5344 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5345 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5346 # Update the cache value to reflect the command line values.
5347 ac_cv_have_x="have_x=yes \
5348 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5349 echo "$as_me:5349: result: libraries $x_libraries, headers $x_includes" >&5
5350 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5351 fi
5352
5353 if test "$no_x" = yes; then
5354 window_system=none
5355 else
5356 window_system=x11
5357 fi
5358
5359 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5360 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5361 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5362 x_default_search_path=""
5363 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5364 x_search_path="\
5365 ${x_library}/X11/%L/%T/%N%C%S:\
5366 ${x_library}/X11/%l/%T/%N%C%S:\
5367 ${x_library}/X11/%T/%N%C%S:\
5368 ${x_library}/X11/%L/%T/%N%S:\
5369 ${x_library}/X11/%l/%T/%N%S:\
5370 ${x_library}/X11/%T/%N%S"
5371 if test x"${x_default_search_path}" = x; then
5372 x_default_search_path=${x_search_path}
5373 else
5374 x_default_search_path="${x_search_path}:${x_default_search_path}"
5375 fi
5376 done
5377 fi
5378 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5379 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5380 fi
5381
5382 if test x"${x_includes}" = x; then
5383 bitmapdir=/usr/include/X11/bitmaps
5384 else
5385 # accumulate include directories that have X11 bitmap subdirectories
5386 bmd_acc="dummyval"
5387 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5388 if test -d "${bmd}/X11/bitmaps"; then
5389 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5390 fi
5391 if test -d "${bmd}/bitmaps"; then
5392 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5393 fi
5394 done
5395 if test ${bmd_acc} != "dummyval"; then
5396 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5397 fi
5398 fi
5399
5400 case "${window_system}" in
5401 x11 )
5402 HAVE_X_WINDOWS=yes
5403 HAVE_X11=yes
5404 case "${with_x_toolkit}" in
5405 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5406 motif ) USE_X_TOOLKIT=MOTIF ;;
5407 no ) USE_X_TOOLKIT=none ;;
5408 * ) USE_X_TOOLKIT=maybe ;;
5409 esac
5410 ;;
5411 none )
5412 HAVE_X_WINDOWS=no
5413 HAVE_X11=no
5414 USE_X_TOOLKIT=none
5415 ;;
5416 esac
5417
5418 ### If we're using X11, we should use the X menu package.
5419 HAVE_MENUS=no
5420 case ${HAVE_X11} in
5421 yes ) HAVE_MENUS=yes ;;
5422 esac
5423
5424 if test "${opsys}" = "hpux9"; then
5425 case "${x_libraries}" in
5426 *X11R4* )
5427 opsysfile="s/hpux9-x11r4.h"
5428 ;;
5429 esac
5430 fi
5431
5432 if test "${opsys}" = "hpux9shr"; then
5433 case "${x_libraries}" in
5434 *X11R4* )
5435 opsysfile="s/hpux9shxr4.h"
5436 ;;
5437 esac
5438 fi
5439
5440 ### Compute the unexec source name from the object name.
5441 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5442
5443 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5444 # Assume not, until told otherwise.
5445 GNU_MALLOC=yes
5446 doug_lea_malloc=yes
5447 echo "$as_me:5447: checking for malloc_get_state" >&5
5448 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5449 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line 5453 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char malloc_get_state (); below. */
5457 #include <assert.h>
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 #ifdef __cplusplus
5460 extern "C"
5461 #endif
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5464 char malloc_get_state ();
5465 char (*f) ();
5466
5467 int
5468 main ()
5469 {
5470 /* The GNU C library defines this for functions which it implements
5471 to always fail with ENOSYS. Some functions are actually named
5472 something starting with __ and the normal name is an alias. */
5473 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5474 choke me
5475 #else
5476 f = malloc_get_state;
5477 #endif
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:5484: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5486 ac_status=$?
5487 echo "$as_me:5487: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest$ac_exeext'
5490 { (eval echo "$as_me:5490: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_func_malloc_get_state=yes
5496 else
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 ac_cv_func_malloc_get_state=no
5500 fi
5501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5502 fi
5503 echo "$as_me:5503: result: $ac_cv_func_malloc_get_state" >&5
5504 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5505 if test $ac_cv_func_malloc_get_state = yes; then
5506 :
5507 else
5508 doug_lea_malloc=no
5509 fi
5510
5511 echo "$as_me:5511: checking for malloc_set_state" >&5
5512 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5513 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line 5517 "configure"
5518 #include "confdefs.h"
5519 /* System header to define __stub macros and hopefully few prototypes,
5520 which can conflict with char malloc_set_state (); below. */
5521 #include <assert.h>
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 #ifdef __cplusplus
5524 extern "C"
5525 #endif
5526 /* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5528 char malloc_set_state ();
5529 char (*f) ();
5530
5531 int
5532 main ()
5533 {
5534 /* The GNU C library defines this for functions which it implements
5535 to always fail with ENOSYS. Some functions are actually named
5536 something starting with __ and the normal name is an alias. */
5537 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5538 choke me
5539 #else
5540 f = malloc_set_state;
5541 #endif
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext conftest$ac_exeext
5548 if { (eval echo "$as_me:5548: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5550 ac_status=$?
5551 echo "$as_me:5551: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -s conftest$ac_exeext'
5554 { (eval echo "$as_me:5554: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:5557: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_func_malloc_set_state=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5563 ac_cv_func_malloc_set_state=no
5564 fi
5565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5566 fi
5567 echo "$as_me:5567: result: $ac_cv_func_malloc_set_state" >&5
5568 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5569 if test $ac_cv_func_malloc_set_state = yes; then
5570 :
5571 else
5572 doug_lea_malloc=no
5573 fi
5574
5575 echo "$as_me:5575: checking whether __after_morecore_hook exists" >&5
5576 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5577 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line 5581 "configure"
5582 #include "confdefs.h"
5583 extern void (* __after_morecore_hook)();
5584 int
5585 main ()
5586 {
5587 __after_morecore_hook = 0
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext conftest$ac_exeext
5593 if { (eval echo "$as_me:5593: \"$ac_link\"") >&5
5594 (eval $ac_link) 2>&5
5595 ac_status=$?
5596 echo "$as_me:5596: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest$ac_exeext'
5599 { (eval echo "$as_me:5599: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:5602: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 emacs_cv_var___after_morecore_hook=yes
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5608 emacs_cv_var___after_morecore_hook=no
5609 fi
5610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5611 fi
5612 echo "$as_me:5612: result: $emacs_cv_var___after_morecore_hook" >&5
5613 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5614 if test $emacs_cv_var___after_morecore_hook = no; then
5615 doug_lea_malloc=no
5616 fi
5617 if test "${system_malloc}" = "yes"; then
5618 GNU_MALLOC=no
5619 GNU_MALLOC_reason="
5620 (The GNU allocators don't work with this system configuration.)"
5621 fi
5622 if test "$doug_lea_malloc" = "yes" ; then
5623 if test "$GNU_MALLOC" = yes ; then
5624 GNU_MALLOC_reason="
5625 (Using Doug Lea's new malloc from the GNU C Library.)"
5626 fi
5627 cat >>confdefs.h <<\EOF
5628 #define DOUG_LEA_MALLOC 1
5629 EOF
5630
5631 fi
5632
5633 if test x"${REL_ALLOC}" = x; then
5634 REL_ALLOC=${GNU_MALLOC}
5635 fi
5636
5637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5638
5639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5640 inttypes.h stdint.h unistd.h
5641 do
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 echo "$as_me:5643: checking for $ac_header" >&5
5644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 cat >conftest.$ac_ext <<_ACEOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5651 $ac_includes_default
5652 #include <$ac_header>
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:5655: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>&5
5657 ac_status=$?
5658 echo "$as_me:5658: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:5661: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:5664: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 eval "$as_ac_Header=yes"
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 eval "$as_ac_Header=no"
5671 fi
5672 rm -f conftest.$ac_objext conftest.$ac_ext
5673 fi
5674 echo "$as_me:5674: result: `eval echo '${'$as_ac_Header'}'`" >&5
5675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5677 cat >>confdefs.h <<EOF
5678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5679 EOF
5680
5681 fi
5682 done
5683
5684 for ac_header in stdlib.h unistd.h
5685 do
5686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5687 echo "$as_me:5687: checking for $ac_header" >&5
5688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 cat >conftest.$ac_ext <<_ACEOF
5693 #line 5693 "configure"
5694 #include "confdefs.h"
5695 #include <$ac_header>
5696 _ACEOF
5697 if { (eval echo "$as_me:5697: \"$ac_cpp conftest.$ac_ext\"") >&5
5698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5699 ac_status=$?
5700 egrep -v '^ *\+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:5703: \$? = $ac_status" >&5
5704 (exit $ac_status); } >/dev/null; then
5705 if test -s conftest.err; then
5706 ac_cpp_err=$ac_c_preproc_warn_flag
5707 else
5708 ac_cpp_err=
5709 fi
5710 else
5711 ac_cpp_err=yes
5712 fi
5713 if test -z "$ac_cpp_err"; then
5714 eval "$as_ac_Header=yes"
5715 else
5716 echo "$as_me: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5718 eval "$as_ac_Header=no"
5719 fi
5720 rm -f conftest.err conftest.$ac_ext
5721 fi
5722 echo "$as_me:5722: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5725 cat >>confdefs.h <<EOF
5726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5727 EOF
5728
5729 fi
5730 done
5731
5732 for ac_func in getpagesize
5733 do
5734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5735 echo "$as_me:5735: checking for $ac_func" >&5
5736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5737 if eval "test \"\${$as_ac_var+set}\" = set"; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740 cat >conftest.$ac_ext <<_ACEOF
5741 #line 5741 "configure"
5742 #include "confdefs.h"
5743 /* System header to define __stub macros and hopefully few prototypes,
5744 which can conflict with char $ac_func (); below. */
5745 #include <assert.h>
5746 /* Override any gcc2 internal prototype to avoid an error. */
5747 #ifdef __cplusplus
5748 extern "C"
5749 #endif
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5752 char $ac_func ();
5753 char (*f) ();
5754
5755 int
5756 main ()
5757 {
5758 /* The GNU C library defines this for functions which it implements
5759 to always fail with ENOSYS. Some functions are actually named
5760 something starting with __ and the normal name is an alias. */
5761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5762 choke me
5763 #else
5764 f = $ac_func;
5765 #endif
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (eval echo "$as_me:5772: \"$ac_link\"") >&5
5773 (eval $ac_link) 2>&5
5774 ac_status=$?
5775 echo "$as_me:5775: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try='test -s conftest$ac_exeext'
5778 { (eval echo "$as_me:5778: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:5781: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 eval "$as_ac_var=yes"
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5787 eval "$as_ac_var=no"
5788 fi
5789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5790 fi
5791 echo "$as_me:5791: result: `eval echo '${'$as_ac_var'}'`" >&5
5792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5793 if test `eval echo '${'$as_ac_var'}'` = yes; then
5794 cat >>confdefs.h <<EOF
5795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5796 EOF
5797
5798 fi
5799 done
5800
5801 echo "$as_me:5801: checking for working mmap" >&5
5802 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5803 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 if test "$cross_compiling" = yes; then
5807 ac_cv_func_mmap_fixed_mapped=no
5808 else
5809 cat >conftest.$ac_ext <<_ACEOF
5810 #line 5810 "configure"
5811 #include "confdefs.h"
5812 $ac_includes_default
5813 /* Thanks to Mike Haertel and Jim Avera for this test.
5814 Here is a matrix of mmap possibilities:
5815 mmap private not fixed
5816 mmap private fixed at somewhere currently unmapped
5817 mmap private fixed at somewhere already mapped
5818 mmap shared not fixed
5819 mmap shared fixed at somewhere currently unmapped
5820 mmap shared fixed at somewhere already mapped
5821 For private mappings, we should verify that changes cannot be read()
5822 back from the file, nor mmap's back from the file at a different
5823 address. (There have been systems where private was not correctly
5824 implemented like the infamous i386 svr4.0, and systems where the
5825 VM page cache was not coherent with the file system buffer cache
5826 like early versions of FreeBSD and possibly contemporary NetBSD.)
5827 For shared mappings, we should conversely verify that changes get
5828 propogated back to all the places they're supposed to be.
5829
5830 Grep wants private fixed already mapped.
5831 The main things grep needs to know about mmap are:
5832 * does it exist and is it safe to write into the mmap'd area
5833 * how to use it (BSD variants) */
5834
5835 #include <fcntl.h>
5836 #include <sys/mman.h>
5837
5838 #if !STDC_HEADERS && !HAVE_STDLIB_H
5839 char *malloc ();
5840 #endif
5841
5842 /* This mess was copied from the GNU getpagesize.h. */
5843 #if !HAVE_GETPAGESIZE
5844 /* Assume that all systems that can run configure have sys/param.h. */
5845 # if !HAVE_SYS_PARAM_H
5846 # define HAVE_SYS_PARAM_H 1
5847 # endif
5848
5849 # ifdef _SC_PAGESIZE
5850 # define getpagesize() sysconf(_SC_PAGESIZE)
5851 # else /* no _SC_PAGESIZE */
5852 # if HAVE_SYS_PARAM_H
5853 # include <sys/param.h>
5854 # ifdef EXEC_PAGESIZE
5855 # define getpagesize() EXEC_PAGESIZE
5856 # else /* no EXEC_PAGESIZE */
5857 # ifdef NBPG
5858 # define getpagesize() NBPG * CLSIZE
5859 # ifndef CLSIZE
5860 # define CLSIZE 1
5861 # endif /* no CLSIZE */
5862 # else /* no NBPG */
5863 # ifdef NBPC
5864 # define getpagesize() NBPC
5865 # else /* no NBPC */
5866 # ifdef PAGESIZE
5867 # define getpagesize() PAGESIZE
5868 # endif /* PAGESIZE */
5869 # endif /* no NBPC */
5870 # endif /* no NBPG */
5871 # endif /* no EXEC_PAGESIZE */
5872 # else /* no HAVE_SYS_PARAM_H */
5873 # define getpagesize() 8192 /* punt totally */
5874 # endif /* no HAVE_SYS_PARAM_H */
5875 # endif /* no _SC_PAGESIZE */
5876
5877 #endif /* no HAVE_GETPAGESIZE */
5878
5879 int
5880 main ()
5881 {
5882 char *data, *data2, *data3;
5883 int i, pagesize;
5884 int fd;
5885
5886 pagesize = getpagesize ();
5887
5888 /* First, make a file with some known garbage in it. */
5889 data = (char *) malloc (pagesize);
5890 if (!data)
5891 exit (1);
5892 for (i = 0; i < pagesize; ++i)
5893 *(data + i) = rand ();
5894 umask (0);
5895 fd = creat ("conftest.mmap", 0600);
5896 if (fd < 0)
5897 exit (1);
5898 if (write (fd, data, pagesize) != pagesize)
5899 exit (1);
5900 close (fd);
5901
5902 /* Next, try to mmap the file at a fixed address which already has
5903 something else allocated at it. If we can, also make sure that
5904 we see the same garbage. */
5905 fd = open ("conftest.mmap", O_RDWR);
5906 if (fd < 0)
5907 exit (1);
5908 data2 = (char *) malloc (2 * pagesize);
5909 if (!data2)
5910 exit (1);
5911 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5912 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5913 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5914 exit (1);
5915 for (i = 0; i < pagesize; ++i)
5916 if (*(data + i) != *(data2 + i))
5917 exit (1);
5918
5919 /* Finally, make sure that changes to the mapped area do not
5920 percolate back to the file as seen by read(). (This is a bug on
5921 some variants of i386 svr4.0.) */
5922 for (i = 0; i < pagesize; ++i)
5923 *(data2 + i) = *(data2 + i) + 1;
5924 data3 = (char *) malloc (pagesize);
5925 if (!data3)
5926 exit (1);
5927 if (read (fd, data3, pagesize) != pagesize)
5928 exit (1);
5929 for (i = 0; i < pagesize; ++i)
5930 if (*(data + i) != *(data3 + i))
5931 exit (1);
5932 close (fd);
5933 exit (0);
5934 }
5935 _ACEOF
5936 rm -f conftest$ac_exeext
5937 if { (eval echo "$as_me:5937: \"$ac_link\"") >&5
5938 (eval $ac_link) 2>&5
5939 ac_status=$?
5940 echo "$as_me:5940: \$? = $ac_status" >&5
5941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5942 { (eval echo "$as_me:5942: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:5945: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 ac_cv_func_mmap_fixed_mapped=yes
5948 else
5949 echo "$as_me: program exited with status $ac_status" >&5
5950 echo "$as_me: failed program was:" >&5
5951 cat conftest.$ac_ext >&5
5952 ac_cv_func_mmap_fixed_mapped=no
5953 fi
5954 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5955 fi
5956 fi
5957 echo "$as_me:5957: result: $ac_cv_func_mmap_fixed_mapped" >&5
5958 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5959 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5960
5961 cat >>confdefs.h <<\EOF
5962 #define HAVE_MMAP 1
5963 EOF
5964
5965 fi
5966 rm -f conftest.mmap
5967
5968 if test $use_mmap_for_buffers = yes; then
5969 REL_ALLOC=no
5970 fi
5971
5972 LIBS="$libsrc_libs $LIBS"
5973
5974 echo "$as_me:5974: checking for dnet_ntoa in -ldnet" >&5
5975 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5976 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 ac_check_lib_save_LIBS=$LIBS
5980 LIBS="-ldnet $LIBS"
5981 cat >conftest.$ac_ext <<_ACEOF
5982 #line 5982 "configure"
5983 #include "confdefs.h"
5984
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 #ifdef __cplusplus
5987 extern "C"
5988 #endif
5989 /* We use char because int might match the return type of a gcc2
5990 builtin and then its argument prototype would still apply. */
5991 char dnet_ntoa ();
5992 int
5993 main ()
5994 {
5995 dnet_ntoa ();
5996 ;
5997 return 0;
5998 }
5999 _ACEOF
6000 rm -f conftest.$ac_objext conftest$ac_exeext
6001 if { (eval echo "$as_me:6001: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>&5
6003 ac_status=$?
6004 echo "$as_me:6004: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -s conftest$ac_exeext'
6007 { (eval echo "$as_me:6007: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:6010: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_lib_dnet_dnet_ntoa=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 ac_cv_lib_dnet_dnet_ntoa=no
6017 fi
6018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019 LIBS=$ac_check_lib_save_LIBS
6020 fi
6021 echo "$as_me:6021: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6022 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6023 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6024 cat >>confdefs.h <<EOF
6025 #define HAVE_LIBDNET 1
6026 EOF
6027
6028 LIBS="-ldnet $LIBS"
6029
6030 fi
6031
6032 echo "$as_me:6032: checking for main in -lXbsd" >&5
6033 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6034 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037 ac_check_lib_save_LIBS=$LIBS
6038 LIBS="-lXbsd $LIBS"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 #line 6040 "configure"
6041 #include "confdefs.h"
6042
6043 int
6044 main ()
6045 {
6046 main ();
6047 ;
6048 return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (eval echo "$as_me:6052: \"$ac_link\"") >&5
6053 (eval $ac_link) 2>&5
6054 ac_status=$?
6055 echo "$as_me:6055: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest$ac_exeext'
6058 { (eval echo "$as_me:6058: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:6061: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_cv_lib_Xbsd_main=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6067 ac_cv_lib_Xbsd_main=no
6068 fi
6069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_check_lib_save_LIBS
6071 fi
6072 echo "$as_me:6072: result: $ac_cv_lib_Xbsd_main" >&5
6073 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6074 if test $ac_cv_lib_Xbsd_main = yes; then
6075 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6076 fi
6077
6078 echo "$as_me:6078: checking for cma_open in -lpthreads" >&5
6079 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6080 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 ac_check_lib_save_LIBS=$LIBS
6084 LIBS="-lpthreads $LIBS"
6085 cat >conftest.$ac_ext <<_ACEOF
6086 #line 6086 "configure"
6087 #include "confdefs.h"
6088
6089 /* Override any gcc2 internal prototype to avoid an error. */
6090 #ifdef __cplusplus
6091 extern "C"
6092 #endif
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6095 char cma_open ();
6096 int
6097 main ()
6098 {
6099 cma_open ();
6100 ;
6101 return 0;
6102 }
6103 _ACEOF
6104 rm -f conftest.$ac_objext conftest$ac_exeext
6105 if { (eval echo "$as_me:6105: \"$ac_link\"") >&5
6106 (eval $ac_link) 2>&5
6107 ac_status=$?
6108 echo "$as_me:6108: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (eval echo "$as_me:6111: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:6114: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 ac_cv_lib_pthreads_cma_open=yes
6117 else
6118 echo "$as_me: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 ac_cv_lib_pthreads_cma_open=no
6121 fi
6122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6123 LIBS=$ac_check_lib_save_LIBS
6124 fi
6125 echo "$as_me:6125: result: $ac_cv_lib_pthreads_cma_open" >&5
6126 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6127 if test $ac_cv_lib_pthreads_cma_open = yes; then
6128 cat >>confdefs.h <<EOF
6129 #define HAVE_LIBPTHREADS 1
6130 EOF
6131
6132 LIBS="-lpthreads $LIBS"
6133
6134 fi
6135
6136 echo "$as_me:6136: checking for XFree86 in /usr/X386" >&5
6137 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6138 if test -d /usr/X386/include; then
6139 HAVE_XFREE386=yes
6140 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6141 else
6142 HAVE_XFREE386=no
6143 fi
6144 echo "$as_me:6144: result: $HAVE_XFREE386" >&5
6145 echo "${ECHO_T}$HAVE_XFREE386" >&6
6146
6147 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6148 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6149
6150 REAL_CPPFLAGS="$CPPFLAGS"
6151
6152 if test "${HAVE_X11}" = "yes"; then
6153 DEFS="$C_SWITCH_X_SITE $DEFS"
6154 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6155 LIBS="$LIBX $LIBS"
6156 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6157 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6158
6159 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6160 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6161 # but it's more convenient here to set LD_RUN_PATH
6162 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6163 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6164 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6165 export LD_RUN_PATH
6166 fi
6167
6168 if test "${opsys}" = "gnu-linux"; then
6169 echo "$as_me:6169: checking whether X on GNU/Linux needs -b to link" >&5
6170 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line 6172 "configure"
6173 #include "confdefs.h"
6174
6175 int
6176 main ()
6177 {
6178 XOpenDisplay ("foo");
6179 ;
6180 return 0;
6181 }
6182 _ACEOF
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (eval echo "$as_me:6184: \"$ac_link\"") >&5
6185 (eval $ac_link) 2>&5
6186 ac_status=$?
6187 echo "$as_me:6187: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -s conftest$ac_exeext'
6190 { (eval echo "$as_me:6190: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:6193: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 xlinux_first_failure=no
6196 else
6197 echo "$as_me: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6199 xlinux_first_failure=yes
6200 fi
6201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6202 if test "${xlinux_first_failure}" = "yes"; then
6203 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6204 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6205 OLD_CPPFLAGS="$CPPFLAGS"
6206 OLD_LIBS="$LIBS"
6207 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6208 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6209 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6210 LIBS="$LIBS -b i486-linuxaout"
6211 cat >conftest.$ac_ext <<_ACEOF
6212 #line 6212 "configure"
6213 #include "confdefs.h"
6214
6215 int
6216 main ()
6217 {
6218 XOpenDisplay ("foo");
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (eval echo "$as_me:6224: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6226 ac_status=$?
6227 echo "$as_me:6227: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -s conftest$ac_exeext'
6230 { (eval echo "$as_me:6230: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:6233: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 xlinux_second_failure=no
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6239 xlinux_second_failure=yes
6240 fi
6241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242 if test "${xlinux_second_failure}" = "yes"; then
6243 # If we get the same failure with -b, there is no use adding -b.
6244 # So take it out. This plays safe.
6245 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6246 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6247 CPPFLAGS="$OLD_CPPFLAGS"
6248 LIBS="$OLD_LIBS"
6249 echo "$as_me:6249: result: no" >&5
6250 echo "${ECHO_T}no" >&6
6251 else
6252 echo "$as_me:6252: result: yes" >&5
6253 echo "${ECHO_T}yes" >&6
6254 fi
6255 else
6256 echo "$as_me:6256: result: no" >&5
6257 echo "${ECHO_T}no" >&6
6258 fi
6259 fi
6260
6261 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6262 # header files included from there.
6263 echo "$as_me:6263: checking for Xkb" >&5
6264 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6265 cat >conftest.$ac_ext <<_ACEOF
6266 #line 6266 "configure"
6267 #include "confdefs.h"
6268 #include <X11/Xlib.h>
6269 #include <X11/XKBlib.h>
6270 int
6271 main ()
6272 {
6273 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:6279: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>&5
6281 ac_status=$?
6282 echo "$as_me:6282: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -s conftest$ac_exeext'
6285 { (eval echo "$as_me:6285: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:6288: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 emacs_xkb=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6294 emacs_xkb=no
6295 fi
6296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6297 echo "$as_me:6297: result: $emacs_xkb" >&5
6298 echo "${ECHO_T}$emacs_xkb" >&6
6299 if test $emacs_xkb = yes; then
6300 cat >>confdefs.h <<\EOF
6301 #define HAVE_XKBGETKEYBOARD 1
6302 EOF
6303
6304 fi
6305
6306 for ac_func in XrmSetDatabase XScreenResourceString \
6307 XScreenNumberOfScreen XSetWMProtocols
6308 do
6309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6310 echo "$as_me:6310: checking for $ac_func" >&5
6311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6312 if eval "test \"\${$as_ac_var+set}\" = set"; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line 6316 "configure"
6317 #include "confdefs.h"
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char $ac_func (); below. */
6320 #include <assert.h>
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 #ifdef __cplusplus
6323 extern "C"
6324 #endif
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6327 char $ac_func ();
6328 char (*f) ();
6329
6330 int
6331 main ()
6332 {
6333 /* The GNU C library defines this for functions which it implements
6334 to always fail with ENOSYS. Some functions are actually named
6335 something starting with __ and the normal name is an alias. */
6336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6337 choke me
6338 #else
6339 f = $ac_func;
6340 #endif
6341
6342 ;
6343 return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:6347: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>&5
6349 ac_status=$?
6350 echo "$as_me:6350: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -s conftest$ac_exeext'
6353 { (eval echo "$as_me:6353: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 eval "$as_ac_var=yes"
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5
6362 eval "$as_ac_var=no"
6363 fi
6364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6365 fi
6366 echo "$as_me:6366: result: `eval echo '${'$as_ac_var'}'`" >&5
6367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6368 if test `eval echo '${'$as_ac_var'}'` = yes; then
6369 cat >>confdefs.h <<EOF
6370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6371 EOF
6372
6373 fi
6374 done
6375
6376 fi
6377
6378 if test "${window_system}" = "x11"; then
6379 echo "$as_me:6379: checking X11 version 6" >&5
6380 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6381 if test "${emacs_cv_x11_version_6+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 cat >conftest.$ac_ext <<_ACEOF
6385 #line 6385 "configure"
6386 #include "confdefs.h"
6387 #include <X11/Xlib.h>
6388 int
6389 main ()
6390 {
6391 #if XlibSpecificationRelease < 6
6392 fail;
6393 #endif
6394
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 rm -f conftest.$ac_objext conftest$ac_exeext
6400 if { (eval echo "$as_me:6400: \"$ac_link\"") >&5
6401 (eval $ac_link) 2>&5
6402 ac_status=$?
6403 echo "$as_me:6403: \$? = $ac_status" >&5
6404 (exit $ac_status); } &&
6405 { ac_try='test -s conftest$ac_exeext'
6406 { (eval echo "$as_me:6406: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:6409: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 emacs_cv_x11_version_6=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6415 emacs_cv_x11_version_6=no
6416 fi
6417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6418 fi
6419
6420 if test $emacs_cv_x11_version_6 = yes; then
6421 echo "$as_me:6421: result: 6 or newer" >&5
6422 echo "${ECHO_T}6 or newer" >&6
6423 cat >>confdefs.h <<\EOF
6424 #define HAVE_X11R6 1
6425 EOF
6426
6427 else
6428 echo "$as_me:6428: result: before 6" >&5
6429 echo "${ECHO_T}before 6" >&6
6430 fi
6431 fi
6432
6433 if test "${window_system}" = "x11"; then
6434 echo "$as_me:6434: checking X11 version 5" >&5
6435 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6436 if test "${emacs_cv_x11_version_5+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 cat >conftest.$ac_ext <<_ACEOF
6440 #line 6440 "configure"
6441 #include "confdefs.h"
6442 #include <X11/Xlib.h>
6443 int
6444 main ()
6445 {
6446 #if XlibSpecificationRelease < 5
6447 fail;
6448 #endif
6449
6450 ;
6451 return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext conftest$ac_exeext
6455 if { (eval echo "$as_me:6455: \"$ac_link\"") >&5
6456 (eval $ac_link) 2>&5
6457 ac_status=$?
6458 echo "$as_me:6458: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:6461: \"$ac_try\"") >&5
6462 (eval $ac_try) 2>&5
6463 ac_status=$?
6464 echo "$as_me:6464: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 emacs_cv_x11_version_5=yes
6467 else
6468 echo "$as_me: failed program was:" >&5
6469 cat conftest.$ac_ext >&5
6470 emacs_cv_x11_version_5=no
6471 fi
6472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6473 fi
6474
6475 if test $emacs_cv_x11_version_5 = yes; then
6476 echo "$as_me:6476: result: 5 or newer" >&5
6477 echo "${ECHO_T}5 or newer" >&6
6478 HAVE_X11R5=yes
6479 cat >>confdefs.h <<\EOF
6480 #define HAVE_X11R5 1
6481 EOF
6482
6483 else
6484 HAVE_X11R5=no
6485 echo "$as_me:6485: result: before 5" >&5
6486 echo "${ECHO_T}before 5" >&6
6487 fi
6488 fi
6489
6490 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6491 if test x"${HAVE_X11R5}" = xyes; then
6492 echo "$as_me:6492: checking X11 version 5 with Xaw" >&5
6493 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6494 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 cat >conftest.$ac_ext <<_ACEOF
6498 #line 6498 "configure"
6499 #include "confdefs.h"
6500
6501 #include <X11/Intrinsic.h>
6502 #include <X11/Xaw/Simple.h>
6503 int
6504 main ()
6505 {
6506
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 rm -f conftest.$ac_objext conftest$ac_exeext
6512 if { (eval echo "$as_me:6512: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>&5
6514 ac_status=$?
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -s conftest$ac_exeext'
6518 { (eval echo "$as_me:6518: \"$ac_try\"") >&5
6519 (eval $ac_try) 2>&5
6520 ac_status=$?
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 emacs_cv_x11_version_5_with_xaw=yes
6524 else
6525 echo "$as_me: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6527 emacs_cv_x11_version_5_with_xaw=no
6528 fi
6529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6530 fi
6531
6532 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6533 echo "$as_me:6533: result: 5 or newer, with Xaw; use toolkit by default" >&5
6534 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6535 USE_X_TOOLKIT=LUCID
6536 else
6537 echo "$as_me:6537: result: before 5 or no Xaw; do not use toolkit by default" >&5
6538 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6539 USE_X_TOOLKIT=none
6540 fi
6541 else
6542 USE_X_TOOLKIT=none
6543 fi
6544 fi
6545
6546 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6547
6548 if test "${USE_X_TOOLKIT}" != "none"; then
6549 echo "$as_me:6549: checking X11 toolkit version" >&5
6550 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6551 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 cat >conftest.$ac_ext <<_ACEOF
6555 #line 6555 "configure"
6556 #include "confdefs.h"
6557 #include <X11/Intrinsic.h>
6558 int
6559 main ()
6560 {
6561 #if XtSpecificationRelease < 6
6562 fail;
6563 #endif
6564
6565 ;
6566 return 0;
6567 }
6568 _ACEOF
6569 rm -f conftest.$ac_objext conftest$ac_exeext
6570 if { (eval echo "$as_me:6570: \"$ac_link\"") >&5
6571 (eval $ac_link) 2>&5
6572 ac_status=$?
6573 echo "$as_me:6573: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:6576: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:6579: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 emacs_cv_x11_toolkit_version_6=yes
6582 else
6583 echo "$as_me: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6585 emacs_cv_x11_toolkit_version_6=no
6586 fi
6587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6588 fi
6589
6590 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6591 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6592 echo "$as_me:6592: result: 6 or newer" >&5
6593 echo "${ECHO_T}6 or newer" >&6
6594 cat >>confdefs.h <<\EOF
6595 #define HAVE_X11XTR6 1
6596 EOF
6597
6598 else
6599 echo "$as_me:6599: result: before 6" >&5
6600 echo "${ECHO_T}before 6" >&6
6601 fi
6602
6603 OLDLIBS="$LIBS"
6604 if test x$HAVE_X11XTR6 = xyes; then
6605 LIBS="-lXt -lSM -lICE $LIBS"
6606 else
6607 LIBS="-lXt $LIBS"
6608 fi
6609
6610 echo "$as_me:6610: checking for XmuConvertStandardSelection in -lXmu" >&5
6611 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6612 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 ac_check_lib_save_LIBS=$LIBS
6616 LIBS="-lXmu $LIBS"
6617 cat >conftest.$ac_ext <<_ACEOF
6618 #line 6618 "configure"
6619 #include "confdefs.h"
6620
6621 /* Override any gcc2 internal prototype to avoid an error. */
6622 #ifdef __cplusplus
6623 extern "C"
6624 #endif
6625 /* We use char because int might match the return type of a gcc2
6626 builtin and then its argument prototype would still apply. */
6627 char XmuConvertStandardSelection ();
6628 int
6629 main ()
6630 {
6631 XmuConvertStandardSelection ();
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 rm -f conftest.$ac_objext conftest$ac_exeext
6637 if { (eval echo "$as_me:6637: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6639 ac_status=$?
6640 echo "$as_me:6640: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (eval echo "$as_me:6643: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); }; }; then
6648 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6649 else
6650 echo "$as_me: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6652 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6653 fi
6654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6655 LIBS=$ac_check_lib_save_LIBS
6656 fi
6657 echo "$as_me:6657: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6658 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6659 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6660 cat >>confdefs.h <<EOF
6661 #define HAVE_LIBXMU 1
6662 EOF
6663
6664 LIBS="-lXmu $LIBS"
6665
6666 fi
6667
6668 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6669 fi
6670
6671 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6672 if test "${HAVE_X11}" = "yes"; then
6673 if test "${USE_X_TOOLKIT}" != "none"; then
6674
6675 echo "$as_me:6675: checking for XShapeQueryExtension in -lXext" >&5
6676 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6677 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 ac_check_lib_save_LIBS=$LIBS
6681 LIBS="-lXext $LIBS"
6682 cat >conftest.$ac_ext <<_ACEOF
6683 #line 6683 "configure"
6684 #include "confdefs.h"
6685
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692 char XShapeQueryExtension ();
6693 int
6694 main ()
6695 {
6696 XShapeQueryExtension ();
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:6702: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 echo "$as_me:6705: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:6708: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:6711: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_lib_Xext_XShapeQueryExtension=yes
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6717 ac_cv_lib_Xext_XShapeQueryExtension=no
6718 fi
6719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6720 LIBS=$ac_check_lib_save_LIBS
6721 fi
6722 echo "$as_me:6722: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6723 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6724 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6725 cat >>confdefs.h <<EOF
6726 #define HAVE_LIBXEXT 1
6727 EOF
6728
6729 LIBS="-lXext $LIBS"
6730
6731 fi
6732
6733 fi
6734 fi
6735
6736 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6737 echo "$as_me:6737: checking for Motif version 2.1" >&5
6738 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6739 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742 cat >conftest.$ac_ext <<_ACEOF
6743 #line 6743 "configure"
6744 #include "confdefs.h"
6745 #include <Xm/Xm.h>
6746 int
6747 main ()
6748 {
6749 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6750 int x = 5;
6751 #else
6752 Motif version prior to 2.1.
6753 #endif
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:6759: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6761 ac_status=$?
6762 echo "$as_me:6762: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:6765: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 emacs_cv_motif_version_2_1=yes
6771 else
6772 echo "$as_me: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 emacs_cv_motif_version_2_1=no
6775 fi
6776 rm -f conftest.$ac_objext conftest.$ac_ext
6777 fi
6778 echo "$as_me:6778: result: $emacs_cv_motif_version_2_1" >&5
6779 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6780 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6781 if test $emacs_cv_motif_version_2_1 = yes; then
6782 HAVE_LIBXP=no
6783 cat >>confdefs.h <<\EOF
6784 #define HAVE_MOTIF_2_1 1
6785 EOF
6786
6787 echo "$as_me:6787: checking for XpCreateContext in -lXp" >&5
6788 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6789 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792 ac_check_lib_save_LIBS=$LIBS
6793 LIBS="-lXp $LIBS"
6794 cat >conftest.$ac_ext <<_ACEOF
6795 #line 6795 "configure"
6796 #include "confdefs.h"
6797
6798 /* Override any gcc2 internal prototype to avoid an error. */
6799 #ifdef __cplusplus
6800 extern "C"
6801 #endif
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6804 char XpCreateContext ();
6805 int
6806 main ()
6807 {
6808 XpCreateContext ();
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext conftest$ac_exeext
6814 if { (eval echo "$as_me:6814: \"$ac_link\"") >&5
6815 (eval $ac_link) 2>&5
6816 ac_status=$?
6817 echo "$as_me:6817: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -s conftest$ac_exeext'
6820 { (eval echo "$as_me:6820: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:6823: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 ac_cv_lib_Xp_XpCreateContext=yes
6826 else
6827 echo "$as_me: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6829 ac_cv_lib_Xp_XpCreateContext=no
6830 fi
6831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6832 LIBS=$ac_check_lib_save_LIBS
6833 fi
6834 echo "$as_me:6834: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6835 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6836 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6837 HAVE_LIBXP=yes
6838 fi
6839
6840 if test ${HAVE_LIBXP} = yes; then
6841 cat >>confdefs.h <<\EOF
6842 #define HAVE_LIBXP 1
6843 EOF
6844
6845 fi
6846 fi
6847 fi
6848
6849 ### Is -lXaw3d available?
6850 HAVE_XAW3D=no
6851 if test "${HAVE_X11}" = "yes"; then
6852 if test "${USE_X_TOOLKIT}" != "none"; then
6853 echo "$as_me:6853: checking for X11/Xaw3d/Scrollbar.h" >&5
6854 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6855 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 #line 6859 "configure"
6860 #include "confdefs.h"
6861 #include <X11/Xaw3d/Scrollbar.h>
6862 _ACEOF
6863 if { (eval echo "$as_me:6863: \"$ac_cpp conftest.$ac_ext\"") >&5
6864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6865 ac_status=$?
6866 egrep -v '^ *\+' conftest.er1 >conftest.err
6867 rm -f conftest.er1
6868 cat conftest.err >&5
6869 echo "$as_me:6869: \$? = $ac_status" >&5
6870 (exit $ac_status); } >/dev/null; then
6871 if test -s conftest.err; then
6872 ac_cpp_err=$ac_c_preproc_warn_flag
6873 else
6874 ac_cpp_err=
6875 fi
6876 else
6877 ac_cpp_err=yes
6878 fi
6879 if test -z "$ac_cpp_err"; then
6880 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6884 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
6885 fi
6886 rm -f conftest.err conftest.$ac_ext
6887 fi
6888 echo "$as_me:6888: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6889 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6890 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6891 echo "$as_me:6891: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6892 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6893 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 ac_check_lib_save_LIBS=$LIBS
6897 LIBS="-lXaw3d $LIBS"
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line 6899 "configure"
6900 #include "confdefs.h"
6901
6902 /* Override any gcc2 internal prototype to avoid an error. */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6908 char XawScrollbarSetThumb ();
6909 int
6910 main ()
6911 {
6912 XawScrollbarSetThumb ();
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 rm -f conftest.$ac_objext conftest$ac_exeext
6918 if { (eval echo "$as_me:6918: \"$ac_link\"") >&5
6919 (eval $ac_link) 2>&5
6920 ac_status=$?
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -s conftest$ac_exeext'
6924 { (eval echo "$as_me:6924: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
6930 else
6931 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6933 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
6934 fi
6935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6936 LIBS=$ac_check_lib_save_LIBS
6937 fi
6938 echo "$as_me:6938: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
6939 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
6940 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
6941 HAVE_XAW3D=yes
6942 fi
6943
6944 fi
6945
6946 if test "${HAVE_XAW3D}" = "yes"; then
6947 cat >>confdefs.h <<\EOF
6948 #define HAVE_XAW3D 1
6949 EOF
6950
6951 fi
6952 fi
6953 fi
6954
6955 USE_TOOLKIT_SCROLL_BARS=no
6956 if test "${with_toolkit_scroll_bars}" != "no"; then
6957 if test "${USE_X_TOOLKIT}" != "none"; then
6958 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6959 cat >>confdefs.h <<\EOF
6960 #define USE_TOOLKIT_SCROLL_BARS 1
6961 EOF
6962
6963 HAVE_XAW3D=no
6964 USE_TOOLKIT_SCROLL_BARS=yes
6965 elif test "${HAVE_XAW3D}" = "yes"; then
6966 cat >>confdefs.h <<\EOF
6967 #define USE_TOOLKIT_SCROLL_BARS 1
6968 EOF
6969
6970 USE_TOOLKIT_SCROLL_BARS=yes
6971 fi
6972 fi
6973 fi
6974
6975 if test "${with_xim}" != "no"; then
6976 cat >>confdefs.h <<\EOF
6977 #define USE_XIM 1
6978 EOF
6979
6980 fi
6981
6982 ### Use -lXpm if available, unless `--with-xpm=no'.
6983 HAVE_XPM=no
6984 if test "${HAVE_X11}" = "yes"; then
6985 if test "${with_xpm}" != "no"; then
6986 echo "$as_me:6986: checking for X11/xpm.h" >&5
6987 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
6988 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line 6992 "configure"
6993 #include "confdefs.h"
6994 #include <X11/xpm.h>
6995 _ACEOF
6996 if { (eval echo "$as_me:6996: \"$ac_cpp conftest.$ac_ext\"") >&5
6997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6998 ac_status=$?
6999 egrep -v '^ *\+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:7002: \$? = $ac_status" >&5
7003 (exit $ac_status); } >/dev/null; then
7004 if test -s conftest.err; then
7005 ac_cpp_err=$ac_c_preproc_warn_flag
7006 else
7007 ac_cpp_err=
7008 fi
7009 else
7010 ac_cpp_err=yes
7011 fi
7012 if test -z "$ac_cpp_err"; then
7013 ac_cv_header_X11_xpm_h=yes
7014 else
7015 echo "$as_me: failed program was:" >&5
7016 cat conftest.$ac_ext >&5
7017 ac_cv_header_X11_xpm_h=no
7018 fi
7019 rm -f conftest.err conftest.$ac_ext
7020 fi
7021 echo "$as_me:7021: result: $ac_cv_header_X11_xpm_h" >&5
7022 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7023 if test $ac_cv_header_X11_xpm_h = yes; then
7024 echo "$as_me:7024: checking for XpmReadFileToPixmap in -lXpm" >&5
7025 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7026 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 ac_check_lib_save_LIBS=$LIBS
7030 LIBS="-lXpm -lX11 $LIBS"
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line 7032 "configure"
7033 #include "confdefs.h"
7034
7035 /* Override any gcc2 internal prototype to avoid an error. */
7036 #ifdef __cplusplus
7037 extern "C"
7038 #endif
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7041 char XpmReadFileToPixmap ();
7042 int
7043 main ()
7044 {
7045 XpmReadFileToPixmap ();
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (eval echo "$as_me:7051: \"$ac_link\"") >&5
7052 (eval $ac_link) 2>&5
7053 ac_status=$?
7054 echo "$as_me:7054: \$? = $ac_status" >&5
7055 (exit $ac_status); } &&
7056 { ac_try='test -s conftest$ac_exeext'
7057 { (eval echo "$as_me:7057: \"$ac_try\"") >&5
7058 (eval $ac_try) 2>&5
7059 ac_status=$?
7060 echo "$as_me:7060: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7066 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7067 fi
7068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7069 LIBS=$ac_check_lib_save_LIBS
7070 fi
7071 echo "$as_me:7071: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7072 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7073 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7074 HAVE_XPM=yes
7075 fi
7076
7077 fi
7078
7079 if test "${HAVE_XPM}" = "yes"; then
7080 echo "$as_me:7080: checking for XpmReturnAllocPixels preprocessor define" >&5
7081 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7083 #line 7083 "configure"
7084 #include "confdefs.h"
7085 #include "X11/xpm.h"
7086 #ifndef XpmReturnAllocPixels
7087 no_return_alloc_pixels
7088 #endif
7089
7090 _ACEOF
7091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7092 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7093 HAVE_XPM=no
7094 else
7095 HAVE_XPM=yes
7096 fi
7097 rm -f conftest*
7098
7099 if test "${HAVE_XPM}" = "yes"; then
7100 echo "$as_me:7100: result: yes" >&5
7101 echo "${ECHO_T}yes" >&6
7102 else
7103 echo "$as_me:7103: result: no" >&5
7104 echo "${ECHO_T}no" >&6
7105 fi
7106 fi
7107 fi
7108
7109 if test "${HAVE_XPM}" = "yes"; then
7110 cat >>confdefs.h <<\EOF
7111 #define HAVE_XPM 1
7112 EOF
7113
7114 fi
7115 fi
7116
7117 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7118 HAVE_JPEG=no
7119 if test "${HAVE_X11}" = "yes"; then
7120 if test "${with_jpeg}" != "no"; then
7121 echo "$as_me:7121: checking for jerror.h" >&5
7122 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7123 if test "${ac_cv_header_jerror_h+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 cat >conftest.$ac_ext <<_ACEOF
7127 #line 7127 "configure"
7128 #include "confdefs.h"
7129 #include <jerror.h>
7130 _ACEOF
7131 if { (eval echo "$as_me:7131: \"$ac_cpp conftest.$ac_ext\"") >&5
7132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7133 ac_status=$?
7134 egrep -v '^ *\+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:7137: \$? = $ac_status" >&5
7138 (exit $ac_status); } >/dev/null; then
7139 if test -s conftest.err; then
7140 ac_cpp_err=$ac_c_preproc_warn_flag
7141 else
7142 ac_cpp_err=
7143 fi
7144 else
7145 ac_cpp_err=yes
7146 fi
7147 if test -z "$ac_cpp_err"; then
7148 ac_cv_header_jerror_h=yes
7149 else
7150 echo "$as_me: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7152 ac_cv_header_jerror_h=no
7153 fi
7154 rm -f conftest.err conftest.$ac_ext
7155 fi
7156 echo "$as_me:7156: result: $ac_cv_header_jerror_h" >&5
7157 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7158 if test $ac_cv_header_jerror_h = yes; then
7159 echo "$as_me:7159: checking for jpeg_destroy_compress in -ljpeg" >&5
7160 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7161 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 ac_check_lib_save_LIBS=$LIBS
7165 LIBS="-ljpeg $LIBS"
7166 cat >conftest.$ac_ext <<_ACEOF
7167 #line 7167 "configure"
7168 #include "confdefs.h"
7169
7170 /* Override any gcc2 internal prototype to avoid an error. */
7171 #ifdef __cplusplus
7172 extern "C"
7173 #endif
7174 /* We use char because int might match the return type of a gcc2
7175 builtin and then its argument prototype would still apply. */
7176 char jpeg_destroy_compress ();
7177 int
7178 main ()
7179 {
7180 jpeg_destroy_compress ();
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (eval echo "$as_me:7186: \"$ac_link\"") >&5
7187 (eval $ac_link) 2>&5
7188 ac_status=$?
7189 echo "$as_me:7189: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:7192: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7202 fi
7203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7205 fi
7206 echo "$as_me:7206: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7207 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7208 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7209 HAVE_JPEG=yes
7210 fi
7211
7212 fi
7213
7214 fi
7215
7216 if test "${HAVE_JPEG}" = "yes"; then
7217 cat >>confdefs.h <<\EOF
7218 #define HAVE_JPEG 1
7219 EOF
7220
7221 fi
7222 fi
7223
7224 ### Use -lpng if available, unless `--with-png=no'.
7225 HAVE_PNG=no
7226 if test "${HAVE_X11}" = "yes"; then
7227 if test "${with_png}" != "no"; then
7228 echo "$as_me:7228: checking for png.h" >&5
7229 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7230 if test "${ac_cv_header_png_h+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 cat >conftest.$ac_ext <<_ACEOF
7234 #line 7234 "configure"
7235 #include "confdefs.h"
7236 #include <png.h>
7237 _ACEOF
7238 if { (eval echo "$as_me:7238: \"$ac_cpp conftest.$ac_ext\"") >&5
7239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7240 ac_status=$?
7241 egrep -v '^ *\+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:7244: \$? = $ac_status" >&5
7245 (exit $ac_status); } >/dev/null; then
7246 if test -s conftest.err; then
7247 ac_cpp_err=$ac_c_preproc_warn_flag
7248 else
7249 ac_cpp_err=
7250 fi
7251 else
7252 ac_cpp_err=yes
7253 fi
7254 if test -z "$ac_cpp_err"; then
7255 ac_cv_header_png_h=yes
7256 else
7257 echo "$as_me: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7259 ac_cv_header_png_h=no
7260 fi
7261 rm -f conftest.err conftest.$ac_ext
7262 fi
7263 echo "$as_me:7263: result: $ac_cv_header_png_h" >&5
7264 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7265 if test $ac_cv_header_png_h = yes; then
7266 echo "$as_me:7266: checking for png_get_channels in -lpng" >&5
7267 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7268 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lpng -lz -lm $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line 7274 "configure"
7275 #include "confdefs.h"
7276
7277 /* Override any gcc2 internal prototype to avoid an error. */
7278 #ifdef __cplusplus
7279 extern "C"
7280 #endif
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283 char png_get_channels ();
7284 int
7285 main ()
7286 {
7287 png_get_channels ();
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (eval echo "$as_me:7293: \"$ac_link\"") >&5
7294 (eval $ac_link) 2>&5
7295 ac_status=$?
7296 echo "$as_me:7296: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
7298 { ac_try='test -s conftest$ac_exeext'
7299 { (eval echo "$as_me:7299: \"$ac_try\"") >&5
7300 (eval $ac_try) 2>&5
7301 ac_status=$?
7302 echo "$as_me:7302: \$? = $ac_status" >&5
7303 (exit $ac_status); }; }; then
7304 ac_cv_lib_png_png_get_channels=yes
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 cat conftest.$ac_ext >&5
7308 ac_cv_lib_png_png_get_channels=no
7309 fi
7310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7311 LIBS=$ac_check_lib_save_LIBS
7312 fi
7313 echo "$as_me:7313: result: $ac_cv_lib_png_png_get_channels" >&5
7314 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7315 if test $ac_cv_lib_png_png_get_channels = yes; then
7316 HAVE_PNG=yes
7317 fi
7318
7319 fi
7320
7321 fi
7322
7323 if test "${HAVE_PNG}" = "yes"; then
7324 cat >>confdefs.h <<\EOF
7325 #define HAVE_PNG 1
7326 EOF
7327
7328 fi
7329 fi
7330
7331 ### Use -ltiff if available, unless `--with-tiff=no'.
7332 HAVE_TIFF=no
7333 if test "${HAVE_X11}" = "yes"; then
7334 if test "${with_tiff}" != "no"; then
7335 echo "$as_me:7335: checking for tiffio.h" >&5
7336 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7337 if test "${ac_cv_header_tiffio_h+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 cat >conftest.$ac_ext <<_ACEOF
7341 #line 7341 "configure"
7342 #include "confdefs.h"
7343 #include <tiffio.h>
7344 _ACEOF
7345 if { (eval echo "$as_me:7345: \"$ac_cpp conftest.$ac_ext\"") >&5
7346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7347 ac_status=$?
7348 egrep -v '^ *\+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:7351: \$? = $ac_status" >&5
7352 (exit $ac_status); } >/dev/null; then
7353 if test -s conftest.err; then
7354 ac_cpp_err=$ac_c_preproc_warn_flag
7355 else
7356 ac_cpp_err=
7357 fi
7358 else
7359 ac_cpp_err=yes
7360 fi
7361 if test -z "$ac_cpp_err"; then
7362 ac_cv_header_tiffio_h=yes
7363 else
7364 echo "$as_me: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7366 ac_cv_header_tiffio_h=no
7367 fi
7368 rm -f conftest.err conftest.$ac_ext
7369 fi
7370 echo "$as_me:7370: result: $ac_cv_header_tiffio_h" >&5
7371 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7372 if test $ac_cv_header_tiffio_h = yes; then
7373 tifflibs="-lz -lm"
7374 # At least one tiff package requires the jpeg library.
7375 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7376 echo "$as_me:7376: checking for TIFFGetVersion in -ltiff" >&5
7377 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7378 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381 ac_check_lib_save_LIBS=$LIBS
7382 LIBS="-ltiff $tifflibs $LIBS"
7383 cat >conftest.$ac_ext <<_ACEOF
7384 #line 7384 "configure"
7385 #include "confdefs.h"
7386
7387 /* Override any gcc2 internal prototype to avoid an error. */
7388 #ifdef __cplusplus
7389 extern "C"
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7393 char TIFFGetVersion ();
7394 int
7395 main ()
7396 {
7397 TIFFGetVersion ();
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:7403: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7405 ac_status=$?
7406 echo "$as_me:7406: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:7409: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:7412: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 ac_cv_lib_tiff_TIFFGetVersion=yes
7415 else
7416 echo "$as_me: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7418 ac_cv_lib_tiff_TIFFGetVersion=no
7419 fi
7420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7421 LIBS=$ac_check_lib_save_LIBS
7422 fi
7423 echo "$as_me:7423: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7424 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7425 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7426 HAVE_TIFF=yes
7427 fi
7428
7429 fi
7430
7431 fi
7432
7433 if test "${HAVE_TIFF}" = "yes"; then
7434 cat >>confdefs.h <<\EOF
7435 #define HAVE_TIFF 1
7436 EOF
7437
7438 fi
7439 fi
7440
7441 ### Use -lgif if available, unless `--with-gif=no'.
7442 HAVE_GIF=no
7443 if test "${HAVE_X11}" = "yes"; then
7444 if test "${with_gif}" != "no"; then
7445 echo "$as_me:7445: checking for gif_lib.h" >&5
7446 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7447 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line 7451 "configure"
7452 #include "confdefs.h"
7453 #include <gif_lib.h>
7454 _ACEOF
7455 if { (eval echo "$as_me:7455: \"$ac_cpp conftest.$ac_ext\"") >&5
7456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7457 ac_status=$?
7458 egrep -v '^ *\+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 (exit $ac_status); } >/dev/null; then
7463 if test -s conftest.err; then
7464 ac_cpp_err=$ac_c_preproc_warn_flag
7465 else
7466 ac_cpp_err=
7467 fi
7468 else
7469 ac_cpp_err=yes
7470 fi
7471 if test -z "$ac_cpp_err"; then
7472 ac_cv_header_gif_lib_h=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7476 ac_cv_header_gif_lib_h=no
7477 fi
7478 rm -f conftest.err conftest.$ac_ext
7479 fi
7480 echo "$as_me:7480: result: $ac_cv_header_gif_lib_h" >&5
7481 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7482 if test $ac_cv_header_gif_lib_h = yes; then
7483 echo "$as_me:7483: checking for DGifOpen in -lungif" >&5
7484 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7485 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 ac_check_lib_save_LIBS=$LIBS
7489 LIBS="-lungif $LIBS"
7490 cat >conftest.$ac_ext <<_ACEOF
7491 #line 7491 "configure"
7492 #include "confdefs.h"
7493
7494 /* Override any gcc2 internal prototype to avoid an error. */
7495 #ifdef __cplusplus
7496 extern "C"
7497 #endif
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500 char DGifOpen ();
7501 int
7502 main ()
7503 {
7504 DGifOpen ();
7505 ;
7506 return 0;
7507 }
7508 _ACEOF
7509 rm -f conftest.$ac_objext conftest$ac_exeext
7510 if { (eval echo "$as_me:7510: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>&5
7512 ac_status=$?
7513 echo "$as_me:7513: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -s conftest$ac_exeext'
7516 { (eval echo "$as_me:7516: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:7519: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 ac_cv_lib_ungif_DGifOpen=yes
7522 else
7523 echo "$as_me: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7525 ac_cv_lib_ungif_DGifOpen=no
7526 fi
7527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7528 LIBS=$ac_check_lib_save_LIBS
7529 fi
7530 echo "$as_me:7530: result: $ac_cv_lib_ungif_DGifOpen" >&5
7531 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7532 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7533 HAVE_GIF=yes
7534 fi
7535
7536 fi
7537
7538 fi
7539
7540 if test "${HAVE_GIF}" = "yes"; then
7541 cat >>confdefs.h <<\EOF
7542 #define HAVE_GIF 1
7543 EOF
7544
7545 fi
7546 fi
7547
7548 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7549 echo "$as_me:7549: checking whether netdb declares h_errno" >&5
7550 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7551 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 cat >conftest.$ac_ext <<_ACEOF
7555 #line 7555 "configure"
7556 #include "confdefs.h"
7557 #include <netdb.h>
7558 int
7559 main ()
7560 {
7561 return h_errno;
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:7567: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>&5
7569 ac_status=$?
7570 echo "$as_me:7570: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -s conftest$ac_exeext'
7573 { (eval echo "$as_me:7573: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:7576: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 emacs_cv_netdb_declares_h_errno=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 emacs_cv_netdb_declares_h_errno=no
7583 fi
7584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7585 fi
7586 echo "$as_me:7586: result: $emacs_cv_netdb_declares_h_errno" >&5
7587 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7588 if test $emacs_cv_netdb_declares_h_errno = yes; then
7589 cat >>confdefs.h <<\EOF
7590 #define HAVE_H_ERRNO 1
7591 EOF
7592
7593 fi
7594
7595 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7596 # for constant arguments. Useless!
7597 echo "$as_me:7597: checking for working alloca.h" >&5
7598 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7599 if test "${ac_cv_working_alloca_h+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602 cat >conftest.$ac_ext <<_ACEOF
7603 #line 7603 "configure"
7604 #include "confdefs.h"
7605 #include <alloca.h>
7606 int
7607 main ()
7608 {
7609 char *p = (char *) alloca (2 * sizeof (int));
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext conftest$ac_exeext
7615 if { (eval echo "$as_me:7615: \"$ac_link\"") >&5
7616 (eval $ac_link) 2>&5
7617 ac_status=$?
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:7621: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_cv_working_alloca_h=yes
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7630 ac_cv_working_alloca_h=no
7631 fi
7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7633 fi
7634 echo "$as_me:7634: result: $ac_cv_working_alloca_h" >&5
7635 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7636 if test $ac_cv_working_alloca_h = yes; then
7637
7638 cat >>confdefs.h <<\EOF
7639 #define HAVE_ALLOCA_H 1
7640 EOF
7641
7642 fi
7643
7644 echo "$as_me:7644: checking for alloca" >&5
7645 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7646 if test "${ac_cv_func_alloca_works+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 #line 7650 "configure"
7651 #include "confdefs.h"
7652 #ifdef __GNUC__
7653 # define alloca __builtin_alloca
7654 #else
7655 # ifdef _MSC_VER
7656 # include <malloc.h>
7657 # define alloca _alloca
7658 # else
7659 # if HAVE_ALLOCA_H
7660 # include <alloca.h>
7661 # else
7662 # ifdef _AIX
7663 #pragma alloca
7664 # else
7665 # ifndef alloca /* predefined by HP cc +Olibcalls */
7666 char *alloca ();
7667 # endif
7668 # endif
7669 # endif
7670 # endif
7671 #endif
7672
7673 int
7674 main ()
7675 {
7676 char *p = (char *) alloca (1);
7677 ;
7678 return 0;
7679 }
7680 _ACEOF
7681 rm -f conftest.$ac_objext conftest$ac_exeext
7682 if { (eval echo "$as_me:7682: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>&5
7684 ac_status=$?
7685 echo "$as_me:7685: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try='test -s conftest$ac_exeext'
7688 { (eval echo "$as_me:7688: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:7691: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 ac_cv_func_alloca_works=yes
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7697 ac_cv_func_alloca_works=no
7698 fi
7699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7700 fi
7701 echo "$as_me:7701: result: $ac_cv_func_alloca_works" >&5
7702 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7703
7704 if test $ac_cv_func_alloca_works = yes; then
7705
7706 cat >>confdefs.h <<\EOF
7707 #define HAVE_ALLOCA 1
7708 EOF
7709
7710 else
7711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7712 # that cause trouble. Some versions do not even contain alloca or
7713 # contain a buggy version. If you still want to use their alloca,
7714 # use ar to extract alloca.o from them instead of compiling alloca.c.
7715
7716 ALLOCA=alloca.$ac_objext
7717
7718 cat >>confdefs.h <<\EOF
7719 #define C_ALLOCA 1
7720 EOF
7721
7722 echo "$as_me:7722: checking whether \`alloca.c' needs Cray hooks" >&5
7723 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7724 if test "${ac_cv_os_cray+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line 7728 "configure"
7729 #include "confdefs.h"
7730 #if defined(CRAY) && ! defined(CRAY2)
7731 webecray
7732 #else
7733 wenotbecray
7734 #endif
7735
7736 _ACEOF
7737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7738 egrep "webecray" >/dev/null 2>&1; then
7739 ac_cv_os_cray=yes
7740 else
7741 ac_cv_os_cray=no
7742 fi
7743 rm -f conftest*
7744
7745 fi
7746 echo "$as_me:7746: result: $ac_cv_os_cray" >&5
7747 echo "${ECHO_T}$ac_cv_os_cray" >&6
7748 if test $ac_cv_os_cray = yes; then
7749 for ac_func in _getb67 GETB67 getb67; do
7750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7751 echo "$as_me:7751: checking for $ac_func" >&5
7752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7753 if eval "test \"\${$as_ac_var+set}\" = set"; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756 cat >conftest.$ac_ext <<_ACEOF
7757 #line 7757 "configure"
7758 #include "confdefs.h"
7759 /* System header to define __stub macros and hopefully few prototypes,
7760 which can conflict with char $ac_func (); below. */
7761 #include <assert.h>
7762 /* Override any gcc2 internal prototype to avoid an error. */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char $ac_func ();
7769 char (*f) ();
7770
7771 int
7772 main ()
7773 {
7774 /* The GNU C library defines this for functions which it implements
7775 to always fail with ENOSYS. Some functions are actually named
7776 something starting with __ and the normal name is an alias. */
7777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7778 choke me
7779 #else
7780 f = $ac_func;
7781 #endif
7782
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (eval echo "$as_me:7788: \"$ac_link\"") >&5
7789 (eval $ac_link) 2>&5
7790 ac_status=$?
7791 echo "$as_me:7791: \$? = $ac_status" >&5
7792 (exit $ac_status); } &&
7793 { ac_try='test -s conftest$ac_exeext'
7794 { (eval echo "$as_me:7794: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:7797: \$? = $ac_status" >&5
7798 (exit $ac_status); }; }; then
7799 eval "$as_ac_var=yes"
7800 else
7801 echo "$as_me: failed program was:" >&5
7802 cat conftest.$ac_ext >&5
7803 eval "$as_ac_var=no"
7804 fi
7805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7806 fi
7807 echo "$as_me:7807: result: `eval echo '${'$as_ac_var'}'`" >&5
7808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7809 if test `eval echo '${'$as_ac_var'}'` = yes; then
7810
7811 cat >>confdefs.h <<EOF
7812 #define CRAY_STACKSEG_END $ac_func
7813 EOF
7814
7815 break
7816 fi
7817
7818 done
7819 fi
7820
7821 echo "$as_me:7821: checking stack direction for C alloca" >&5
7822 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7823 if test "${ac_cv_c_stack_direction+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 if test "$cross_compiling" = yes; then
7827 ac_cv_c_stack_direction=0
7828 else
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #line 7830 "configure"
7831 #include "confdefs.h"
7832 int
7833 find_stack_direction ()
7834 {
7835 static char *addr = 0;
7836 auto char dummy;
7837 if (addr == 0)
7838 {
7839 addr = &dummy;
7840 return find_stack_direction ();
7841 }
7842 else
7843 return (&dummy > addr) ? 1 : -1;
7844 }
7845
7846 int
7847 main ()
7848 {
7849 exit (find_stack_direction () < 0);
7850 }
7851 _ACEOF
7852 rm -f conftest$ac_exeext
7853 if { (eval echo "$as_me:7853: \"$ac_link\"") >&5
7854 (eval $ac_link) 2>&5
7855 ac_status=$?
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7858 { (eval echo "$as_me:7858: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:7861: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 ac_cv_c_stack_direction=1
7864 else
7865 echo "$as_me: program exited with status $ac_status" >&5
7866 echo "$as_me: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7868 ac_cv_c_stack_direction=-1
7869 fi
7870 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 fi
7873 echo "$as_me:7873: result: $ac_cv_c_stack_direction" >&5
7874 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7875
7876 cat >>confdefs.h <<EOF
7877 #define STACK_DIRECTION $ac_cv_c_stack_direction
7878 EOF
7879
7880 fi
7881
7882 # fmod, logb, and frexp are found in -lm on most systems.
7883 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
7884
7885 echo "$as_me:7885: checking for sqrt in -lm" >&5
7886 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
7887 if test "${ac_cv_lib_m_sqrt+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-lm $LIBS"
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line 7893 "configure"
7894 #include "confdefs.h"
7895
7896 /* Override any gcc2 internal prototype to avoid an error. */
7897 #ifdef __cplusplus
7898 extern "C"
7899 #endif
7900 /* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7902 char sqrt ();
7903 int
7904 main ()
7905 {
7906 sqrt ();
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 rm -f conftest.$ac_objext conftest$ac_exeext
7912 if { (eval echo "$as_me:7912: \"$ac_link\"") >&5
7913 (eval $ac_link) 2>&5
7914 ac_status=$?
7915 echo "$as_me:7915: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:7918: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:7921: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_lib_m_sqrt=yes
7924 else
7925 echo "$as_me: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7927 ac_cv_lib_m_sqrt=no
7928 fi
7929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7930 LIBS=$ac_check_lib_save_LIBS
7931 fi
7932 echo "$as_me:7932: result: $ac_cv_lib_m_sqrt" >&5
7933 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
7934 if test $ac_cv_lib_m_sqrt = yes; then
7935 cat >>confdefs.h <<EOF
7936 #define HAVE_LIBM 1
7937 EOF
7938
7939 LIBS="-lm $LIBS"
7940
7941 fi
7942
7943 # Check for mail-locking functions in a "mail" library
7944
7945 echo "$as_me:7945: checking for maillock in -lmail" >&5
7946 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
7947 if test "${ac_cv_lib_mail_maillock+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950 ac_check_lib_save_LIBS=$LIBS
7951 LIBS="-lmail $LIBS"
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line 7953 "configure"
7954 #include "confdefs.h"
7955
7956 /* Override any gcc2 internal prototype to avoid an error. */
7957 #ifdef __cplusplus
7958 extern "C"
7959 #endif
7960 /* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7962 char maillock ();
7963 int
7964 main ()
7965 {
7966 maillock ();
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:7972: \"$ac_link\"") >&5
7973 (eval $ac_link) 2>&5
7974 ac_status=$?
7975 echo "$as_me:7975: \$? = $ac_status" >&5
7976 (exit $ac_status); } &&
7977 { ac_try='test -s conftest$ac_exeext'
7978 { (eval echo "$as_me:7978: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:7981: \$? = $ac_status" >&5
7982 (exit $ac_status); }; }; then
7983 ac_cv_lib_mail_maillock=yes
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7987 ac_cv_lib_mail_maillock=no
7988 fi
7989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7990 LIBS=$ac_check_lib_save_LIBS
7991 fi
7992 echo "$as_me:7992: result: $ac_cv_lib_mail_maillock" >&5
7993 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
7994 if test $ac_cv_lib_mail_maillock = yes; then
7995 cat >>confdefs.h <<EOF
7996 #define HAVE_LIBMAIL 1
7997 EOF
7998
7999 LIBS="-lmail $LIBS"
8000
8001 fi
8002
8003 echo "$as_me:8003: checking for maillock in -llockfile" >&5
8004 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8005 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 ac_check_lib_save_LIBS=$LIBS
8009 LIBS="-llockfile $LIBS"
8010 cat >conftest.$ac_ext <<_ACEOF
8011 #line 8011 "configure"
8012 #include "confdefs.h"
8013
8014 /* Override any gcc2 internal prototype to avoid an error. */
8015 #ifdef __cplusplus
8016 extern "C"
8017 #endif
8018 /* We use char because int might match the return type of a gcc2
8019 builtin and then its argument prototype would still apply. */
8020 char maillock ();
8021 int
8022 main ()
8023 {
8024 maillock ();
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (eval echo "$as_me:8030: \"$ac_link\"") >&5
8031 (eval $ac_link) 2>&5
8032 ac_status=$?
8033 echo "$as_me:8033: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -s conftest$ac_exeext'
8036 { (eval echo "$as_me:8036: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:8039: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_lib_lockfile_maillock=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8045 ac_cv_lib_lockfile_maillock=no
8046 fi
8047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8048 LIBS=$ac_check_lib_save_LIBS
8049 fi
8050 echo "$as_me:8050: result: $ac_cv_lib_lockfile_maillock" >&5
8051 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8052 if test $ac_cv_lib_lockfile_maillock = yes; then
8053 cat >>confdefs.h <<EOF
8054 #define HAVE_LIBLOCKFILE 1
8055 EOF
8056
8057 LIBS="-llockfile $LIBS"
8058
8059 fi
8060
8061 # If we have the shared liblockfile, assume we must use it for mail
8062 # locking (e.g. Debian). If we couldn't link against liblockfile
8063 # (no liblockfile.a installed), ensure that we don't need to.
8064 if test "$ac_cv_lib_lockfile_maillock" = no; then
8065 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8066 set dummy liblockfile.so; ac_word=$2
8067 echo "$as_me:8067: checking for $ac_word" >&5
8068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8069 if test "${ac_cv_prog_liblockfile+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 if test -n "$liblockfile"; then
8073 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8074 else
8075 ac_save_IFS=$IFS; IFS=$ac_path_separator
8076 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8077 for ac_dir in $ac_dummy; do
8078 IFS=$ac_save_IFS
8079 test -z "$ac_dir" && ac_dir=.
8080 $as_executable_p "$ac_dir/$ac_word" || continue
8081 ac_cv_prog_liblockfile="yes"
8082 echo "$as_me:8082: found $ac_dir/$ac_word" >&5
8083 break
8084 done
8085
8086 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8087 fi
8088 fi
8089 liblockfile=$ac_cv_prog_liblockfile
8090 if test -n "$liblockfile"; then
8091 echo "$as_me:8091: result: $liblockfile" >&5
8092 echo "${ECHO_T}$liblockfile" >&6
8093 else
8094 echo "$as_me:8094: result: no" >&5
8095 echo "${ECHO_T}no" >&6
8096 fi
8097
8098 if test $ac_cv_prog_liblockfile = yes; then
8099 { { echo "$as_me:8099: error: Shared liblockfile found but can't link against it.
8100 This probably means that movemail could lose mail.
8101 There may be a \`development' package to install containing liblockfile." >&5
8102 echo "$as_me: error: Shared liblockfile found but can't link against it.
8103 This probably means that movemail could lose mail.
8104 There may be a \`development' package to install containing liblockfile." >&2;}
8105 { (exit 1); exit 1; }; }
8106 else cat >>confdefs.h <<\EOF
8107 #define LIBMAIL -llockfile
8108 EOF
8109
8110 fi
8111 else :
8112 fi
8113
8114 for ac_func in touchlock
8115 do
8116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8117 echo "$as_me:8117: checking for $ac_func" >&5
8118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8119 if eval "test \"\${$as_ac_var+set}\" = set"; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line 8123 "configure"
8124 #include "confdefs.h"
8125 /* System header to define __stub macros and hopefully few prototypes,
8126 which can conflict with char $ac_func (); below. */
8127 #include <assert.h>
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 #ifdef __cplusplus
8130 extern "C"
8131 #endif
8132 /* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8134 char $ac_func ();
8135 char (*f) ();
8136
8137 int
8138 main ()
8139 {
8140 /* The GNU C library defines this for functions which it implements
8141 to always fail with ENOSYS. Some functions are actually named
8142 something starting with __ and the normal name is an alias. */
8143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8144 choke me
8145 #else
8146 f = $ac_func;
8147 #endif
8148
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:8154: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>&5
8156 ac_status=$?
8157 echo "$as_me:8157: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:8160: \"$ac_try\"") >&5
8161 (eval $ac_try) 2>&5
8162 ac_status=$?
8163 echo "$as_me:8163: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 eval "$as_ac_var=yes"
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8169 eval "$as_ac_var=no"
8170 fi
8171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8172 fi
8173 echo "$as_me:8173: result: `eval echo '${'$as_ac_var'}'`" >&5
8174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8175 if test `eval echo '${'$as_ac_var'}'` = yes; then
8176 cat >>confdefs.h <<EOF
8177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8178 EOF
8179
8180 fi
8181 done
8182
8183 for ac_header in maillock.h
8184 do
8185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8186 echo "$as_me:8186: checking for $ac_header" >&5
8187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191 cat >conftest.$ac_ext <<_ACEOF
8192 #line 8192 "configure"
8193 #include "confdefs.h"
8194 #include <$ac_header>
8195 _ACEOF
8196 if { (eval echo "$as_me:8196: \"$ac_cpp conftest.$ac_ext\"") >&5
8197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8198 ac_status=$?
8199 egrep -v '^ *\+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:8202: \$? = $ac_status" >&5
8203 (exit $ac_status); } >/dev/null; then
8204 if test -s conftest.err; then
8205 ac_cpp_err=$ac_c_preproc_warn_flag
8206 else
8207 ac_cpp_err=
8208 fi
8209 else
8210 ac_cpp_err=yes
8211 fi
8212 if test -z "$ac_cpp_err"; then
8213 eval "$as_ac_Header=yes"
8214 else
8215 echo "$as_me: failed program was:" >&5
8216 cat conftest.$ac_ext >&5
8217 eval "$as_ac_Header=no"
8218 fi
8219 rm -f conftest.err conftest.$ac_ext
8220 fi
8221 echo "$as_me:8221: result: `eval echo '${'$as_ac_Header'}'`" >&5
8222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8224 cat >>confdefs.h <<EOF
8225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8226 EOF
8227
8228 fi
8229 done
8230
8231 for ac_func in gethostname getdomainname dup2 \
8232 rename closedir mkdir rmdir sysinfo \
8233 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8234 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8235 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8236 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
8237 gai_strerror mkstemp
8238 do
8239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8240 echo "$as_me:8240: checking for $ac_func" >&5
8241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8242 if eval "test \"\${$as_ac_var+set}\" = set"; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 #line 8246 "configure"
8247 #include "confdefs.h"
8248 /* System header to define __stub macros and hopefully few prototypes,
8249 which can conflict with char $ac_func (); below. */
8250 #include <assert.h>
8251 /* Override any gcc2 internal prototype to avoid an error. */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257 char $ac_func ();
8258 char (*f) ();
8259
8260 int
8261 main ()
8262 {
8263 /* The GNU C library defines this for functions which it implements
8264 to always fail with ENOSYS. Some functions are actually named
8265 something starting with __ and the normal name is an alias. */
8266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8267 choke me
8268 #else
8269 f = $ac_func;
8270 #endif
8271
8272 ;
8273 return 0;
8274 }
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (eval echo "$as_me:8277: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>&5
8279 ac_status=$?
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:8283: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:8286: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 eval "$as_ac_var=yes"
8289 else
8290 echo "$as_me: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8292 eval "$as_ac_var=no"
8293 fi
8294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8295 fi
8296 echo "$as_me:8296: result: `eval echo '${'$as_ac_var'}'`" >&5
8297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8298 if test `eval echo '${'$as_ac_var'}'` = yes; then
8299 cat >>confdefs.h <<EOF
8300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301 EOF
8302
8303 fi
8304 done
8305
8306 for ac_header in sys/time.h unistd.h
8307 do
8308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8309 echo "$as_me:8309: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line 8315 "configure"
8316 #include "confdefs.h"
8317 #include <$ac_header>
8318 _ACEOF
8319 if { (eval echo "$as_me:8319: \"$ac_cpp conftest.$ac_ext\"") >&5
8320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8321 ac_status=$?
8322 egrep -v '^ *\+' conftest.er1 >conftest.err
8323 rm -f conftest.er1
8324 cat conftest.err >&5
8325 echo "$as_me:8325: \$? = $ac_status" >&5
8326 (exit $ac_status); } >/dev/null; then
8327 if test -s conftest.err; then
8328 ac_cpp_err=$ac_c_preproc_warn_flag
8329 else
8330 ac_cpp_err=
8331 fi
8332 else
8333 ac_cpp_err=yes
8334 fi
8335 if test -z "$ac_cpp_err"; then
8336 eval "$as_ac_Header=yes"
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 eval "$as_ac_Header=no"
8341 fi
8342 rm -f conftest.err conftest.$ac_ext
8343 fi
8344 echo "$as_me:8344: result: `eval echo '${'$as_ac_Header'}'`" >&5
8345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8347 cat >>confdefs.h <<EOF
8348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8349 EOF
8350
8351 fi
8352 done
8353
8354 for ac_func in alarm
8355 do
8356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8357 echo "$as_me:8357: checking for $ac_func" >&5
8358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8359 if eval "test \"\${$as_ac_var+set}\" = set"; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 cat >conftest.$ac_ext <<_ACEOF
8363 #line 8363 "configure"
8364 #include "confdefs.h"
8365 /* System header to define __stub macros and hopefully few prototypes,
8366 which can conflict with char $ac_func (); below. */
8367 #include <assert.h>
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 #ifdef __cplusplus
8370 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char $ac_func ();
8375 char (*f) ();
8376
8377 int
8378 main ()
8379 {
8380 /* The GNU C library defines this for functions which it implements
8381 to always fail with ENOSYS. Some functions are actually named
8382 something starting with __ and the normal name is an alias. */
8383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8384 choke me
8385 #else
8386 f = $ac_func;
8387 #endif
8388
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:8394: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>&5
8396 ac_status=$?
8397 echo "$as_me:8397: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:8400: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:8403: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 eval "$as_ac_var=yes"
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 eval "$as_ac_var=no"
8410 fi
8411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8412 fi
8413 echo "$as_me:8413: result: `eval echo '${'$as_ac_var'}'`" >&5
8414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8415 if test `eval echo '${'$as_ac_var'}'` = yes; then
8416 cat >>confdefs.h <<EOF
8417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8418 EOF
8419
8420 fi
8421 done
8422
8423 echo "$as_me:8423: checking for working mktime" >&5
8424 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8425 if test "${ac_cv_func_working_mktime+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428 if test "$cross_compiling" = yes; then
8429 ac_cv_func_working_mktime=no
8430 else
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line 8432 "configure"
8433 #include "confdefs.h"
8434 /* Test program from Paul Eggert and Tony Leneis. */
8435 #if TIME_WITH_SYS_TIME
8436 # include <sys/time.h>
8437 # include <time.h>
8438 #else
8439 # if HAVE_SYS_TIME_H
8440 # include <sys/time.h>
8441 # else
8442 # include <time.h>
8443 # endif
8444 #endif
8445
8446 #if HAVE_UNISTD_H
8447 # include <unistd.h>
8448 #endif
8449
8450 #if !HAVE_ALARM
8451 # define alarm(X) /* empty */
8452 #endif
8453
8454 /* Work around redefinition to rpl_putenv by other config tests. */
8455 #undef putenv
8456
8457 static time_t time_t_max;
8458
8459 /* Values we'll use to set the TZ environment variable. */
8460 static const char *const tz_strings[] = {
8461 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8462 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8463 };
8464 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8465
8466 /* Fail if mktime fails to convert a date in the spring-forward gap.
8467 Based on a problem report from Andreas Jaeger. */
8468 static void
8469 spring_forward_gap ()
8470 {
8471 /* glibc (up to about 1998-10-07) failed this test. */
8472 struct tm tm;
8473
8474 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8475 instead of "TZ=America/Vancouver" in order to detect the bug even
8476 on systems that don't support the Olson extension, or don't have the
8477 full zoneinfo tables installed. */
8478 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8479
8480 tm.tm_year = 98;
8481 tm.tm_mon = 3;
8482 tm.tm_mday = 5;
8483 tm.tm_hour = 2;
8484 tm.tm_min = 0;
8485 tm.tm_sec = 0;
8486 tm.tm_isdst = -1;
8487 if (mktime (&tm) == (time_t)-1)
8488 exit (1);
8489 }
8490
8491 static void
8492 mktime_test (now)
8493 time_t now;
8494 {
8495 struct tm *lt;
8496 if ((lt = localtime (&now)) && mktime (lt) != now)
8497 exit (1);
8498 now = time_t_max - now;
8499 if ((lt = localtime (&now)) && mktime (lt) != now)
8500 exit (1);
8501 }
8502
8503 static void
8504 irix_6_4_bug ()
8505 {
8506 /* Based on code from Ariel Faigon. */
8507 struct tm tm;
8508 tm.tm_year = 96;
8509 tm.tm_mon = 3;
8510 tm.tm_mday = 0;
8511 tm.tm_hour = 0;
8512 tm.tm_min = 0;
8513 tm.tm_sec = 0;
8514 tm.tm_isdst = -1;
8515 mktime (&tm);
8516 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8517 exit (1);
8518 }
8519
8520 static void
8521 bigtime_test (j)
8522 int j;
8523 {
8524 struct tm tm;
8525 time_t now;
8526 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8527 now = mktime (&tm);
8528 if (now != (time_t) -1)
8529 {
8530 struct tm *lt = localtime (&now);
8531 if (! (lt
8532 && lt->tm_year == tm.tm_year
8533 && lt->tm_mon == tm.tm_mon
8534 && lt->tm_mday == tm.tm_mday
8535 && lt->tm_hour == tm.tm_hour
8536 && lt->tm_min == tm.tm_min
8537 && lt->tm_sec == tm.tm_sec
8538 && lt->tm_yday == tm.tm_yday
8539 && lt->tm_wday == tm.tm_wday
8540 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8541 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8542 exit (1);
8543 }
8544 }
8545
8546 int
8547 main ()
8548 {
8549 time_t t, delta;
8550 int i, j;
8551
8552 /* This test makes some buggy mktime implementations loop.
8553 Give up after 60 seconds; a mktime slower than that
8554 isn't worth using anyway. */
8555 alarm (60);
8556
8557 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8558 continue;
8559 time_t_max--;
8560 delta = time_t_max / 997; /* a suitable prime number */
8561 for (i = 0; i < N_STRINGS; i++)
8562 {
8563 if (tz_strings[i])
8564 putenv (tz_strings[i]);
8565
8566 for (t = 0; t <= time_t_max - delta; t += delta)
8567 mktime_test (t);
8568 mktime_test ((time_t) 60 * 60);
8569 mktime_test ((time_t) 60 * 60 * 24);
8570
8571 for (j = 1; 0 < j; j *= 2)
8572 bigtime_test (j);
8573 bigtime_test (j - 1);
8574 }
8575 irix_6_4_bug ();
8576 spring_forward_gap ();
8577 exit (0);
8578 }
8579 _ACEOF
8580 rm -f conftest$ac_exeext
8581 if { (eval echo "$as_me:8581: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>&5
8583 ac_status=$?
8584 echo "$as_me:8584: \$? = $ac_status" >&5
8585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8586 { (eval echo "$as_me:8586: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:8589: \$? = $ac_status" >&5
8590 (exit $ac_status); }; }; then
8591 ac_cv_func_working_mktime=yes
8592 else
8593 echo "$as_me: program exited with status $ac_status" >&5
8594 echo "$as_me: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8596 ac_cv_func_working_mktime=no
8597 fi
8598 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8599 fi
8600 fi
8601 echo "$as_me:8601: result: $ac_cv_func_working_mktime" >&5
8602 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8603 if test $ac_cv_func_working_mktime = no; then
8604 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8605 fi
8606
8607 if test "$ac_cv_func_working_mktime" = no; then
8608 cat >>confdefs.h <<\EOF
8609 #define BROKEN_MKTIME 1
8610 EOF
8611
8612 fi
8613
8614 ac_have_func=no # yes means we've found a way to get the load average.
8615
8616 ac_save_LIBS=$LIBS
8617
8618 # Check for getloadavg, but be sure not to touch the cache variable.
8619 (echo "$as_me:8619: checking for getloadavg" >&5
8620 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8621 if test "${ac_cv_func_getloadavg+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624 cat >conftest.$ac_ext <<_ACEOF
8625 #line 8625 "configure"
8626 #include "confdefs.h"
8627 /* System header to define __stub macros and hopefully few prototypes,
8628 which can conflict with char getloadavg (); below. */
8629 #include <assert.h>
8630 /* Override any gcc2 internal prototype to avoid an error. */
8631 #ifdef __cplusplus
8632 extern "C"
8633 #endif
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8636 char getloadavg ();
8637 char (*f) ();
8638
8639 int
8640 main ()
8641 {
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8646 choke me
8647 #else
8648 f = getloadavg;
8649 #endif
8650
8651 ;
8652 return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (eval echo "$as_me:8656: \"$ac_link\"") >&5
8657 (eval $ac_link) 2>&5
8658 ac_status=$?
8659 echo "$as_me:8659: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
8661 { ac_try='test -s conftest$ac_exeext'
8662 { (eval echo "$as_me:8662: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:8665: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 ac_cv_func_getloadavg=yes
8668 else
8669 echo "$as_me: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8671 ac_cv_func_getloadavg=no
8672 fi
8673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8674 fi
8675 echo "$as_me:8675: result: $ac_cv_func_getloadavg" >&5
8676 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
8677 if test $ac_cv_func_getloadavg = yes; then
8678 exit 0
8679 else
8680 exit 1
8681 fi
8682 ) && ac_have_func=yes
8683
8684 # On HPUX9, an unprivileged user can get load averages through this function.
8685
8686 for ac_func in pstat_getdynamic
8687 do
8688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8689 echo "$as_me:8689: checking for $ac_func" >&5
8690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8691 if eval "test \"\${$as_ac_var+set}\" = set"; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line 8695 "configure"
8696 #include "confdefs.h"
8697 /* System header to define __stub macros and hopefully few prototypes,
8698 which can conflict with char $ac_func (); below. */
8699 #include <assert.h>
8700 /* Override any gcc2 internal prototype to avoid an error. */
8701 #ifdef __cplusplus
8702 extern "C"
8703 #endif
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8706 char $ac_func ();
8707 char (*f) ();
8708
8709 int
8710 main ()
8711 {
8712 /* The GNU C library defines this for functions which it implements
8713 to always fail with ENOSYS. Some functions are actually named
8714 something starting with __ and the normal name is an alias. */
8715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8716 choke me
8717 #else
8718 f = $ac_func;
8719 #endif
8720
8721 ;
8722 return 0;
8723 }
8724 _ACEOF
8725 rm -f conftest.$ac_objext conftest$ac_exeext
8726 if { (eval echo "$as_me:8726: \"$ac_link\"") >&5
8727 (eval $ac_link) 2>&5
8728 ac_status=$?
8729 echo "$as_me:8729: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:8732: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:8735: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 eval "$as_ac_var=yes"
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 eval "$as_ac_var=no"
8742 fi
8743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8744 fi
8745 echo "$as_me:8745: result: `eval echo '${'$as_ac_var'}'`" >&5
8746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8747 if test `eval echo '${'$as_ac_var'}'` = yes; then
8748 cat >>confdefs.h <<EOF
8749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8750 EOF
8751
8752 fi
8753 done
8754
8755 # Solaris has libkstat which does not require root.
8756
8757 echo "$as_me:8757: checking for kstat_open in -lkstat" >&5
8758 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
8759 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762 ac_check_lib_save_LIBS=$LIBS
8763 LIBS="-lkstat $LIBS"
8764 cat >conftest.$ac_ext <<_ACEOF
8765 #line 8765 "configure"
8766 #include "confdefs.h"
8767
8768 /* Override any gcc2 internal prototype to avoid an error. */
8769 #ifdef __cplusplus
8770 extern "C"
8771 #endif
8772 /* We use char because int might match the return type of a gcc2
8773 builtin and then its argument prototype would still apply. */
8774 char kstat_open ();
8775 int
8776 main ()
8777 {
8778 kstat_open ();
8779 ;
8780 return 0;
8781 }
8782 _ACEOF
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:8784: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>&5
8786 ac_status=$?
8787 echo "$as_me:8787: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (eval echo "$as_me:8790: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:8793: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_lib_kstat_kstat_open=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8799 ac_cv_lib_kstat_kstat_open=no
8800 fi
8801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8803 fi
8804 echo "$as_me:8804: result: $ac_cv_lib_kstat_kstat_open" >&5
8805 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
8806 if test $ac_cv_lib_kstat_kstat_open = yes; then
8807 cat >>confdefs.h <<EOF
8808 #define HAVE_LIBKSTAT 1
8809 EOF
8810
8811 LIBS="-lkstat $LIBS"
8812
8813 fi
8814
8815 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
8816
8817 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8818 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8819 # to get the right answer into the cache.
8820 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
8821 if test $ac_have_func = no; then
8822 echo "$as_me:8822: checking for elf_begin in -lelf" >&5
8823 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
8824 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 ac_check_lib_save_LIBS=$LIBS
8828 LIBS="-lelf $LIBS"
8829 cat >conftest.$ac_ext <<_ACEOF
8830 #line 8830 "configure"
8831 #include "confdefs.h"
8832
8833 /* Override any gcc2 internal prototype to avoid an error. */
8834 #ifdef __cplusplus
8835 extern "C"
8836 #endif
8837 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */
8839 char elf_begin ();
8840 int
8841 main ()
8842 {
8843 elf_begin ();
8844 ;
8845 return 0;
8846 }
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:8849: \"$ac_link\"") >&5
8850 (eval $ac_link) 2>&5
8851 ac_status=$?
8852 echo "$as_me:8852: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:8855: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:8858: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_lib_elf_elf_begin=yes
8861 else
8862 echo "$as_me: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8864 ac_cv_lib_elf_elf_begin=no
8865 fi
8866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8867 LIBS=$ac_check_lib_save_LIBS
8868 fi
8869 echo "$as_me:8869: result: $ac_cv_lib_elf_elf_begin" >&5
8870 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
8871 if test $ac_cv_lib_elf_elf_begin = yes; then
8872 LIBS="-lelf $LIBS"
8873 fi
8874
8875 fi
8876 if test $ac_have_func = no; then
8877 echo "$as_me:8877: checking for kvm_open in -lkvm" >&5
8878 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
8879 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 else
8882 ac_check_lib_save_LIBS=$LIBS
8883 LIBS="-lkvm $LIBS"
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line 8885 "configure"
8886 #include "confdefs.h"
8887
8888 /* Override any gcc2 internal prototype to avoid an error. */
8889 #ifdef __cplusplus
8890 extern "C"
8891 #endif
8892 /* We use char because int might match the return type of a gcc2
8893 builtin and then its argument prototype would still apply. */
8894 char kvm_open ();
8895 int
8896 main ()
8897 {
8898 kvm_open ();
8899 ;
8900 return 0;
8901 }
8902 _ACEOF
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:8904: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>&5
8906 ac_status=$?
8907 echo "$as_me:8907: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:8910: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:8913: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_kvm_kvm_open=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8919 ac_cv_lib_kvm_kvm_open=no
8920 fi
8921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8923 fi
8924 echo "$as_me:8924: result: $ac_cv_lib_kvm_kvm_open" >&5
8925 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
8926 if test $ac_cv_lib_kvm_kvm_open = yes; then
8927 LIBS="-lkvm $LIBS"
8928 fi
8929
8930 # Check for the 4.4BSD definition of getloadavg.
8931 echo "$as_me:8931: checking for getloadavg in -lutil" >&5
8932 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
8933 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 ac_check_lib_save_LIBS=$LIBS
8937 LIBS="-lutil $LIBS"
8938 cat >conftest.$ac_ext <<_ACEOF
8939 #line 8939 "configure"
8940 #include "confdefs.h"
8941
8942 /* Override any gcc2 internal prototype to avoid an error. */
8943 #ifdef __cplusplus
8944 extern "C"
8945 #endif
8946 /* We use char because int might match the return type of a gcc2
8947 builtin and then its argument prototype would still apply. */
8948 char getloadavg ();
8949 int
8950 main ()
8951 {
8952 getloadavg ();
8953 ;
8954 return 0;
8955 }
8956 _ACEOF
8957 rm -f conftest.$ac_objext conftest$ac_exeext
8958 if { (eval echo "$as_me:8958: \"$ac_link\"") >&5
8959 (eval $ac_link) 2>&5
8960 ac_status=$?
8961 echo "$as_me:8961: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:8964: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:8967: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_lib_util_getloadavg=yes
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 ac_cv_lib_util_getloadavg=no
8974 fi
8975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8977 fi
8978 echo "$as_me:8978: result: $ac_cv_lib_util_getloadavg" >&5
8979 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
8980 if test $ac_cv_lib_util_getloadavg = yes; then
8981 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
8982 fi
8983
8984 fi
8985
8986 if test $ac_have_func = no; then
8987 # There is a commonly available library for RS/6000 AIX.
8988 # Since it is not a standard part of AIX, it might be installed locally.
8989 ac_getloadavg_LIBS=$LIBS
8990 LIBS="-L/usr/local/lib $LIBS"
8991 echo "$as_me:8991: checking for getloadavg in -lgetloadavg" >&5
8992 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
8993 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
8994 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 else
8996 ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-lgetloadavg $LIBS"
8998 cat >conftest.$ac_ext <<_ACEOF
8999 #line 8999 "configure"
9000 #include "confdefs.h"
9001
9002 /* Override any gcc2 internal prototype to avoid an error. */
9003 #ifdef __cplusplus
9004 extern "C"
9005 #endif
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9008 char getloadavg ();
9009 int
9010 main ()
9011 {
9012 getloadavg ();
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (eval echo "$as_me:9018: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>&5
9020 ac_status=$?
9021 echo "$as_me:9021: \$? = $ac_status" >&5
9022 (exit $ac_status); } &&
9023 { ac_try='test -s conftest$ac_exeext'
9024 { (eval echo "$as_me:9024: \"$ac_try\"") >&5
9025 (eval $ac_try) 2>&5
9026 ac_status=$?
9027 echo "$as_me:9027: \$? = $ac_status" >&5
9028 (exit $ac_status); }; }; then
9029 ac_cv_lib_getloadavg_getloadavg=yes
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 cat conftest.$ac_ext >&5
9033 ac_cv_lib_getloadavg_getloadavg=no
9034 fi
9035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9036 LIBS=$ac_check_lib_save_LIBS
9037 fi
9038 echo "$as_me:9038: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9039 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9040 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9041 LIBS="-lgetloadavg $LIBS"
9042 else
9043 LIBS=$ac_getloadavg_LIBS
9044 fi
9045
9046 fi
9047
9048 # Make sure it is really in the library, if we think we found it,
9049 # otherwise set up the replacement function.
9050
9051 for ac_func in getloadavg
9052 do
9053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9054 echo "$as_me:9054: checking for $ac_func" >&5
9055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9056 if eval "test \"\${$as_ac_var+set}\" = set"; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059 cat >conftest.$ac_ext <<_ACEOF
9060 #line 9060 "configure"
9061 #include "confdefs.h"
9062 /* System header to define __stub macros and hopefully few prototypes,
9063 which can conflict with char $ac_func (); below. */
9064 #include <assert.h>
9065 /* Override any gcc2 internal prototype to avoid an error. */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 /* We use char because int might match the return type of a gcc2
9070 builtin and then its argument prototype would still apply. */
9071 char $ac_func ();
9072 char (*f) ();
9073
9074 int
9075 main ()
9076 {
9077 /* The GNU C library defines this for functions which it implements
9078 to always fail with ENOSYS. Some functions are actually named
9079 something starting with __ and the normal name is an alias. */
9080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9081 choke me
9082 #else
9083 f = $ac_func;
9084 #endif
9085
9086 ;
9087 return 0;
9088 }
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (eval echo "$as_me:9091: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>&5
9093 ac_status=$?
9094 echo "$as_me:9094: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:9097: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:9100: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 eval "$as_ac_var=yes"
9103 else
9104 echo "$as_me: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9106 eval "$as_ac_var=no"
9107 fi
9108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9109 fi
9110 echo "$as_me:9110: result: `eval echo '${'$as_ac_var'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9112 if test `eval echo '${'$as_ac_var'}'` = yes; then
9113 cat >>confdefs.h <<EOF
9114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9115 EOF
9116
9117 else
9118 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9119
9120 cat >>confdefs.h <<\EOF
9121 #define C_GETLOADAVG 1
9122 EOF
9123
9124 # Figure out what our getloadavg.c needs.
9125 ac_have_func=no
9126 echo "$as_me:9126: checking for sys/dg_sys_info.h" >&5
9127 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9128 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 cat >conftest.$ac_ext <<_ACEOF
9132 #line 9132 "configure"
9133 #include "confdefs.h"
9134 #include <sys/dg_sys_info.h>
9135 _ACEOF
9136 if { (eval echo "$as_me:9136: \"$ac_cpp conftest.$ac_ext\"") >&5
9137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9138 ac_status=$?
9139 egrep -v '^ *\+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:9142: \$? = $ac_status" >&5
9143 (exit $ac_status); } >/dev/null; then
9144 if test -s conftest.err; then
9145 ac_cpp_err=$ac_c_preproc_warn_flag
9146 else
9147 ac_cpp_err=
9148 fi
9149 else
9150 ac_cpp_err=yes
9151 fi
9152 if test -z "$ac_cpp_err"; then
9153 ac_cv_header_sys_dg_sys_info_h=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 ac_cv_header_sys_dg_sys_info_h=no
9158 fi
9159 rm -f conftest.err conftest.$ac_ext
9160 fi
9161 echo "$as_me:9161: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9162 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9163 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9164 ac_have_func=yes
9165
9166 cat >>confdefs.h <<\EOF
9167 #define DGUX 1
9168 EOF
9169
9170 echo "$as_me:9170: checking for dg_sys_info in -ldgc" >&5
9171 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9172 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-ldgc $LIBS"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 #line 9178 "configure"
9179 #include "confdefs.h"
9180
9181 /* Override any gcc2 internal prototype to avoid an error. */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 /* We use char because int might match the return type of a gcc2
9186 builtin and then its argument prototype would still apply. */
9187 char dg_sys_info ();
9188 int
9189 main ()
9190 {
9191 dg_sys_info ();
9192 ;
9193 return 0;
9194 }
9195 _ACEOF
9196 rm -f conftest.$ac_objext conftest$ac_exeext
9197 if { (eval echo "$as_me:9197: \"$ac_link\"") >&5
9198 (eval $ac_link) 2>&5
9199 ac_status=$?
9200 echo "$as_me:9200: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -s conftest$ac_exeext'
9203 { (eval echo "$as_me:9203: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:9206: \$? = $ac_status" >&5
9207 (exit $ac_status); }; }; then
9208 ac_cv_lib_dgc_dg_sys_info=yes
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 ac_cv_lib_dgc_dg_sys_info=no
9213 fi
9214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9215 LIBS=$ac_check_lib_save_LIBS
9216 fi
9217 echo "$as_me:9217: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9218 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9219 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9220 cat >>confdefs.h <<EOF
9221 #define HAVE_LIBDGC 1
9222 EOF
9223
9224 LIBS="-ldgc $LIBS"
9225
9226 fi
9227
9228 fi
9229
9230 echo "$as_me:9230: checking for locale.h" >&5
9231 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9232 if test "${ac_cv_header_locale_h+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 cat >conftest.$ac_ext <<_ACEOF
9236 #line 9236 "configure"
9237 #include "confdefs.h"
9238 #include <locale.h>
9239 _ACEOF
9240 if { (eval echo "$as_me:9240: \"$ac_cpp conftest.$ac_ext\"") >&5
9241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9242 ac_status=$?
9243 egrep -v '^ *\+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:9246: \$? = $ac_status" >&5
9247 (exit $ac_status); } >/dev/null; then
9248 if test -s conftest.err; then
9249 ac_cpp_err=$ac_c_preproc_warn_flag
9250 else
9251 ac_cpp_err=
9252 fi
9253 else
9254 ac_cpp_err=yes
9255 fi
9256 if test -z "$ac_cpp_err"; then
9257 ac_cv_header_locale_h=yes
9258 else
9259 echo "$as_me: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9261 ac_cv_header_locale_h=no
9262 fi
9263 rm -f conftest.err conftest.$ac_ext
9264 fi
9265 echo "$as_me:9265: result: $ac_cv_header_locale_h" >&5
9266 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9267
9268 for ac_func in setlocale
9269 do
9270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9271 echo "$as_me:9271: checking for $ac_func" >&5
9272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9273 if eval "test \"\${$as_ac_var+set}\" = set"; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 cat >conftest.$ac_ext <<_ACEOF
9277 #line 9277 "configure"
9278 #include "confdefs.h"
9279 /* System header to define __stub macros and hopefully few prototypes,
9280 which can conflict with char $ac_func (); below. */
9281 #include <assert.h>
9282 /* Override any gcc2 internal prototype to avoid an error. */
9283 #ifdef __cplusplus
9284 extern "C"
9285 #endif
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9288 char $ac_func ();
9289 char (*f) ();
9290
9291 int
9292 main ()
9293 {
9294 /* The GNU C library defines this for functions which it implements
9295 to always fail with ENOSYS. Some functions are actually named
9296 something starting with __ and the normal name is an alias. */
9297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9298 choke me
9299 #else
9300 f = $ac_func;
9301 #endif
9302
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (eval echo "$as_me:9308: \"$ac_link\"") >&5
9309 (eval $ac_link) 2>&5
9310 ac_status=$?
9311 echo "$as_me:9311: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:9314: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:9317: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 eval "$as_ac_var=yes"
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 cat conftest.$ac_ext >&5
9323 eval "$as_ac_var=no"
9324 fi
9325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9326 fi
9327 echo "$as_me:9327: result: `eval echo '${'$as_ac_var'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9329 if test `eval echo '${'$as_ac_var'}'` = yes; then
9330 cat >>confdefs.h <<EOF
9331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9332 EOF
9333
9334 fi
9335 done
9336
9337 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9338 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9339 # Irix 4.0.5F has the header but not the library.
9340 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9341 ac_have_func=yes
9342
9343 cat >>confdefs.h <<\EOF
9344 #define SVR4 1
9345 EOF
9346
9347 fi
9348
9349 if test $ac_have_func = no; then
9350 echo "$as_me:9350: checking for inq_stats/cpustats.h" >&5
9351 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9352 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355 cat >conftest.$ac_ext <<_ACEOF
9356 #line 9356 "configure"
9357 #include "confdefs.h"
9358 #include <inq_stats/cpustats.h>
9359 _ACEOF
9360 if { (eval echo "$as_me:9360: \"$ac_cpp conftest.$ac_ext\"") >&5
9361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9362 ac_status=$?
9363 egrep -v '^ *\+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:9366: \$? = $ac_status" >&5
9367 (exit $ac_status); } >/dev/null; then
9368 if test -s conftest.err; then
9369 ac_cpp_err=$ac_c_preproc_warn_flag
9370 else
9371 ac_cpp_err=
9372 fi
9373 else
9374 ac_cpp_err=yes
9375 fi
9376 if test -z "$ac_cpp_err"; then
9377 ac_cv_header_inq_stats_cpustats_h=yes
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9381 ac_cv_header_inq_stats_cpustats_h=no
9382 fi
9383 rm -f conftest.err conftest.$ac_ext
9384 fi
9385 echo "$as_me:9385: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9386 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9387 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9388 ac_have_func=yes
9389
9390 cat >>confdefs.h <<\EOF
9391 #define UMAX 1
9392 EOF
9393
9394 cat >>confdefs.h <<\EOF
9395 #define UMAX4_3 1
9396 EOF
9397
9398 fi
9399
9400 fi
9401
9402 if test $ac_have_func = no; then
9403 echo "$as_me:9403: checking for sys/cpustats.h" >&5
9404 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9405 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408 cat >conftest.$ac_ext <<_ACEOF
9409 #line 9409 "configure"
9410 #include "confdefs.h"
9411 #include <sys/cpustats.h>
9412 _ACEOF
9413 if { (eval echo "$as_me:9413: \"$ac_cpp conftest.$ac_ext\"") >&5
9414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9415 ac_status=$?
9416 egrep -v '^ *\+' conftest.er1 >conftest.err
9417 rm -f conftest.er1
9418 cat conftest.err >&5
9419 echo "$as_me:9419: \$? = $ac_status" >&5
9420 (exit $ac_status); } >/dev/null; then
9421 if test -s conftest.err; then
9422 ac_cpp_err=$ac_c_preproc_warn_flag
9423 else
9424 ac_cpp_err=
9425 fi
9426 else
9427 ac_cpp_err=yes
9428 fi
9429 if test -z "$ac_cpp_err"; then
9430 ac_cv_header_sys_cpustats_h=yes
9431 else
9432 echo "$as_me: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9434 ac_cv_header_sys_cpustats_h=no
9435 fi
9436 rm -f conftest.err conftest.$ac_ext
9437 fi
9438 echo "$as_me:9438: result: $ac_cv_header_sys_cpustats_h" >&5
9439 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9440 if test $ac_cv_header_sys_cpustats_h = yes; then
9441 ac_have_func=yes; cat >>confdefs.h <<\EOF
9442 #define UMAX 1
9443 EOF
9444
9445 fi
9446
9447 fi
9448
9449 if test $ac_have_func = no; then
9450
9451 for ac_header in mach/mach.h
9452 do
9453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9454 echo "$as_me:9454: checking for $ac_header" >&5
9455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459 cat >conftest.$ac_ext <<_ACEOF
9460 #line 9460 "configure"
9461 #include "confdefs.h"
9462 #include <$ac_header>
9463 _ACEOF
9464 if { (eval echo "$as_me:9464: \"$ac_cpp conftest.$ac_ext\"") >&5
9465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9466 ac_status=$?
9467 egrep -v '^ *\+' conftest.er1 >conftest.err
9468 rm -f conftest.er1
9469 cat conftest.err >&5
9470 echo "$as_me:9470: \$? = $ac_status" >&5
9471 (exit $ac_status); } >/dev/null; then
9472 if test -s conftest.err; then
9473 ac_cpp_err=$ac_c_preproc_warn_flag
9474 else
9475 ac_cpp_err=
9476 fi
9477 else
9478 ac_cpp_err=yes
9479 fi
9480 if test -z "$ac_cpp_err"; then
9481 eval "$as_ac_Header=yes"
9482 else
9483 echo "$as_me: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 eval "$as_ac_Header=no"
9486 fi
9487 rm -f conftest.err conftest.$ac_ext
9488 fi
9489 echo "$as_me:9489: result: `eval echo '${'$as_ac_Header'}'`" >&5
9490 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9492 cat >>confdefs.h <<EOF
9493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9494 EOF
9495
9496 fi
9497 done
9498
9499 fi
9500
9501 for ac_header in nlist.h
9502 do
9503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 echo "$as_me:9504: checking for $ac_header" >&5
9505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 cat >conftest.$ac_ext <<_ACEOF
9510 #line 9510 "configure"
9511 #include "confdefs.h"
9512 #include <$ac_header>
9513 _ACEOF
9514 if { (eval echo "$as_me:9514: \"$ac_cpp conftest.$ac_ext\"") >&5
9515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9516 ac_status=$?
9517 egrep -v '^ *\+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:9520: \$? = $ac_status" >&5
9521 (exit $ac_status); } >/dev/null; then
9522 if test -s conftest.err; then
9523 ac_cpp_err=$ac_c_preproc_warn_flag
9524 else
9525 ac_cpp_err=
9526 fi
9527 else
9528 ac_cpp_err=yes
9529 fi
9530 if test -z "$ac_cpp_err"; then
9531 eval "$as_ac_Header=yes"
9532 else
9533 echo "$as_me: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 eval "$as_ac_Header=no"
9536 fi
9537 rm -f conftest.err conftest.$ac_ext
9538 fi
9539 echo "$as_me:9539: result: `eval echo '${'$as_ac_Header'}'`" >&5
9540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9542 cat >>confdefs.h <<EOF
9543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9544 EOF
9545 echo "$as_me:9545: checking for struct nlist.n_un.n_name" >&5
9546 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9547 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 else
9550 cat >conftest.$ac_ext <<_ACEOF
9551 #line 9551 "configure"
9552 #include "confdefs.h"
9553 #include <nlist.h>
9554
9555 int
9556 main ()
9557 {
9558 static struct nlist ac_aggr;
9559 if (ac_aggr.n_un.n_name)
9560 return 0;
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext
9566 if { (eval echo "$as_me:9566: \"$ac_compile\"") >&5
9567 (eval $ac_compile) 2>&5
9568 ac_status=$?
9569 echo "$as_me:9569: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:9572: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:9575: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_member_struct_nlist_n_un_n_name=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9581 ac_cv_member_struct_nlist_n_un_n_name=no
9582 fi
9583 rm -f conftest.$ac_objext conftest.$ac_ext
9584 fi
9585 echo "$as_me:9585: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9586 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9587 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9588
9589 cat >>confdefs.h <<EOF
9590 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9591 EOF
9592
9593 cat >>confdefs.h <<\EOF
9594 #define NLIST_NAME_UNION 1
9595 EOF
9596
9597 fi
9598
9599 fi
9600 done
9601
9602 fi
9603 done
9604
9605 # Some definitions of getloadavg require that the program be installed setgid.
9606 echo "$as_me:9606: checking whether getloadavg requires setgid" >&5
9607 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9608 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 #line 9612 "configure"
9613 #include "confdefs.h"
9614 #include "$srcdir/getloadavg.c"
9615 #ifdef LDAV_PRIVILEGED
9616 Yowza Am I SETGID yet
9617 #endif
9618 _ACEOF
9619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9620 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9621 ac_cv_func_getloadavg_setgid=yes
9622 else
9623 ac_cv_func_getloadavg_setgid=no
9624 fi
9625 rm -f conftest*
9626
9627 fi
9628 echo "$as_me:9628: result: $ac_cv_func_getloadavg_setgid" >&5
9629 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9630 if test $ac_cv_func_getloadavg_setgid = yes; then
9631 NEED_SETGID=true
9632
9633 cat >>confdefs.h <<\EOF
9634 #define GETLOADAVG_PRIVILEGED 1
9635 EOF
9636
9637 else
9638 NEED_SETGID=false
9639 fi
9640
9641 if test $ac_cv_func_getloadavg_setgid = yes; then
9642 echo "$as_me:9642: checking group of /dev/kmem" >&5
9643 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9644 if test "${ac_cv_group_kmem+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9648 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9649 # If we got an error (system does not support symlinks), try without -L.
9650 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9651 ac_cv_group_kmem=`echo $ac_ls_output \
9652 | sed -ne 's/[ ][ ]*/ /g;
9653 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9654 / /s/.* //;p;'`
9655
9656 fi
9657 echo "$as_me:9657: result: $ac_cv_group_kmem" >&5
9658 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9659 KMEM_GROUP=$ac_cv_group_kmem
9660 fi
9661 if test "x$ac_save_LIBS" = x; then
9662 GETLOADAVG_LIBS=$LIBS
9663 else
9664 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9665 fi
9666 LIBS=$ac_save_LIBS
9667
9668 echo "$as_me:9668: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9669 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9670 if test "${ac_cv_sys_largefile_source+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 while :; do
9674 ac_cv_sys_largefile_source=no
9675 cat >conftest.$ac_ext <<_ACEOF
9676 #line 9676 "configure"
9677 #include "confdefs.h"
9678 #include <stdio.h>
9679 int
9680 main ()
9681 {
9682 return !fseeko;
9683 ;
9684 return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext
9688 if { (eval echo "$as_me:9688: \"$ac_compile\"") >&5
9689 (eval $ac_compile) 2>&5
9690 ac_status=$?
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try='test -s conftest.$ac_objext'
9694 { (eval echo "$as_me:9694: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:9697: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 break
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 fi
9704 rm -f conftest.$ac_objext conftest.$ac_ext
9705 cat >conftest.$ac_ext <<_ACEOF
9706 #line 9706 "configure"
9707 #include "confdefs.h"
9708 #define _LARGEFILE_SOURCE 1
9709 #include <stdio.h>
9710 int
9711 main ()
9712 {
9713 return !fseeko;
9714 ;
9715 return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:9719: \"$ac_compile\"") >&5
9720 (eval $ac_compile) 2>&5
9721 ac_status=$?
9722 echo "$as_me:9722: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:9725: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:9728: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_sys_largefile_source=1; break
9731 else
9732 echo "$as_me: failed program was:" >&5
9733 cat conftest.$ac_ext >&5
9734 fi
9735 rm -f conftest.$ac_objext conftest.$ac_ext
9736 break
9737 done
9738 fi
9739 echo "$as_me:9739: result: $ac_cv_sys_largefile_source" >&5
9740 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9741 if test "$ac_cv_sys_largefile_source" != no; then
9742
9743 cat >>confdefs.h <<EOF
9744 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9745 EOF
9746
9747 fi
9748 rm -f conftest*
9749
9750 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9751 # in glibc 2.1.3, but that breaks too many other things.
9752 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9753 echo "$as_me:9753: checking for fseeko" >&5
9754 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9755 if test "${ac_cv_func_fseeko+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758 cat >conftest.$ac_ext <<_ACEOF
9759 #line 9759 "configure"
9760 #include "confdefs.h"
9761 #include <stdio.h>
9762 int
9763 main ()
9764 {
9765 return fseeko && fseeko (stdin, 0, 0);
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:9771: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>&5
9773 ac_status=$?
9774 echo "$as_me:9774: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:9777: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:9780: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_func_fseeko=yes
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 ac_cv_func_fseeko=no
9787 fi
9788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9789 fi
9790 echo "$as_me:9790: result: $ac_cv_func_fseeko" >&5
9791 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9792 if test $ac_cv_func_fseeko = yes; then
9793
9794 cat >>confdefs.h <<\EOF
9795 #define HAVE_FSEEKO 1
9796 EOF
9797
9798 fi
9799
9800 # UNIX98 PTYs.
9801
9802 for ac_func in grantpt
9803 do
9804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9805 echo "$as_me:9805: checking for $ac_func" >&5
9806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9807 if eval "test \"\${$as_ac_var+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810 cat >conftest.$ac_ext <<_ACEOF
9811 #line 9811 "configure"
9812 #include "confdefs.h"
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char $ac_func (); below. */
9815 #include <assert.h>
9816 /* Override any gcc2 internal prototype to avoid an error. */
9817 #ifdef __cplusplus
9818 extern "C"
9819 #endif
9820 /* We use char because int might match the return type of a gcc2
9821 builtin and then its argument prototype would still apply. */
9822 char $ac_func ();
9823 char (*f) ();
9824
9825 int
9826 main ()
9827 {
9828 /* The GNU C library defines this for functions which it implements
9829 to always fail with ENOSYS. Some functions are actually named
9830 something starting with __ and the normal name is an alias. */
9831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9832 choke me
9833 #else
9834 f = $ac_func;
9835 #endif
9836
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (eval echo "$as_me:9842: \"$ac_link\"") >&5
9843 (eval $ac_link) 2>&5
9844 ac_status=$?
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:9848: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:9851: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 eval "$as_ac_var=yes"
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 eval "$as_ac_var=no"
9858 fi
9859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9860 fi
9861 echo "$as_me:9861: result: `eval echo '${'$as_ac_var'}'`" >&5
9862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9863 if test `eval echo '${'$as_ac_var'}'` = yes; then
9864 cat >>confdefs.h <<EOF
9865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9866 EOF
9867
9868 fi
9869 done
9870
9871 # PTY-related GNU extensions.
9872
9873 for ac_func in getpt
9874 do
9875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9876 echo "$as_me:9876: checking for $ac_func" >&5
9877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9878 if eval "test \"\${$as_ac_var+set}\" = set"; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line 9882 "configure"
9883 #include "confdefs.h"
9884 /* System header to define __stub macros and hopefully few prototypes,
9885 which can conflict with char $ac_func (); below. */
9886 #include <assert.h>
9887 /* Override any gcc2 internal prototype to avoid an error. */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9893 char $ac_func ();
9894 char (*f) ();
9895
9896 int
9897 main ()
9898 {
9899 /* The GNU C library defines this for functions which it implements
9900 to always fail with ENOSYS. Some functions are actually named
9901 something starting with __ and the normal name is an alias. */
9902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9903 choke me
9904 #else
9905 f = $ac_func;
9906 #endif
9907
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:9913: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9915 ac_status=$?
9916 echo "$as_me:9916: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -s conftest$ac_exeext'
9919 { (eval echo "$as_me:9919: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:9922: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 eval "$as_ac_var=yes"
9925 else
9926 echo "$as_me: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9928 eval "$as_ac_var=no"
9929 fi
9930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9931 fi
9932 echo "$as_me:9932: result: `eval echo '${'$as_ac_var'}'`" >&5
9933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9934 if test `eval echo '${'$as_ac_var'}'` = yes; then
9935 cat >>confdefs.h <<EOF
9936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9937 EOF
9938
9939 fi
9940 done
9941
9942 # Check this now, so that we will NOT find the above functions in ncurses.
9943 # That is because we have not set up to link ncurses in lib-src.
9944 # It's better to believe a function is not available
9945 # than to expect to find it in ncurses.
9946
9947 echo "$as_me:9947: checking for tparm in -lncurses" >&5
9948 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
9949 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952 ac_check_lib_save_LIBS=$LIBS
9953 LIBS="-lncurses $LIBS"
9954 cat >conftest.$ac_ext <<_ACEOF
9955 #line 9955 "configure"
9956 #include "confdefs.h"
9957
9958 /* Override any gcc2 internal prototype to avoid an error. */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 /* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */
9964 char tparm ();
9965 int
9966 main ()
9967 {
9968 tparm ();
9969 ;
9970 return 0;
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:9974: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>&5
9976 ac_status=$?
9977 echo "$as_me:9977: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -s conftest$ac_exeext'
9980 { (eval echo "$as_me:9980: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:9983: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_lib_ncurses_tparm=yes
9986 else
9987 echo "$as_me: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9989 ac_cv_lib_ncurses_tparm=no
9990 fi
9991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9993 fi
9994 echo "$as_me:9994: result: $ac_cv_lib_ncurses_tparm" >&5
9995 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
9996 if test $ac_cv_lib_ncurses_tparm = yes; then
9997 cat >>confdefs.h <<EOF
9998 #define HAVE_LIBNCURSES 1
9999 EOF
10000
10001 LIBS="-lncurses $LIBS"
10002
10003 fi
10004
10005 # Do we need the Hesiod library to provide the support routines?
10006 if test "$with_hesiod" = yes ; then
10007 # Don't set $LIBS here -- see comments above.
10008 resolv=no
10009 echo "$as_me:10009: checking for res_send" >&5
10010 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10011 if test "${ac_cv_func_res_send+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 cat >conftest.$ac_ext <<_ACEOF
10015 #line 10015 "configure"
10016 #include "confdefs.h"
10017 /* System header to define __stub macros and hopefully few prototypes,
10018 which can conflict with char res_send (); below. */
10019 #include <assert.h>
10020 /* Override any gcc2 internal prototype to avoid an error. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 /* We use char because int might match the return type of a gcc2
10025 builtin and then its argument prototype would still apply. */
10026 char res_send ();
10027 char (*f) ();
10028
10029 int
10030 main ()
10031 {
10032 /* The GNU C library defines this for functions which it implements
10033 to always fail with ENOSYS. Some functions are actually named
10034 something starting with __ and the normal name is an alias. */
10035 #if defined (__stub_res_send) || defined (__stub___res_send)
10036 choke me
10037 #else
10038 f = res_send;
10039 #endif
10040
10041 ;
10042 return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (eval echo "$as_me:10046: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10048 ac_status=$?
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (eval echo "$as_me:10052: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:10055: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 ac_cv_func_res_send=yes
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10061 ac_cv_func_res_send=no
10062 fi
10063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10064 fi
10065 echo "$as_me:10065: result: $ac_cv_func_res_send" >&5
10066 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10067 if test $ac_cv_func_res_send = yes; then
10068 :
10069 else
10070 echo "$as_me:10070: checking for __res_send" >&5
10071 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10072 if test "${ac_cv_func___res_send+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075 cat >conftest.$ac_ext <<_ACEOF
10076 #line 10076 "configure"
10077 #include "confdefs.h"
10078 /* System header to define __stub macros and hopefully few prototypes,
10079 which can conflict with char __res_send (); below. */
10080 #include <assert.h>
10081 /* Override any gcc2 internal prototype to avoid an error. */
10082 #ifdef __cplusplus
10083 extern "C"
10084 #endif
10085 /* We use char because int might match the return type of a gcc2
10086 builtin and then its argument prototype would still apply. */
10087 char __res_send ();
10088 char (*f) ();
10089
10090 int
10091 main ()
10092 {
10093 /* The GNU C library defines this for functions which it implements
10094 to always fail with ENOSYS. Some functions are actually named
10095 something starting with __ and the normal name is an alias. */
10096 #if defined (__stub___res_send) || defined (__stub_____res_send)
10097 choke me
10098 #else
10099 f = __res_send;
10100 #endif
10101
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (eval echo "$as_me:10107: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>&5
10109 ac_status=$?
10110 echo "$as_me:10110: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -s conftest$ac_exeext'
10113 { (eval echo "$as_me:10113: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:10116: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
10118 ac_cv_func___res_send=yes
10119 else
10120 echo "$as_me: failed program was:" >&5
10121 cat conftest.$ac_ext >&5
10122 ac_cv_func___res_send=no
10123 fi
10124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10125 fi
10126 echo "$as_me:10126: result: $ac_cv_func___res_send" >&5
10127 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10128 if test $ac_cv_func___res_send = yes; then
10129 :
10130 else
10131 echo "$as_me:10131: checking for res_send in -lresolv" >&5
10132 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10133 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136 ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-lresolv $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 #line 10139 "configure"
10140 #include "confdefs.h"
10141
10142 /* Override any gcc2 internal prototype to avoid an error. */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 /* We use char because int might match the return type of a gcc2
10147 builtin and then its argument prototype would still apply. */
10148 char res_send ();
10149 int
10150 main ()
10151 {
10152 res_send ();
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (eval echo "$as_me:10158: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>&5
10160 ac_status=$?
10161 echo "$as_me:10161: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -s conftest$ac_exeext'
10164 { (eval echo "$as_me:10164: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10166 ac_status=$?
10167 echo "$as_me:10167: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_lib_resolv_res_send=yes
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 cat conftest.$ac_ext >&5
10173 ac_cv_lib_resolv_res_send=no
10174 fi
10175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10177 fi
10178 echo "$as_me:10178: result: $ac_cv_lib_resolv_res_send" >&5
10179 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10180 if test $ac_cv_lib_resolv_res_send = yes; then
10181 resolv=yes
10182 else
10183 echo "$as_me:10183: checking for __res_send in -lresolv" >&5
10184 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10185 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 ac_check_lib_save_LIBS=$LIBS
10189 LIBS="-lresolv $LIBS"
10190 cat >conftest.$ac_ext <<_ACEOF
10191 #line 10191 "configure"
10192 #include "confdefs.h"
10193
10194 /* Override any gcc2 internal prototype to avoid an error. */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10200 char __res_send ();
10201 int
10202 main ()
10203 {
10204 __res_send ();
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:10210: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>&5
10212 ac_status=$?
10213 echo "$as_me:10213: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:10216: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:10219: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_lib_resolv___res_send=yes
10222 else
10223 echo "$as_me: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10225 ac_cv_lib_resolv___res_send=no
10226 fi
10227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10229 fi
10230 echo "$as_me:10230: result: $ac_cv_lib_resolv___res_send" >&5
10231 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10232 if test $ac_cv_lib_resolv___res_send = yes; then
10233 resolv=yes
10234 fi
10235
10236 fi
10237
10238 fi
10239
10240 fi
10241
10242 if test "$resolv" = yes ; then
10243 RESOLVLIB=-lresolv
10244 cat >>confdefs.h <<\EOF
10245 #define HAVE_LIBRESOLV 1
10246 EOF
10247
10248 else
10249 RESOLVLIB=
10250 fi
10251 echo "$as_me:10251: checking for hes_getmailhost" >&5
10252 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10253 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line 10257 "configure"
10258 #include "confdefs.h"
10259 /* System header to define __stub macros and hopefully few prototypes,
10260 which can conflict with char hes_getmailhost (); below. */
10261 #include <assert.h>
10262 /* Override any gcc2 internal prototype to avoid an error. */
10263 #ifdef __cplusplus
10264 extern "C"
10265 #endif
10266 /* We use char because int might match the return type of a gcc2
10267 builtin and then its argument prototype would still apply. */
10268 char hes_getmailhost ();
10269 char (*f) ();
10270
10271 int
10272 main ()
10273 {
10274 /* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10278 choke me
10279 #else
10280 f = hes_getmailhost;
10281 #endif
10282
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (eval echo "$as_me:10288: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>&5
10290 ac_status=$?
10291 echo "$as_me:10291: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (eval echo "$as_me:10294: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:10297: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_func_hes_getmailhost=yes
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10303 ac_cv_func_hes_getmailhost=no
10304 fi
10305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10306 fi
10307 echo "$as_me:10307: result: $ac_cv_func_hes_getmailhost" >&5
10308 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10309 if test $ac_cv_func_hes_getmailhost = yes; then
10310 :
10311 else
10312 echo "$as_me:10312: checking for hes_getmailhost in -lhesiod" >&5
10313 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10314 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317 ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-lhesiod $RESOLVLIB $LIBS"
10319 cat >conftest.$ac_ext <<_ACEOF
10320 #line 10320 "configure"
10321 #include "confdefs.h"
10322
10323 /* Override any gcc2 internal prototype to avoid an error. */
10324 #ifdef __cplusplus
10325 extern "C"
10326 #endif
10327 /* We use char because int might match the return type of a gcc2
10328 builtin and then its argument prototype would still apply. */
10329 char hes_getmailhost ();
10330 int
10331 main ()
10332 {
10333 hes_getmailhost ();
10334 ;
10335 return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (eval echo "$as_me:10339: \"$ac_link\"") >&5
10340 (eval $ac_link) 2>&5
10341 ac_status=$?
10342 echo "$as_me:10342: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -s conftest$ac_exeext'
10345 { (eval echo "$as_me:10345: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echo "$as_me:10348: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 ac_cv_lib_hesiod_hes_getmailhost=yes
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10354 ac_cv_lib_hesiod_hes_getmailhost=no
10355 fi
10356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10358 fi
10359 echo "$as_me:10359: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10360 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10361 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10362 cat >>confdefs.h <<\EOF
10363 #define HAVE_LIBHESIOD 1
10364 EOF
10365
10366 else
10367 :
10368 fi
10369
10370 fi
10371
10372 fi
10373
10374 # These tell us which Kerberos-related libraries to use.
10375 if test "${with_kerberos+set}" = set; then
10376
10377 echo "$as_me:10377: checking for com_err in -lcom_err" >&5
10378 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10379 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382 ac_check_lib_save_LIBS=$LIBS
10383 LIBS="-lcom_err $LIBS"
10384 cat >conftest.$ac_ext <<_ACEOF
10385 #line 10385 "configure"
10386 #include "confdefs.h"
10387
10388 /* Override any gcc2 internal prototype to avoid an error. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 /* We use char because int might match the return type of a gcc2
10393 builtin and then its argument prototype would still apply. */
10394 char com_err ();
10395 int
10396 main ()
10397 {
10398 com_err ();
10399 ;
10400 return 0;
10401 }
10402 _ACEOF
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (eval echo "$as_me:10404: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>&5
10406 ac_status=$?
10407 echo "$as_me:10407: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (eval echo "$as_me:10410: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10412 ac_status=$?
10413 echo "$as_me:10413: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 ac_cv_lib_com_err_com_err=yes
10416 else
10417 echo "$as_me: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 ac_cv_lib_com_err_com_err=no
10420 fi
10421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10422 LIBS=$ac_check_lib_save_LIBS
10423 fi
10424 echo "$as_me:10424: result: $ac_cv_lib_com_err_com_err" >&5
10425 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10426 if test $ac_cv_lib_com_err_com_err = yes; then
10427 cat >>confdefs.h <<EOF
10428 #define HAVE_LIBCOM_ERR 1
10429 EOF
10430
10431 LIBS="-lcom_err $LIBS"
10432
10433 fi
10434
10435 echo "$as_me:10435: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10436 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10437 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lk5crypto $LIBS"
10442 cat >conftest.$ac_ext <<_ACEOF
10443 #line 10443 "configure"
10444 #include "confdefs.h"
10445
10446 /* Override any gcc2 internal prototype to avoid an error. */
10447 #ifdef __cplusplus
10448 extern "C"
10449 #endif
10450 /* We use char because int might match the return type of a gcc2
10451 builtin and then its argument prototype would still apply. */
10452 char mit_des_cbc_encrypt ();
10453 int
10454 main ()
10455 {
10456 mit_des_cbc_encrypt ();
10457 ;
10458 return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext conftest$ac_exeext
10462 if { (eval echo "$as_me:10462: \"$ac_link\"") >&5
10463 (eval $ac_link) 2>&5
10464 ac_status=$?
10465 echo "$as_me:10465: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -s conftest$ac_exeext'
10468 { (eval echo "$as_me:10468: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:10471: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10478 fi
10479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10481 fi
10482 echo "$as_me:10482: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10483 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10484 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10485 cat >>confdefs.h <<EOF
10486 #define HAVE_LIBK5CRYPTO 1
10487 EOF
10488
10489 LIBS="-lk5crypto $LIBS"
10490
10491 fi
10492
10493 echo "$as_me:10493: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10494 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10495 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498 ac_check_lib_save_LIBS=$LIBS
10499 LIBS="-lcrypto $LIBS"
10500 cat >conftest.$ac_ext <<_ACEOF
10501 #line 10501 "configure"
10502 #include "confdefs.h"
10503
10504 /* Override any gcc2 internal prototype to avoid an error. */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 /* We use char because int might match the return type of a gcc2
10509 builtin and then its argument prototype would still apply. */
10510 char mit_des_cbc_encrypt ();
10511 int
10512 main ()
10513 {
10514 mit_des_cbc_encrypt ();
10515 ;
10516 return 0;
10517 }
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:10520: \"$ac_link\"") >&5
10521 (eval $ac_link) 2>&5
10522 ac_status=$?
10523 echo "$as_me:10523: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -s conftest$ac_exeext'
10526 { (eval echo "$as_me:10526: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10528 ac_status=$?
10529 echo "$as_me:10529: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10532 else
10533 echo "$as_me: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10535 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10536 fi
10537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10538 LIBS=$ac_check_lib_save_LIBS
10539 fi
10540 echo "$as_me:10540: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10541 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10542 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10543 cat >>confdefs.h <<EOF
10544 #define HAVE_LIBCRYPTO 1
10545 EOF
10546
10547 LIBS="-lcrypto $LIBS"
10548
10549 fi
10550
10551 echo "$as_me:10551: checking for krb5_init_context in -lkrb5" >&5
10552 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10553 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 ac_check_lib_save_LIBS=$LIBS
10557 LIBS="-lkrb5 $LIBS"
10558 cat >conftest.$ac_ext <<_ACEOF
10559 #line 10559 "configure"
10560 #include "confdefs.h"
10561
10562 /* Override any gcc2 internal prototype to avoid an error. */
10563 #ifdef __cplusplus
10564 extern "C"
10565 #endif
10566 /* We use char because int might match the return type of a gcc2
10567 builtin and then its argument prototype would still apply. */
10568 char krb5_init_context ();
10569 int
10570 main ()
10571 {
10572 krb5_init_context ();
10573 ;
10574 return 0;
10575 }
10576 _ACEOF
10577 rm -f conftest.$ac_objext conftest$ac_exeext
10578 if { (eval echo "$as_me:10578: \"$ac_link\"") >&5
10579 (eval $ac_link) 2>&5
10580 ac_status=$?
10581 echo "$as_me:10581: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (eval echo "$as_me:10584: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:10587: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_lib_krb5_krb5_init_context=yes
10590 else
10591 echo "$as_me: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10593 ac_cv_lib_krb5_krb5_init_context=no
10594 fi
10595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10596 LIBS=$ac_check_lib_save_LIBS
10597 fi
10598 echo "$as_me:10598: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10599 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10600 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10601 cat >>confdefs.h <<EOF
10602 #define HAVE_LIBKRB5 1
10603 EOF
10604
10605 LIBS="-lkrb5 $LIBS"
10606
10607 fi
10608
10609 if test "${with_kerberos5+set}" != set; then
10610
10611 echo "$as_me:10611: checking for des_cbc_encrypt in -ldes425" >&5
10612 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10613 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616 ac_check_lib_save_LIBS=$LIBS
10617 LIBS="-ldes425 $LIBS"
10618 cat >conftest.$ac_ext <<_ACEOF
10619 #line 10619 "configure"
10620 #include "confdefs.h"
10621
10622 /* Override any gcc2 internal prototype to avoid an error. */
10623 #ifdef __cplusplus
10624 extern "C"
10625 #endif
10626 /* We use char because int might match the return type of a gcc2
10627 builtin and then its argument prototype would still apply. */
10628 char des_cbc_encrypt ();
10629 int
10630 main ()
10631 {
10632 des_cbc_encrypt ();
10633 ;
10634 return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (eval echo "$as_me:10638: \"$ac_link\"") >&5
10639 (eval $ac_link) 2>&5
10640 ac_status=$?
10641 echo "$as_me:10641: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -s conftest$ac_exeext'
10644 { (eval echo "$as_me:10644: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:10647: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 ac_cv_lib_des425_des_cbc_encrypt=yes
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 cat conftest.$ac_ext >&5
10653 ac_cv_lib_des425_des_cbc_encrypt=no
10654 fi
10655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10657 fi
10658 echo "$as_me:10658: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10659 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10660 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10661 cat >>confdefs.h <<EOF
10662 #define HAVE_LIBDES425 1
10663 EOF
10664
10665 LIBS="-ldes425 $LIBS"
10666
10667 else
10668
10669 echo "$as_me:10669: checking for des_cbc_encrypt in -ldes" >&5
10670 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10671 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674 ac_check_lib_save_LIBS=$LIBS
10675 LIBS="-ldes $LIBS"
10676 cat >conftest.$ac_ext <<_ACEOF
10677 #line 10677 "configure"
10678 #include "confdefs.h"
10679
10680 /* Override any gcc2 internal prototype to avoid an error. */
10681 #ifdef __cplusplus
10682 extern "C"
10683 #endif
10684 /* We use char because int might match the return type of a gcc2
10685 builtin and then its argument prototype would still apply. */
10686 char des_cbc_encrypt ();
10687 int
10688 main ()
10689 {
10690 des_cbc_encrypt ();
10691 ;
10692 return 0;
10693 }
10694 _ACEOF
10695 rm -f conftest.$ac_objext conftest$ac_exeext
10696 if { (eval echo "$as_me:10696: \"$ac_link\"") >&5
10697 (eval $ac_link) 2>&5
10698 ac_status=$?
10699 echo "$as_me:10699: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -s conftest$ac_exeext'
10702 { (eval echo "$as_me:10702: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10704 ac_status=$?
10705 echo "$as_me:10705: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 ac_cv_lib_des_des_cbc_encrypt=yes
10708 else
10709 echo "$as_me: failed program was:" >&5
10710 cat conftest.$ac_ext >&5
10711 ac_cv_lib_des_des_cbc_encrypt=no
10712 fi
10713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10714 LIBS=$ac_check_lib_save_LIBS
10715 fi
10716 echo "$as_me:10716: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
10717 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
10718 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
10719 cat >>confdefs.h <<EOF
10720 #define HAVE_LIBDES 1
10721 EOF
10722
10723 LIBS="-ldes $LIBS"
10724
10725 fi
10726
10727 fi
10728
10729 echo "$as_me:10729: checking for krb_get_cred in -lkrb4" >&5
10730 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
10731 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-lkrb4 $LIBS"
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line 10737 "configure"
10738 #include "confdefs.h"
10739
10740 /* Override any gcc2 internal prototype to avoid an error. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 /* We use char because int might match the return type of a gcc2
10745 builtin and then its argument prototype would still apply. */
10746 char krb_get_cred ();
10747 int
10748 main ()
10749 {
10750 krb_get_cred ();
10751 ;
10752 return 0;
10753 }
10754 _ACEOF
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (eval echo "$as_me:10756: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>&5
10758 ac_status=$?
10759 echo "$as_me:10759: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -s conftest$ac_exeext'
10762 { (eval echo "$as_me:10762: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:10765: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_lib_krb4_krb_get_cred=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 ac_cv_lib_krb4_krb_get_cred=no
10772 fi
10773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10774 LIBS=$ac_check_lib_save_LIBS
10775 fi
10776 echo "$as_me:10776: result: $ac_cv_lib_krb4_krb_get_cred" >&5
10777 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
10778 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
10779 cat >>confdefs.h <<EOF
10780 #define HAVE_LIBKRB4 1
10781 EOF
10782
10783 LIBS="-lkrb4 $LIBS"
10784
10785 else
10786
10787 echo "$as_me:10787: checking for krb_get_cred in -lkrb" >&5
10788 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
10789 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 ac_check_lib_save_LIBS=$LIBS
10793 LIBS="-lkrb $LIBS"
10794 cat >conftest.$ac_ext <<_ACEOF
10795 #line 10795 "configure"
10796 #include "confdefs.h"
10797
10798 /* Override any gcc2 internal prototype to avoid an error. */
10799 #ifdef __cplusplus
10800 extern "C"
10801 #endif
10802 /* We use char because int might match the return type of a gcc2
10803 builtin and then its argument prototype would still apply. */
10804 char krb_get_cred ();
10805 int
10806 main ()
10807 {
10808 krb_get_cred ();
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (eval echo "$as_me:10814: \"$ac_link\"") >&5
10815 (eval $ac_link) 2>&5
10816 ac_status=$?
10817 echo "$as_me:10817: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:10820: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:10823: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_cv_lib_krb_krb_get_cred=yes
10826 else
10827 echo "$as_me: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 ac_cv_lib_krb_krb_get_cred=no
10830 fi
10831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10832 LIBS=$ac_check_lib_save_LIBS
10833 fi
10834 echo "$as_me:10834: result: $ac_cv_lib_krb_krb_get_cred" >&5
10835 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
10836 if test $ac_cv_lib_krb_krb_get_cred = yes; then
10837 cat >>confdefs.h <<EOF
10838 #define HAVE_LIBKRB 1
10839 EOF
10840
10841 LIBS="-lkrb $LIBS"
10842
10843 fi
10844
10845 fi
10846
10847 fi
10848
10849 if test "${with_kerberos5+set}" = set; then
10850
10851 for ac_header in krb5.h
10852 do
10853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10854 echo "$as_me:10854: checking for $ac_header" >&5
10855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859 cat >conftest.$ac_ext <<_ACEOF
10860 #line 10860 "configure"
10861 #include "confdefs.h"
10862 #include <$ac_header>
10863 _ACEOF
10864 if { (eval echo "$as_me:10864: \"$ac_cpp conftest.$ac_ext\"") >&5
10865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10866 ac_status=$?
10867 egrep -v '^ *\+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:10870: \$? = $ac_status" >&5
10871 (exit $ac_status); } >/dev/null; then
10872 if test -s conftest.err; then
10873 ac_cpp_err=$ac_c_preproc_warn_flag
10874 else
10875 ac_cpp_err=
10876 fi
10877 else
10878 ac_cpp_err=yes
10879 fi
10880 if test -z "$ac_cpp_err"; then
10881 eval "$as_ac_Header=yes"
10882 else
10883 echo "$as_me: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10885 eval "$as_ac_Header=no"
10886 fi
10887 rm -f conftest.err conftest.$ac_ext
10888 fi
10889 echo "$as_me:10889: result: `eval echo '${'$as_ac_Header'}'`" >&5
10890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892 cat >>confdefs.h <<EOF
10893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10894 EOF
10895
10896 fi
10897 done
10898
10899 else
10900
10901 for ac_header in des.h
10902 do
10903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10904 echo "$as_me:10904: checking for $ac_header" >&5
10905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 cat >conftest.$ac_ext <<_ACEOF
10910 #line 10910 "configure"
10911 #include "confdefs.h"
10912 #include <$ac_header>
10913 _ACEOF
10914 if { (eval echo "$as_me:10914: \"$ac_cpp conftest.$ac_ext\"") >&5
10915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10916 ac_status=$?
10917 egrep -v '^ *\+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:10920: \$? = $ac_status" >&5
10921 (exit $ac_status); } >/dev/null; then
10922 if test -s conftest.err; then
10923 ac_cpp_err=$ac_c_preproc_warn_flag
10924 else
10925 ac_cpp_err=
10926 fi
10927 else
10928 ac_cpp_err=yes
10929 fi
10930 if test -z "$ac_cpp_err"; then
10931 eval "$as_ac_Header=yes"
10932 else
10933 echo "$as_me: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10935 eval "$as_ac_Header=no"
10936 fi
10937 rm -f conftest.err conftest.$ac_ext
10938 fi
10939 echo "$as_me:10939: result: `eval echo '${'$as_ac_Header'}'`" >&5
10940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10942 cat >>confdefs.h <<EOF
10943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10944 EOF
10945
10946 else
10947
10948 for ac_header in kerberosIV/des.h
10949 do
10950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10951 echo "$as_me:10951: checking for $ac_header" >&5
10952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956 cat >conftest.$ac_ext <<_ACEOF
10957 #line 10957 "configure"
10958 #include "confdefs.h"
10959 #include <$ac_header>
10960 _ACEOF
10961 if { (eval echo "$as_me:10961: \"$ac_cpp conftest.$ac_ext\"") >&5
10962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10963 ac_status=$?
10964 egrep -v '^ *\+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:10967: \$? = $ac_status" >&5
10968 (exit $ac_status); } >/dev/null; then
10969 if test -s conftest.err; then
10970 ac_cpp_err=$ac_c_preproc_warn_flag
10971 else
10972 ac_cpp_err=
10973 fi
10974 else
10975 ac_cpp_err=yes
10976 fi
10977 if test -z "$ac_cpp_err"; then
10978 eval "$as_ac_Header=yes"
10979 else
10980 echo "$as_me: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10982 eval "$as_ac_Header=no"
10983 fi
10984 rm -f conftest.err conftest.$ac_ext
10985 fi
10986 echo "$as_me:10986: result: `eval echo '${'$as_ac_Header'}'`" >&5
10987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10989 cat >>confdefs.h <<EOF
10990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10991 EOF
10992
10993 else
10994
10995 for ac_header in kerberos/des.h
10996 do
10997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10998 echo "$as_me:10998: checking for $ac_header" >&5
10999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 else
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11006 #include <$ac_header>
11007 _ACEOF
11008 if { (eval echo "$as_me:11008: \"$ac_cpp conftest.$ac_ext\"") >&5
11009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11010 ac_status=$?
11011 egrep -v '^ *\+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:11014: \$? = $ac_status" >&5
11015 (exit $ac_status); } >/dev/null; then
11016 if test -s conftest.err; then
11017 ac_cpp_err=$ac_c_preproc_warn_flag
11018 else
11019 ac_cpp_err=
11020 fi
11021 else
11022 ac_cpp_err=yes
11023 fi
11024 if test -z "$ac_cpp_err"; then
11025 eval "$as_ac_Header=yes"
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 eval "$as_ac_Header=no"
11030 fi
11031 rm -f conftest.err conftest.$ac_ext
11032 fi
11033 echo "$as_me:11033: result: `eval echo '${'$as_ac_Header'}'`" >&5
11034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11036 cat >>confdefs.h <<EOF
11037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11038 EOF
11039
11040 fi
11041 done
11042
11043 fi
11044 done
11045
11046 fi
11047 done
11048
11049 for ac_header in krb.h
11050 do
11051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11052 echo "$as_me:11052: checking for $ac_header" >&5
11053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 cat >conftest.$ac_ext <<_ACEOF
11058 #line 11058 "configure"
11059 #include "confdefs.h"
11060 #include <$ac_header>
11061 _ACEOF
11062 if { (eval echo "$as_me:11062: \"$ac_cpp conftest.$ac_ext\"") >&5
11063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11064 ac_status=$?
11065 egrep -v '^ *\+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:11068: \$? = $ac_status" >&5
11069 (exit $ac_status); } >/dev/null; then
11070 if test -s conftest.err; then
11071 ac_cpp_err=$ac_c_preproc_warn_flag
11072 else
11073 ac_cpp_err=
11074 fi
11075 else
11076 ac_cpp_err=yes
11077 fi
11078 if test -z "$ac_cpp_err"; then
11079 eval "$as_ac_Header=yes"
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11083 eval "$as_ac_Header=no"
11084 fi
11085 rm -f conftest.err conftest.$ac_ext
11086 fi
11087 echo "$as_me:11087: result: `eval echo '${'$as_ac_Header'}'`" >&5
11088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11090 cat >>confdefs.h <<EOF
11091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11092 EOF
11093
11094 else
11095
11096 for ac_header in kerberosIV/krb.h
11097 do
11098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 echo "$as_me:11099: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104 cat >conftest.$ac_ext <<_ACEOF
11105 #line 11105 "configure"
11106 #include "confdefs.h"
11107 #include <$ac_header>
11108 _ACEOF
11109 if { (eval echo "$as_me:11109: \"$ac_cpp conftest.$ac_ext\"") >&5
11110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11111 ac_status=$?
11112 egrep -v '^ *\+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:11115: \$? = $ac_status" >&5
11116 (exit $ac_status); } >/dev/null; then
11117 if test -s conftest.err; then
11118 ac_cpp_err=$ac_c_preproc_warn_flag
11119 else
11120 ac_cpp_err=
11121 fi
11122 else
11123 ac_cpp_err=yes
11124 fi
11125 if test -z "$ac_cpp_err"; then
11126 eval "$as_ac_Header=yes"
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11130 eval "$as_ac_Header=no"
11131 fi
11132 rm -f conftest.err conftest.$ac_ext
11133 fi
11134 echo "$as_me:11134: result: `eval echo '${'$as_ac_Header'}'`" >&5
11135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137 cat >>confdefs.h <<EOF
11138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11139 EOF
11140
11141 else
11142
11143 for ac_header in kerberos/krb.h
11144 do
11145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11146 echo "$as_me:11146: checking for $ac_header" >&5
11147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151 cat >conftest.$ac_ext <<_ACEOF
11152 #line 11152 "configure"
11153 #include "confdefs.h"
11154 #include <$ac_header>
11155 _ACEOF
11156 if { (eval echo "$as_me:11156: \"$ac_cpp conftest.$ac_ext\"") >&5
11157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11158 ac_status=$?
11159 egrep -v '^ *\+' conftest.er1 >conftest.err
11160 rm -f conftest.er1
11161 cat conftest.err >&5
11162 echo "$as_me:11162: \$? = $ac_status" >&5
11163 (exit $ac_status); } >/dev/null; then
11164 if test -s conftest.err; then
11165 ac_cpp_err=$ac_c_preproc_warn_flag
11166 else
11167 ac_cpp_err=
11168 fi
11169 else
11170 ac_cpp_err=yes
11171 fi
11172 if test -z "$ac_cpp_err"; then
11173 eval "$as_ac_Header=yes"
11174 else
11175 echo "$as_me: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11177 eval "$as_ac_Header=no"
11178 fi
11179 rm -f conftest.err conftest.$ac_ext
11180 fi
11181 echo "$as_me:11181: result: `eval echo '${'$as_ac_Header'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11184 cat >>confdefs.h <<EOF
11185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11186 EOF
11187
11188 fi
11189 done
11190
11191 fi
11192 done
11193
11194 fi
11195 done
11196
11197 fi
11198
11199 for ac_header in com_err.h
11200 do
11201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11202 echo "$as_me:11202: checking for $ac_header" >&5
11203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 #line 11208 "configure"
11209 #include "confdefs.h"
11210 #include <$ac_header>
11211 _ACEOF
11212 if { (eval echo "$as_me:11212: \"$ac_cpp conftest.$ac_ext\"") >&5
11213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11214 ac_status=$?
11215 egrep -v '^ *\+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:11218: \$? = $ac_status" >&5
11219 (exit $ac_status); } >/dev/null; then
11220 if test -s conftest.err; then
11221 ac_cpp_err=$ac_c_preproc_warn_flag
11222 else
11223 ac_cpp_err=
11224 fi
11225 else
11226 ac_cpp_err=yes
11227 fi
11228 if test -z "$ac_cpp_err"; then
11229 eval "$as_ac_Header=yes"
11230 else
11231 echo "$as_me: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 eval "$as_ac_Header=no"
11234 fi
11235 rm -f conftest.err conftest.$ac_ext
11236 fi
11237 echo "$as_me:11237: result: `eval echo '${'$as_ac_Header'}'`" >&5
11238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<EOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242 EOF
11243
11244 fi
11245 done
11246
11247 fi
11248
11249 # Solaris requires -lintl if you want strerror (which calls dgettext)
11250 # to return localized messages.
11251
11252 echo "$as_me:11252: checking for dgettext in -lintl" >&5
11253 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11254 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-lintl $LIBS"
11259 cat >conftest.$ac_ext <<_ACEOF
11260 #line 11260 "configure"
11261 #include "confdefs.h"
11262
11263 /* Override any gcc2 internal prototype to avoid an error. */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 /* We use char because int might match the return type of a gcc2
11268 builtin and then its argument prototype would still apply. */
11269 char dgettext ();
11270 int
11271 main ()
11272 {
11273 dgettext ();
11274 ;
11275 return 0;
11276 }
11277 _ACEOF
11278 rm -f conftest.$ac_objext conftest$ac_exeext
11279 if { (eval echo "$as_me:11279: \"$ac_link\"") >&5
11280 (eval $ac_link) 2>&5
11281 ac_status=$?
11282 echo "$as_me:11282: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:11285: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:11288: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_lib_intl_dgettext=yes
11291 else
11292 echo "$as_me: failed program was:" >&5
11293 cat conftest.$ac_ext >&5
11294 ac_cv_lib_intl_dgettext=no
11295 fi
11296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11297 LIBS=$ac_check_lib_save_LIBS
11298 fi
11299 echo "$as_me:11299: result: $ac_cv_lib_intl_dgettext" >&5
11300 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11301 if test $ac_cv_lib_intl_dgettext = yes; then
11302 cat >>confdefs.h <<EOF
11303 #define HAVE_LIBINTL 1
11304 EOF
11305
11306 LIBS="-lintl $LIBS"
11307
11308 fi
11309
11310 echo "$as_me:11310: checking whether localtime caches TZ" >&5
11311 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11312 if test "${emacs_cv_localtime_cache+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315 if test x$ac_cv_func_tzset = xyes; then
11316 if test "$cross_compiling" = yes; then
11317 # If we have tzset, assume the worst when cross-compiling.
11318 emacs_cv_localtime_cache=yes
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 #line 11321 "configure"
11322 #include "confdefs.h"
11323 #include <time.h>
11324 extern char **environ;
11325 unset_TZ ()
11326 {
11327 char **from, **to;
11328 for (to = from = environ; (*to = *from); from++)
11329 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11330 to++;
11331 }
11332 char TZ_GMT0[] = "TZ=GMT0";
11333 char TZ_PST8[] = "TZ=PST8";
11334 main()
11335 {
11336 time_t now = time ((time_t *) 0);
11337 int hour_GMT0, hour_unset;
11338 if (putenv (TZ_GMT0) != 0)
11339 exit (1);
11340 hour_GMT0 = localtime (&now)->tm_hour;
11341 unset_TZ ();
11342 hour_unset = localtime (&now)->tm_hour;
11343 if (putenv (TZ_PST8) != 0)
11344 exit (1);
11345 if (localtime (&now)->tm_hour == hour_GMT0)
11346 exit (1);
11347 unset_TZ ();
11348 if (localtime (&now)->tm_hour != hour_unset)
11349 exit (1);
11350 exit (0);
11351 }
11352 _ACEOF
11353 rm -f conftest$ac_exeext
11354 if { (eval echo "$as_me:11354: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>&5
11356 ac_status=$?
11357 echo "$as_me:11357: \$? = $ac_status" >&5
11358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11359 { (eval echo "$as_me:11359: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11361 ac_status=$?
11362 echo "$as_me:11362: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 emacs_cv_localtime_cache=no
11365 else
11366 echo "$as_me: program exited with status $ac_status" >&5
11367 echo "$as_me: failed program was:" >&5
11368 cat conftest.$ac_ext >&5
11369 emacs_cv_localtime_cache=yes
11370 fi
11371 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11372 fi
11373 else
11374 # If we lack tzset, report that localtime does not cache TZ,
11375 # since we can't invalidate the cache if we don't have tzset.
11376 emacs_cv_localtime_cache=no
11377 fi
11378 fi
11379 echo "$as_me:11379: result: $emacs_cv_localtime_cache" >&5
11380 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11381 if test $emacs_cv_localtime_cache = yes; then
11382 cat >>confdefs.h <<\EOF
11383 #define LOCALTIME_CACHE 1
11384 EOF
11385
11386 fi
11387
11388 if test "x$HAVE_TIMEVAL" = xyes; then
11389
11390 for ac_func in gettimeofday
11391 do
11392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11393 echo "$as_me:11393: checking for $ac_func" >&5
11394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11395 if eval "test \"\${$as_ac_var+set}\" = set"; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398 cat >conftest.$ac_ext <<_ACEOF
11399 #line 11399 "configure"
11400 #include "confdefs.h"
11401 /* System header to define __stub macros and hopefully few prototypes,
11402 which can conflict with char $ac_func (); below. */
11403 #include <assert.h>
11404 /* Override any gcc2 internal prototype to avoid an error. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 /* We use char because int might match the return type of a gcc2
11409 builtin and then its argument prototype would still apply. */
11410 char $ac_func ();
11411 char (*f) ();
11412
11413 int
11414 main ()
11415 {
11416 /* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
11419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11420 choke me
11421 #else
11422 f = $ac_func;
11423 #endif
11424
11425 ;
11426 return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:11430: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>&5
11432 ac_status=$?
11433 echo "$as_me:11433: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest$ac_exeext'
11436 { (eval echo "$as_me:11436: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:11439: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 eval "$as_ac_var=yes"
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 eval "$as_ac_var=no"
11446 fi
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448 fi
11449 echo "$as_me:11449: result: `eval echo '${'$as_ac_var'}'`" >&5
11450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452 cat >>confdefs.h <<EOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11454 EOF
11455
11456 fi
11457 done
11458
11459 echo "$as_me:11459: checking whether gettimeofday can accept two arguments" >&5
11460 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11461 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11467
11468 #ifdef TIME_WITH_SYS_TIME
11469 #include <sys/time.h>
11470 #include <time.h>
11471 #else
11472 #ifdef HAVE_SYS_TIME_H
11473 #include <sys/time.h>
11474 #else
11475 #include <time.h>
11476 #endif
11477 #endif
11478 int
11479 main ()
11480 {
11481 struct timeval time;
11482 gettimeofday (&time, 0);
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 rm -f conftest.$ac_objext
11488 if { (eval echo "$as_me:11488: \"$ac_compile\"") >&5
11489 (eval $ac_compile) 2>&5
11490 ac_status=$?
11491 echo "$as_me:11491: \$? = $ac_status" >&5
11492 (exit $ac_status); } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:11494: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:11497: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 emacs_cv_gettimeofday_two_arguments=yes
11500 else
11501 echo "$as_me: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11503 emacs_cv_gettimeofday_two_arguments=no
11504 fi
11505 rm -f conftest.$ac_objext conftest.$ac_ext
11506 fi
11507 echo "$as_me:11507: result: $emacs_cv_gettimeofday_two_arguments" >&5
11508 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11509 if test $emacs_cv_gettimeofday_two_arguments = no; then
11510 cat >>confdefs.h <<\EOF
11511 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11512 EOF
11513
11514 fi
11515 fi
11516
11517 if test "$ac_cv_func_gettimeofday" = yes; then
11518 echo "$as_me:11518: checking for struct timezone" >&5
11519 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11520 if test "${emacs_cv_struct_timezone+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523 cat >conftest.$ac_ext <<_ACEOF
11524 #line 11524 "configure"
11525 #include "confdefs.h"
11526 #include <sys/time.h>
11527 int
11528 main ()
11529 {
11530 struct timezone tz;
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 rm -f conftest.$ac_objext
11536 if { (eval echo "$as_me:11536: \"$ac_compile\"") >&5
11537 (eval $ac_compile) 2>&5
11538 ac_status=$?
11539 echo "$as_me:11539: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -s conftest.$ac_objext'
11542 { (eval echo "$as_me:11542: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:11545: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 if test "$cross_compiling" = yes; then
11548 emacs_cv_struct_timezone=yes
11549 else
11550 cat >conftest.$ac_ext <<_ACEOF
11551 #line 11551 "configure"
11552 #include "confdefs.h"
11553
11554 #ifdef TIME_WITH_SYS_TIME
11555 #include <sys/time.h>
11556 #include <time.h>
11557 #else
11558 #ifdef HAVE_SYS_TIME_H
11559 #include <sys/time.h>
11560 #else
11561 #include <time.h>
11562 #endif
11563 #endif
11564 main () {
11565 struct timeval time;
11566 struct timezone dummy;
11567 exit (gettimeofday (&time, &dummy));
11568 }
11569 _ACEOF
11570 rm -f conftest$ac_exeext
11571 if { (eval echo "$as_me:11571: \"$ac_link\"") >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 echo "$as_me:11574: \$? = $ac_status" >&5
11575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11576 { (eval echo "$as_me:11576: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:11579: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 emacs_cv_struct_timezone=yes
11582 else
11583 echo "$as_me: program exited with status $ac_status" >&5
11584 echo "$as_me: failed program was:" >&5
11585 cat conftest.$ac_ext >&5
11586 emacs_cv_struct_timezone=no
11587 fi
11588 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11589 fi
11590 else
11591 echo "$as_me: failed program was:" >&5
11592 cat conftest.$ac_ext >&5
11593 emacs_cv_struct_timezone=no
11594 fi
11595 rm -f conftest.$ac_objext conftest.$ac_ext
11596 fi
11597 echo "$as_me:11597: result: $emacs_cv_struct_timezone" >&5
11598 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11599 fi
11600
11601 ok_so_far=yes
11602 echo "$as_me:11602: checking for socket" >&5
11603 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11604 if test "${ac_cv_func_socket+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607 cat >conftest.$ac_ext <<_ACEOF
11608 #line 11608 "configure"
11609 #include "confdefs.h"
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char socket (); below. */
11612 #include <assert.h>
11613 /* Override any gcc2 internal prototype to avoid an error. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char socket ();
11620 char (*f) ();
11621
11622 int
11623 main ()
11624 {
11625 /* The GNU C library defines this for functions which it implements
11626 to always fail with ENOSYS. Some functions are actually named
11627 something starting with __ and the normal name is an alias. */
11628 #if defined (__stub_socket) || defined (__stub___socket)
11629 choke me
11630 #else
11631 f = socket;
11632 #endif
11633
11634 ;
11635 return 0;
11636 }
11637 _ACEOF
11638 rm -f conftest.$ac_objext conftest$ac_exeext
11639 if { (eval echo "$as_me:11639: \"$ac_link\"") >&5
11640 (eval $ac_link) 2>&5
11641 ac_status=$?
11642 echo "$as_me:11642: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (eval echo "$as_me:11645: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:11648: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_func_socket=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 cat conftest.$ac_ext >&5
11654 ac_cv_func_socket=no
11655 fi
11656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657 fi
11658 echo "$as_me:11658: result: $ac_cv_func_socket" >&5
11659 echo "${ECHO_T}$ac_cv_func_socket" >&6
11660 if test $ac_cv_func_socket = yes; then
11661 :
11662 else
11663 ok_so_far=no
11664 fi
11665
11666 if test $ok_so_far = yes; then
11667 echo "$as_me:11667: checking for netinet/in.h" >&5
11668 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
11669 if test "${ac_cv_header_netinet_in_h+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 cat >conftest.$ac_ext <<_ACEOF
11673 #line 11673 "configure"
11674 #include "confdefs.h"
11675 #include <netinet/in.h>
11676 _ACEOF
11677 if { (eval echo "$as_me:11677: \"$ac_cpp conftest.$ac_ext\"") >&5
11678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11679 ac_status=$?
11680 egrep -v '^ *\+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:11683: \$? = $ac_status" >&5
11684 (exit $ac_status); } >/dev/null; then
11685 if test -s conftest.err; then
11686 ac_cpp_err=$ac_c_preproc_warn_flag
11687 else
11688 ac_cpp_err=
11689 fi
11690 else
11691 ac_cpp_err=yes
11692 fi
11693 if test -z "$ac_cpp_err"; then
11694 ac_cv_header_netinet_in_h=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 ac_cv_header_netinet_in_h=no
11699 fi
11700 rm -f conftest.err conftest.$ac_ext
11701 fi
11702 echo "$as_me:11702: result: $ac_cv_header_netinet_in_h" >&5
11703 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
11704 if test $ac_cv_header_netinet_in_h = yes; then
11705 :
11706 else
11707 ok_so_far=no
11708 fi
11709
11710 fi
11711 if test $ok_so_far = yes; then
11712 echo "$as_me:11712: checking for arpa/inet.h" >&5
11713 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
11714 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717 cat >conftest.$ac_ext <<_ACEOF
11718 #line 11718 "configure"
11719 #include "confdefs.h"
11720 #include <arpa/inet.h>
11721 _ACEOF
11722 if { (eval echo "$as_me:11722: \"$ac_cpp conftest.$ac_ext\"") >&5
11723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11724 ac_status=$?
11725 egrep -v '^ *\+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
11728 echo "$as_me:11728: \$? = $ac_status" >&5
11729 (exit $ac_status); } >/dev/null; then
11730 if test -s conftest.err; then
11731 ac_cpp_err=$ac_c_preproc_warn_flag
11732 else
11733 ac_cpp_err=
11734 fi
11735 else
11736 ac_cpp_err=yes
11737 fi
11738 if test -z "$ac_cpp_err"; then
11739 ac_cv_header_arpa_inet_h=yes
11740 else
11741 echo "$as_me: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11743 ac_cv_header_arpa_inet_h=no
11744 fi
11745 rm -f conftest.err conftest.$ac_ext
11746 fi
11747 echo "$as_me:11747: result: $ac_cv_header_arpa_inet_h" >&5
11748 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
11749 if test $ac_cv_header_arpa_inet_h = yes; then
11750 :
11751 else
11752 ok_so_far=no
11753 fi
11754
11755 fi
11756 if test $ok_so_far = yes; then
11757 cat >>confdefs.h <<\EOF
11758 #define HAVE_INET_SOCKETS 1
11759 EOF
11760
11761 fi
11762
11763 if test -f /usr/lpp/X11/bin/smt.exp; then
11764 cat >>confdefs.h <<\EOF
11765 #define HAVE_AIX_SMT_EXP 1
11766 EOF
11767
11768 fi
11769
11770 echo "$as_me:11770: checking whether system supports dynamic ptys" >&5
11771 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
11772 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
11773 echo "$as_me:11773: result: yes" >&5
11774 echo "${ECHO_T}yes" >&6
11775 cat >>confdefs.h <<\EOF
11776 #define HAVE_DEV_PTMX 1
11777 EOF
11778
11779 else
11780 echo "$as_me:11780: result: no" >&5
11781 echo "${ECHO_T}no" >&6
11782 fi
11783
11784 echo "$as_me:11784: checking for pid_t" >&5
11785 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11786 if test "${ac_cv_type_pid_t+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789 cat >conftest.$ac_ext <<_ACEOF
11790 #line 11790 "configure"
11791 #include "confdefs.h"
11792 $ac_includes_default
11793 int
11794 main ()
11795 {
11796 if ((pid_t *) 0)
11797 return 0;
11798 if (sizeof (pid_t))
11799 return 0;
11800 ;
11801 return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext
11805 if { (eval echo "$as_me:11805: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>&5
11807 ac_status=$?
11808 echo "$as_me:11808: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (eval echo "$as_me:11811: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11813 ac_status=$?
11814 echo "$as_me:11814: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_type_pid_t=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 cat conftest.$ac_ext >&5
11820 ac_cv_type_pid_t=no
11821 fi
11822 rm -f conftest.$ac_objext conftest.$ac_ext
11823 fi
11824 echo "$as_me:11824: result: $ac_cv_type_pid_t" >&5
11825 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11826 if test $ac_cv_type_pid_t = yes; then
11827 :
11828 else
11829
11830 cat >>confdefs.h <<EOF
11831 #define pid_t int
11832 EOF
11833
11834 fi
11835
11836 for ac_header in unistd.h vfork.h
11837 do
11838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11839 echo "$as_me:11839: checking for $ac_header" >&5
11840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844 cat >conftest.$ac_ext <<_ACEOF
11845 #line 11845 "configure"
11846 #include "confdefs.h"
11847 #include <$ac_header>
11848 _ACEOF
11849 if { (eval echo "$as_me:11849: \"$ac_cpp conftest.$ac_ext\"") >&5
11850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11851 ac_status=$?
11852 egrep -v '^ *\+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); } >/dev/null; then
11857 if test -s conftest.err; then
11858 ac_cpp_err=$ac_c_preproc_warn_flag
11859 else
11860 ac_cpp_err=
11861 fi
11862 else
11863 ac_cpp_err=yes
11864 fi
11865 if test -z "$ac_cpp_err"; then
11866 eval "$as_ac_Header=yes"
11867 else
11868 echo "$as_me: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11870 eval "$as_ac_Header=no"
11871 fi
11872 rm -f conftest.err conftest.$ac_ext
11873 fi
11874 echo "$as_me:11874: result: `eval echo '${'$as_ac_Header'}'`" >&5
11875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11877 cat >>confdefs.h <<EOF
11878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11879 EOF
11880
11881 fi
11882 done
11883
11884 for ac_func in fork vfork
11885 do
11886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11887 echo "$as_me:11887: checking for $ac_func" >&5
11888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11889 if eval "test \"\${$as_ac_var+set}\" = set"; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892 cat >conftest.$ac_ext <<_ACEOF
11893 #line 11893 "configure"
11894 #include "confdefs.h"
11895 /* System header to define __stub macros and hopefully few prototypes,
11896 which can conflict with char $ac_func (); below. */
11897 #include <assert.h>
11898 /* Override any gcc2 internal prototype to avoid an error. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 /* We use char because int might match the return type of a gcc2
11903 builtin and then its argument prototype would still apply. */
11904 char $ac_func ();
11905 char (*f) ();
11906
11907 int
11908 main ()
11909 {
11910 /* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
11913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11914 choke me
11915 #else
11916 f = $ac_func;
11917 #endif
11918
11919 ;
11920 return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:11924: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>&5
11926 ac_status=$?
11927 echo "$as_me:11927: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -s conftest$ac_exeext'
11930 { (eval echo "$as_me:11930: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:11933: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 eval "$as_ac_var=yes"
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 eval "$as_ac_var=no"
11940 fi
11941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11942 fi
11943 echo "$as_me:11943: result: `eval echo '${'$as_ac_var'}'`" >&5
11944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11945 if test `eval echo '${'$as_ac_var'}'` = yes; then
11946 cat >>confdefs.h <<EOF
11947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11948 EOF
11949
11950 fi
11951 done
11952
11953 ac_cv_func_fork_works=$ac_cv_func_fork
11954 if test "x$ac_cv_func_fork" = xyes; then
11955 echo "$as_me:11955: checking for working fork" >&5
11956 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11957 if test "${ac_cv_func_fork_works+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960 if test "$cross_compiling" = yes; then
11961 ac_cv_func_fork_works=cross
11962 else
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* By Rüdiger Kuhlmann. */
11965 #include <sys/types.h>
11966 #if HAVE_UNISTD_H
11967 # include <unistd.h>
11968 #endif
11969 /* Some systems only have a dummy stub for fork() */
11970 int main ()
11971 {
11972 if (fork() < 0)
11973 exit (1);
11974 exit (0);
11975 }
11976 _ACEOF
11977 rm -f conftest$ac_exeext
11978 if { (eval echo "$as_me:11978: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11980 ac_status=$?
11981 echo "$as_me:11981: \$? = $ac_status" >&5
11982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11983 { (eval echo "$as_me:11983: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11985 ac_status=$?
11986 echo "$as_me:11986: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_cv_func_fork_works=yes
11989 else
11990 echo "$as_me: program exited with status $ac_status" >&5
11991 echo "$as_me: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 ac_cv_func_fork_works=no
11994 fi
11995 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11996 fi
11997 fi
11998 echo "$as_me:11998: result: $ac_cv_func_fork_works" >&5
11999 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12000
12001 fi
12002 if test "x$ac_cv_func_fork_works" = xcross; then
12003 case $host in
12004 *-*-amigaos* | *-*-msdosdjgpp*)
12005 # Override, as these systems have only a dummy fork() stub
12006 ac_cv_func_fork_works=no
12007 ;;
12008 *)
12009 ac_cv_func_fork_works=yes
12010 ;;
12011 esac
12012 { echo "$as_me:12012: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12013 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12014 fi
12015 ac_cv_func_vfork_works=$ac_cv_func_vfork
12016 if test "x$ac_cv_func_vfork" = xyes; then
12017 echo "$as_me:12017: checking for working vfork" >&5
12018 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12019 if test "${ac_cv_func_vfork_works+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 if test "$cross_compiling" = yes; then
12023 ac_cv_func_vfork_works=cross
12024 else
12025 cat >conftest.$ac_ext <<_ACEOF
12026 #line 12026 "configure"
12027 #include "confdefs.h"
12028 /* Thanks to Paul Eggert for this test. */
12029 #include <stdio.h>
12030 #include <sys/types.h>
12031 #include <sys/stat.h>
12032 #if HAVE_UNISTD_H
12033 # include <unistd.h>
12034 #endif
12035 #if HAVE_VFORK_H
12036 # include <vfork.h>
12037 #endif
12038 /* On some sparc systems, changes by the child to local and incoming
12039 argument registers are propagated back to the parent. The compiler
12040 is told about this with #include <vfork.h>, but some compilers
12041 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12042 static variable whose address is put into a register that is
12043 clobbered by the vfork. */
12044 static
12045 #ifdef __cplusplus
12046 sparc_address_test (int arg)
12047 # else
12048 sparc_address_test (arg) int arg;
12049 #endif
12050 {
12051 static pid_t child;
12052 if (!child) {
12053 child = vfork ();
12054 if (child < 0) {
12055 perror ("vfork");
12056 _exit(2);
12057 }
12058 if (!child) {
12059 arg = getpid();
12060 write(-1, "", 0);
12061 _exit (arg);
12062 }
12063 }
12064 }
12065
12066 int
12067 main ()
12068 {
12069 pid_t parent = getpid ();
12070 pid_t child;
12071
12072 sparc_address_test ();
12073
12074 child = vfork ();
12075
12076 if (child == 0) {
12077 /* Here is another test for sparc vfork register problems. This
12078 test uses lots of local variables, at least as many local
12079 variables as main has allocated so far including compiler
12080 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12081 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12082 reuse the register of parent for one of the local variables,
12083 since it will think that parent can't possibly be used any more
12084 in this routine. Assigning to the local variable will thus
12085 munge parent in the parent process. */
12086 pid_t
12087 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12088 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12089 /* Convince the compiler that p..p7 are live; otherwise, it might
12090 use the same hardware register for all 8 local variables. */
12091 if (p != p1 || p != p2 || p != p3 || p != p4
12092 || p != p5 || p != p6 || p != p7)
12093 _exit(1);
12094
12095 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12096 from child file descriptors. If the child closes a descriptor
12097 before it execs or exits, this munges the parent's descriptor
12098 as well. Test for this by closing stdout in the child. */
12099 _exit(close(fileno(stdout)) != 0);
12100 } else {
12101 int status;
12102 struct stat st;
12103
12104 while (wait(&status) != child)
12105 ;
12106 exit(
12107 /* Was there some problem with vforking? */
12108 child < 0
12109
12110 /* Did the child fail? (This shouldn't happen.) */
12111 || status
12112
12113 /* Did the vfork/compiler bug occur? */
12114 || parent != getpid()
12115
12116 /* Did the file descriptor bug occur? */
12117 || fstat(fileno(stdout), &st) != 0
12118 );
12119 }
12120 }
12121 _ACEOF
12122 rm -f conftest$ac_exeext
12123 if { (eval echo "$as_me:12123: \"$ac_link\"") >&5
12124 (eval $ac_link) 2>&5
12125 ac_status=$?
12126 echo "$as_me:12126: \$? = $ac_status" >&5
12127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12128 { (eval echo "$as_me:12128: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12130 ac_status=$?
12131 echo "$as_me:12131: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 ac_cv_func_vfork_works=yes
12134 else
12135 echo "$as_me: program exited with status $ac_status" >&5
12136 echo "$as_me: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12138 ac_cv_func_vfork_works=no
12139 fi
12140 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12141 fi
12142 fi
12143 echo "$as_me:12143: result: $ac_cv_func_vfork_works" >&5
12144 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12145
12146 fi;
12147 if test "x$ac_cv_func_fork_works" = xcross; then
12148 ac_cv_func_vfork_works=ac_cv_func_vfork
12149 { echo "$as_me:12149: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12150 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12151 fi
12152
12153 if test "x$ac_cv_func_vfork_works" = xyes; then
12154
12155 cat >>confdefs.h <<\EOF
12156 #define HAVE_WORKING_VFORK 1
12157 EOF
12158
12159 else
12160
12161 cat >>confdefs.h <<\EOF
12162 #define vfork fork
12163 EOF
12164
12165 fi
12166 if test "x$ac_cv_func_fork_works" = xyes; then
12167
12168 cat >>confdefs.h <<\EOF
12169 #define HAVE_WORKING_FORK 1
12170 EOF
12171
12172 fi
12173
12174 # Fixme: This should be replaced when we have autoconf 2.14.
12175 echo "$as_me:12175: checking for size_t" >&5
12176 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12177 if test "${ac_cv_type_size_t+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line 12181 "configure"
12182 #include "confdefs.h"
12183 $ac_includes_default
12184 int
12185 main ()
12186 {
12187 if ((size_t *) 0)
12188 return 0;
12189 if (sizeof (size_t))
12190 return 0;
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:12196: \"$ac_compile\"") >&5
12197 (eval $ac_compile) 2>&5
12198 ac_status=$?
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:12202: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:12205: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 ac_cv_type_size_t=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 cat conftest.$ac_ext >&5
12211 ac_cv_type_size_t=no
12212 fi
12213 rm -f conftest.$ac_objext conftest.$ac_ext
12214 fi
12215 echo "$as_me:12215: result: $ac_cv_type_size_t" >&5
12216 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12217 if test $ac_cv_type_size_t = yes; then
12218 :
12219 else
12220
12221 cat >>confdefs.h <<EOF
12222 #define size_t unsigned
12223 EOF
12224
12225 fi
12226
12227 # Set up the CFLAGS for real compilation, so we can substitute it.
12228 CFLAGS="$REAL_CFLAGS"
12229 CPPFLAGS="$REAL_CPPFLAGS"
12230
12231 #### Find out which version of Emacs this is.
12232 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12233 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12234 if test x"${version}" = x; then
12235 { { echo "$as_me:12235: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12236 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12237 { (exit 1); exit 1; }; }
12238 fi
12239
12240 ### Specify what sort of things we'll be editing into Makefile and config.h.
12241 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12242
12243 cat >>confdefs.h <<EOF
12244 #define EMACS_CONFIGURATION "${canonical}"
12245 EOF
12246
12247 cat >>confdefs.h <<EOF
12248 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12249 EOF
12250
12251 cat >>confdefs.h <<EOF
12252 #define config_machfile "${machfile}"
12253 EOF
12254
12255 cat >>confdefs.h <<EOF
12256 #define config_opsysfile "${opsysfile}"
12257 EOF
12258
12259 cat >>confdefs.h <<EOF
12260 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12261 EOF
12262
12263 cat >>confdefs.h <<EOF
12264 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12265 EOF
12266
12267 cat >>confdefs.h <<EOF
12268 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12269 EOF
12270
12271 cat >>confdefs.h <<EOF
12272 #define UNEXEC_SRC ${UNEXEC_SRC}
12273 EOF
12274
12275 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12276 cat >>confdefs.h <<\EOF
12277 #define HAVE_X_WINDOWS 1
12278 EOF
12279
12280 fi
12281 if test "${USE_X_TOOLKIT}" != "none" ; then
12282 cat >>confdefs.h <<\EOF
12283 #define USE_X_TOOLKIT 1
12284 EOF
12285
12286 fi
12287 if test "${HAVE_X11}" = "yes" ; then
12288 cat >>confdefs.h <<\EOF
12289 #define HAVE_X11 1
12290 EOF
12291
12292 fi
12293 if test "${HAVE_XFREE386}" = "yes" ; then
12294 cat >>confdefs.h <<\EOF
12295 #define HAVE_XFREE386 1
12296 EOF
12297
12298 fi
12299 if test "${HAVE_MENUS}" = "yes" ; then
12300 cat >>confdefs.h <<\EOF
12301 #define HAVE_MENUS 1
12302 EOF
12303
12304 fi
12305 if test "${GNU_MALLOC}" = "yes" ; then
12306 cat >>confdefs.h <<\EOF
12307 #define GNU_MALLOC 1
12308 EOF
12309
12310 fi
12311 if test "${REL_ALLOC}" = "yes" ; then
12312 cat >>confdefs.h <<\EOF
12313 #define REL_ALLOC 1
12314 EOF
12315
12316 fi
12317
12318 for ac_header in nlist.h
12319 do
12320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12321 echo "$as_me:12321: checking for $ac_header" >&5
12322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326 cat >conftest.$ac_ext <<_ACEOF
12327 #line 12327 "configure"
12328 #include "confdefs.h"
12329 #include <$ac_header>
12330 _ACEOF
12331 if { (eval echo "$as_me:12331: \"$ac_cpp conftest.$ac_ext\"") >&5
12332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12333 ac_status=$?
12334 egrep -v '^ *\+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:12337: \$? = $ac_status" >&5
12338 (exit $ac_status); } >/dev/null; then
12339 if test -s conftest.err; then
12340 ac_cpp_err=$ac_c_preproc_warn_flag
12341 else
12342 ac_cpp_err=
12343 fi
12344 else
12345 ac_cpp_err=yes
12346 fi
12347 if test -z "$ac_cpp_err"; then
12348 eval "$as_ac_Header=yes"
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 eval "$as_ac_Header=no"
12353 fi
12354 rm -f conftest.err conftest.$ac_ext
12355 fi
12356 echo "$as_me:12356: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12359 cat >>confdefs.h <<EOF
12360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12361 EOF
12362
12363 cat >>confdefs.h <<\EOF
12364 #define NLIST_STRUCT 1
12365 EOF
12366
12367 fi
12368 done
12369
12370 #### Report on what we decided to do.
12371 echo "
12372 Configured for \`${canonical}'.
12373
12374 Where should the build process find the source code? ${srcdir}
12375 What operating system and machine description files should Emacs use?
12376 \`${opsysfile}' and \`${machfile}'
12377 What compiler should emacs be built with? ${CC} ${CFLAGS}
12378 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12379 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12380 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12381 What window system should Emacs use? ${window_system}
12382 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
12383
12384 if test -n "${x_includes}"; then
12385 echo " Where do we find X Windows header files? ${x_includes}"
12386 else
12387 echo " Where do we find X Windows header files? Standard dirs"
12388 fi
12389 if test -n "${x_libraries}"; then
12390 echo " Where do we find X Windows libraries? ${x_libraries}"
12391 else
12392 echo " Where do we find X Windows libraries? Standard dirs"
12393 fi
12394
12395 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12396 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12397 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12398 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12399 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12400 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12401 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12402 echo
12403
12404 # Remove any trailing slashes in these variables.
12405 test "${prefix}" != NONE &&
12406 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12407 test "${exec_prefix}" != NONE &&
12408 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12409
12410 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12411 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12412 ## from Makefile.c can correctly provide the arg `-traditional' to the
12413 ## C preprocessor.
12414
12415 cat >conftest.$ac_ext <<_ACEOF
12416 #line 12416 "configure"
12417 #include "confdefs.h"
12418 yes..yes
12419 _ACEOF
12420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12421 egrep "yes..yes" >/dev/null 2>&1; then
12422 CPP_NEED_TRADITIONAL=no
12423 else
12424 CPP_NEED_TRADITIONAL=yes
12425 fi
12426 rm -f conftest*
12427
12428 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"
12429 ac_config_commands="$ac_config_commands default"
12430 cat >confcache <<\_ACEOF
12431 # This file is a shell script that caches the results of configure
12432 # tests run on this system so they can be shared between configure
12433 # scripts and configure runs, see configure's option --config-cache.
12434 # It is not useful on other systems. If it contains results you don't
12435 # want to keep, you may remove or edit it.
12436 #
12437 # config.status only pays attention to the cache file if you give it
12438 # the --recheck option to rerun configure.
12439 #
12440 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12442 # following values.
12443
12444 _ACEOF
12445
12446 # The following way of writing the cache mishandles newlines in values,
12447 # but we know of no workaround that is simple, portable, and efficient.
12448 # So, don't put newlines in cache variables' values.
12449 # Ultrix sh set writes to stderr and can't be redirected directly,
12450 # and sets the high bit in the cache file unless we assign to the vars.
12451 {
12452 (set) 2>&1 |
12453 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12454 *ac_space=\ *)
12455 # `set' does not quote correctly, so add quotes (double-quote
12456 # substitution turns \\\\ into \\, and sed turns \\ into \).
12457 sed -n \
12458 "s/'/'\\\\''/g;
12459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12460 ;;
12461 *)
12462 # `set' quotes correctly as required by POSIX, so do not add quotes.
12463 sed -n \
12464 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12465 ;;
12466 esac;
12467 } |
12468 sed '
12469 t clear
12470 : clear
12471 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12472 t end
12473 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12474 : end' >>confcache
12475 if cmp -s $cache_file confcache; then :; else
12476 if test -w $cache_file; then
12477 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12478 cat confcache >$cache_file
12479 else
12480 echo "not updating unwritable cache $cache_file"
12481 fi
12482 fi
12483 rm -f confcache
12484
12485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12486 # Let make expand exec_prefix.
12487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12488
12489 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12490 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12491 # trailing colons and then remove the whole line if VPATH becomes empty
12492 # (actually we leave an empty line to preserve line numbers).
12493 if test "x$srcdir" = x.; then
12494 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12495 s/:*\$(srcdir):*/:/;
12496 s/:*\${srcdir}:*/:/;
12497 s/:*@srcdir@:*/:/;
12498 s/^\([^=]*=[ ]*\):*/\1/;
12499 s/:*$//;
12500 s/^[^=]*=[ ]*$//;
12501 }'
12502 fi
12503
12504 DEFS=-DHAVE_CONFIG_H
12505
12506 : ${CONFIG_STATUS=./config.status}
12507 ac_clean_files_save=$ac_clean_files
12508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12509 { echo "$as_me:12509: creating $CONFIG_STATUS" >&5
12510 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12511 cat >$CONFIG_STATUS <<_ACEOF
12512 #! $SHELL
12513 # Generated automatically by configure.
12514 # Run this file to recreate the current configuration.
12515 # Compiler output produced by configure, useful for debugging
12516 # configure, is in config.log if it exists.
12517
12518 debug=false
12519 SHELL=\${CONFIG_SHELL-$SHELL}
12520 ac_cs_invocation="\$0 \$@"
12521
12522 _ACEOF
12523
12524 cat >>$CONFIG_STATUS <<\_ACEOF
12525 # Be Bourne compatible
12526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12527 emulate sh
12528 NULLCMD=:
12529 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12530 set -o posix
12531 fi
12532
12533 # Name of the executable.
12534 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12535
12536 if expr a : '\(a\)' >/dev/null 2>&1; then
12537 as_expr=expr
12538 else
12539 as_expr=false
12540 fi
12541
12542 rm -f conf$$ conf$$.exe conf$$.file
12543 echo >conf$$.file
12544 if ln -s conf$$.file conf$$ 2>/dev/null; then
12545 # We could just check for DJGPP; but this test a) works b) is more generic
12546 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12547 if test -f conf$$.exe; then
12548 # Don't use ln at all; we don't have any links
12549 as_ln_s='cp -p'
12550 else
12551 as_ln_s='ln -s'
12552 fi
12553 elif ln conf$$.file conf$$ 2>/dev/null; then
12554 as_ln_s=ln
12555 else
12556 as_ln_s='cp -p'
12557 fi
12558 rm -f conf$$ conf$$.exe conf$$.file
12559
12560 as_executable_p="test -f"
12561
12562 # Support unset when possible.
12563 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12564 as_unset=unset
12565 else
12566 as_unset=false
12567 fi
12568
12569 # NLS nuisances.
12570 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12571 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12572 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12573 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12574 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12575 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12576 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12577 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12578
12579 # IFS
12580 # We need space, tab and new line, in precisely that order.
12581 as_nl='
12582 '
12583 IFS=" $as_nl"
12584
12585 # CDPATH.
12586 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12587
12588 exec 6>&1
12589
12590 _ACEOF
12591
12592 # Files that config.status was made for.
12593 if test -n "$ac_config_files"; then
12594 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12595 fi
12596
12597 if test -n "$ac_config_headers"; then
12598 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12599 fi
12600
12601 if test -n "$ac_config_links"; then
12602 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12603 fi
12604
12605 if test -n "$ac_config_commands"; then
12606 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12607 fi
12608
12609 cat >>$CONFIG_STATUS <<\EOF
12610
12611 ac_cs_usage="\
12612 \`$as_me' instantiates files from templates according to the
12613 current configuration.
12614
12615 Usage: $0 [OPTIONS] [FILE]...
12616
12617 -h, --help print this help, then exit
12618 -V, --version print version number, then exit
12619 -d, --debug don't remove temporary files
12620 --recheck update $as_me by reconfiguring in the same conditions
12621 --file=FILE[:TEMPLATE]
12622 instantiate the configuration file FILE
12623 --header=FILE[:TEMPLATE]
12624 instantiate the configuration header FILE
12625
12626 Configuration files:
12627 $config_files
12628
12629 Configuration headers:
12630 $config_headers
12631
12632 Configuration commands:
12633 $config_commands
12634
12635 Report bugs to <bug-autoconf@gnu.org>."
12636 EOF
12637
12638 cat >>$CONFIG_STATUS <<EOF
12639 ac_cs_version="\\
12640 config.status
12641 configured by $0, generated by GNU Autoconf 2.52,
12642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12643
12644 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12645 Free Software Foundation, Inc.
12646 This config.status script is free software; the Free Software Foundation
12647 gives unlimited permission to copy, distribute and modify it."
12648 srcdir=$srcdir
12649 INSTALL="$INSTALL"
12650 EOF
12651
12652 cat >>$CONFIG_STATUS <<\EOF
12653 # If no file are specified by the user, then we need to provide default
12654 # value. By we need to know if files were specified by the user.
12655 ac_need_defaults=:
12656 while test $# != 0
12657 do
12658 case $1 in
12659 --*=*)
12660 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12661 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12662 shift
12663 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12664 shift
12665 ;;
12666 -*);;
12667 *) # This is not an option, so the user has probably given explicit
12668 # arguments.
12669 ac_need_defaults=false;;
12670 esac
12671
12672 case $1 in
12673 # Handling of the options.
12674 EOF
12675 cat >>$CONFIG_STATUS <<EOF
12676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12677 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12678 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12679 EOF
12680 cat >>$CONFIG_STATUS <<\EOF
12681 --version | --vers* | -V )
12682 echo "$ac_cs_version"; exit 0 ;;
12683 --he | --h)
12684 # Conflict between --help and --header
12685 { { echo "$as_me:12685: error: ambiguous option: $1
12686 Try \`$0 --help' for more information." >&5
12687 echo "$as_me: error: ambiguous option: $1
12688 Try \`$0 --help' for more information." >&2;}
12689 { (exit 1); exit 1; }; };;
12690 --help | --hel | -h )
12691 echo "$ac_cs_usage"; exit 0 ;;
12692 --debug | --d* | -d )
12693 debug=: ;;
12694 --file | --fil | --fi | --f )
12695 shift
12696 CONFIG_FILES="$CONFIG_FILES $1"
12697 ac_need_defaults=false;;
12698 --header | --heade | --head | --hea )
12699 shift
12700 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12701 ac_need_defaults=false;;
12702
12703 # This is an error.
12704 -*) { { echo "$as_me:12704: error: unrecognized option: $1
12705 Try \`$0 --help' for more information." >&5
12706 echo "$as_me: error: unrecognized option: $1
12707 Try \`$0 --help' for more information." >&2;}
12708 { (exit 1); exit 1; }; } ;;
12709
12710 *) ac_config_targets="$ac_config_targets $1" ;;
12711
12712 esac
12713 shift
12714 done
12715
12716 exec 5>>config.log
12717 cat >&5 << _ACEOF
12718
12719 ## ----------------------- ##
12720 ## Running config.status. ##
12721 ## ----------------------- ##
12722
12723 This file was extended by $as_me 2.52, executed with
12724 CONFIG_FILES = $CONFIG_FILES
12725 CONFIG_HEADERS = $CONFIG_HEADERS
12726 CONFIG_LINKS = $CONFIG_LINKS
12727 CONFIG_COMMANDS = $CONFIG_COMMANDS
12728 > $ac_cs_invocation
12729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12730
12731 _ACEOF
12732 EOF
12733
12734 cat >>$CONFIG_STATUS <<EOF
12735 #
12736 # INIT-COMMANDS section.
12737 #
12738
12739 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
12740
12741 EOF
12742
12743 cat >>$CONFIG_STATUS <<\EOF
12744 for ac_config_target in $ac_config_targets
12745 do
12746 case "$ac_config_target" in
12747 # Handling of arguments.
12748 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12749 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
12750 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
12751 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12752 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
12753 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
12754 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
12755 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
12756 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
12757 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
12758 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12759 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
12760 *) { { echo "$as_me:12760: error: invalid argument: $ac_config_target" >&5
12761 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12762 { (exit 1); exit 1; }; };;
12763 esac
12764 done
12765
12766 # If the user did not use the arguments to specify the items to instantiate,
12767 # then the envvar interface is used. Set only those that are not.
12768 # We use the long form for the default assignment because of an extremely
12769 # bizarre bug on SunOS 4.1.3.
12770 if $ac_need_defaults; then
12771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12774 fi
12775
12776 # Create a temporary directory, and hook for its removal unless debugging.
12777 $debug ||
12778 {
12779 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12780 trap '{ (exit 1); exit 1; }' 1 2 13 15
12781 }
12782
12783 # Create a (secure) tmp directory for tmp files.
12784 : ${TMPDIR=/tmp}
12785 {
12786 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12787 test -n "$tmp" && test -d "$tmp"
12788 } ||
12789 {
12790 tmp=$TMPDIR/cs$$-$RANDOM
12791 (umask 077 && mkdir $tmp)
12792 } ||
12793 {
12794 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12795 { (exit 1); exit 1; }
12796 }
12797
12798 EOF
12799
12800 cat >>$CONFIG_STATUS <<EOF
12801
12802 #
12803 # CONFIG_FILES section.
12804 #
12805
12806 # No need to generate the scripts if there are no CONFIG_FILES.
12807 # This happens for instance when ./config.status config.h
12808 if test -n "\$CONFIG_FILES"; then
12809 # Protect against being on the right side of a sed subst in config.status.
12810 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12811 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12812 s,@SHELL@,$SHELL,;t t
12813 s,@exec_prefix@,$exec_prefix,;t t
12814 s,@prefix@,$prefix,;t t
12815 s,@program_transform_name@,$program_transform_name,;t t
12816 s,@bindir@,$bindir,;t t
12817 s,@sbindir@,$sbindir,;t t
12818 s,@libexecdir@,$libexecdir,;t t
12819 s,@datadir@,$datadir,;t t
12820 s,@sysconfdir@,$sysconfdir,;t t
12821 s,@sharedstatedir@,$sharedstatedir,;t t
12822 s,@localstatedir@,$localstatedir,;t t
12823 s,@libdir@,$libdir,;t t
12824 s,@includedir@,$includedir,;t t
12825 s,@oldincludedir@,$oldincludedir,;t t
12826 s,@infodir@,$infodir,;t t
12827 s,@mandir@,$mandir,;t t
12828 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12829 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12830 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12831 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12832 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12833 s,@build_alias@,$build_alias,;t t
12834 s,@host_alias@,$host_alias,;t t
12835 s,@target_alias@,$target_alias,;t t
12836 s,@ECHO_C@,$ECHO_C,;t t
12837 s,@ECHO_N@,$ECHO_N,;t t
12838 s,@ECHO_T@,$ECHO_T,;t t
12839 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12840 s,@DEFS@,$DEFS,;t t
12841 s,@LIBS@,$LIBS,;t t
12842 s,@build@,$build,;t t
12843 s,@build_cpu@,$build_cpu,;t t
12844 s,@build_vendor@,$build_vendor,;t t
12845 s,@build_os@,$build_os,;t t
12846 s,@host@,$host,;t t
12847 s,@host_cpu@,$host_cpu,;t t
12848 s,@host_vendor@,$host_vendor,;t t
12849 s,@host_os@,$host_os,;t t
12850 s,@CC@,$CC,;t t
12851 s,@CFLAGS@,$CFLAGS,;t t
12852 s,@LDFLAGS@,$LDFLAGS,;t t
12853 s,@CPPFLAGS@,$CPPFLAGS,;t t
12854 s,@ac_ct_CC@,$ac_ct_CC,;t t
12855 s,@EXEEXT@,$EXEEXT,;t t
12856 s,@OBJEXT@,$OBJEXT,;t t
12857 s,@LN_S@,$LN_S,;t t
12858 s,@CPP@,$CPP,;t t
12859 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12860 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12861 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12862 s,@YACC@,$YACC,;t t
12863 s,@RANLIB@,$RANLIB,;t t
12864 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12865 s,@LIBSOUND@,$LIBSOUND,;t t
12866 s,@SET_MAKE@,$SET_MAKE,;t t
12867 s,@ALLOCA@,$ALLOCA,;t t
12868 s,@liblockfile@,$liblockfile,;t t
12869 s,@LIBOBJS@,$LIBOBJS,;t t
12870 s,@NEED_SETGID@,$NEED_SETGID,;t t
12871 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
12872 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
12873 s,@version@,$version,;t t
12874 s,@configuration@,$configuration,;t t
12875 s,@canonical@,$canonical,;t t
12876 s,@srcdir@,$srcdir,;t t
12877 s,@lispdir@,$lispdir,;t t
12878 s,@locallisppath@,$locallisppath,;t t
12879 s,@lisppath@,$lisppath,;t t
12880 s,@x_default_search_path@,$x_default_search_path,;t t
12881 s,@etcdir@,$etcdir,;t t
12882 s,@archlibdir@,$archlibdir,;t t
12883 s,@docdir@,$docdir,;t t
12884 s,@bitmapdir@,$bitmapdir,;t t
12885 s,@c_switch_system@,$c_switch_system,;t t
12886 s,@c_switch_machine@,$c_switch_machine,;t t
12887 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
12888 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
12889 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
12890 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
12891 s,@machfile@,$machfile,;t t
12892 s,@opsysfile@,$opsysfile,;t t
12893 CEOF
12894
12895 EOF
12896
12897 cat >>$CONFIG_STATUS <<\EOF
12898 # Split the substitutions into bite-sized pieces for seds with
12899 # small command number limits, like on Digital OSF/1 and HP-UX.
12900 ac_max_sed_lines=48
12901 ac_sed_frag=1 # Number of current file.
12902 ac_beg=1 # First line for current file.
12903 ac_end=$ac_max_sed_lines # Line after last line for current file.
12904 ac_more_lines=:
12905 ac_sed_cmds=
12906 while $ac_more_lines; do
12907 if test $ac_beg -gt 1; then
12908 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12909 else
12910 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12911 fi
12912 if test ! -s $tmp/subs.frag; then
12913 ac_more_lines=false
12914 else
12915 # The purpose of the label and of the branching condition is to
12916 # speed up the sed processing (if there are no `@' at all, there
12917 # is no need to browse any of the substitutions).
12918 # These are the two extra sed commands mentioned above.
12919 (echo ':t
12920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12921 if test -z "$ac_sed_cmds"; then
12922 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12923 else
12924 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12925 fi
12926 ac_sed_frag=`expr $ac_sed_frag + 1`
12927 ac_beg=$ac_end
12928 ac_end=`expr $ac_end + $ac_max_sed_lines`
12929 fi
12930 done
12931 if test -z "$ac_sed_cmds"; then
12932 ac_sed_cmds=cat
12933 fi
12934 fi # test -n "$CONFIG_FILES"
12935
12936 EOF
12937 cat >>$CONFIG_STATUS <<\EOF
12938 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12940 case $ac_file in
12941 - | *:- | *:-:* ) # input from stdin
12942 cat >$tmp/stdin
12943 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12945 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12947 * ) ac_file_in=$ac_file.in ;;
12948 esac
12949
12950 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12951 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12952 X"$ac_file" : 'X\(//\)[^/]' \| \
12953 X"$ac_file" : 'X\(//\)$' \| \
12954 X"$ac_file" : 'X\(/\)' \| \
12955 . : '\(.\)' 2>/dev/null ||
12956 echo X"$ac_file" |
12957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12959 /^X\(\/\/\)$/{ s//\1/; q; }
12960 /^X\(\/\).*/{ s//\1/; q; }
12961 s/.*/./; q'`
12962 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12963 { case "$ac_dir" in
12964 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12965 *) as_incr_dir=.;;
12966 esac
12967 as_dummy="$ac_dir"
12968 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12969 case $as_mkdir_dir in
12970 # Skip DOS drivespec
12971 ?:) as_incr_dir=$as_mkdir_dir ;;
12972 *)
12973 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12974 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12975 ;;
12976 esac
12977 done; }
12978
12979 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12980 # A "../" for each directory in $ac_dir_suffix.
12981 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12982 else
12983 ac_dir_suffix= ac_dots=
12984 fi
12985
12986 case $srcdir in
12987 .) ac_srcdir=.
12988 if test -z "$ac_dots"; then
12989 ac_top_srcdir=.
12990 else
12991 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12992 fi ;;
12993 [\\/]* | ?:[\\/]* )
12994 ac_srcdir=$srcdir$ac_dir_suffix;
12995 ac_top_srcdir=$srcdir ;;
12996 *) # Relative path.
12997 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12998 ac_top_srcdir=$ac_dots$srcdir ;;
12999 esac
13000
13001 case $INSTALL in
13002 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13003 *) ac_INSTALL=$ac_dots$INSTALL ;;
13004 esac
13005
13006 if test x"$ac_file" != x-; then
13007 { echo "$as_me:13007: creating $ac_file" >&5
13008 echo "$as_me: creating $ac_file" >&6;}
13009 rm -f "$ac_file"
13010 fi
13011 # Let's still pretend it is `configure' which instantiates (i.e., don't
13012 # use $as_me), people would be surprised to read:
13013 # /* config.h. Generated automatically by config.status. */
13014 configure_input="Generated automatically from `echo $ac_file_in |
13015 sed 's,.*/,,'` by configure."
13016
13017 # First look for the input files in the build tree, otherwise in the
13018 # src tree.
13019 ac_file_inputs=`IFS=:
13020 for f in $ac_file_in; do
13021 case $f in
13022 -) echo $tmp/stdin ;;
13023 [\\/$]*)
13024 # Absolute (can't be DOS-style, as IFS=:)
13025 test -f "$f" || { { echo "$as_me:13025: error: cannot find input file: $f" >&5
13026 echo "$as_me: error: cannot find input file: $f" >&2;}
13027 { (exit 1); exit 1; }; }
13028 echo $f;;
13029 *) # Relative
13030 if test -f "$f"; then
13031 # Build tree
13032 echo $f
13033 elif test -f "$srcdir/$f"; then
13034 # Source tree
13035 echo $srcdir/$f
13036 else
13037 # /dev/null tree
13038 { { echo "$as_me:13038: error: cannot find input file: $f" >&5
13039 echo "$as_me: error: cannot find input file: $f" >&2;}
13040 { (exit 1); exit 1; }; }
13041 fi;;
13042 esac
13043 done` || { (exit 1); exit 1; }
13044 EOF
13045 cat >>$CONFIG_STATUS <<EOF
13046 sed "$ac_vpsub
13047 $extrasub
13048 EOF
13049 cat >>$CONFIG_STATUS <<\EOF
13050 :t
13051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13052 s,@configure_input@,$configure_input,;t t
13053 s,@srcdir@,$ac_srcdir,;t t
13054 s,@top_srcdir@,$ac_top_srcdir,;t t
13055 s,@INSTALL@,$ac_INSTALL,;t t
13056 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13057 rm -f $tmp/stdin
13058 if test x"$ac_file" != x-; then
13059 mv $tmp/out $ac_file
13060 else
13061 cat $tmp/out
13062 rm -f $tmp/out
13063 fi
13064
13065 done
13066 EOF
13067 cat >>$CONFIG_STATUS <<\EOF
13068
13069 #
13070 # CONFIG_HEADER section.
13071 #
13072
13073 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13074 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13075 #
13076 # ac_d sets the value in "#define NAME VALUE" lines.
13077 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13078 ac_dB='[ ].*$,\1#\2'
13079 ac_dC=' '
13080 ac_dD=',;t'
13081 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13082 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13083 ac_uB='$,\1#\2define\3'
13084 ac_uC=' '
13085 ac_uD=',;t'
13086
13087 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13088 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13089 case $ac_file in
13090 - | *:- | *:-:* ) # input from stdin
13091 cat >$tmp/stdin
13092 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13094 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13096 * ) ac_file_in=$ac_file.in ;;
13097 esac
13098
13099 test x"$ac_file" != x- && { echo "$as_me:13099: creating $ac_file" >&5
13100 echo "$as_me: creating $ac_file" >&6;}
13101
13102 # First look for the input files in the build tree, otherwise in the
13103 # src tree.
13104 ac_file_inputs=`IFS=:
13105 for f in $ac_file_in; do
13106 case $f in
13107 -) echo $tmp/stdin ;;
13108 [\\/$]*)
13109 # Absolute (can't be DOS-style, as IFS=:)
13110 test -f "$f" || { { echo "$as_me:13110: error: cannot find input file: $f" >&5
13111 echo "$as_me: error: cannot find input file: $f" >&2;}
13112 { (exit 1); exit 1; }; }
13113 echo $f;;
13114 *) # Relative
13115 if test -f "$f"; then
13116 # Build tree
13117 echo $f
13118 elif test -f "$srcdir/$f"; then
13119 # Source tree
13120 echo $srcdir/$f
13121 else
13122 # /dev/null tree
13123 { { echo "$as_me:13123: error: cannot find input file: $f" >&5
13124 echo "$as_me: error: cannot find input file: $f" >&2;}
13125 { (exit 1); exit 1; }; }
13126 fi;;
13127 esac
13128 done` || { (exit 1); exit 1; }
13129 # Remove the trailing spaces.
13130 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13131
13132 EOF
13133
13134 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13135 # `conftest.undefs', that substitutes the proper values into
13136 # config.h.in to produce config.h. The first handles `#define'
13137 # templates, and the second `#undef' templates.
13138 # And first: Protect against being on the right side of a sed subst in
13139 # config.status. Protect against being in an unquoted here document
13140 # in config.status.
13141 rm -f conftest.defines conftest.undefs
13142 # Using a here document instead of a string reduces the quoting nightmare.
13143 # Putting comments in sed scripts is not portable.
13144 #
13145 # `end' is used to avoid that the second main sed command (meant for
13146 # 0-ary CPP macros) applies to n-ary macro definitions.
13147 # See the Autoconf documentation for `clear'.
13148 cat >confdef2sed.sed <<\EOF
13149 s/[\\&,]/\\&/g
13150 s,[\\$`],\\&,g
13151 t clear
13152 : clear
13153 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13154 t end
13155 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13156 : end
13157 EOF
13158 # If some macros were called several times there might be several times
13159 # the same #defines, which is useless. Nevertheless, we may not want to
13160 # sort them, since we want the *last* AC-DEFINE to be honored.
13161 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13162 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13163 rm -f confdef2sed.sed
13164
13165 # This sed command replaces #undef with comments. This is necessary, for
13166 # example, in the case of _POSIX_SOURCE, which is predefined and required
13167 # on some systems where configure will not decide to define it.
13168 cat >>conftest.undefs <<\EOF
13169 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13170 EOF
13171
13172 # Break up conftest.defines because some shells have a limit on the size
13173 # of here documents, and old seds have small limits too (100 cmds).
13174 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13175 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13176 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13177 echo ' :' >>$CONFIG_STATUS
13178 rm -f conftest.tail
13179 while grep . conftest.defines >/dev/null
13180 do
13181 # Write a limited-size here document to $tmp/defines.sed.
13182 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13183 # Speed up: don't consider the non `#define' lines.
13184 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13185 # Work around the forget-to-reset-the-flag bug.
13186 echo 't clr' >>$CONFIG_STATUS
13187 echo ': clr' >>$CONFIG_STATUS
13188 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13189 echo 'CEOF
13190 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13191 rm -f $tmp/in
13192 mv $tmp/out $tmp/in
13193 ' >>$CONFIG_STATUS
13194 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13195 rm -f conftest.defines
13196 mv conftest.tail conftest.defines
13197 done
13198 rm -f conftest.defines
13199 echo ' fi # egrep' >>$CONFIG_STATUS
13200 echo >>$CONFIG_STATUS
13201
13202 # Break up conftest.undefs because some shells have a limit on the size
13203 # of here documents, and old seds have small limits too (100 cmds).
13204 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13205 rm -f conftest.tail
13206 while grep . conftest.undefs >/dev/null
13207 do
13208 # Write a limited-size here document to $tmp/undefs.sed.
13209 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13210 # Speed up: don't consider the non `#undef'
13211 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13212 # Work around the forget-to-reset-the-flag bug.
13213 echo 't clr' >>$CONFIG_STATUS
13214 echo ': clr' >>$CONFIG_STATUS
13215 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13216 echo 'CEOF
13217 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13218 rm -f $tmp/in
13219 mv $tmp/out $tmp/in
13220 ' >>$CONFIG_STATUS
13221 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13222 rm -f conftest.undefs
13223 mv conftest.tail conftest.undefs
13224 done
13225 rm -f conftest.undefs
13226
13227 cat >>$CONFIG_STATUS <<\EOF
13228 # Let's still pretend it is `configure' which instantiates (i.e., don't
13229 # use $as_me), people would be surprised to read:
13230 # /* config.h. Generated automatically by config.status. */
13231 if test x"$ac_file" = x-; then
13232 echo "/* Generated automatically by configure. */" >$tmp/config.h
13233 else
13234 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13235 fi
13236 cat $tmp/in >>$tmp/config.h
13237 rm -f $tmp/in
13238 if test x"$ac_file" != x-; then
13239 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13240 { echo "$as_me:13240: $ac_file is unchanged" >&5
13241 echo "$as_me: $ac_file is unchanged" >&6;}
13242 else
13243 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13244 X"$ac_file" : 'X\(//\)[^/]' \| \
13245 X"$ac_file" : 'X\(//\)$' \| \
13246 X"$ac_file" : 'X\(/\)' \| \
13247 . : '\(.\)' 2>/dev/null ||
13248 echo X"$ac_file" |
13249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13251 /^X\(\/\/\)$/{ s//\1/; q; }
13252 /^X\(\/\).*/{ s//\1/; q; }
13253 s/.*/./; q'`
13254 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13255 { case "$ac_dir" in
13256 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13257 *) as_incr_dir=.;;
13258 esac
13259 as_dummy="$ac_dir"
13260 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13261 case $as_mkdir_dir in
13262 # Skip DOS drivespec
13263 ?:) as_incr_dir=$as_mkdir_dir ;;
13264 *)
13265 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13266 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13267 ;;
13268 esac
13269 done; }
13270
13271 fi
13272 rm -f $ac_file
13273 mv $tmp/config.h $ac_file
13274 fi
13275 else
13276 cat $tmp/config.h
13277 rm -f $tmp/config.h
13278 fi
13279 done
13280 EOF
13281 cat >>$CONFIG_STATUS <<\EOF
13282
13283 #
13284 # CONFIG_COMMANDS section.
13285 #
13286 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13287 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13288 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13289
13290 case $ac_dest in
13291 default )
13292
13293 ### Make the necessary directories, if they don't exist.
13294 for dir in etc lisp ; do
13295 test -d ${dir} || mkdir ${dir}
13296 done
13297
13298 # Build src/Makefile from ${srcdir}/src/Makefile.c
13299 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13300 # This must be done after src/config.h is built, since we rely on that file.
13301
13302 # Now get this: Some word that is part of the ${srcdir} directory name
13303 # or the ${configuration} value might, just might, happen to be an
13304 # identifier like `sun4' or `i386' or something, and be predefined by
13305 # the C preprocessor to some helpful value like 1, or maybe the empty
13306 # string. Needless to say consequent macro substitutions are less
13307 # than conducive to the makefile finding the correct directory.
13308 undefs="`echo $top_srcdir $configuration $canonical |
13309 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13310 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13311 `"
13312
13313 echo creating src/epaths.h
13314 ${MAKE-make} epaths-force
13315
13316 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13317 # `..' to `. .' unless invoked with -traditional
13318
13319 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13320 CPPFLAGS="$CPPFLAGS -traditional"
13321 fi
13322
13323 echo creating lib-src/Makefile
13324 ( cd lib-src
13325 rm -f junk.c junk1.c junk2.c
13326 sed -e '/start of cpp stuff/q' \
13327 < Makefile.c > junk1.c
13328 sed -e '1,/start of cpp stuff/d'\
13329 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13330 < Makefile.c > junk.c
13331 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13332 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13333 cat junk1.c junk2.c > Makefile.new
13334 rm -f junk.c junk1.c junk2.c
13335 chmod 444 Makefile.new
13336 mv -f Makefile.new Makefile
13337 )
13338
13339 echo creating src/Makefile
13340 ( cd src
13341 rm -f junk.c junk1.c junk2.c
13342 sed -e '/start of cpp stuff/q' \
13343 < Makefile.c > junk1.c
13344 sed -e '1,/start of cpp stuff/d'\
13345 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13346 < Makefile.c > junk.c
13347 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13348 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13349 cat junk1.c junk2.c > Makefile.new
13350 rm -f junk.c junk1.c junk2.c
13351 chmod 444 Makefile.new
13352 mv -f Makefile.new Makefile
13353 )
13354
13355 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13356 echo creating src/.gdbinit
13357 echo source $srcdir/src/.gdbinit > src/.gdbinit
13358 fi
13359
13360 # This is how we know whether to re-run configure in certain cases.
13361 touch src/config.stamp
13362
13363 ;;
13364 esac
13365 done
13366 EOF
13367
13368 cat >>$CONFIG_STATUS <<\EOF
13369
13370 { (exit 0); exit 0; }
13371 EOF
13372 chmod +x $CONFIG_STATUS
13373 ac_clean_files=$ac_clean_files_save
13374
13375 # configure is writing to config.log, and then calls config.status.
13376 # config.status does its own redirection, appending to config.log.
13377 # Unfortunately, on DOS this fails, as config.log is still kept open
13378 # by configure, so config.status won't be able to write to it; its
13379 # output is simply discarded. So we exec the FD to /dev/null,
13380 # effectively closing config.log, so it can be properly (re)opened and
13381 # appended to by config.status. When coming back to configure, we
13382 # need to make the FD available again.
13383 if test "$no_create" != yes; then
13384 ac_cs_success=:
13385 exec 5>/dev/null
13386 $SHELL $CONFIG_STATUS || ac_cs_success=false
13387 exec 5>>config.log
13388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13389 # would make configure fail if this is the last instruction.
13390 $ac_cs_success || { (exit 1); exit 1; }
13391 fi
13392