(HASH_VALUE): Remove (it's in lisp.h now).
[emacs.git] / configure
blob640b96a4003b718ef50d7b5d7134a3db89f32463
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
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.
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
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
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"
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
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
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'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
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
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; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
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`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
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}
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"
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
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'
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
190 ac_prev=
191 for ac_option
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
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
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 ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
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 ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
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 ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
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 ;;
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 ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
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 ;;
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 ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
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 ;;
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 ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
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 ;;
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 ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
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'" ;;
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" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
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 ;;
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 ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
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 ;;
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}
486 esac
487 done
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; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
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
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
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
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
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
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
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=..
551 else
552 ac_srcdir_defaulted=no
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; }; }
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
598 # Report the --help message.
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.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
611 Defaults for the options are specified in brackets.
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 \`..']
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]
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'.
638 For better control, use the options below.
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]
655 cat <<\EOF
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
662 X features:
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
666 System types:
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
672 if test -n "$ac_init_help"; then
674 cat <<\EOF
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
681 Optional Packages:
682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --with-game-dir use a shared game directory if possible
685 --with-game-user use specified user for game directory
686 --without-gcc don't use GCC to compile Emacs if GCC is found
687 --without-pop don't support POP mail retrieval with movemail
688 --with-kerberos support Kerberos-authenticated POP
689 --with-kerberos5 support Kerberos version 5 authenticated POP
690 --with-hesiod support Hesiod to get the POP server host
691 --without-sound don't compile with sound support
692 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
693 --with-xpm use -lXpm for displaying XPM images
694 --with-jpeg use -ljpeg for displaying JPEG images
695 --with-tiff use -ltiff for displaying TIFF images
696 --with-gif use -lungif for displaying GIF images
697 --with-png use -lpng for displaying PNG images
698 --without-toolkit-scroll-bars
699 don't use Motif or Xaw3d scroll bars
700 --without-xim don't use X11 XIM
701 --without-carbon don't use Carbon GUI on Mac OS X
702 --with-x use the X Window System
704 Some influential environment variables:
705 CC C compiler command
706 CFLAGS C compiler flags
707 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
708 nonstandard directory <lib dir>
709 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
710 headers in a nonstandard directory <include dir>
711 CPP C preprocessor
713 Use these variables to override the choices made by `configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
719 if test "$ac_init_help" = "recursive"; then
720 # If there are subdirs, report their specific --help.
721 ac_popdir=`pwd`
722 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 cd $ac_subdir
724 # A "../" for each directory in /$ac_subdir.
725 ac_dots=`echo $ac_subdir |
726 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 case $srcdir in
729 .) # No --srcdir option. We are building in place.
730 ac_sub_srcdir=$srcdir ;;
731 [\\/]* | ?:[\\/]* ) # Absolute path.
732 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 *) # Relative path.
734 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735 esac
737 # Check for guested configure; otherwise get Cygnus style configure.
738 if test -f $ac_sub_srcdir/configure.gnu; then
739 echo
740 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
741 elif test -f $ac_sub_srcdir/configure; then
742 echo
743 $SHELL $ac_sub_srcdir/configure --help=recursive
744 elif test -f $ac_sub_srcdir/configure.ac ||
745 test -f $ac_sub_srcdir/configure.in; then
746 echo
747 $ac_configure --help
748 else
749 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
751 cd $ac_popdir
752 done
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
757 cat <<\EOF
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
764 exit 0
766 exec 5>config.log
767 cat >&5 <<EOF
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52. Invocation command line was
774 $ $0 $@
778 cat <<_ASUNAME
779 ## ---------- ##
780 ## Platform. ##
781 ## ---------- ##
783 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
784 uname -m = `(uname -m) 2>/dev/null || echo unknown`
785 uname -r = `(uname -r) 2>/dev/null || echo unknown`
786 uname -s = `(uname -s) 2>/dev/null || echo unknown`
787 uname -v = `(uname -v) 2>/dev/null || echo unknown`
789 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
790 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
792 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
793 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
794 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
795 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
796 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
797 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
798 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
800 PATH = $PATH
802 _ASUNAME
803 } >&5
805 cat >&5 <<EOF
806 ## ------------ ##
807 ## Core tests. ##
808 ## ------------ ##
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
815 ac_configure_args=
816 ac_sep=
817 for ac_arg
819 case $ac_arg in
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
826 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 ac_sep=" " ;;
828 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829 ac_sep=" " ;;
830 esac
831 # Get rid of the leading space.
832 done
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log. We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
837 trap 'exit_status=$?
838 # Save into config.log some information that might help in debugging.
839 echo >&5
840 echo "## ----------------- ##" >&5
841 echo "## Cache variables. ##" >&5
842 echo "## ----------------- ##" >&5
843 echo >&5
844 # The following way of writing the cache mishandles newlines in values,
846 (set) 2>&1 |
847 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
848 *ac_space=\ *)
849 sed -n \
850 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 sed -n \
855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857 esac;
858 } >&5
859 sed "/^$/d" confdefs.h >conftest.log
860 if test -s conftest.log; then
861 echo >&5
862 echo "## ------------ ##" >&5
863 echo "## confdefs.h. ##" >&5
864 echo "## ------------ ##" >&5
865 echo >&5
866 cat conftest.log >&5
868 (echo; echo) >&5
869 test "$ac_signal" != 0 &&
870 echo "$as_me: caught signal $ac_signal" >&5
871 echo "$as_me: exit $exit_status" >&5
872 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873 exit $exit_status
875 for ac_signal in 1 2 13 15; do
876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
877 done
878 ac_signal=0
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 echo >confdefs.h
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 else
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898 cat "$ac_site_file" >&5
899 . "$ac_site_file"
901 done
903 if test -r "$cache_file"; then
904 # Some versions of bash will fail to source /dev/null (special
905 # files actually), so we avoid doing that.
906 if test -f "$cache_file"; then
907 { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
909 case $cache_file in
910 [\\/]* | ?:[\\/]* ) . $cache_file;;
911 *) . ./$cache_file;;
912 esac
914 else
915 { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
917 >$cache_file
920 # Check that the precious variables saved in the cache have kept the same
921 # value.
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
926 eval ac_new_set=\$ac_env_${ac_var}_set
927 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928 eval ac_new_val="\$ac_env_${ac_var}_value"
929 case $ac_old_set,$ac_new_set in
930 set,)
931 { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
934 ,set)
935 { echo "$as_me:935: error: \`$ac_var' was not set in the previous run" >&5
936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
937 ac_cache_corrupted=: ;;
938 ,);;
940 if test "x$ac_old_val" != "x$ac_new_val"; then
941 { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
943 { echo "$as_me:943: former value: $ac_old_val" >&5
944 echo "$as_me: former value: $ac_old_val" >&2;}
945 { echo "$as_me:945: current value: $ac_new_val" >&5
946 echo "$as_me: current value: $ac_new_val" >&2;}
947 ac_cache_corrupted=:
948 fi;;
949 esac
950 # Pass precious variables to config.status. It doesn't matter if
951 # we pass some twice (in addition to the command line arguments).
952 if test "$ac_new_set" = set; then
953 case $ac_new_val in
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
956 ac_configure_args="$ac_configure_args '$ac_arg'"
958 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
960 esac
962 done
963 if $ac_cache_corrupted; then
964 { echo "$as_me:964: error: changes in the environment can compromise the build" >&5
965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
966 { { echo "$as_me:966: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
968 { (exit 1); exit 1; }; }
971 ac_ext=c
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
977 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C='
979 ' ECHO_T=' ' ;;
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 esac
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
985 chmod +x conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
988 ac_status=$?
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
992 else
993 ac_path_separator=:
995 PATH_SEPARATOR="$ac_path_separator"
996 rm -f conftest.sh
998 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1000 test "$program_prefix" != NONE &&
1001 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1002 # Use a double $ so make ignores it.
1003 test "$program_suffix" != NONE &&
1004 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1005 # Double any \ or $. echo might interpret backslashes.
1006 # By default was `s,x,x', remove it if useless.
1007 cat <<\_ACEOF >conftest.sed
1008 s/[\\$]/&&/g;s/;s,x,x,$//
1009 _ACEOF
1010 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1011 rm conftest.sed
1013 lispdir='${datadir}/emacs/${version}/lisp'
1014 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1015 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1016 lisppath='${locallisppath}:${lispdir}'
1017 etcdir='${datadir}/emacs/${version}/etc'
1018 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1019 docdir='${datadir}/emacs/${version}/etc'
1020 gamedir=yes
1022 # Check whether --with-game-dir or --without-game-dir was given.
1023 if test "${with_game_dir+set}" = set; then
1024 withval="$with_game_dir"
1026 gamedir="$withval"
1029 if test "$gamedir" = yes; then
1030 gamedir="${localstatedir}/games/emacs"
1032 eval tgamedir=\"$gamedir\"
1033 if test "$gamedir" != no; then
1035 cat >>confdefs.h <<EOF
1036 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1041 gameuser=games
1043 # Check whether --with-game-user or --without-game-user was given.
1044 if test "${with_game_user+set}" = set; then
1045 withval="$with_game_user"
1046 gameuser="$withval"
1049 # Check whether --with-gcc or --without-gcc was given.
1050 if test "${with_gcc+set}" = set; then
1051 withval="$with_gcc"
1055 # Check whether --with-pop or --without-pop was given.
1056 if test "${with_pop+set}" = set; then
1057 withval="$with_pop"
1058 if test "$withval" = yes; then
1059 cat >>confdefs.h <<\EOF
1060 #define MAIL_USE_POP 1
1063 else :
1065 else
1066 cat >>confdefs.h <<\EOF
1067 #define MAIL_USE_POP 1
1072 # Check whether --with-kerberos or --without-kerberos was given.
1073 if test "${with_kerberos+set}" = set; then
1074 withval="$with_kerberos"
1075 cat >>confdefs.h <<\EOF
1076 #define KERBEROS 1
1081 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1082 if test "${with_kerberos5+set}" = set; then
1083 withval="$with_kerberos5"
1084 if test "${with_kerberos5+set}" = set; then
1085 if test "${with_kerberos+set}" != set; then
1086 with_kerberos=yes
1087 cat >>confdefs.h <<\EOF
1088 #define KERBEROS 1
1094 cat >>confdefs.h <<\EOF
1095 #define KERBEROS5 1
1100 # Check whether --with-hesiod or --without-hesiod was given.
1101 if test "${with_hesiod+set}" = set; then
1102 withval="$with_hesiod"
1104 cat >>confdefs.h <<\EOF
1105 #define HESIOD 1
1110 # Check whether --with-sound or --without-sound was given.
1111 if test "${with_sound+set}" = set; then
1112 withval="$with_sound"
1116 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1117 if test "${with_x_toolkit+set}" = set; then
1118 withval="$with_x_toolkit"
1119 case "${withval}" in
1120 y | ye | yes ) val=athena ;;
1121 n | no ) val=no ;;
1122 l | lu | luc | luci | lucid ) val=lucid ;;
1123 a | at | ath | athe | athen | athena ) val=athena ;;
1124 m | mo | mot | moti | motif ) val=motif ;;
1126 { { echo "$as_me:1126: error: \`--with-x-toolkit=$withval' is invalid\;
1127 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1128 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1129 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1130 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1131 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1132 { (exit 1); exit 1; }; }
1134 esac
1135 with_x_toolkit=$val
1139 # Check whether --with-xpm or --without-xpm was given.
1140 if test "${with_xpm+set}" = set; then
1141 withval="$with_xpm"
1145 # Check whether --with-jpeg or --without-jpeg was given.
1146 if test "${with_jpeg+set}" = set; then
1147 withval="$with_jpeg"
1151 # Check whether --with-tiff or --without-tiff was given.
1152 if test "${with_tiff+set}" = set; then
1153 withval="$with_tiff"
1157 # Check whether --with-gif or --without-gif was given.
1158 if test "${with_gif+set}" = set; then
1159 withval="$with_gif"
1163 # Check whether --with-png or --without-png was given.
1164 if test "${with_png+set}" = set; then
1165 withval="$with_png"
1169 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1170 if test "${with_toolkit_scroll_bars+set}" = set; then
1171 withval="$with_toolkit_scroll_bars"
1175 # Check whether --with-xim or --without-xim was given.
1176 if test "${with_xim+set}" = set; then
1177 withval="$with_xim"
1181 # Check whether --with-carbon or --without-carbon was given.
1182 if test "${with_carbon+set}" = set; then
1183 withval="$with_carbon"
1187 #### Make srcdir absolute, if it isn't already. It's important to
1188 #### avoid running the path through pwd unnecessarily, since pwd can
1189 #### give you automounter prefixes, which can go away. We do all this
1190 #### so Emacs can find its files when run uninstalled.
1191 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1192 unset CDPATH
1193 case "${srcdir}" in
1194 /* ) ;;
1196 ## We may be able to use the $PWD environment variable to make this
1197 ## absolute. But sometimes PWD is inaccurate.
1198 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1199 ## but that tested only for a well-formed and valid PWD,
1200 ## it did not object when PWD was well-formed and valid but just wrong.
1201 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1202 then
1203 srcdir="$PWD"
1204 else
1205 srcdir="`(cd ${srcdir}; pwd)`"
1208 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1209 esac
1211 #### Check if the source directory already has a configured system in it.
1212 if test `pwd` != `(cd ${srcdir} && pwd)` \
1213 && test -f "${srcdir}/src/config.h" ; then
1214 { echo "$as_me:1214: WARNING: The directory tree \`${srcdir}' is being used
1215 as a build directory right now; it has been configured in its own
1216 right. To configure in another directory as well, you MUST
1217 use GNU make. If you do not have GNU make, then you must
1218 now do \`make distclean' in ${srcdir},
1219 and then run $0 again." >&5
1220 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1221 as a build directory right now; it has been configured in its own
1222 right. To configure in another directory as well, you MUST
1223 use GNU make. If you do not have GNU make, then you must
1224 now do \`make distclean' in ${srcdir},
1225 and then run $0 again." >&2;}
1227 extrasub='/^VPATH[ ]*=/c\
1228 vpath %.c $(srcdir)\
1229 vpath %.h $(srcdir)\
1230 vpath %.y $(srcdir)\
1231 vpath %.l $(srcdir)\
1232 vpath %.s $(srcdir)\
1233 vpath %.in $(srcdir)\
1234 vpath %.texi $(srcdir)'
1237 #### Given the configuration name, set machfile and opsysfile to the
1238 #### names of the m/*.h and s/*.h files we should use.
1240 ### Canonicalize the configuration name.
1242 ac_aux_dir=
1243 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1244 if test -f $ac_dir/install-sh; then
1245 ac_aux_dir=$ac_dir
1246 ac_install_sh="$ac_aux_dir/install-sh -c"
1247 break
1248 elif test -f $ac_dir/install.sh; then
1249 ac_aux_dir=$ac_dir
1250 ac_install_sh="$ac_aux_dir/install.sh -c"
1251 break
1252 elif test -f $ac_dir/shtool; then
1253 ac_aux_dir=$ac_dir
1254 ac_install_sh="$ac_aux_dir/shtool install -c"
1255 break
1257 done
1258 if test -z "$ac_aux_dir"; then
1259 { { echo "$as_me:1259: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1260 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1261 { (exit 1); exit 1; }; }
1263 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1264 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1265 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1267 # Make sure we can run config.sub.
1268 $ac_config_sub sun4 >/dev/null 2>&1 ||
1269 { { echo "$as_me:1269: error: cannot run $ac_config_sub" >&5
1270 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1271 { (exit 1); exit 1; }; }
1273 echo "$as_me:1273: checking build system type" >&5
1274 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1275 if test "${ac_cv_build+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 else
1278 ac_cv_build_alias=$build_alias
1279 test -z "$ac_cv_build_alias" &&
1280 ac_cv_build_alias=`$ac_config_guess`
1281 test -z "$ac_cv_build_alias" &&
1282 { { echo "$as_me:1282: error: cannot guess build type; you must specify one" >&5
1283 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1284 { (exit 1); exit 1; }; }
1285 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1286 { { echo "$as_me:1286: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1287 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1288 { (exit 1); exit 1; }; }
1291 echo "$as_me:1291: result: $ac_cv_build" >&5
1292 echo "${ECHO_T}$ac_cv_build" >&6
1293 build=$ac_cv_build
1294 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1295 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1296 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1298 echo "$as_me:1298: checking host system type" >&5
1299 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1300 if test "${ac_cv_host+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1302 else
1303 ac_cv_host_alias=$host_alias
1304 test -z "$ac_cv_host_alias" &&
1305 ac_cv_host_alias=$ac_cv_build_alias
1306 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1307 { { echo "$as_me:1307: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1308 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1309 { (exit 1); exit 1; }; }
1312 echo "$as_me:1312: result: $ac_cv_host" >&5
1313 echo "${ECHO_T}$ac_cv_host" >&6
1314 host=$ac_cv_host
1315 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1316 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1317 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 canonical=$host
1320 configuration=${host_alias-$host}
1322 ### If you add support for a new configuration, add code to this
1323 ### switch statement to recognize your configuration name and select
1324 ### the appropriate operating system and machine description files.
1326 ### You would hope that you could choose an m/*.h file pretty much
1327 ### based on the machine portion of the configuration name, and an s-
1328 ### file based on the operating system portion. However, it turns out
1329 ### that each m/*.h file is pretty manufacturer-specific - for
1330 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1331 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1332 ### machines. So we basically have to have a special case for each
1333 ### configuration name.
1335 ### As far as handling version numbers on operating systems is
1336 ### concerned, make sure things will fail in a fixable way. If
1337 ### /etc/MACHINES doesn't say anything about version numbers, be
1338 ### prepared to handle anything reasonably. If version numbers
1339 ### matter, be sure /etc/MACHINES says something about it.
1341 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1342 ### "System V Release 4"; he writes, "The old convention encouraged
1343 ### confusion between `system' and `release' levels'."
1345 machine='' opsys='' unported=no
1346 case "${canonical}" in
1348 ## FreeBSD ports
1349 *-*-freebsd* )
1350 opsys=freebsd
1351 case "${canonical}" in
1352 alpha*-*-freebsd*) machine=alpha ;;
1353 i[3456]86-*-freebsd*) machine=intel386 ;;
1354 esac
1357 ## NetBSD ports
1358 *-*-netbsd* )
1359 opsys=netbsd
1360 case "${canonical}" in
1361 alpha*-*-netbsd*) machine=alpha ;;
1362 i[3456]86-*-netbsd*) machine=intel386 ;;
1363 m68k-*-netbsd*)
1364 # This is somewhat bogus.
1365 machine=hp9000s300 ;;
1366 powerpc-apple-netbsd*) machine=macppc ;;
1367 mips-*-netbsd*) machine=pmax ;;
1368 mipsel-*-netbsd*) machine=pmax ;;
1369 mipseb-*-netbsd*) machine=pmax ;;
1370 ns32k-*-netbsd*) machine=ns32000 ;;
1371 powerpc-*-netbsd*) machine=macppc ;;
1372 sparc*-*-netbsd*) machine=sparc ;;
1373 vax-*-netbsd*) machine=vax ;;
1374 arm-*-netbsd*) machine=arm ;;
1375 esac
1378 ## OpenBSD ports
1379 *-*-openbsd* )
1380 opsys=openbsd
1381 case "${canonical}" in
1382 alpha*-*-openbsd*) machine=alpha ;;
1383 i386-*-openbsd*) machine=intel386 ;;
1384 m68k-*-openbsd*) machine=hp9000s300 ;;
1385 mipsel-*-openbsd*) machine=pmax ;;
1386 ns32k-*-openbsd*) machine=ns32000 ;;
1387 sparc-*-openbsd*) machine=sparc ;;
1388 vax-*-openbsd*) machine=vax ;;
1389 esac
1392 ## Acorn RISCiX:
1393 arm-acorn-riscix1.1* )
1394 machine=acorn opsys=riscix1-1
1396 arm-acorn-riscix1.2* | arm-acorn-riscix )
1397 ## This name is riscix12 instead of riscix1.2
1398 ## to avoid a file name conflict on MSDOS.
1399 machine=acorn opsys=riscix12
1402 ## BSDI ports
1403 *-*-bsdi* )
1404 opsys=bsdi
1405 case "${canonical}" in
1406 i[345]86-*-bsdi*) machine=intel386 ;;
1407 sparc-*-bsdi*) machine=sparc ;;
1408 powerpc-*-bsdi*) machine=macppc ;;
1409 esac
1410 case "${canonical}" in
1411 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1412 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1413 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1414 *-*-bsdi3* ) opsys=bsdos3 ;;
1415 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1416 esac
1419 ## Alliant machines
1420 ## Strictly speaking, we need the version of the alliant operating
1421 ## system to choose the right machine file, but currently the
1422 ## configuration name doesn't tell us enough to choose the right
1423 ## one; we need to give alliants their own operating system name to
1424 ## do this right. When someone cares, they can help us.
1425 fx80-alliant-* )
1426 machine=alliant4 opsys=bsd4-2
1428 i860-alliant-* )
1429 machine=alliant-2800 opsys=bsd4-3
1432 ## Alpha (DEC) machines.
1433 alpha*-dec-osf* )
1434 machine=alpha opsys=osf1
1435 # This is needed to find X11R6.1 libraries for certain tests.
1436 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1437 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1438 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1439 # due to non-traditional preprocessing with the current compiler
1440 # defaults. OSF 4 can also have that compiler version, and there
1441 # seems always to have been a usable /usr/bin/cpp.
1442 NON_GNU_CPP=/usr/bin/cpp
1443 case "${canonical}" in
1444 alpha*-dec-osf[5-9]*)
1445 opsys=osf5-0 ;;
1446 esac
1449 alpha*-*-linux-gnu* )
1450 machine=alpha opsys=gnu-linux
1453 arm*-*-linux-gnu* )
1454 machine=arm opsys=gnu-linux
1457 ppc-*-linux | \
1458 powerpc-*-linux* )
1459 machine=macppc opsys=gnu-linux
1462 ## Altos 3068
1463 m68*-altos-sysv* )
1464 machine=altos opsys=usg5-2
1467 ## Amdahl UTS
1468 580-amdahl-sysv* )
1469 machine=amdahl opsys=usg5-2-2
1472 ## Apollo, Domain/OS
1473 m68*-apollo-* )
1474 machine=apollo opsys=bsd4-3
1477 ## AT&T 3b2, 3b5, 3b15, 3b20
1478 we32k-att-sysv* )
1479 machine=att3b opsys=usg5-2-2
1482 ## AT&T 3b1 - The Mighty Unix PC!
1483 m68*-att-sysv* )
1484 machine=7300 opsys=usg5-2-2
1487 ## Bull dpx20
1488 rs6000-bull-bosx* )
1489 machine=ibmrs6000 opsys=aix3-2
1492 ## Bull dpx2
1493 m68*-bull-sysv3* )
1494 machine=dpx2 opsys=usg5-3
1497 ## Bull sps7
1498 m68*-bull-sysv2* )
1499 machine=sps7 opsys=usg5-2
1502 ## CCI 5/32, 6/32 -- see "Tahoe".
1504 ## Celerity
1505 ## I don't know what configuration name to use for this; config.sub
1506 ## doesn't seem to know anything about it. Hey, Celerity users, get
1507 ## in touch with us!
1508 celerity-celerity-bsd* )
1509 machine=celerity opsys=bsd4-2
1512 ## Clipper
1513 ## What operating systems does this chip run that Emacs has been
1514 ## tested on?
1515 clipper-* )
1516 machine=clipper
1517 ## We'll use the catch-all code at the bottom to guess the
1518 ## operating system.
1521 ## Compaq Nonstop
1522 mips-compaq-nonstopux* )
1523 machine=nonstopux opsys=nonstopux
1526 ## Convex
1527 *-convex-bsd* | *-convex-convexos* )
1528 machine=convex opsys=bsd4-3
1529 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1530 NON_GNU_CPP="cc -E -P"
1533 ## Cubix QBx/386
1534 i[3456]86-cubix-sysv* )
1535 machine=intel386 opsys=usg5-3
1538 ## Cydra 5
1539 cydra*-cydrome-sysv* )
1540 machine=cydra5 opsys=usg5-3
1543 ## Data General AViiON Machines
1544 ## DG changed naming conventions with the release of 5.4.4.10, they
1545 ## dropped the initial 5.4 but left the intervening R. Because of the
1546 ## R this shouldn't conflict with older versions of the OS (which I
1547 ## think were named like dgux4.*). In addition, DG new AViiONs series
1548 ## uses either Motorola M88k or Intel Pentium CPUs.
1549 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1550 machine=aviion opsys=dgux4
1552 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1553 ## This name is dgux5-4-3 instead of dgux5-4r3
1554 ## to avoid a file name conflict on MSDOS.
1555 machine=aviion opsys=dgux5-4-3
1557 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1558 machine=aviion opsys=dgux5-4r2
1560 m88k-dg-dgux* )
1561 machine=aviion opsys=dgux
1564 ## Data General AViiON Intel (x86) Machines
1565 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1566 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1567 i[345]86-dg-dguxR4* )
1568 machine=aviion-intel opsys=dgux4
1571 ## DECstations
1572 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1573 machine=pmax opsys=bsd4-2
1575 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1576 machine=pmax opsys=bsd4-3
1578 mips-dec-ultrix* )
1579 machine=pmax opsys=ultrix4-3
1581 mips-dec-osf* )
1582 machine=pmax opsys=osf1
1584 mips-dec-mach_bsd4.3* )
1585 machine=pmax opsys=mach-bsd4-3
1588 ## Motorola Delta machines
1589 m68k-motorola-sysv* | m68000-motorola-sysv* )
1590 machine=delta opsys=usg5-3
1591 if test -z "`type gnucc | grep 'not found'`"
1592 then
1593 if test -s /etc/167config
1594 then CC="gnucc -m68040"
1595 else CC="gnucc -m68881"
1597 else
1598 if test -z "`type gcc | grep 'not found'`"
1599 then CC=gcc
1600 else CC=cc
1604 m88k-motorola-sysv4* )
1605 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1606 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1607 # I hope there are not other 4.0 versions for this machine
1608 # which really need usg5-4 instead.
1609 machine=delta88k opsys=usg5-4-2
1611 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1612 machine=delta88k opsys=usg5-3
1615 ## Dual machines
1616 m68*-dual-sysv* )
1617 machine=dual opsys=usg5-2
1619 m68*-dual-uniplus* )
1620 machine=dual opsys=unipl5-2
1623 ## Elxsi 6400
1624 elxsi-elxsi-sysv* )
1625 machine=elxsi opsys=usg5-2
1628 ## Encore machines
1629 ns16k-encore-bsd* )
1630 machine=ns16000 opsys=umax
1633 ## The GEC 63 - apparently, this port isn't really finished yet.
1634 # I'm sure we finished off the last of the machines, though. -- fx
1636 ## Gould Power Node and NP1
1637 pn-gould-bsd4.2* )
1638 machine=gould opsys=bsd4-2
1640 pn-gould-bsd4.3* )
1641 machine=gould opsys=bsd4-3
1643 np1-gould-bsd* )
1644 machine=gould-np1 opsys=bsd4-3
1647 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1648 ## as far as Emacs is concerned).
1649 m88k-harris-cxux* )
1650 # Build needs to be different on 7.0 and later releases
1651 case "`uname -r`" in
1652 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1653 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1654 esac
1655 NON_GNU_CPP="/lib/cpp"
1657 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1658 m68k-harris-cxux* )
1659 machine=nh3000 opsys=cxux
1661 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1662 powerpc-harris-powerunix )
1663 machine=nh6000 opsys=powerunix
1664 NON_GNU_CPP="cc -Xo -E -P"
1666 ## SR2001/SR2201 running HI-UX/MPP
1667 hppa1.1-hitachi-hiuxmpp* )
1668 machine=sr2k opsys=hiuxmpp
1670 hppa1.1-hitachi-hiuxwe2* )
1671 machine=sr2k opsys=hiuxwe2
1673 ## Honeywell XPS100
1674 xps*-honeywell-sysv* )
1675 machine=xps100 opsys=usg5-2
1678 ## HP 9000 series 200 or 300
1679 m68*-hp-bsd* )
1680 machine=hp9000s300 opsys=bsd4-3
1682 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1683 m68*-hp-hpux* )
1684 case "`uname -r`" in
1685 ## Someone's system reports A.B8.05 for this.
1686 ## I wonder what other possibilities there are.
1687 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1688 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1689 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1690 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1691 *) machine=hp9000s300 opsys=hpux ;;
1692 esac
1695 ## HP 9000 series 700 and 800, running HP/UX
1696 hppa*-hp-hpux7* )
1697 machine=hp800 opsys=hpux
1699 hppa*-hp-hpux8* )
1700 machine=hp800 opsys=hpux8
1702 hppa*-hp-hpux9shr* )
1703 machine=hp800 opsys=hpux9shr
1705 hppa*-hp-hpux9* )
1706 machine=hp800 opsys=hpux9
1708 hppa*-hp-hpux10* )
1709 machine=hp800 opsys=hpux10
1711 hppa*-hp-hpux1[1-9]* )
1712 machine=hp800 opsys=hpux11
1715 hppa*-*-linux-gnu* )
1716 machine=hp800 opsys=gnu-linux
1719 ## HP 9000 series 700 and 800, running HP/UX
1720 hppa*-hp-hpux* )
1721 ## Cross-compilation? Nah!
1722 case "`uname -r`" in
1723 ## Someone's system reports A.B8.05 for this.
1724 ## I wonder what other possibilities there are.
1725 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1726 *.08.* ) machine=hp800 opsys=hpux8 ;;
1727 *.09.* ) machine=hp800 opsys=hpux9 ;;
1728 *) machine=hp800 opsys=hpux10 ;;
1729 esac
1731 hppa*-*-nextstep* )
1732 machine=hp800 opsys=nextstep
1735 ## Orion machines
1736 orion-orion-bsd* )
1737 machine=orion opsys=bsd4-2
1739 clipper-orion-bsd* )
1740 machine=orion105 opsys=bsd4-2
1743 ## IBM machines
1744 i[3456]86-ibm-aix1.1* )
1745 machine=ibmps2-aix opsys=usg5-2-2
1747 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1748 machine=ibmps2-aix opsys=usg5-3
1750 i370-ibm-aix*)
1751 machine=ibm370aix opsys=usg5-3
1753 s390-*-linux-gnu)
1754 machine=ibms390 opsys=gnu-linux
1756 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1757 machine=ibmrs6000 opsys=aix3-1
1759 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1760 machine=ibmrs6000 opsys=aix3-2-5
1762 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1763 machine=ibmrs6000 opsys=aix4-1
1765 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1766 machine=ibmrs6000 opsys=aix4-2
1768 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
1769 machine=ibmrs6000 opsys=aix4-2
1771 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1772 machine=ibmrs6000 opsys=aix4
1774 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1775 machine=ibmrs6000 opsys=aix4-1
1777 rs6000-ibm-aix* | powerpc-ibm-aix* )
1778 machine=ibmrs6000 opsys=aix3-2
1780 romp-ibm-bsd4.3* )
1781 machine=ibmrt opsys=bsd4-3
1783 romp-ibm-bsd4.2* )
1784 machine=ibmrt opsys=bsd4-2
1786 romp-ibm-aos4.3* )
1787 machine=ibmrt opsys=bsd4-3
1789 romp-ibm-aos4.2* )
1790 machine=ibmrt opsys=bsd4-2
1792 romp-ibm-aos* )
1793 machine=ibmrt opsys=bsd4-3
1795 romp-ibm-bsd* )
1796 machine=ibmrt opsys=bsd4-3
1798 romp-ibm-aix* )
1799 machine=ibmrt-aix opsys=usg5-2-2
1802 ## Integrated Solutions `Optimum V'
1803 m68*-isi-bsd4.2* )
1804 machine=isi-ov opsys=bsd4-2
1806 m68*-isi-bsd4.3* )
1807 machine=isi-ov opsys=bsd4-3
1810 ## Intel 386 machines where we do care about the manufacturer
1811 i[3456]86-intsys-sysv* )
1812 machine=is386 opsys=usg5-2-2
1815 ## Prime EXL
1816 i[3456]86-prime-sysv* )
1817 machine=i386 opsys=usg5-3
1820 ## Sequent Symmetry running Dynix
1821 i[3456]86-sequent-bsd* )
1822 machine=symmetry opsys=bsd4-3
1825 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1826 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1827 machine=sequent-ptx opsys=ptx4
1828 NON_GNU_CPP=/lib/cpp
1831 ## Sequent Symmetry running DYNIX/ptx
1832 ## Use the old cpp rather than the newer ANSI one.
1833 i[3456]86-sequent-ptx* )
1834 machine=sequent-ptx opsys=ptx
1835 NON_GNU_CPP="/lib/cpp"
1838 ## ncr machine running svr4.3.
1839 i[3456]86-ncr-sysv4.3 )
1840 machine=ncr386 opsys=usg5-4-3
1843 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1844 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1845 i[3456]86-ncr-sysv* )
1846 machine=ncr386 opsys=usg5-4-2
1849 ## Intel Paragon OSF/1
1850 i860-intel-osf1* )
1851 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1854 ## Intel 860
1855 i860-*-sysv4* )
1856 machine=i860 opsys=usg5-4
1857 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1858 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1861 ## Macintosh PowerPC
1862 powerpc*-*-linux-gnu* )
1863 machine=macppc opsys=gnu-linux
1866 ## Masscomp machines
1867 m68*-masscomp-rtu* )
1868 machine=masscomp opsys=rtu
1871 ## Megatest machines
1872 m68*-megatest-bsd* )
1873 machine=mega68 opsys=bsd4-2
1876 ## Workstations sold by MIPS
1877 ## This is not necessarily all workstations using the MIPS processor -
1878 ## Irises are produced by SGI, and DECstations by DEC.
1880 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1881 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1882 ## it gives for choosing between the alternatives seems to be "Use
1883 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1884 ## the BSD world." I'll assume that these are instructions for
1885 ## handling two odd situations, and that every other situation
1886 ## should use mips.h and usg5-2-2, they being listed first.
1887 mips-mips-usg* )
1888 machine=mips4
1889 ## Fall through to the general code at the bottom to decide on the OS.
1891 mips-mips-riscos4* )
1892 machine=mips4 opsys=bsd4-3
1893 NON_GNU_CC="cc -systype bsd43"
1894 NON_GNU_CPP="cc -systype bsd43 -E"
1896 mips-mips-riscos5* )
1897 machine=mips4 opsys=riscos5
1898 NON_GNU_CC="cc -systype bsd43"
1899 NON_GNU_CPP="cc -systype bsd43 -E"
1901 mips-mips-bsd* )
1902 machine=mips opsys=bsd4-3
1904 mips-mips-* )
1905 machine=mips opsys=usg5-2-2
1908 ## NeXT
1909 m68*-next-* | m68k-*-nextstep* )
1910 machine=m68k opsys=nextstep
1913 ## The complete machine from National Semiconductor
1914 ns32k-ns-genix* )
1915 machine=ns32000 opsys=usg5-2
1918 ## NCR machines
1919 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1920 machine=tower32 opsys=usg5-2-2
1922 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1923 machine=tower32v3 opsys=usg5-3
1926 ## NEC EWS4800
1927 mips-nec-sysv4*)
1928 machine=ews4800 opsys=ux4800
1931 ## Nixdorf Targon 31
1932 m68*-nixdorf-sysv* )
1933 machine=targon31 opsys=usg5-2-2
1936 ## Nu (TI or LMI)
1937 m68*-nu-sysv* )
1938 machine=nu opsys=usg5-2
1941 ## Plexus
1942 m68*-plexus-sysv* )
1943 machine=plexus opsys=usg5-2
1946 ## PowerPC reference platform
1947 powerpcle-*-solaris2* )
1948 machine=prep
1949 opsys=sol2-5
1952 ## Pyramid machines
1953 ## I don't really have any idea what sort of processor the Pyramid has,
1954 ## so I'm assuming it is its own architecture.
1955 pyramid-pyramid-bsd* )
1956 machine=pyramid opsys=bsd4-2
1959 ## Sequent Balance
1960 ns32k-sequent-bsd4.2* )
1961 machine=sequent opsys=bsd4-2
1963 ns32k-sequent-bsd4.3* )
1964 machine=sequent opsys=bsd4-3
1967 ## Siemens Nixdorf
1968 mips-siemens-sysv* | mips-sni-sysv*)
1969 machine=mips-siemens opsys=usg5-4
1970 NON_GNU_CC=/usr/ccs/bin/cc
1971 NON_GNU_CPP=/usr/ccs/lib/cpp
1974 ## Silicon Graphics machines
1975 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1976 m68*-sgi-iris3.5* )
1977 machine=irist opsys=iris3-5
1979 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1980 machine=irist opsys=iris3-6
1982 ## Iris 4D
1983 mips-sgi-irix3* )
1984 machine=iris4d opsys=irix3-3
1986 mips-sgi-irix4* )
1987 machine=iris4d opsys=irix4-0
1989 mips-sgi-irix6.5 )
1990 machine=iris4d opsys=irix6-5
1991 # Without defining _LANGUAGE_C, things get masked out in the headers
1992 # so that, for instance, grepping for `free' in stdlib.h fails and
1993 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1994 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1995 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1997 mips-sgi-irix6* )
1998 machine=iris4d opsys=irix6-0
1999 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2000 # but presumably it does no harm.
2001 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2002 # -32 probably isn't necessary in later v.6s -- anyone know which?
2003 NON_GCC_TEST_OPTIONS=-32
2005 mips-sgi-irix5.[01]* )
2006 machine=iris4d opsys=irix5-0
2008 mips-sgi-irix5* | mips-sgi-irix* )
2009 machine=iris4d opsys=irix5-2
2012 ## SONY machines
2013 m68*-sony-bsd4.2* )
2014 machine=news opsys=bsd4-2
2016 m68*-sony-bsd4.3* )
2017 machine=news opsys=bsd4-3
2019 m68*-sony-newsos3* | m68*-sony-news3*)
2020 machine=news opsys=bsd4-3
2022 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2023 machine=news-risc opsys=bsd4-3
2025 mips-sony-newsos6* )
2026 machine=news-r6 opsys=newsos6
2028 mips-sony-news* )
2029 machine=news-risc opsys=newsos5
2032 ## Stride
2033 m68*-stride-sysv* )
2034 machine=stride opsys=usg5-2
2037 ## Suns
2038 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2039 machine=sparc opsys=gnu-linux
2042 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2043 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2044 | rs6000-*-solaris2*)
2045 case "${canonical}" in
2046 m68*-sunos1* ) machine=sun1 ;;
2047 m68*-sunos2* ) machine=sun2 ;;
2048 m68* ) machine=sun3 ;;
2049 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2050 i[3456]86-*-* ) machine=intel386 ;;
2051 powerpcle* ) machine=powerpcle ;;
2052 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2053 sparc* ) machine=sparc ;;
2054 * ) unported=yes ;;
2055 esac
2056 case "${canonical}" in
2057 ## The Sun386 didn't get past 4.0.
2058 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2059 *-sunos4.0* ) opsys=sunos4-0 ;;
2060 *-sunos4.1.[3-9]*noshare )
2061 ## This name is sunos413 instead of sunos4-1-3
2062 ## to avoid a file name conflict on MSDOS.
2063 opsys=sunos413
2064 NON_GNU_CPP=/usr/lib/cpp
2065 NON_GCC_TEST_OPTIONS=-Bstatic
2066 GCC_TEST_OPTIONS=-static
2068 *-sunos4.1.[3-9]* | *-sunos4shr*)
2069 opsys=sunos4shr
2070 NON_GNU_CPP=/usr/lib/cpp
2072 *-sunos4* | *-sunos )
2073 opsys=sunos4-1
2074 NON_GCC_TEST_OPTIONS=-Bstatic
2075 GCC_TEST_OPTIONS=-static
2077 *-sunos5.3* | *-solaris2.3* )
2078 opsys=sol2-3
2079 NON_GNU_CPP=/usr/ccs/lib/cpp
2081 *-sunos5.4* | *-solaris2.4* )
2082 opsys=sol2-4
2083 NON_GNU_CPP=/usr/ccs/lib/cpp
2084 RANLIB="ar -ts"
2086 *-sunos5.5* | *-solaris2.5* )
2087 opsys=sol2-5
2088 NON_GNU_CPP=/usr/ccs/lib/cpp
2089 RANLIB="ar -ts"
2091 *-sunos5* | *-solaris* )
2092 opsys=sol2-5
2093 NON_GNU_CPP=/usr/ccs/lib/cpp
2095 * ) opsys=bsd4-2 ;;
2096 esac
2097 ## Watch out for a compiler that we know will not work.
2098 case "${canonical}" in
2099 *-solaris* | *-sunos5* )
2100 if [ "x$CC" = x/usr/ucb/cc ]; then
2101 ## /usr/ucb/cc doesn't work;
2102 ## we should find some other compiler that does work.
2103 unset CC
2106 *) ;;
2107 esac
2109 sparc-*-nextstep* )
2110 machine=sparc opsys=nextstep
2113 ## Tadpole 68k
2114 m68*-tadpole-sysv* )
2115 machine=tad68k opsys=usg5-3
2118 ## Tahoe machines
2119 tahoe-tahoe-bsd4.2* )
2120 machine=tahoe opsys=bsd4-2
2122 tahoe-tahoe-bsd4.3* )
2123 machine=tahoe opsys=bsd4-3
2126 ## Tandem Integrity S2
2127 mips-tandem-sysv* )
2128 machine=tandem-s2 opsys=usg5-3
2131 ## Tektronix XD88
2132 m88k-tektronix-sysv3* )
2133 machine=tekxd88 opsys=usg5-3
2136 ## Tektronix 16000 box (6130?)
2137 ns16k-tektronix-bsd* )
2138 machine=ns16000 opsys=bsd4-2
2140 ## Tektronix 4300
2141 ## src/m/tek4300.h hints that this is a m68k machine.
2142 m68*-tektronix-bsd* )
2143 machine=tek4300 opsys=bsd4-3
2146 ## Titan P2 or P3
2147 ## We seem to have lost the machine-description file titan.h!
2148 titan-titan-sysv* )
2149 machine=titan opsys=usg5-3
2152 ## Ustation E30 (SS5E)
2153 m68*-unisys-uniplus* )
2154 machine=ustation opsystem=unipl5-2
2157 ## Vaxen.
2158 vax-dec-* )
2159 machine=vax
2160 case "${canonical}" in
2161 *-bsd4.1* ) opsys=bsd4-1 ;;
2162 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2163 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2164 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2165 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2166 *-vms* ) opsys=vms ;;
2167 * ) unported=yes
2168 esac
2171 ## Whitechapel MG1
2172 ns16k-whitechapel-* )
2173 machine=mg1
2174 ## We don't know what sort of OS runs on these; we'll let the
2175 ## operating system guessing code below try.
2178 ## Wicat
2179 m68*-wicat-sysv* )
2180 machine=wicat opsys=usg5-2
2183 ## IA-64
2184 ia64*-*-linux* )
2185 machine=ia64 opsys=gnu-linux
2188 ## Intel 386 machines where we don't care about the manufacturer
2189 i[3456]86-*-* )
2190 machine=intel386
2191 case "${canonical}" in
2192 *-lynxos* ) opsys=lynxos ;;
2193 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2194 *-isc2.2* ) opsys=isc2-2 ;;
2195 *-isc4.0* ) opsys=isc4-0 ;;
2196 *-isc4.* ) opsys=isc4-1
2197 GCC_TEST_OPTIONS=-posix
2198 NON_GCC_TEST_OPTIONS=-Xp
2200 *-isc* ) opsys=isc3-0 ;;
2201 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2202 *-esix* ) opsys=esix ;;
2203 *-xenix* ) opsys=xenix ;;
2204 *-linux-gnu* ) opsys=gnu-linux ;;
2205 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2206 *-sco3.2v5* ) opsys=sco5
2207 NON_GNU_CPP=/lib/cpp
2208 # Prevent -belf from being passed to $CPP.
2209 # /lib/cpp does not accept it.
2210 OVERRIDE_CPPFLAGS=" "
2212 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2213 *-386bsd* ) opsys=386bsd ;;
2214 *-nextstep* ) opsys=nextstep ;;
2215 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2216 esac
2219 ## m68k Linux-based GNU system
2220 m68k-*-linux-gnu* )
2221 machine=m68k opsys=gnu-linux
2224 ## Mips Linux-based GNU system
2225 mips-*-linux-gnu* )
2226 machine=mips opsys=gnu-linux
2229 ## UXP/DS
2230 sparc-fujitsu-sysv4* )
2231 machine=sparc opsys=uxpds
2232 NON_GNU_CPP=/usr/ccs/lib/cpp
2233 RANLIB="ar -ts"
2236 ## UXP/V
2237 f301-fujitsu-uxpv4.1)
2238 machine=f301 opsys=uxpv
2241 ## Darwin / Mac OS X
2242 powerpc-apple-darwin* )
2243 machine=powermac opsys=darwin
2244 # Define CPP as follows to make autoconf work correctly.
2245 CPP="cc -E -traditional-cpp"
2248 ## AMD x86-64 Linux-based GNU system
2249 x86_64-*-linux-gnu* )
2250 machine=amdx86-64 opsys=gnu-linux
2254 unported=yes
2256 esac
2258 ### If the code above didn't choose an operating system, just choose
2259 ### an operating system based on the configuration name. You really
2260 ### only want to use this when you have no idea what the right
2261 ### operating system is; if you know what operating systems a machine
2262 ### runs, it's cleaner to make it explicit in the case statement
2263 ### above.
2264 if test x"${opsys}" = x; then
2265 case "${canonical}" in
2266 *-gnu* ) opsys=gnu ;;
2267 *-bsd4.[01] ) opsys=bsd4-1 ;;
2268 *-bsd4.2 ) opsys=bsd4-2 ;;
2269 *-bsd4.3 ) opsys=bsd4-3 ;;
2270 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2271 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2272 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2273 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2274 *-sysv4.2uw* ) opsys=unixware ;;
2275 *-sysv4.1* | *-sysvr4.1* )
2276 NON_GNU_CPP=/usr/lib/cpp
2277 opsys=usg5-4 ;;
2278 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2279 if [ x$NON_GNU_CPP = x ]; then
2280 if [ -f /usr/ccs/lib/cpp ]; then
2281 NON_GNU_CPP=/usr/ccs/lib/cpp
2282 else
2283 NON_GNU_CPP=/lib/cpp
2286 opsys=usg5-4-2 ;;
2287 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2289 unported=yes
2291 esac
2294 if test $unported = yes; then
2295 { { echo "$as_me:2294: error: Emacs hasn't been ported to \`${canonical}' systems.
2296 Check \`etc/MACHINES' for recognized configuration names." >&5
2297 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2298 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2299 { (exit 1); exit 1; }; }
2302 machfile="m/${machine}.h"
2303 opsysfile="s/${opsys}.h"
2305 #### Choose a compiler.
2306 test -n "$CC" && cc_specified=yes
2308 # Save the value of CFLAGS that the user specified.
2309 SPECIFIED_CFLAGS="$CFLAGS"
2311 case ${with_gcc} in
2312 "yes" ) CC="gcc" GCC=yes ;;
2313 "no" ) : ${CC=cc} ;;
2315 esac
2316 ac_ext=c
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324 echo "$as_me:2323: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 else
2332 ac_save_IFS=$IFS; IFS=$ac_path_separator
2333 ac_dummy="$PATH"
2334 for ac_dir in $ac_dummy; do
2335 IFS=$ac_save_IFS
2336 test -z "$ac_dir" && ac_dir=.
2337 $as_executable_p "$ac_dir/$ac_word" || continue
2338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2339 echo "$as_me:2338: found $ac_dir/$ac_word" >&5
2340 break
2341 done
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347 echo "$as_me:2346: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2349 else
2350 echo "$as_me:2349: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2355 if test -z "$ac_cv_prog_CC"; then
2356 ac_ct_CC=$CC
2357 # Extract the first word of "gcc", so it can be a program name with args.
2358 set dummy gcc; ac_word=$2
2359 echo "$as_me:2358: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364 if test -n "$ac_ct_CC"; then
2365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2366 else
2367 ac_save_IFS=$IFS; IFS=$ac_path_separator
2368 ac_dummy="$PATH"
2369 for ac_dir in $ac_dummy; do
2370 IFS=$ac_save_IFS
2371 test -z "$ac_dir" && ac_dir=.
2372 $as_executable_p "$ac_dir/$ac_word" || continue
2373 ac_cv_prog_ac_ct_CC="gcc"
2374 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2375 break
2376 done
2380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 echo "$as_me:2381: result: $ac_ct_CC" >&5
2383 echo "${ECHO_T}$ac_ct_CC" >&6
2384 else
2385 echo "$as_me:2384: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2389 CC=$ac_ct_CC
2390 else
2391 CC="$ac_cv_prog_CC"
2394 if test -z "$CC"; then
2395 if test -n "$ac_tool_prefix"; then
2396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2397 set dummy ${ac_tool_prefix}cc; ac_word=$2
2398 echo "$as_me:2397: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 if test -n "$CC"; then
2404 ac_cv_prog_CC="$CC" # Let the user override the test.
2405 else
2406 ac_save_IFS=$IFS; IFS=$ac_path_separator
2407 ac_dummy="$PATH"
2408 for ac_dir in $ac_dummy; do
2409 IFS=$ac_save_IFS
2410 test -z "$ac_dir" && ac_dir=.
2411 $as_executable_p "$ac_dir/$ac_word" || continue
2412 ac_cv_prog_CC="${ac_tool_prefix}cc"
2413 echo "$as_me:2412: found $ac_dir/$ac_word" >&5
2414 break
2415 done
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421 echo "$as_me:2420: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6
2423 else
2424 echo "$as_me:2423: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2429 if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "cc", so it can be a program name with args.
2432 set dummy cc; ac_word=$2
2433 echo "$as_me:2432: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440 else
2441 ac_save_IFS=$IFS; IFS=$ac_path_separator
2442 ac_dummy="$PATH"
2443 for ac_dir in $ac_dummy; do
2444 IFS=$ac_save_IFS
2445 test -z "$ac_dir" && ac_dir=.
2446 $as_executable_p "$ac_dir/$ac_word" || continue
2447 ac_cv_prog_ac_ct_CC="cc"
2448 echo "$as_me:2447: found $ac_dir/$ac_word" >&5
2449 break
2450 done
2454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2455 if test -n "$ac_ct_CC"; then
2456 echo "$as_me:2455: result: $ac_ct_CC" >&5
2457 echo "${ECHO_T}$ac_ct_CC" >&6
2458 else
2459 echo "$as_me:2458: result: no" >&5
2460 echo "${ECHO_T}no" >&6
2463 CC=$ac_ct_CC
2464 else
2465 CC="$ac_cv_prog_CC"
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc; ac_word=$2
2472 echo "$as_me:2471: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 else
2480 ac_prog_rejected=no
2481 ac_save_IFS=$IFS; IFS=$ac_path_separator
2482 ac_dummy="$PATH"
2483 for ac_dir in $ac_dummy; do
2484 IFS=$ac_save_IFS
2485 test -z "$ac_dir" && ac_dir=.
2486 $as_executable_p "$ac_dir/$ac_word" || continue
2487 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2488 ac_prog_rejected=yes
2489 continue
2491 ac_cv_prog_CC="cc"
2492 echo "$as_me:2491: found $ac_dir/$ac_word" >&5
2493 break
2494 done
2496 if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy $ac_cv_prog_CC
2499 shift
2500 if test $# != 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2504 shift
2505 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2506 shift
2507 ac_cv_prog_CC="$@"
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514 echo "$as_me:2513: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6
2516 else
2517 echo "$as_me:2516: result: no" >&5
2518 echo "${ECHO_T}no" >&6
2522 if test -z "$CC"; then
2523 if test -n "$ac_tool_prefix"; then
2524 for ac_prog in cl
2526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2528 echo "$as_me:2527: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 else
2536 ac_save_IFS=$IFS; IFS=$ac_path_separator
2537 ac_dummy="$PATH"
2538 for ac_dir in $ac_dummy; do
2539 IFS=$ac_save_IFS
2540 test -z "$ac_dir" && ac_dir=.
2541 $as_executable_p "$ac_dir/$ac_word" || continue
2542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2543 echo "$as_me:2542: found $ac_dir/$ac_word" >&5
2544 break
2545 done
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551 echo "$as_me:2550: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6
2553 else
2554 echo "$as_me:2553: result: no" >&5
2555 echo "${ECHO_T}no" >&6
2558 test -n "$CC" && break
2559 done
2561 if test -z "$CC"; then
2562 ac_ct_CC=$CC
2563 for ac_prog in cl
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 echo "$as_me:2566: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572 if test -n "$ac_ct_CC"; then
2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 else
2575 ac_save_IFS=$IFS; IFS=$ac_path_separator
2576 ac_dummy="$PATH"
2577 for ac_dir in $ac_dummy; do
2578 IFS=$ac_save_IFS
2579 test -z "$ac_dir" && ac_dir=.
2580 $as_executable_p "$ac_dir/$ac_word" || continue
2581 ac_cv_prog_ac_ct_CC="$ac_prog"
2582 echo "$as_me:2581: found $ac_dir/$ac_word" >&5
2583 break
2584 done
2588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2589 if test -n "$ac_ct_CC"; then
2590 echo "$as_me:2589: result: $ac_ct_CC" >&5
2591 echo "${ECHO_T}$ac_ct_CC" >&6
2592 else
2593 echo "$as_me:2592: result: no" >&5
2594 echo "${ECHO_T}no" >&6
2597 test -n "$ac_ct_CC" && break
2598 done
2600 CC=$ac_ct_CC
2605 test -z "$CC" && { { echo "$as_me:2604: error: no acceptable cc found in \$PATH" >&5
2606 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2607 { (exit 1); exit 1; }; }
2609 # Provide some information about the compiler.
2610 echo "$as_me:2609:" \
2611 "checking for C compiler version" >&5
2612 ac_compiler=`set X $ac_compile; echo $2`
2613 { (eval echo "$as_me:2612: \"$ac_compiler --version </dev/null >&5\"") >&5
2614 (eval $ac_compiler --version </dev/null >&5) 2>&5
2615 ac_status=$?
2616 echo "$as_me:2615: \$? = $ac_status" >&5
2617 (exit $ac_status); }
2618 { (eval echo "$as_me:2617: \"$ac_compiler -v </dev/null >&5\"") >&5
2619 (eval $ac_compiler -v </dev/null >&5) 2>&5
2620 ac_status=$?
2621 echo "$as_me:2620: \$? = $ac_status" >&5
2622 (exit $ac_status); }
2623 { (eval echo "$as_me:2622: \"$ac_compiler -V </dev/null >&5\"") >&5
2624 (eval $ac_compiler -V </dev/null >&5) 2>&5
2625 ac_status=$?
2626 echo "$as_me:2625: \$? = $ac_status" >&5
2627 (exit $ac_status); }
2629 cat >conftest.$ac_ext <<_ACEOF
2630 #line 2624 "configure"
2631 #include "confdefs.h"
2634 main ()
2638 return 0;
2640 _ACEOF
2641 ac_clean_files_save=$ac_clean_files
2642 ac_clean_files="$ac_clean_files a.out a.exe"
2643 # Try to create an executable without -o first, disregard a.out.
2644 # It will help us diagnose broken compilers, and finding out an intuition
2645 # of exeext.
2646 echo "$as_me:2645: checking for C compiler default output" >&5
2647 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2648 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2649 if { (eval echo "$as_me:2648: \"$ac_link_default\"") >&5
2650 (eval $ac_link_default) 2>&5
2651 ac_status=$?
2652 echo "$as_me:2651: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 # Find the output, starting from the most likely. This scheme is
2655 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2656 # resort.
2657 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2658 ls a.out conftest 2>/dev/null;
2659 ls a.* conftest.* 2>/dev/null`; do
2660 case $ac_file in
2661 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2662 a.out ) # We found the default executable, but exeext='' is most
2663 # certainly right.
2664 break;;
2665 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2666 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2667 export ac_cv_exeext
2668 break;;
2669 * ) break;;
2670 esac
2671 done
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 { { echo "$as_me:2674: error: C compiler cannot create executables" >&5
2676 echo "$as_me: error: C compiler cannot create executables" >&2;}
2677 { (exit 77); exit 77; }; }
2680 ac_exeext=$ac_cv_exeext
2681 echo "$as_me:2680: result: $ac_file" >&5
2682 echo "${ECHO_T}$ac_file" >&6
2684 # Check the compiler produces executables we can run. If not, either
2685 # the compiler is broken, or we cross compile.
2686 echo "$as_me:2685: checking whether the C compiler works" >&5
2687 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2688 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2689 # If not cross compiling, check that we can run a simple program.
2690 if test "$cross_compiling" != yes; then
2691 if { ac_try='./$ac_file'
2692 { (eval echo "$as_me:2691: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:2694: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 cross_compiling=no
2698 else
2699 if test "$cross_compiling" = maybe; then
2700 cross_compiling=yes
2701 else
2702 { { echo "$as_me:2701: error: cannot run C compiled programs.
2703 If you meant to cross compile, use \`--host'." >&5
2704 echo "$as_me: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'." >&2;}
2706 { (exit 1); exit 1; }; }
2710 echo "$as_me:2709: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6
2713 rm -f a.out a.exe conftest$ac_cv_exeext
2714 ac_clean_files=$ac_clean_files_save
2715 # Check the compiler produces executables we can run. If not, either
2716 # the compiler is broken, or we cross compile.
2717 echo "$as_me:2716: checking whether we are cross compiling" >&5
2718 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2719 echo "$as_me:2718: result: $cross_compiling" >&5
2720 echo "${ECHO_T}$cross_compiling" >&6
2722 echo "$as_me:2721: checking for executable suffix" >&5
2723 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2724 if { (eval echo "$as_me:2723: \"$ac_link\"") >&5
2725 (eval $ac_link) 2>&5
2726 ac_status=$?
2727 echo "$as_me:2726: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2730 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2731 # work properly (i.e., refer to `conftest.exe'), while it won't with
2732 # `rm'.
2733 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2734 case $ac_file in
2735 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2737 export ac_cv_exeext
2738 break;;
2739 * ) break;;
2740 esac
2741 done
2742 else
2743 { { echo "$as_me:2742: error: cannot compute EXEEXT: cannot compile and link" >&5
2744 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2745 { (exit 1); exit 1; }; }
2748 rm -f conftest$ac_cv_exeext
2749 echo "$as_me:2748: result: $ac_cv_exeext" >&5
2750 echo "${ECHO_T}$ac_cv_exeext" >&6
2752 rm -f conftest.$ac_ext
2753 EXEEXT=$ac_cv_exeext
2754 ac_exeext=$EXEEXT
2755 echo "$as_me:2754: checking for object suffix" >&5
2756 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2757 if test "${ac_cv_objext+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 cat >conftest.$ac_ext <<_ACEOF
2761 #line 2755 "configure"
2762 #include "confdefs.h"
2765 main ()
2769 return 0;
2771 _ACEOF
2772 rm -f conftest.o conftest.obj
2773 if { (eval echo "$as_me:2772: \"$ac_compile\"") >&5
2774 (eval $ac_compile) 2>&5
2775 ac_status=$?
2776 echo "$as_me:2775: \$? = $ac_status" >&5
2777 (exit $ac_status); }; then
2778 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2782 break;;
2783 esac
2784 done
2785 else
2786 echo "$as_me: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2788 { { echo "$as_me:2787: error: cannot compute OBJEXT: cannot compile" >&5
2789 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2790 { (exit 1); exit 1; }; }
2793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2795 echo "$as_me:2794: result: $ac_cv_objext" >&5
2796 echo "${ECHO_T}$ac_cv_objext" >&6
2797 OBJEXT=$ac_cv_objext
2798 ac_objext=$OBJEXT
2799 echo "$as_me:2798: checking whether we are using the GNU C compiler" >&5
2800 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 cat >conftest.$ac_ext <<_ACEOF
2805 #line 2799 "configure"
2806 #include "confdefs.h"
2809 main ()
2811 #ifndef __GNUC__
2812 choke me
2813 #endif
2816 return 0;
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:2819: \"$ac_compile\"") >&5
2821 (eval $ac_compile) 2>&5
2822 ac_status=$?
2823 echo "$as_me:2822: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -s conftest.$ac_objext'
2826 { (eval echo "$as_me:2825: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:2828: \$? = $ac_status" >&5
2830 (exit $ac_status); }; }; then
2831 ac_compiler_gnu=yes
2832 else
2833 echo "$as_me: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2835 ac_compiler_gnu=no
2837 rm -f conftest.$ac_objext conftest.$ac_ext
2838 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2841 echo "$as_me:2840: result: $ac_cv_c_compiler_gnu" >&5
2842 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2843 GCC=`test $ac_compiler_gnu = yes && echo yes`
2844 ac_test_CFLAGS=${CFLAGS+set}
2845 ac_save_CFLAGS=$CFLAGS
2846 CFLAGS="-g"
2847 echo "$as_me:2846: checking whether $CC accepts -g" >&5
2848 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_g+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852 cat >conftest.$ac_ext <<_ACEOF
2853 #line 2847 "configure"
2854 #include "confdefs.h"
2857 main ()
2861 return 0;
2863 _ACEOF
2864 rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:2864: \"$ac_compile\"") >&5
2866 (eval $ac_compile) 2>&5
2867 ac_status=$?
2868 echo "$as_me:2867: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -s conftest.$ac_objext'
2871 { (eval echo "$as_me:2870: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:2873: \$? = $ac_status" >&5
2875 (exit $ac_status); }; }; then
2876 ac_cv_prog_cc_g=yes
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2880 ac_cv_prog_cc_g=no
2882 rm -f conftest.$ac_objext conftest.$ac_ext
2884 echo "$as_me:2883: result: $ac_cv_prog_cc_g" >&5
2885 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2886 if test "$ac_test_CFLAGS" = set; then
2887 CFLAGS=$ac_save_CFLAGS
2888 elif test $ac_cv_prog_cc_g = yes; then
2889 if test "$GCC" = yes; then
2890 CFLAGS="-g -O2"
2891 else
2892 CFLAGS="-g"
2894 else
2895 if test "$GCC" = yes; then
2896 CFLAGS="-O2"
2897 else
2898 CFLAGS=
2901 # Some people use a C++ compiler to compile C. Since we use `exit',
2902 # in C++ we need to declare it. In case someone uses the same compiler
2903 # for both compiling C and C++ we need to have the C++ compiler decide
2904 # the declaration of exit, since it's the most demanding environment.
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #ifndef __cplusplus
2907 choke me
2908 #endif
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:2910: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>&5
2913 ac_status=$?
2914 echo "$as_me:2913: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -s conftest.$ac_objext'
2917 { (eval echo "$as_me:2916: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:2919: \$? = $ac_status" >&5
2921 (exit $ac_status); }; }; then
2922 for ac_declaration in \
2924 '#include <stdlib.h>' \
2925 'extern "C" void std::exit (int) throw (); using std::exit;' \
2926 'extern "C" void std::exit (int); using std::exit;' \
2927 'extern "C" void exit (int) throw ();' \
2928 'extern "C" void exit (int);' \
2929 'void exit (int);'
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #line 2926 "configure"
2933 #include "confdefs.h"
2934 #include <stdlib.h>
2935 $ac_declaration
2937 main ()
2939 exit (42);
2941 return 0;
2943 _ACEOF
2944 rm -f conftest.$ac_objext
2945 if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5
2946 (eval $ac_compile) 2>&5
2947 ac_status=$?
2948 echo "$as_me:2947: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:2950: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:2953: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2957 else
2958 echo "$as_me: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 continue
2962 rm -f conftest.$ac_objext conftest.$ac_ext
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line 2958 "configure"
2965 #include "confdefs.h"
2966 $ac_declaration
2968 main ()
2970 exit (42);
2972 return 0;
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:2975: \"$ac_compile\"") >&5
2977 (eval $ac_compile) 2>&5
2978 ac_status=$?
2979 echo "$as_me:2978: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -s conftest.$ac_objext'
2982 { (eval echo "$as_me:2981: \"$ac_try\"") >&5
2983 (eval $ac_try) 2>&5
2984 ac_status=$?
2985 echo "$as_me:2984: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
2987 break
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2992 rm -f conftest.$ac_objext conftest.$ac_ext
2993 done
2994 rm -f conftest*
2995 if test -n "$ac_declaration"; then
2996 echo '#ifdef __cplusplus' >>confdefs.h
2997 echo $ac_declaration >>confdefs.h
2998 echo '#endif' >>confdefs.h
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3005 rm -f conftest.$ac_objext conftest.$ac_ext
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 # On Suns, sometimes $CPP names a directory.
3013 if test -n "$CPP" && test -d "$CPP"; then
3014 CPP=
3017 #### Some systems specify a CPP to use unless we are using GCC.
3018 #### Now that we know whether we are using GCC, we can decide whether
3019 #### to use that one.
3020 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3021 then
3022 CPP="$NON_GNU_CPP"
3025 #### Some systems specify a CC to use unless we are using GCC.
3026 #### Now that we know whether we are using GCC, we can decide whether
3027 #### to use that one.
3028 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3029 test x$cc_specified != xyes
3030 then
3031 CC="$NON_GNU_CC"
3034 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3035 then
3036 CC="$CC $GCC_TEST_OPTIONS"
3039 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3040 then
3041 CC="$CC $NON_GCC_TEST_OPTIONS"
3044 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3045 then
3046 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3049 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3050 then
3051 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3054 #### Some other nice autoconf tests. If you add a test here which
3055 #### should make an entry in src/config.h, don't forget to add an
3056 #### #undef clause to src/config.h.in for autoconf to modify.
3058 echo "$as_me:3057: checking whether ln -s works" >&5
3059 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3060 LN_S=$as_ln_s
3061 if test "$LN_S" = "ln -s"; then
3062 echo "$as_me:3061: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6
3064 else
3065 echo "$as_me:3064: result: no, using $LN_S" >&5
3066 echo "${ECHO_T}no, using $LN_S" >&6
3069 ac_ext=c
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 echo "$as_me:3073: checking how to run the C preprocessor" >&5
3075 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3076 # On Suns, sometimes $CPP names a directory.
3077 if test -n "$CPP" && test -d "$CPP"; then
3078 CPP=
3080 if test -z "$CPP"; then
3081 if test "${ac_cv_prog_CPP+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 # Double quotes because CPP needs to be expanded
3085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3087 ac_preproc_ok=false
3088 for ac_c_preproc_warn_flag in '' yes
3090 # Use a header file that comes with gcc, so configuring glibc
3091 # with a fresh cross-compiler works.
3092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat >conftest.$ac_ext <<_ACEOF
3095 #line 3089 "configure"
3096 #include "confdefs.h"
3097 #include <assert.h>
3098 Syntax error
3099 _ACEOF
3100 if { (eval echo "$as_me:3099: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102 ac_status=$?
3103 egrep -v '^ *\+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:3105: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 else
3111 ac_cpp_err=
3113 else
3114 ac_cpp_err=yes
3116 if test -z "$ac_cpp_err"; then
3118 else
3119 echo "$as_me: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3121 # Broken: fails on valid input.
3122 continue
3124 rm -f conftest.err conftest.$ac_ext
3126 # OK, works on sane cases. Now check whether non-existent headers
3127 # can be detected and how.
3128 cat >conftest.$ac_ext <<_ACEOF
3129 #line 3123 "configure"
3130 #include "confdefs.h"
3131 #include <ac_nonexistent.h>
3132 _ACEOF
3133 if { (eval echo "$as_me:3132: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 ac_status=$?
3136 egrep -v '^ *\+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:3138: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 else
3144 ac_cpp_err=
3146 else
3147 ac_cpp_err=yes
3149 if test -z "$ac_cpp_err"; then
3150 # Broken: success on invalid input.
3151 continue
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3155 # Passes both tests.
3156 ac_preproc_ok=:
3157 break
3159 rm -f conftest.err conftest.$ac_ext
3161 done
3162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3163 rm -f conftest.err conftest.$ac_ext
3164 if $ac_preproc_ok; then
3165 break
3168 done
3169 ac_cv_prog_CPP=$CPP
3172 CPP=$ac_cv_prog_CPP
3173 else
3174 ac_cv_prog_CPP=$CPP
3176 echo "$as_me:3175: result: $CPP" >&5
3177 echo "${ECHO_T}$CPP" >&6
3178 ac_preproc_ok=false
3179 for ac_c_preproc_warn_flag in '' yes
3181 # Use a header file that comes with gcc, so configuring glibc
3182 # with a fresh cross-compiler works.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.$ac_ext <<_ACEOF
3186 #line 3180 "configure"
3187 #include "confdefs.h"
3188 #include <assert.h>
3189 Syntax error
3190 _ACEOF
3191 if { (eval echo "$as_me:3190: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 ac_status=$?
3194 egrep -v '^ *\+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:3196: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 else
3202 ac_cpp_err=
3204 else
3205 ac_cpp_err=yes
3207 if test -z "$ac_cpp_err"; then
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 # Broken: fails on valid input.
3213 continue
3215 rm -f conftest.err conftest.$ac_ext
3217 # OK, works on sane cases. Now check whether non-existent headers
3218 # can be detected and how.
3219 cat >conftest.$ac_ext <<_ACEOF
3220 #line 3214 "configure"
3221 #include "confdefs.h"
3222 #include <ac_nonexistent.h>
3223 _ACEOF
3224 if { (eval echo "$as_me:3223: \"$ac_cpp conftest.$ac_ext\"") >&5
3225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3226 ac_status=$?
3227 egrep -v '^ *\+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:3229: \$? = $ac_status" >&5
3231 (exit $ac_status); } >/dev/null; then
3232 if test -s conftest.err; then
3233 ac_cpp_err=$ac_c_preproc_warn_flag
3234 else
3235 ac_cpp_err=
3237 else
3238 ac_cpp_err=yes
3240 if test -z "$ac_cpp_err"; then
3241 # Broken: success on invalid input.
3242 continue
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3246 # Passes both tests.
3247 ac_preproc_ok=:
3248 break
3250 rm -f conftest.err conftest.$ac_ext
3252 done
3253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254 rm -f conftest.err conftest.$ac_ext
3255 if $ac_preproc_ok; then
3257 else
3258 { { echo "$as_me:3257: error: C preprocessor \"$CPP\" fails sanity check" >&5
3259 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3260 { (exit 1); exit 1; }; }
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 # Find a good install program. We prefer a C program (faster),
3270 # so one script is as good as another. But avoid the broken or
3271 # incompatible versions:
3272 # SysV /etc/install, /usr/sbin/install
3273 # SunOS /usr/etc/install
3274 # IRIX /sbin/install
3275 # AIX /bin/install
3276 # AmigaOS /C/install, which installs bootblocks on floppy discs
3277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3280 # ./install, which can be erroneously created by make from ./install.sh.
3281 echo "$as_me:3280: checking for a BSD compatible install" >&5
3282 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3283 if test -z "$INSTALL"; then
3284 if test "${ac_cv_path_install+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 ac_save_IFS=$IFS; IFS=$ac_path_separator
3288 for ac_dir in $PATH; do
3289 IFS=$ac_save_IFS
3290 # Account for people who put trailing slashes in PATH elements.
3291 case $ac_dir/ in
3292 / | ./ | .// | /cC/* \
3293 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3294 | /usr/ucb/* ) ;;
3296 # OSF1 and SCO ODT 3.0 have their own names for install.
3297 # Don't use installbsd from OSF since it installs stuff as root
3298 # by default.
3299 for ac_prog in ginstall scoinst install; do
3300 if $as_executable_p "$ac_dir/$ac_prog"; then
3301 if test $ac_prog = install &&
3302 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3303 # AIX install. It has an incompatible calling convention.
3305 elif test $ac_prog = install &&
3306 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3307 # program-specific install script used by HP pwplus--don't use.
3309 else
3310 ac_cv_path_install="$ac_dir/$ac_prog -c"
3311 break 2
3314 done
3316 esac
3317 done
3320 if test "${ac_cv_path_install+set}" = set; then
3321 INSTALL=$ac_cv_path_install
3322 else
3323 # As a last resort, use the slow shell script. We don't cache a
3324 # path for INSTALL within a source directory, because that will
3325 # break other packages using the cache if that directory is
3326 # removed, or if the path is relative.
3327 INSTALL=$ac_install_sh
3330 echo "$as_me:3329: result: $INSTALL" >&5
3331 echo "${ECHO_T}$INSTALL" >&6
3333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3334 # It thinks the first close brace ends the variable substitution.
3335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3341 for ac_prog in 'bison -y' byacc
3343 # Extract the first word of "$ac_prog", so it can be a program name with args.
3344 set dummy $ac_prog; ac_word=$2
3345 echo "$as_me:3344: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347 if test "${ac_cv_prog_YACC+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 if test -n "$YACC"; then
3351 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3352 else
3353 ac_save_IFS=$IFS; IFS=$ac_path_separator
3354 ac_dummy="$PATH"
3355 for ac_dir in $ac_dummy; do
3356 IFS=$ac_save_IFS
3357 test -z "$ac_dir" && ac_dir=.
3358 $as_executable_p "$ac_dir/$ac_word" || continue
3359 ac_cv_prog_YACC="$ac_prog"
3360 echo "$as_me:3359: found $ac_dir/$ac_word" >&5
3361 break
3362 done
3366 YACC=$ac_cv_prog_YACC
3367 if test -n "$YACC"; then
3368 echo "$as_me:3367: result: $YACC" >&5
3369 echo "${ECHO_T}$YACC" >&6
3370 else
3371 echo "$as_me:3370: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3375 test -n "$YACC" && break
3376 done
3377 test -n "$YACC" || YACC="yacc"
3379 if test "x$RANLIB" = x; then
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3383 echo "$as_me:3382: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385 if test "${ac_cv_prog_RANLIB+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 if test -n "$RANLIB"; then
3389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3390 else
3391 ac_save_IFS=$IFS; IFS=$ac_path_separator
3392 ac_dummy="$PATH"
3393 for ac_dir in $ac_dummy; do
3394 IFS=$ac_save_IFS
3395 test -z "$ac_dir" && ac_dir=.
3396 $as_executable_p "$ac_dir/$ac_word" || continue
3397 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3398 echo "$as_me:3397: found $ac_dir/$ac_word" >&5
3399 break
3400 done
3404 RANLIB=$ac_cv_prog_RANLIB
3405 if test -n "$RANLIB"; then
3406 echo "$as_me:3405: result: $RANLIB" >&5
3407 echo "${ECHO_T}$RANLIB" >&6
3408 else
3409 echo "$as_me:3408: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3414 if test -z "$ac_cv_prog_RANLIB"; then
3415 ac_ct_RANLIB=$RANLIB
3416 # Extract the first word of "ranlib", so it can be a program name with args.
3417 set dummy ranlib; ac_word=$2
3418 echo "$as_me:3417: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 if test -n "$ac_ct_RANLIB"; then
3424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3425 else
3426 ac_save_IFS=$IFS; IFS=$ac_path_separator
3427 ac_dummy="$PATH"
3428 for ac_dir in $ac_dummy; do
3429 IFS=$ac_save_IFS
3430 test -z "$ac_dir" && ac_dir=.
3431 $as_executable_p "$ac_dir/$ac_word" || continue
3432 ac_cv_prog_ac_ct_RANLIB="ranlib"
3433 echo "$as_me:3432: found $ac_dir/$ac_word" >&5
3434 break
3435 done
3437 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3441 if test -n "$ac_ct_RANLIB"; then
3442 echo "$as_me:3441: result: $ac_ct_RANLIB" >&5
3443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3444 else
3445 echo "$as_me:3444: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3449 RANLIB=$ac_ct_RANLIB
3450 else
3451 RANLIB="$ac_cv_prog_RANLIB"
3456 echo "$as_me:3455: checking for AIX" >&5
3457 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3458 cat >conftest.$ac_ext <<_ACEOF
3459 #line 3453 "configure"
3460 #include "confdefs.h"
3461 #ifdef _AIX
3463 #endif
3465 _ACEOF
3466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 egrep "yes" >/dev/null 2>&1; then
3468 echo "$as_me:3467: result: yes" >&5
3469 echo "${ECHO_T}yes" >&6
3470 cat >>confdefs.h <<\EOF
3471 #define _ALL_SOURCE 1
3474 else
3475 echo "$as_me:3474: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3478 rm -f conftest*
3480 #### Extract some information from the operating system and machine files.
3482 { echo "$as_me:3481: checking the machine- and system-dependent files to find out
3483 - which libraries the lib-src programs will want, and
3484 - whether the GNU malloc routines are usable..." >&5
3485 echo "$as_me: checking the machine- and system-dependent files to find out
3486 - which libraries the lib-src programs will want, and
3487 - whether the GNU malloc routines are usable..." >&6;}
3489 ### First figure out CFLAGS (which we use for running the compiler here)
3490 ### and REAL_CFLAGS (which we use for real compilation).
3491 ### The two are the same except on a few systems, where they are made
3492 ### different to work around various lossages. For example,
3493 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3494 ### as implying static linking.
3496 ### If the CFLAGS env var is specified, we use that value
3497 ### instead of the default.
3499 ### It's not important that this name contain the PID; you can't run
3500 ### two configures in the same directory and have anything work
3501 ### anyway.
3502 tempcname="conftest.c"
3504 echo '
3505 #include "'${srcdir}'/src/'${opsysfile}'"
3506 #include "'${srcdir}'/src/'${machfile}'"
3507 #ifndef LIBS_MACHINE
3508 #define LIBS_MACHINE
3509 #endif
3510 #ifndef LIBS_SYSTEM
3511 #define LIBS_SYSTEM
3512 #endif
3513 #ifndef C_SWITCH_SYSTEM
3514 #define C_SWITCH_SYSTEM
3515 #endif
3516 #ifndef C_SWITCH_MACHINE
3517 #define C_SWITCH_MACHINE
3518 #endif
3519 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3520 configure___ c_switch_system=C_SWITCH_SYSTEM
3521 configure___ c_switch_machine=C_SWITCH_MACHINE
3523 #ifndef LIB_X11_LIB
3524 #define LIB_X11_LIB -lX11
3525 #endif
3527 #ifndef LIBX11_MACHINE
3528 #define LIBX11_MACHINE
3529 #endif
3531 #ifndef LIBX11_SYSTEM
3532 #define LIBX11_SYSTEM
3533 #endif
3534 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3536 #ifdef UNEXEC
3537 configure___ unexec=UNEXEC
3538 #else
3539 configure___ unexec=unexec.o
3540 #endif
3542 #ifdef SYSTEM_MALLOC
3543 configure___ system_malloc=yes
3544 #else
3545 configure___ system_malloc=no
3546 #endif
3548 #ifdef USE_MMAP_FOR_BUFFERS
3549 configure___ use_mmap_for_buffers=yes
3550 #else
3551 configure___ use_mmap_for_buffers=no
3552 #endif
3554 #ifndef C_DEBUG_SWITCH
3555 #define C_DEBUG_SWITCH -g
3556 #endif
3558 #ifndef C_OPTIMIZE_SWITCH
3559 #ifdef __GNUC__
3560 #define C_OPTIMIZE_SWITCH -O2
3561 #else
3562 #define C_OPTIMIZE_SWITCH -O
3563 #endif
3564 #endif
3566 #ifndef LD_SWITCH_MACHINE
3567 #define LD_SWITCH_MACHINE
3568 #endif
3570 #ifndef LD_SWITCH_SYSTEM
3571 #define LD_SWITCH_SYSTEM
3572 #endif
3574 #ifndef LD_SWITCH_X_SITE_AUX
3575 #define LD_SWITCH_X_SITE_AUX
3576 #endif
3578 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3579 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3581 #ifdef THIS_IS_CONFIGURE
3583 /* Get the CFLAGS for tests in configure. */
3584 #ifdef __GNUC__
3585 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3586 #else
3587 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3588 #endif
3590 #else /* not THIS_IS_CONFIGURE */
3592 /* Get the CFLAGS for real compilation. */
3593 #ifdef __GNUC__
3594 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3595 #else
3596 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3597 #endif
3599 #endif /* not THIS_IS_CONFIGURE */
3600 ' > ${tempcname}
3602 # The value of CPP is a quoted variable reference, so we need to do this
3603 # to get its actual value...
3604 CPP=`eval "echo $CPP"`
3605 eval `${CPP} -Isrc ${tempcname} \
3606 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3607 if test "x$SPECIFIED_CFLAGS" = x; then
3608 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3609 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3610 else
3611 REAL_CFLAGS="$CFLAGS"
3613 rm ${tempcname}
3615 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3617 ### Make sure subsequent tests use flags consistent with the build flags.
3619 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3620 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3621 else
3622 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3625 # Check whether --enable-largefile or --disable-largefile was given.
3626 if test "${enable_largefile+set}" = set; then
3627 enableval="$enable_largefile"
3630 if test "$enable_largefile" != no; then
3632 echo "$as_me:3631: checking for special C compiler options needed for large files" >&5
3633 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3634 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 ac_cv_sys_largefile_CC=no
3638 if test "$GCC" != yes; then
3639 ac_save_CC=$CC
3640 while :; do
3641 # IRIX 6.2 and later do not support large files by default,
3642 # so use the C compiler's -n32 option if that helps.
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line 3638 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3647 /* Check that off_t can represent 2**63 - 1 correctly.
3648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3649 since some C++ compilers masquerading as C compilers
3650 incorrectly reject 9223372036854775807. */
3651 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3653 && LARGE_OFF_T % 2147483647 == 1)
3654 ? 1 : -1];
3656 main ()
3660 return 0;
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:3663: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>&5
3666 ac_status=$?
3667 echo "$as_me:3666: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -s conftest.$ac_objext'
3670 { (eval echo "$as_me:3669: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:3672: \$? = $ac_status" >&5
3674 (exit $ac_status); }; }; then
3675 break
3676 else
3677 echo "$as_me: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3680 rm -f conftest.$ac_objext
3681 CC="$CC -n32"
3682 rm -f conftest.$ac_objext
3683 if { (eval echo "$as_me:3682: \"$ac_compile\"") >&5
3684 (eval $ac_compile) 2>&5
3685 ac_status=$?
3686 echo "$as_me:3685: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (eval echo "$as_me:3688: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:3691: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_sys_largefile_CC=' -n32'; break
3695 else
3696 echo "$as_me: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3699 rm -f conftest.$ac_objext
3700 break
3701 done
3702 CC=$ac_save_CC
3703 rm -f conftest.$ac_ext
3706 echo "$as_me:3705: result: $ac_cv_sys_largefile_CC" >&5
3707 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3708 if test "$ac_cv_sys_largefile_CC" != no; then
3709 CC=$CC$ac_cv_sys_largefile_CC
3712 echo "$as_me:3711: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3713 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3714 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 while :; do
3718 ac_cv_sys_file_offset_bits=no
3719 cat >conftest.$ac_ext <<_ACEOF
3720 #line 3714 "configure"
3721 #include "confdefs.h"
3722 #include <sys/types.h>
3723 /* Check that off_t can represent 2**63 - 1 correctly.
3724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3725 since some C++ compilers masquerading as C compilers
3726 incorrectly reject 9223372036854775807. */
3727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3729 && LARGE_OFF_T % 2147483647 == 1)
3730 ? 1 : -1];
3732 main ()
3736 return 0;
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:3739: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3742 ac_status=$?
3743 echo "$as_me:3742: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:3745: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:3748: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 break
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 rm -f conftest.$ac_objext conftest.$ac_ext
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line 3752 "configure"
3759 #include "confdefs.h"
3760 #define _FILE_OFFSET_BITS 64
3761 #include <sys/types.h>
3762 /* Check that off_t can represent 2**63 - 1 correctly.
3763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3764 since some C++ compilers masquerading as C compilers
3765 incorrectly reject 9223372036854775807. */
3766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3768 && LARGE_OFF_T % 2147483647 == 1)
3769 ? 1 : -1];
3771 main ()
3775 return 0;
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (eval echo "$as_me:3778: \"$ac_compile\"") >&5
3780 (eval $ac_compile) 2>&5
3781 ac_status=$?
3782 echo "$as_me:3781: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (eval echo "$as_me:3784: \"$ac_try\"") >&5
3786 (eval $ac_try) 2>&5
3787 ac_status=$?
3788 echo "$as_me:3787: \$? = $ac_status" >&5
3789 (exit $ac_status); }; }; then
3790 ac_cv_sys_file_offset_bits=64; break
3791 else
3792 echo "$as_me: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 rm -f conftest.$ac_objext conftest.$ac_ext
3796 break
3797 done
3799 echo "$as_me:3798: result: $ac_cv_sys_file_offset_bits" >&5
3800 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3801 if test "$ac_cv_sys_file_offset_bits" != no; then
3803 cat >>confdefs.h <<EOF
3804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3808 rm -f conftest*
3809 echo "$as_me:3808: checking for _LARGE_FILES value needed for large files" >&5
3810 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3811 if test "${ac_cv_sys_large_files+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 while :; do
3815 ac_cv_sys_large_files=no
3816 cat >conftest.$ac_ext <<_ACEOF
3817 #line 3811 "configure"
3818 #include "confdefs.h"
3819 #include <sys/types.h>
3820 /* Check that off_t can represent 2**63 - 1 correctly.
3821 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3822 since some C++ compilers masquerading as C compilers
3823 incorrectly reject 9223372036854775807. */
3824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3826 && LARGE_OFF_T % 2147483647 == 1)
3827 ? 1 : -1];
3829 main ()
3833 return 0;
3835 _ACEOF
3836 rm -f conftest.$ac_objext
3837 if { (eval echo "$as_me:3836: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>&5
3839 ac_status=$?
3840 echo "$as_me:3839: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:3842: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:3845: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 break
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3853 rm -f conftest.$ac_objext conftest.$ac_ext
3854 cat >conftest.$ac_ext <<_ACEOF
3855 #line 3849 "configure"
3856 #include "confdefs.h"
3857 #define _LARGE_FILES 1
3858 #include <sys/types.h>
3859 /* Check that off_t can represent 2**63 - 1 correctly.
3860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3861 since some C++ compilers masquerading as C compilers
3862 incorrectly reject 9223372036854775807. */
3863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3865 && LARGE_OFF_T % 2147483647 == 1)
3866 ? 1 : -1];
3868 main ()
3872 return 0;
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:3875: \"$ac_compile\"") >&5
3877 (eval $ac_compile) 2>&5
3878 ac_status=$?
3879 echo "$as_me:3878: \$? = $ac_status" >&5
3880 (exit $ac_status); } &&
3881 { ac_try='test -s conftest.$ac_objext'
3882 { (eval echo "$as_me:3881: \"$ac_try\"") >&5
3883 (eval $ac_try) 2>&5
3884 ac_status=$?
3885 echo "$as_me:3884: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
3887 ac_cv_sys_large_files=1; break
3888 else
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 rm -f conftest.$ac_objext conftest.$ac_ext
3893 break
3894 done
3896 echo "$as_me:3895: result: $ac_cv_sys_large_files" >&5
3897 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3898 if test "$ac_cv_sys_large_files" != no; then
3900 cat >>confdefs.h <<EOF
3901 #define _LARGE_FILES $ac_cv_sys_large_files
3905 rm -f conftest*
3908 if test "${with_sound}" != "no"; then
3909 # Sound support for GNU/Linux and the free BSDs.
3911 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3914 echo "$as_me:3913: checking for $ac_header" >&5
3915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 cat >conftest.$ac_ext <<_ACEOF
3920 #line 3914 "configure"
3921 #include "confdefs.h"
3922 #include <$ac_header>
3923 _ACEOF
3924 if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5
3925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3926 ac_status=$?
3927 egrep -v '^ *\+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:3929: \$? = $ac_status" >&5
3931 (exit $ac_status); } >/dev/null; then
3932 if test -s conftest.err; then
3933 ac_cpp_err=$ac_c_preproc_warn_flag
3934 else
3935 ac_cpp_err=
3937 else
3938 ac_cpp_err=yes
3940 if test -z "$ac_cpp_err"; then
3941 eval "$as_ac_Header=yes"
3942 else
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 eval "$as_ac_Header=no"
3947 rm -f conftest.err conftest.$ac_ext
3949 echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3952 cat >>confdefs.h <<EOF
3953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 done
3959 # Emulation library used on NetBSD.
3960 echo "$as_me:3959: checking for _oss_ioctl in -lossaudio" >&5
3961 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3962 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 ac_check_lib_save_LIBS=$LIBS
3966 LIBS="-lossaudio $LIBS"
3967 cat >conftest.$ac_ext <<_ACEOF
3968 #line 3962 "configure"
3969 #include "confdefs.h"
3971 /* Override any gcc2 internal prototype to avoid an error. */
3972 #ifdef __cplusplus
3973 extern "C"
3974 #endif
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3977 char _oss_ioctl ();
3979 main ()
3981 _oss_ioctl ();
3983 return 0;
3985 _ACEOF
3986 rm -f conftest.$ac_objext conftest$ac_exeext
3987 if { (eval echo "$as_me:3986: \"$ac_link\"") >&5
3988 (eval $ac_link) 2>&5
3989 ac_status=$?
3990 echo "$as_me:3989: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -s conftest$ac_exeext'
3993 { (eval echo "$as_me:3992: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:3995: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_lib_ossaudio__oss_ioctl=yes
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 ac_cv_lib_ossaudio__oss_ioctl=no
4004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4005 LIBS=$ac_check_lib_save_LIBS
4007 echo "$as_me:4006: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4008 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4009 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4010 LIBSOUND=-lossaudio
4011 else
4012 LIBSOUND=
4017 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4018 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4019 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4022 echo "$as_me:4021: checking for $ac_header" >&5
4023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line 4022 "configure"
4029 #include "confdefs.h"
4030 #include <$ac_header>
4031 _ACEOF
4032 if { (eval echo "$as_me:4031: \"$ac_cpp conftest.$ac_ext\"") >&5
4033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4034 ac_status=$?
4035 egrep -v '^ *\+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:4037: \$? = $ac_status" >&5
4039 (exit $ac_status); } >/dev/null; then
4040 if test -s conftest.err; then
4041 ac_cpp_err=$ac_c_preproc_warn_flag
4042 else
4043 ac_cpp_err=
4045 else
4046 ac_cpp_err=yes
4048 if test -z "$ac_cpp_err"; then
4049 eval "$as_ac_Header=yes"
4050 else
4051 echo "$as_me: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4053 eval "$as_ac_Header=no"
4055 rm -f conftest.err conftest.$ac_ext
4057 echo "$as_me:4056: result: `eval echo '${'$as_ac_Header'}'`" >&5
4058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 cat >>confdefs.h <<EOF
4061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4065 done
4067 echo "$as_me:4066: checking for ANSI C header files" >&5
4068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4069 if test "${ac_cv_header_stdc+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 cat >conftest.$ac_ext <<_ACEOF
4073 #line 4067 "configure"
4074 #include "confdefs.h"
4075 #include <stdlib.h>
4076 #include <stdarg.h>
4077 #include <string.h>
4078 #include <float.h>
4080 _ACEOF
4081 if { (eval echo "$as_me:4080: \"$ac_cpp conftest.$ac_ext\"") >&5
4082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083 ac_status=$?
4084 egrep -v '^ *\+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:4086: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null; then
4089 if test -s conftest.err; then
4090 ac_cpp_err=$ac_c_preproc_warn_flag
4091 else
4092 ac_cpp_err=
4094 else
4095 ac_cpp_err=yes
4097 if test -z "$ac_cpp_err"; then
4098 ac_cv_header_stdc=yes
4099 else
4100 echo "$as_me: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4102 ac_cv_header_stdc=no
4104 rm -f conftest.err conftest.$ac_ext
4106 if test $ac_cv_header_stdc = yes; then
4107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 #line 4103 "configure"
4110 #include "confdefs.h"
4111 #include <string.h>
4113 _ACEOF
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 egrep "memchr" >/dev/null 2>&1; then
4117 else
4118 ac_cv_header_stdc=no
4120 rm -f conftest*
4124 if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126 cat >conftest.$ac_ext <<_ACEOF
4127 #line 4121 "configure"
4128 #include "confdefs.h"
4129 #include <stdlib.h>
4131 _ACEOF
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 egrep "free" >/dev/null 2>&1; then
4135 else
4136 ac_cv_header_stdc=no
4138 rm -f conftest*
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4146 else
4147 cat >conftest.$ac_ext <<_ACEOF
4148 #line 4142 "configure"
4149 #include "confdefs.h"
4150 #include <ctype.h>
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 #else
4155 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159 #endif
4161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4163 main ()
4165 int i;
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4169 exit(2);
4170 exit (0);
4172 _ACEOF
4173 rm -f conftest$ac_exeext
4174 if { (eval echo "$as_me:4173: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>&5
4176 ac_status=$?
4177 echo "$as_me:4176: \$? = $ac_status" >&5
4178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4179 { (eval echo "$as_me:4178: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:4181: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4185 else
4186 echo "$as_me: program exited with status $ac_status" >&5
4187 echo "$as_me: failed program was:" >&5
4188 cat conftest.$ac_ext >&5
4189 ac_cv_header_stdc=no
4191 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4195 echo "$as_me:4194: result: $ac_cv_header_stdc" >&5
4196 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4197 if test $ac_cv_header_stdc = yes; then
4199 cat >>confdefs.h <<\EOF
4200 #define STDC_HEADERS 1
4205 echo "$as_me:4204: checking whether time.h and sys/time.h may both be included" >&5
4206 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4207 if test "${ac_cv_header_time+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 cat >conftest.$ac_ext <<_ACEOF
4211 #line 4205 "configure"
4212 #include "confdefs.h"
4213 #include <sys/types.h>
4214 #include <sys/time.h>
4215 #include <time.h>
4218 main ()
4220 if ((struct tm *) 0)
4221 return 0;
4223 return 0;
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:4226: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>&5
4229 ac_status=$?
4230 echo "$as_me:4229: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:4232: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:4235: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_cv_header_time=yes
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 cat conftest.$ac_ext >&5
4242 ac_cv_header_time=no
4244 rm -f conftest.$ac_objext conftest.$ac_ext
4246 echo "$as_me:4245: result: $ac_cv_header_time" >&5
4247 echo "${ECHO_T}$ac_cv_header_time" >&6
4248 if test $ac_cv_header_time = yes; then
4250 cat >>confdefs.h <<\EOF
4251 #define TIME_WITH_SYS_TIME 1
4256 echo "$as_me:4255: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4257 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4258 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 cat >conftest.$ac_ext <<_ACEOF
4262 #line 4256 "configure"
4263 #include "confdefs.h"
4264 #include <sys/types.h>
4265 #include <signal.h>
4266 /* NetBSD declares sys_siglist in unistd.h. */
4267 #if HAVE_UNISTD_H
4268 # include <unistd.h>
4269 #endif
4272 main ()
4274 char *msg = *(sys_siglist + 1);
4276 return 0;
4278 _ACEOF
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:4279: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>&5
4282 ac_status=$?
4283 echo "$as_me:4282: \$? = $ac_status" >&5
4284 (exit $ac_status); } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (eval echo "$as_me:4285: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:4288: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 ac_cv_decl_sys_siglist=yes
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 ac_cv_decl_sys_siglist=no
4297 rm -f conftest.$ac_objext conftest.$ac_ext
4299 echo "$as_me:4298: result: $ac_cv_decl_sys_siglist" >&5
4300 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4301 if test $ac_cv_decl_sys_siglist = yes; then
4303 cat >>confdefs.h <<\EOF
4304 #define SYS_SIGLIST_DECLARED 1
4309 echo "$as_me:4308: checking for sys/wait.h that is POSIX.1 compatible" >&5
4310 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4311 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 cat >conftest.$ac_ext <<_ACEOF
4315 #line 4309 "configure"
4316 #include "confdefs.h"
4317 #include <sys/types.h>
4318 #include <sys/wait.h>
4319 #ifndef WEXITSTATUS
4320 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4321 #endif
4322 #ifndef WIFEXITED
4323 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4324 #endif
4327 main ()
4329 int s;
4330 wait (&s);
4331 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4333 return 0;
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:4336: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>&5
4339 ac_status=$?
4340 echo "$as_me:4339: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:4342: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:4345: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_header_sys_wait_h=yes
4349 else
4350 echo "$as_me: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4352 ac_cv_header_sys_wait_h=no
4354 rm -f conftest.$ac_objext conftest.$ac_ext
4356 echo "$as_me:4355: result: $ac_cv_header_sys_wait_h" >&5
4357 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4358 if test $ac_cv_header_sys_wait_h = yes; then
4360 cat >>confdefs.h <<\EOF
4361 #define HAVE_SYS_WAIT_H 1
4366 echo "$as_me:4365: checking for struct utimbuf" >&5
4367 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4368 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 cat >conftest.$ac_ext <<_ACEOF
4372 #line 4366 "configure"
4373 #include "confdefs.h"
4374 #ifdef TIME_WITH_SYS_TIME
4375 #include <sys/time.h>
4376 #include <time.h>
4377 #else
4378 #ifdef HAVE_SYS_TIME_H
4379 #include <sys/time.h>
4380 #else
4381 #include <time.h>
4382 #endif
4383 #endif
4384 #ifdef HAVE_UTIME_H
4385 #include <utime.h>
4386 #endif
4388 main ()
4390 static struct utimbuf x; x.actime = x.modtime;
4392 return 0;
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:4395: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4398 ac_status=$?
4399 echo "$as_me:4398: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:4401: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:4404: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 emacs_cv_struct_utimbuf=yes
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 emacs_cv_struct_utimbuf=no
4413 rm -f conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:4414: result: $emacs_cv_struct_utimbuf" >&5
4416 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4417 if test $emacs_cv_struct_utimbuf = yes; then
4419 cat >>confdefs.h <<\EOF
4420 #define HAVE_STRUCT_UTIMBUF 1
4425 echo "$as_me:4424: checking return type of signal handlers" >&5
4426 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4427 if test "${ac_cv_type_signal+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line 4425 "configure"
4432 #include "confdefs.h"
4433 #include <sys/types.h>
4434 #include <signal.h>
4435 #ifdef signal
4436 # undef signal
4437 #endif
4438 #ifdef __cplusplus
4439 extern "C" void (*signal (int, void (*)(int)))(int);
4440 #else
4441 void (*signal ()) ();
4442 #endif
4445 main ()
4447 int i;
4449 return 0;
4451 _ACEOF
4452 rm -f conftest.$ac_objext
4453 if { (eval echo "$as_me:4452: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>&5
4455 ac_status=$?
4456 echo "$as_me:4455: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:4458: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:4461: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 ac_cv_type_signal=void
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 ac_cv_type_signal=int
4470 rm -f conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me:4471: result: $ac_cv_type_signal" >&5
4473 echo "${ECHO_T}$ac_cv_type_signal" >&6
4475 cat >>confdefs.h <<EOF
4476 #define RETSIGTYPE $ac_cv_type_signal
4479 echo "$as_me:4478: checking for speed_t" >&5
4480 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4481 if test "${emacs_cv_speed_t+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 cat >conftest.$ac_ext <<_ACEOF
4485 #line 4479 "configure"
4486 #include "confdefs.h"
4487 #include <termios.h>
4489 main ()
4491 speed_t x = 1;
4493 return 0;
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:4496: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>&5
4499 ac_status=$?
4500 echo "$as_me:4499: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:4502: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:4505: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 emacs_cv_speed_t=yes
4509 else
4510 echo "$as_me: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 emacs_cv_speed_t=no
4514 rm -f conftest.$ac_objext conftest.$ac_ext
4516 echo "$as_me:4515: result: $emacs_cv_speed_t" >&5
4517 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4518 if test $emacs_cv_speed_t = yes; then
4520 cat >>confdefs.h <<\EOF
4521 #define HAVE_SPEED_T 1
4526 echo "$as_me:4525: checking for struct timeval" >&5
4527 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4528 if test "${emacs_cv_struct_timeval+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 cat >conftest.$ac_ext <<_ACEOF
4532 #line 4526 "configure"
4533 #include "confdefs.h"
4534 #ifdef TIME_WITH_SYS_TIME
4535 #include <sys/time.h>
4536 #include <time.h>
4537 #else
4538 #ifdef HAVE_SYS_TIME_H
4539 #include <sys/time.h>
4540 #else
4541 #include <time.h>
4542 #endif
4543 #endif
4545 main ()
4547 static struct timeval x; x.tv_sec = x.tv_usec;
4549 return 0;
4551 _ACEOF
4552 rm -f conftest.$ac_objext
4553 if { (eval echo "$as_me:4552: \"$ac_compile\"") >&5
4554 (eval $ac_compile) 2>&5
4555 ac_status=$?
4556 echo "$as_me:4555: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (eval echo "$as_me:4558: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:4561: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 emacs_cv_struct_timeval=yes
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 emacs_cv_struct_timeval=no
4570 rm -f conftest.$ac_objext conftest.$ac_ext
4572 echo "$as_me:4571: result: $emacs_cv_struct_timeval" >&5
4573 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4574 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4575 if test $emacs_cv_struct_timeval = yes; then
4577 cat >>confdefs.h <<\EOF
4578 #define HAVE_TIMEVAL 1
4583 echo "$as_me:4582: checking for struct exception" >&5
4584 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4585 if test "${emacs_cv_struct_exception+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line 4583 "configure"
4590 #include "confdefs.h"
4591 #include <math.h>
4593 main ()
4595 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4597 return 0;
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:4600: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4603 ac_status=$?
4604 echo "$as_me:4603: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:4606: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:4609: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 emacs_cv_struct_exception=yes
4613 else
4614 echo "$as_me: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4616 emacs_cv_struct_exception=no
4618 rm -f conftest.$ac_objext conftest.$ac_ext
4620 echo "$as_me:4619: result: $emacs_cv_struct_exception" >&5
4621 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4622 HAVE_EXCEPTION=$emacs_cv_struct_exception
4623 if test $emacs_cv_struct_exception != yes; then
4625 cat >>confdefs.h <<\EOF
4626 #define NO_MATHERR 1
4631 echo "$as_me:4630: checking whether struct tm is in sys/time.h or time.h" >&5
4632 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4633 if test "${ac_cv_struct_tm+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 cat >conftest.$ac_ext <<_ACEOF
4637 #line 4631 "configure"
4638 #include "confdefs.h"
4639 #include <sys/types.h>
4640 #include <time.h>
4643 main ()
4645 struct tm *tp; tp->tm_sec;
4647 return 0;
4649 _ACEOF
4650 rm -f conftest.$ac_objext
4651 if { (eval echo "$as_me:4650: \"$ac_compile\"") >&5
4652 (eval $ac_compile) 2>&5
4653 ac_status=$?
4654 echo "$as_me:4653: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:4656: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:4659: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_struct_tm=time.h
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4666 ac_cv_struct_tm=sys/time.h
4668 rm -f conftest.$ac_objext conftest.$ac_ext
4670 echo "$as_me:4669: result: $ac_cv_struct_tm" >&5
4671 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4672 if test $ac_cv_struct_tm = sys/time.h; then
4674 cat >>confdefs.h <<\EOF
4675 #define TM_IN_SYS_TIME 1
4680 echo "$as_me:4679: checking for struct tm.tm_zone" >&5
4681 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4682 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685 cat >conftest.$ac_ext <<_ACEOF
4686 #line 4680 "configure"
4687 #include "confdefs.h"
4688 #include <sys/types.h>
4689 #include <$ac_cv_struct_tm>
4692 main ()
4694 static struct tm ac_aggr;
4695 if (ac_aggr.tm_zone)
4696 return 0;
4698 return 0;
4700 _ACEOF
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:4701: \"$ac_compile\"") >&5
4703 (eval $ac_compile) 2>&5
4704 ac_status=$?
4705 echo "$as_me:4704: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -s conftest.$ac_objext'
4708 { (eval echo "$as_me:4707: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:4710: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 ac_cv_member_struct_tm_tm_zone=yes
4714 else
4715 echo "$as_me: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4717 ac_cv_member_struct_tm_tm_zone=no
4719 rm -f conftest.$ac_objext conftest.$ac_ext
4721 echo "$as_me:4720: result: $ac_cv_member_struct_tm_tm_zone" >&5
4722 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4723 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4725 cat >>confdefs.h <<EOF
4726 #define HAVE_STRUCT_TM_TM_ZONE 1
4731 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4733 cat >>confdefs.h <<\EOF
4734 #define HAVE_TM_ZONE 1
4737 else
4738 echo "$as_me:4737: checking for tzname" >&5
4739 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4740 if test "${ac_cv_var_tzname+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 cat >conftest.$ac_ext <<_ACEOF
4744 #line 4738 "configure"
4745 #include "confdefs.h"
4746 #include <time.h>
4747 #ifndef tzname /* For SGI. */
4748 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4749 #endif
4752 main ()
4754 atoi(*tzname);
4756 return 0;
4758 _ACEOF
4759 rm -f conftest.$ac_objext conftest$ac_exeext
4760 if { (eval echo "$as_me:4759: \"$ac_link\"") >&5
4761 (eval $ac_link) 2>&5
4762 ac_status=$?
4763 echo "$as_me:4762: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -s conftest$ac_exeext'
4766 { (eval echo "$as_me:4765: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:4768: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4771 ac_cv_var_tzname=yes
4772 else
4773 echo "$as_me: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 ac_cv_var_tzname=no
4777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4779 echo "$as_me:4778: result: $ac_cv_var_tzname" >&5
4780 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4781 if test $ac_cv_var_tzname = yes; then
4783 cat >>confdefs.h <<\EOF
4784 #define HAVE_TZNAME 1
4790 echo "$as_me:4789: checking for struct tm.tm_gmtoff" >&5
4791 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4792 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795 cat >conftest.$ac_ext <<_ACEOF
4796 #line 4790 "configure"
4797 #include "confdefs.h"
4798 #include <time.h>
4801 main ()
4803 static struct tm ac_aggr;
4804 if (ac_aggr.tm_gmtoff)
4805 return 0;
4807 return 0;
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:4810: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4813 ac_status=$?
4814 echo "$as_me:4813: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:4816: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:4819: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_cv_member_struct_tm_tm_gmtoff=yes
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 ac_cv_member_struct_tm_tm_gmtoff=no
4828 rm -f conftest.$ac_objext conftest.$ac_ext
4830 echo "$as_me:4829: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4831 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4832 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4834 cat >>confdefs.h <<\EOF
4835 #define HAVE_TM_GMTOFF 1
4840 echo "$as_me:4839: checking for $CC option to accept ANSI C" >&5
4841 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4842 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 ac_cv_prog_cc_stdc=no
4846 ac_save_CC=$CC
4847 cat >conftest.$ac_ext <<_ACEOF
4848 #line 4842 "configure"
4849 #include "confdefs.h"
4850 #include <stdarg.h>
4851 #include <stdio.h>
4852 #include <sys/types.h>
4853 #include <sys/stat.h>
4854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4855 struct buf { int x; };
4856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4857 static char *e (p, i)
4858 char **p;
4859 int i;
4861 return p[i];
4863 static char *f (char * (*g) (char **, int), char **p, ...)
4865 char *s;
4866 va_list v;
4867 va_start (v,p);
4868 s = g (p, va_arg (v,int));
4869 va_end (v);
4870 return s;
4872 int test (int i, double x);
4873 struct s1 {int (*f) (int a);};
4874 struct s2 {int (*f) (double a);};
4875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4876 int argc;
4877 char **argv;
4879 main ()
4881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4883 return 0;
4885 _ACEOF
4886 # Don't try gcc -ansi; that turns off useful extensions and
4887 # breaks some systems' header files.
4888 # AIX -qlanglvl=ansi
4889 # Ultrix and OSF/1 -std1
4890 # HP-UX 10.20 and later -Ae
4891 # HP-UX older versions -Aa -D_HPUX_SOURCE
4892 # SVR4 -Xc -D__EXTENSIONS__
4893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4895 CC="$ac_save_CC $ac_arg"
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>&5
4899 ac_status=$?
4900 echo "$as_me:4899: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -s conftest.$ac_objext'
4903 { (eval echo "$as_me:4902: \"$ac_try\"") >&5
4904 (eval $ac_try) 2>&5
4905 ac_status=$?
4906 echo "$as_me:4905: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4908 ac_cv_prog_cc_stdc=$ac_arg
4909 break
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 rm -f conftest.$ac_objext
4915 done
4916 rm -f conftest.$ac_ext conftest.$ac_objext
4917 CC=$ac_save_CC
4921 case "x$ac_cv_prog_cc_stdc" in
4922 x|xno)
4923 echo "$as_me:4922: result: none needed" >&5
4924 echo "${ECHO_T}none needed" >&6 ;;
4926 echo "$as_me:4925: result: $ac_cv_prog_cc_stdc" >&5
4927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4928 CC="$CC $ac_cv_prog_cc_stdc" ;;
4929 esac
4931 echo "$as_me:4930: checking for function prototypes" >&5
4932 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4933 if test "$ac_cv_prog_cc_stdc" != no; then
4934 echo "$as_me:4933: result: yes" >&5
4935 echo "${ECHO_T}yes" >&6
4937 cat >>confdefs.h <<\EOF
4938 #define PROTOTYPES 1
4941 else
4942 echo "$as_me:4941: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4946 echo "$as_me:4945: checking for working volatile" >&5
4947 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4948 if test "${ac_cv_c_volatile+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line 4946 "configure"
4953 #include "confdefs.h"
4956 main ()
4959 volatile int x;
4960 int * volatile y;
4962 return 0;
4964 _ACEOF
4965 rm -f conftest.$ac_objext
4966 if { (eval echo "$as_me:4965: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4968 ac_status=$?
4969 echo "$as_me:4968: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:4971: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:4974: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_c_volatile=yes
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 ac_cv_c_volatile=no
4983 rm -f conftest.$ac_objext conftest.$ac_ext
4985 echo "$as_me:4984: result: $ac_cv_c_volatile" >&5
4986 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4987 if test $ac_cv_c_volatile = no; then
4989 cat >>confdefs.h <<\EOF
4990 #define volatile
4995 echo "$as_me:4994: checking for an ANSI C-conforming const" >&5
4996 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4997 if test "${ac_cv_c_const+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 #line 4995 "configure"
5002 #include "confdefs.h"
5005 main ()
5007 /* FIXME: Include the comments suggested by Paul. */
5008 #ifndef __cplusplus
5009 /* Ultrix mips cc rejects this. */
5010 typedef int charset[2];
5011 const charset x;
5012 /* SunOS 4.1.1 cc rejects this. */
5013 char const *const *ccp;
5014 char **p;
5015 /* NEC SVR4.0.2 mips cc rejects this. */
5016 struct point {int x, y;};
5017 static struct point const zero = {0,0};
5018 /* AIX XL C 1.02.0.0 rejects this.
5019 It does not let you subtract one const X* pointer from another in
5020 an arm of an if-expression whose if-part is not a constant
5021 expression */
5022 const char *g = "string";
5023 ccp = &g + (g ? g-g : 0);
5024 /* HPUX 7.0 cc rejects these. */
5025 ++ccp;
5026 p = (char**) ccp;
5027 ccp = (char const *const *) p;
5028 { /* SCO 3.2v4 cc rejects this. */
5029 char *t;
5030 char const *s = 0 ? (char *) 0 : (char const *) 0;
5032 *t++ = 0;
5034 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5035 int x[] = {25, 17};
5036 const int *foo = &x[0];
5037 ++foo;
5039 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5040 typedef const int *iptr;
5041 iptr p = 0;
5042 ++p;
5044 { /* AIX XL C 1.02.0.0 rejects this saying
5045 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5046 struct s { int j; const int *ap[3]; };
5047 struct s *b; b->j = 5;
5049 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5050 const int foo = 10;
5052 #endif
5055 return 0;
5057 _ACEOF
5058 rm -f conftest.$ac_objext
5059 if { (eval echo "$as_me:5058: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5061 ac_status=$?
5062 echo "$as_me:5061: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -s conftest.$ac_objext'
5065 { (eval echo "$as_me:5064: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:5067: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 ac_cv_c_const=yes
5071 else
5072 echo "$as_me: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5074 ac_cv_c_const=no
5076 rm -f conftest.$ac_objext conftest.$ac_ext
5078 echo "$as_me:5077: result: $ac_cv_c_const" >&5
5079 echo "${ECHO_T}$ac_cv_c_const" >&6
5080 if test $ac_cv_c_const = no; then
5082 cat >>confdefs.h <<\EOF
5083 #define const
5088 echo "$as_me:5087: checking for void * support" >&5
5089 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5090 if test "${emacs_cv_void_star+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line 5088 "configure"
5095 #include "confdefs.h"
5098 main ()
5100 void * foo;
5102 return 0;
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (eval echo "$as_me:5105: \"$ac_compile\"") >&5
5107 (eval $ac_compile) 2>&5
5108 ac_status=$?
5109 echo "$as_me:5108: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -s conftest.$ac_objext'
5112 { (eval echo "$as_me:5111: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:5114: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 emacs_cv_void_star=yes
5118 else
5119 echo "$as_me: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5121 emacs_cv_void_star=no
5123 rm -f conftest.$ac_objext conftest.$ac_ext
5125 echo "$as_me:5124: result: $emacs_cv_void_star" >&5
5126 echo "${ECHO_T}$emacs_cv_void_star" >&6
5127 if test $emacs_cv_void_star = yes; then
5128 cat >>confdefs.h <<\EOF
5129 #define POINTER_TYPE void
5132 else
5133 cat >>confdefs.h <<\EOF
5134 #define POINTER_TYPE char
5139 echo "$as_me:5138: checking whether ${MAKE-make} sets \${MAKE}" >&5
5140 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5141 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5142 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 cat >conftest.make <<\EOF
5146 all:
5147 @echo 'ac_maketemp="${MAKE}"'
5149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5150 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5151 if test -n "$ac_maketemp"; then
5152 eval ac_cv_prog_make_${ac_make}_set=yes
5153 else
5154 eval ac_cv_prog_make_${ac_make}_set=no
5156 rm -f conftest.make
5158 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5159 echo "$as_me:5158: result: yes" >&5
5160 echo "${ECHO_T}yes" >&6
5161 SET_MAKE=
5162 else
5163 echo "$as_me:5162: result: no" >&5
5164 echo "${ECHO_T}no" >&6
5165 SET_MAKE="MAKE=${MAKE-make}"
5168 echo "$as_me:5167: checking for long file names" >&5
5169 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5170 if test "${ac_cv_sys_long_file_names+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 ac_cv_sys_long_file_names=yes
5174 # Test for long file names in all the places we know might matter:
5175 # . the current directory, where building will happen
5176 # $prefix/lib where we will be installing things
5177 # $exec_prefix/lib likewise
5178 # eval it to expand exec_prefix.
5179 # $TMPDIR if set, where it might want to write temporary files
5180 # if $TMPDIR is not set:
5181 # /tmp where it might want to write temporary files
5182 # /var/tmp likewise
5183 # /usr/tmp likewise
5184 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5185 ac_tmpdirs=$TMPDIR
5186 else
5187 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5189 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5190 test -d $ac_dir || continue
5191 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5192 ac_xdir=$ac_dir/cf$$
5193 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5194 ac_tf1=$ac_xdir/conftest9012345
5195 ac_tf2=$ac_xdir/conftest9012346
5196 (echo 1 >$ac_tf1) 2>/dev/null
5197 (echo 2 >$ac_tf2) 2>/dev/null
5198 ac_val=`cat $ac_tf1 2>/dev/null`
5199 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5200 ac_cv_sys_long_file_names=no
5201 rm -rf $ac_xdir 2>/dev/null
5202 break
5204 rm -rf $ac_xdir 2>/dev/null
5205 done
5207 echo "$as_me:5206: result: $ac_cv_sys_long_file_names" >&5
5208 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5209 if test $ac_cv_sys_long_file_names = yes; then
5211 cat >>confdefs.h <<\EOF
5212 #define HAVE_LONG_FILE_NAMES 1
5217 #### Choose a window system.
5219 echo "$as_me:5218: checking for X" >&5
5220 echo $ECHO_N "checking for X... $ECHO_C" >&6
5222 # Check whether --with-x or --without-x was given.
5223 if test "${with_x+set}" = set; then
5224 withval="$with_x"
5227 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5228 if test "x$with_x" = xno; then
5229 # The user explicitly disabled X.
5230 have_x=disabled
5231 else
5232 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5233 # Both variables are already set.
5234 have_x=yes
5235 else
5236 if test "${ac_cv_have_x+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 # One or both of the vars are not set, and there is no cached value.
5240 ac_x_includes=no ac_x_libraries=no
5241 rm -fr conftest.dir
5242 if mkdir conftest.dir; then
5243 cd conftest.dir
5244 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5245 cat >Imakefile <<'EOF'
5246 acfindx:
5247 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5249 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5251 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5252 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5253 for ac_extension in a so sl; do
5254 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5255 test -f $ac_im_libdir/libX11.$ac_extension; then
5256 ac_im_usrlibdir=$ac_im_libdir; break
5258 done
5259 # Screen out bogus values from the imake configuration. They are
5260 # bogus both because they are the default anyway, and because
5261 # using them would break gcc on systems where it needs fixed includes.
5262 case $ac_im_incroot in
5263 /usr/include) ;;
5264 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5265 esac
5266 case $ac_im_usrlibdir in
5267 /usr/lib | /lib) ;;
5268 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5269 esac
5271 cd ..
5272 rm -fr conftest.dir
5275 # Standard set of common directories for X headers.
5276 # Check X11 before X11Rn because it is often a symlink to the current release.
5277 ac_x_header_dirs='
5278 /usr/X11/include
5279 /usr/X11R6/include
5280 /usr/X11R5/include
5281 /usr/X11R4/include
5283 /usr/include/X11
5284 /usr/include/X11R6
5285 /usr/include/X11R5
5286 /usr/include/X11R4
5288 /usr/local/X11/include
5289 /usr/local/X11R6/include
5290 /usr/local/X11R5/include
5291 /usr/local/X11R4/include
5293 /usr/local/include/X11
5294 /usr/local/include/X11R6
5295 /usr/local/include/X11R5
5296 /usr/local/include/X11R4
5298 /usr/X386/include
5299 /usr/x386/include
5300 /usr/XFree86/include/X11
5302 /usr/include
5303 /usr/local/include
5304 /usr/unsupported/include
5305 /usr/athena/include
5306 /usr/local/x11r5/include
5307 /usr/lpp/Xamples/include
5309 /usr/openwin/include
5310 /usr/openwin/share/include'
5312 if test "$ac_x_includes" = no; then
5313 # Guess where to find include files, by looking for Intrinsic.h.
5314 # First, try using that file with no special directory specified.
5315 cat >conftest.$ac_ext <<_ACEOF
5316 #line 5310 "configure"
5317 #include "confdefs.h"
5318 #include <X11/Intrinsic.h>
5319 _ACEOF
5320 if { (eval echo "$as_me:5319: \"$ac_cpp conftest.$ac_ext\"") >&5
5321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5322 ac_status=$?
5323 egrep -v '^ *\+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 echo "$as_me:5325: \$? = $ac_status" >&5
5327 (exit $ac_status); } >/dev/null; then
5328 if test -s conftest.err; then
5329 ac_cpp_err=$ac_c_preproc_warn_flag
5330 else
5331 ac_cpp_err=
5333 else
5334 ac_cpp_err=yes
5336 if test -z "$ac_cpp_err"; then
5337 # We can compile using X headers with no special include directory.
5338 ac_x_includes=
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5342 for ac_dir in $ac_x_header_dirs; do
5343 if test -r "$ac_dir/X11/Intrinsic.h"; then
5344 ac_x_includes=$ac_dir
5345 break
5347 done
5349 rm -f conftest.err conftest.$ac_ext
5350 fi # $ac_x_includes = no
5352 if test "$ac_x_libraries" = no; then
5353 # Check for the libraries.
5354 # See if we find them without any special options.
5355 # Don't add to $LIBS permanently.
5356 ac_save_LIBS=$LIBS
5357 LIBS="-lXt $LIBS"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line 5353 "configure"
5360 #include "confdefs.h"
5361 #include <X11/Intrinsic.h>
5363 main ()
5365 XtMalloc (0)
5367 return 0;
5369 _ACEOF
5370 rm -f conftest.$ac_objext conftest$ac_exeext
5371 if { (eval echo "$as_me:5370: \"$ac_link\"") >&5
5372 (eval $ac_link) 2>&5
5373 ac_status=$?
5374 echo "$as_me:5373: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try='test -s conftest$ac_exeext'
5377 { (eval echo "$as_me:5376: \"$ac_try\"") >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 echo "$as_me:5379: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 LIBS=$ac_save_LIBS
5383 # We can link X programs with no special library path.
5384 ac_x_libraries=
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 LIBS=$ac_save_LIBS
5389 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5391 # Don't even attempt the hair of trying to link an X program!
5392 for ac_extension in a so sl; do
5393 if test -r $ac_dir/libXt.$ac_extension; then
5394 ac_x_libraries=$ac_dir
5395 break 2
5397 done
5398 done
5400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5401 fi # $ac_x_libraries = no
5403 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5404 # Didn't find X anywhere. Cache the known absence of X.
5405 ac_cv_have_x="have_x=no"
5406 else
5407 # Record where we found X for the cache.
5408 ac_cv_have_x="have_x=yes \
5409 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5414 eval "$ac_cv_have_x"
5415 fi # $with_x != no
5417 if test "$have_x" != yes; then
5418 echo "$as_me:5417: result: $have_x" >&5
5419 echo "${ECHO_T}$have_x" >&6
5420 no_x=yes
5421 else
5422 # If each of the values was on the command line, it overrides each guess.
5423 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5424 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5425 # Update the cache value to reflect the command line values.
5426 ac_cv_have_x="have_x=yes \
5427 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5428 echo "$as_me:5427: result: libraries $x_libraries, headers $x_includes" >&5
5429 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5432 if test "$no_x" = yes; then
5433 window_system=none
5434 else
5435 window_system=x11
5438 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5439 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5440 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5441 x_default_search_path=""
5442 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5443 x_search_path="\
5444 ${x_library}/X11/%L/%T/%N%C%S:\
5445 ${x_library}/X11/%l/%T/%N%C%S:\
5446 ${x_library}/X11/%T/%N%C%S:\
5447 ${x_library}/X11/%L/%T/%N%S:\
5448 ${x_library}/X11/%l/%T/%N%S:\
5449 ${x_library}/X11/%T/%N%S"
5450 if test x"${x_default_search_path}" = x; then
5451 x_default_search_path=${x_search_path}
5452 else
5453 x_default_search_path="${x_search_path}:${x_default_search_path}"
5455 done
5457 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5458 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5461 if test x"${x_includes}" = x; then
5462 bitmapdir=/usr/include/X11/bitmaps
5463 else
5464 # accumulate include directories that have X11 bitmap subdirectories
5465 bmd_acc="dummyval"
5466 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5467 if test -d "${bmd}/X11/bitmaps"; then
5468 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5470 if test -d "${bmd}/bitmaps"; then
5471 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5473 done
5474 if test ${bmd_acc} != "dummyval"; then
5475 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5479 case "${window_system}" in
5480 x11 )
5481 HAVE_X_WINDOWS=yes
5482 HAVE_X11=yes
5483 case "${with_x_toolkit}" in
5484 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5485 motif ) USE_X_TOOLKIT=MOTIF ;;
5486 no ) USE_X_TOOLKIT=none ;;
5487 * ) USE_X_TOOLKIT=maybe ;;
5488 esac
5490 none )
5491 HAVE_X_WINDOWS=no
5492 HAVE_X11=no
5493 USE_X_TOOLKIT=none
5495 esac
5497 ### If we're using X11, we should use the X menu package.
5498 HAVE_MENUS=no
5499 case ${HAVE_X11} in
5500 yes ) HAVE_MENUS=yes ;;
5501 esac
5503 if test "${opsys}" = "hpux9"; then
5504 case "${x_libraries}" in
5505 *X11R4* )
5506 opsysfile="s/hpux9-x11r4.h"
5508 esac
5511 if test "${opsys}" = "hpux9shr"; then
5512 case "${x_libraries}" in
5513 *X11R4* )
5514 opsysfile="s/hpux9shxr4.h"
5516 esac
5519 ### Compute the unexec source name from the object name.
5520 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5522 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5523 # Assume not, until told otherwise.
5524 GNU_MALLOC=yes
5525 doug_lea_malloc=yes
5526 echo "$as_me:5525: checking for malloc_get_state" >&5
5527 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5528 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531 cat >conftest.$ac_ext <<_ACEOF
5532 #line 5526 "configure"
5533 #include "confdefs.h"
5534 /* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char malloc_get_state (); below. */
5536 #include <assert.h>
5537 /* Override any gcc2 internal prototype to avoid an error. */
5538 #ifdef __cplusplus
5539 extern "C"
5540 #endif
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5543 char malloc_get_state ();
5544 char (*f) ();
5547 main ()
5549 /* The GNU C library defines this for functions which it implements
5550 to always fail with ENOSYS. Some functions are actually named
5551 something starting with __ and the normal name is an alias. */
5552 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5553 choke me
5554 #else
5555 f = malloc_get_state;
5556 #endif
5559 return 0;
5561 _ACEOF
5562 rm -f conftest.$ac_objext conftest$ac_exeext
5563 if { (eval echo "$as_me:5562: \"$ac_link\"") >&5
5564 (eval $ac_link) 2>&5
5565 ac_status=$?
5566 echo "$as_me:5565: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -s conftest$ac_exeext'
5569 { (eval echo "$as_me:5568: \"$ac_try\"") >&5
5570 (eval $ac_try) 2>&5
5571 ac_status=$?
5572 echo "$as_me:5571: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then
5574 ac_cv_func_malloc_get_state=yes
5575 else
5576 echo "$as_me: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5578 ac_cv_func_malloc_get_state=no
5580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5582 echo "$as_me:5581: result: $ac_cv_func_malloc_get_state" >&5
5583 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5584 if test $ac_cv_func_malloc_get_state = yes; then
5586 else
5587 doug_lea_malloc=no
5590 echo "$as_me:5589: checking for malloc_set_state" >&5
5591 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5592 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 #line 5590 "configure"
5597 #include "confdefs.h"
5598 /* System header to define __stub macros and hopefully few prototypes,
5599 which can conflict with char malloc_set_state (); below. */
5600 #include <assert.h>
5601 /* Override any gcc2 internal prototype to avoid an error. */
5602 #ifdef __cplusplus
5603 extern "C"
5604 #endif
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5607 char malloc_set_state ();
5608 char (*f) ();
5611 main ()
5613 /* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5617 choke me
5618 #else
5619 f = malloc_set_state;
5620 #endif
5623 return 0;
5625 _ACEOF
5626 rm -f conftest.$ac_objext conftest$ac_exeext
5627 if { (eval echo "$as_me:5626: \"$ac_link\"") >&5
5628 (eval $ac_link) 2>&5
5629 ac_status=$?
5630 echo "$as_me:5629: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -s conftest$ac_exeext'
5633 { (eval echo "$as_me:5632: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:5635: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 ac_cv_func_malloc_set_state=yes
5639 else
5640 echo "$as_me: failed program was:" >&5
5641 cat conftest.$ac_ext >&5
5642 ac_cv_func_malloc_set_state=no
5644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5646 echo "$as_me:5645: result: $ac_cv_func_malloc_set_state" >&5
5647 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5648 if test $ac_cv_func_malloc_set_state = yes; then
5650 else
5651 doug_lea_malloc=no
5654 echo "$as_me:5653: checking whether __after_morecore_hook exists" >&5
5655 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5656 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 cat >conftest.$ac_ext <<_ACEOF
5660 #line 5654 "configure"
5661 #include "confdefs.h"
5662 extern void (* __after_morecore_hook)();
5664 main ()
5666 __after_morecore_hook = 0
5668 return 0;
5670 _ACEOF
5671 rm -f conftest.$ac_objext conftest$ac_exeext
5672 if { (eval echo "$as_me:5671: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>&5
5674 ac_status=$?
5675 echo "$as_me:5674: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -s conftest$ac_exeext'
5678 { (eval echo "$as_me:5677: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:5680: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 emacs_cv_var___after_morecore_hook=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5687 emacs_cv_var___after_morecore_hook=no
5689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5691 echo "$as_me:5690: result: $emacs_cv_var___after_morecore_hook" >&5
5692 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5693 if test $emacs_cv_var___after_morecore_hook = no; then
5694 doug_lea_malloc=no
5696 if test "${system_malloc}" = "yes"; then
5697 GNU_MALLOC=no
5698 GNU_MALLOC_reason="
5699 (The GNU allocators don't work with this system configuration.)"
5701 if test "$doug_lea_malloc" = "yes" ; then
5702 if test "$GNU_MALLOC" = yes ; then
5703 GNU_MALLOC_reason="
5704 (Using Doug Lea's new malloc from the GNU C Library.)"
5707 cat >>confdefs.h <<\EOF
5708 #define DOUG_LEA_MALLOC 1
5713 if test x"${REL_ALLOC}" = x; then
5714 REL_ALLOC=${GNU_MALLOC}
5717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5720 inttypes.h stdint.h unistd.h
5722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723 echo "$as_me:5722: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 cat >conftest.$ac_ext <<_ACEOF
5729 #line 5723 "configure"
5730 #include "confdefs.h"
5731 $ac_includes_default
5732 #include <$ac_header>
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:5734: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>&5
5737 ac_status=$?
5738 echo "$as_me:5737: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:5740: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:5743: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 eval "$as_ac_Header=yes"
5747 else
5748 echo "$as_me: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5750 eval "$as_ac_Header=no"
5752 rm -f conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:5753: result: `eval echo '${'$as_ac_Header'}'`" >&5
5755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5757 cat >>confdefs.h <<EOF
5758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5762 done
5764 for ac_header in stdlib.h unistd.h
5766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767 echo "$as_me:5766: checking for $ac_header" >&5
5768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line 5767 "configure"
5774 #include "confdefs.h"
5775 #include <$ac_header>
5776 _ACEOF
5777 if { (eval echo "$as_me:5776: \"$ac_cpp conftest.$ac_ext\"") >&5
5778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5779 ac_status=$?
5780 egrep -v '^ *\+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:5782: \$? = $ac_status" >&5
5784 (exit $ac_status); } >/dev/null; then
5785 if test -s conftest.err; then
5786 ac_cpp_err=$ac_c_preproc_warn_flag
5787 else
5788 ac_cpp_err=
5790 else
5791 ac_cpp_err=yes
5793 if test -z "$ac_cpp_err"; then
5794 eval "$as_ac_Header=yes"
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 eval "$as_ac_Header=no"
5800 rm -f conftest.err conftest.$ac_ext
5802 echo "$as_me:5801: result: `eval echo '${'$as_ac_Header'}'`" >&5
5803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5805 cat >>confdefs.h <<EOF
5806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5810 done
5812 for ac_func in getpagesize
5814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5815 echo "$as_me:5814: checking for $ac_func" >&5
5816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5817 if eval "test \"\${$as_ac_var+set}\" = set"; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 cat >conftest.$ac_ext <<_ACEOF
5821 #line 5815 "configure"
5822 #include "confdefs.h"
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char $ac_func (); below. */
5825 #include <assert.h>
5826 /* Override any gcc2 internal prototype to avoid an error. */
5827 #ifdef __cplusplus
5828 extern "C"
5829 #endif
5830 /* We use char because int might match the return type of a gcc2
5831 builtin and then its argument prototype would still apply. */
5832 char $ac_func ();
5833 char (*f) ();
5836 main ()
5838 /* The GNU C library defines this for functions which it implements
5839 to always fail with ENOSYS. Some functions are actually named
5840 something starting with __ and the normal name is an alias. */
5841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5842 choke me
5843 #else
5844 f = $ac_func;
5845 #endif
5848 return 0;
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:5851: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>&5
5854 ac_status=$?
5855 echo "$as_me:5854: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:5857: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:5860: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 eval "$as_ac_var=yes"
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5867 eval "$as_ac_var=no"
5869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871 echo "$as_me:5870: result: `eval echo '${'$as_ac_var'}'`" >&5
5872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5873 if test `eval echo '${'$as_ac_var'}'` = yes; then
5874 cat >>confdefs.h <<EOF
5875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5879 done
5881 echo "$as_me:5880: checking for working mmap" >&5
5882 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5883 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 if test "$cross_compiling" = yes; then
5887 ac_cv_func_mmap_fixed_mapped=no
5888 else
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line 5884 "configure"
5891 #include "confdefs.h"
5892 $ac_includes_default
5893 /* Thanks to Mike Haertel and Jim Avera for this test.
5894 Here is a matrix of mmap possibilities:
5895 mmap private not fixed
5896 mmap private fixed at somewhere currently unmapped
5897 mmap private fixed at somewhere already mapped
5898 mmap shared not fixed
5899 mmap shared fixed at somewhere currently unmapped
5900 mmap shared fixed at somewhere already mapped
5901 For private mappings, we should verify that changes cannot be read()
5902 back from the file, nor mmap's back from the file at a different
5903 address. (There have been systems where private was not correctly
5904 implemented like the infamous i386 svr4.0, and systems where the
5905 VM page cache was not coherent with the file system buffer cache
5906 like early versions of FreeBSD and possibly contemporary NetBSD.)
5907 For shared mappings, we should conversely verify that changes get
5908 propogated back to all the places they're supposed to be.
5910 Grep wants private fixed already mapped.
5911 The main things grep needs to know about mmap are:
5912 * does it exist and is it safe to write into the mmap'd area
5913 * how to use it (BSD variants) */
5915 #include <fcntl.h>
5916 #include <sys/mman.h>
5918 #if !STDC_HEADERS && !HAVE_STDLIB_H
5919 char *malloc ();
5920 #endif
5922 /* This mess was copied from the GNU getpagesize.h. */
5923 #if !HAVE_GETPAGESIZE
5924 /* Assume that all systems that can run configure have sys/param.h. */
5925 # if !HAVE_SYS_PARAM_H
5926 # define HAVE_SYS_PARAM_H 1
5927 # endif
5929 # ifdef _SC_PAGESIZE
5930 # define getpagesize() sysconf(_SC_PAGESIZE)
5931 # else /* no _SC_PAGESIZE */
5932 # if HAVE_SYS_PARAM_H
5933 # include <sys/param.h>
5934 # ifdef EXEC_PAGESIZE
5935 # define getpagesize() EXEC_PAGESIZE
5936 # else /* no EXEC_PAGESIZE */
5937 # ifdef NBPG
5938 # define getpagesize() NBPG * CLSIZE
5939 # ifndef CLSIZE
5940 # define CLSIZE 1
5941 # endif /* no CLSIZE */
5942 # else /* no NBPG */
5943 # ifdef NBPC
5944 # define getpagesize() NBPC
5945 # else /* no NBPC */
5946 # ifdef PAGESIZE
5947 # define getpagesize() PAGESIZE
5948 # endif /* PAGESIZE */
5949 # endif /* no NBPC */
5950 # endif /* no NBPG */
5951 # endif /* no EXEC_PAGESIZE */
5952 # else /* no HAVE_SYS_PARAM_H */
5953 # define getpagesize() 8192 /* punt totally */
5954 # endif /* no HAVE_SYS_PARAM_H */
5955 # endif /* no _SC_PAGESIZE */
5957 #endif /* no HAVE_GETPAGESIZE */
5960 main ()
5962 char *data, *data2, *data3;
5963 int i, pagesize;
5964 int fd;
5966 pagesize = getpagesize ();
5968 /* First, make a file with some known garbage in it. */
5969 data = (char *) malloc (pagesize);
5970 if (!data)
5971 exit (1);
5972 for (i = 0; i < pagesize; ++i)
5973 *(data + i) = rand ();
5974 umask (0);
5975 fd = creat ("conftest.mmap", 0600);
5976 if (fd < 0)
5977 exit (1);
5978 if (write (fd, data, pagesize) != pagesize)
5979 exit (1);
5980 close (fd);
5982 /* Next, try to mmap the file at a fixed address which already has
5983 something else allocated at it. If we can, also make sure that
5984 we see the same garbage. */
5985 fd = open ("conftest.mmap", O_RDWR);
5986 if (fd < 0)
5987 exit (1);
5988 data2 = (char *) malloc (2 * pagesize);
5989 if (!data2)
5990 exit (1);
5991 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5992 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5993 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5994 exit (1);
5995 for (i = 0; i < pagesize; ++i)
5996 if (*(data + i) != *(data2 + i))
5997 exit (1);
5999 /* Finally, make sure that changes to the mapped area do not
6000 percolate back to the file as seen by read(). (This is a bug on
6001 some variants of i386 svr4.0.) */
6002 for (i = 0; i < pagesize; ++i)
6003 *(data2 + i) = *(data2 + i) + 1;
6004 data3 = (char *) malloc (pagesize);
6005 if (!data3)
6006 exit (1);
6007 if (read (fd, data3, pagesize) != pagesize)
6008 exit (1);
6009 for (i = 0; i < pagesize; ++i)
6010 if (*(data + i) != *(data3 + i))
6011 exit (1);
6012 close (fd);
6013 exit (0);
6015 _ACEOF
6016 rm -f conftest$ac_exeext
6017 if { (eval echo "$as_me:6016: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6019 ac_status=$?
6020 echo "$as_me:6019: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6022 { (eval echo "$as_me:6021: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:6024: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_func_mmap_fixed_mapped=yes
6028 else
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 ac_cv_func_mmap_fixed_mapped=no
6034 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6037 echo "$as_me:6036: result: $ac_cv_func_mmap_fixed_mapped" >&5
6038 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6039 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6041 cat >>confdefs.h <<\EOF
6042 #define HAVE_MMAP 1
6046 rm -f conftest.mmap
6048 if test $use_mmap_for_buffers = yes; then
6049 REL_ALLOC=no
6052 LIBS="$libsrc_libs $LIBS"
6054 echo "$as_me:6053: checking for dnet_ntoa in -ldnet" >&5
6055 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6056 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059 ac_check_lib_save_LIBS=$LIBS
6060 LIBS="-ldnet $LIBS"
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line 6056 "configure"
6063 #include "confdefs.h"
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 #ifdef __cplusplus
6067 extern "C"
6068 #endif
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6071 char dnet_ntoa ();
6073 main ()
6075 dnet_ntoa ();
6077 return 0;
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (eval echo "$as_me:6080: \"$ac_link\"") >&5
6082 (eval $ac_link) 2>&5
6083 ac_status=$?
6084 echo "$as_me:6083: \$? = $ac_status" >&5
6085 (exit $ac_status); } &&
6086 { ac_try='test -s conftest$ac_exeext'
6087 { (eval echo "$as_me:6086: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:6089: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_lib_dnet_dnet_ntoa=yes
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 ac_cv_lib_dnet_dnet_ntoa=no
6098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6099 LIBS=$ac_check_lib_save_LIBS
6101 echo "$as_me:6100: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6102 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6103 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6104 cat >>confdefs.h <<EOF
6105 #define HAVE_LIBDNET 1
6108 LIBS="-ldnet $LIBS"
6112 echo "$as_me:6111: checking for main in -lXbsd" >&5
6113 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6114 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 ac_check_lib_save_LIBS=$LIBS
6118 LIBS="-lXbsd $LIBS"
6119 cat >conftest.$ac_ext <<_ACEOF
6120 #line 6114 "configure"
6121 #include "confdefs.h"
6124 main ()
6126 main ();
6128 return 0;
6130 _ACEOF
6131 rm -f conftest.$ac_objext conftest$ac_exeext
6132 if { (eval echo "$as_me:6131: \"$ac_link\"") >&5
6133 (eval $ac_link) 2>&5
6134 ac_status=$?
6135 echo "$as_me:6134: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -s conftest$ac_exeext'
6138 { (eval echo "$as_me:6137: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:6140: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6143 ac_cv_lib_Xbsd_main=yes
6144 else
6145 echo "$as_me: failed program was:" >&5
6146 cat conftest.$ac_ext >&5
6147 ac_cv_lib_Xbsd_main=no
6149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150 LIBS=$ac_check_lib_save_LIBS
6152 echo "$as_me:6151: result: $ac_cv_lib_Xbsd_main" >&5
6153 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6154 if test $ac_cv_lib_Xbsd_main = yes; then
6155 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6158 echo "$as_me:6157: checking for cma_open in -lpthreads" >&5
6159 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6160 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-lpthreads $LIBS"
6165 cat >conftest.$ac_ext <<_ACEOF
6166 #line 6160 "configure"
6167 #include "confdefs.h"
6169 /* Override any gcc2 internal prototype to avoid an error. */
6170 #ifdef __cplusplus
6171 extern "C"
6172 #endif
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6175 char cma_open ();
6177 main ()
6179 cma_open ();
6181 return 0;
6183 _ACEOF
6184 rm -f conftest.$ac_objext conftest$ac_exeext
6185 if { (eval echo "$as_me:6184: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6187 ac_status=$?
6188 echo "$as_me:6187: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:6190: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:6193: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_lib_pthreads_cma_open=yes
6197 else
6198 echo "$as_me: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6200 ac_cv_lib_pthreads_cma_open=no
6202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6203 LIBS=$ac_check_lib_save_LIBS
6205 echo "$as_me:6204: result: $ac_cv_lib_pthreads_cma_open" >&5
6206 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6207 if test $ac_cv_lib_pthreads_cma_open = yes; then
6208 cat >>confdefs.h <<EOF
6209 #define HAVE_LIBPTHREADS 1
6212 LIBS="-lpthreads $LIBS"
6216 echo "$as_me:6215: checking for XFree86 in /usr/X386" >&5
6217 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6218 if test -d /usr/X386/include; then
6219 HAVE_XFREE386=yes
6220 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6221 else
6222 HAVE_XFREE386=no
6224 echo "$as_me:6223: result: $HAVE_XFREE386" >&5
6225 echo "${ECHO_T}$HAVE_XFREE386" >&6
6227 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6228 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6230 REAL_CPPFLAGS="$CPPFLAGS"
6232 if test "${HAVE_X11}" = "yes"; then
6233 DEFS="$C_SWITCH_X_SITE $DEFS"
6234 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6235 LIBS="$LIBX $LIBS"
6236 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6237 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6239 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6240 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6241 # but it's more convenient here to set LD_RUN_PATH
6242 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6243 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6244 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6245 export LD_RUN_PATH
6248 if test "${opsys}" = "gnu-linux"; then
6249 echo "$as_me:6248: checking whether X on GNU/Linux needs -b to link" >&5
6250 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6251 cat >conftest.$ac_ext <<_ACEOF
6252 #line 6246 "configure"
6253 #include "confdefs.h"
6256 main ()
6258 XOpenDisplay ("foo");
6260 return 0;
6262 _ACEOF
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:6263: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>&5
6266 ac_status=$?
6267 echo "$as_me:6266: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:6269: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:6272: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 xlinux_first_failure=no
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6279 xlinux_first_failure=yes
6281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6282 if test "${xlinux_first_failure}" = "yes"; then
6283 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6284 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6285 OLD_CPPFLAGS="$CPPFLAGS"
6286 OLD_LIBS="$LIBS"
6287 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6288 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6289 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6290 LIBS="$LIBS -b i486-linuxaout"
6291 cat >conftest.$ac_ext <<_ACEOF
6292 #line 6286 "configure"
6293 #include "confdefs.h"
6296 main ()
6298 XOpenDisplay ("foo");
6300 return 0;
6302 _ACEOF
6303 rm -f conftest.$ac_objext conftest$ac_exeext
6304 if { (eval echo "$as_me:6303: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>&5
6306 ac_status=$?
6307 echo "$as_me:6306: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -s conftest$ac_exeext'
6310 { (eval echo "$as_me:6309: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:6312: \$? = $ac_status" >&5
6314 (exit $ac_status); }; }; then
6315 xlinux_second_failure=no
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6319 xlinux_second_failure=yes
6321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6322 if test "${xlinux_second_failure}" = "yes"; then
6323 # If we get the same failure with -b, there is no use adding -b.
6324 # So take it out. This plays safe.
6325 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6326 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6327 CPPFLAGS="$OLD_CPPFLAGS"
6328 LIBS="$OLD_LIBS"
6329 echo "$as_me:6328: result: no" >&5
6330 echo "${ECHO_T}no" >&6
6331 else
6332 echo "$as_me:6331: result: yes" >&5
6333 echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:6335: result: no" >&5
6337 echo "${ECHO_T}no" >&6
6341 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6342 # header files included from there.
6343 echo "$as_me:6342: checking for Xkb" >&5
6344 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line 6340 "configure"
6347 #include "confdefs.h"
6348 #include <X11/Xlib.h>
6349 #include <X11/XKBlib.h>
6351 main ()
6353 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:6358: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6361 ac_status=$?
6362 echo "$as_me:6361: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:6364: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:6367: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 emacs_xkb=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6374 emacs_xkb=no
6376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377 echo "$as_me:6376: result: $emacs_xkb" >&5
6378 echo "${ECHO_T}$emacs_xkb" >&6
6379 if test $emacs_xkb = yes; then
6381 cat >>confdefs.h <<\EOF
6382 #define HAVE_XKBGETKEYBOARD 1
6387 for ac_func in XrmSetDatabase XScreenResourceString \
6388 XScreenNumberOfScreen XSetWMProtocols
6390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6391 echo "$as_me:6390: checking for $ac_func" >&5
6392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_var+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line 6391 "configure"
6398 #include "confdefs.h"
6399 /* System header to define __stub macros and hopefully few prototypes,
6400 which can conflict with char $ac_func (); below. */
6401 #include <assert.h>
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 #ifdef __cplusplus
6404 extern "C"
6405 #endif
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6408 char $ac_func ();
6409 char (*f) ();
6412 main ()
6414 /* The GNU C library defines this for functions which it implements
6415 to always fail with ENOSYS. Some functions are actually named
6416 something starting with __ and the normal name is an alias. */
6417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6418 choke me
6419 #else
6420 f = $ac_func;
6421 #endif
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:6427: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6430 ac_status=$?
6431 echo "$as_me:6430: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest$ac_exeext'
6434 { (eval echo "$as_me:6433: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:6436: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 eval "$as_ac_var=yes"
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 cat conftest.$ac_ext >&5
6443 eval "$as_ac_var=no"
6445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447 echo "$as_me:6446: result: `eval echo '${'$as_ac_var'}'`" >&5
6448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6449 if test `eval echo '${'$as_ac_var'}'` = yes; then
6450 cat >>confdefs.h <<EOF
6451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6455 done
6459 if test "${window_system}" = "x11"; then
6460 echo "$as_me:6459: checking X11 version 6" >&5
6461 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6462 if test "${emacs_cv_x11_version_6+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 #line 6460 "configure"
6467 #include "confdefs.h"
6468 #include <X11/Xlib.h>
6470 main ()
6472 #if XlibSpecificationRelease < 6
6473 fail;
6474 #endif
6477 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (eval echo "$as_me:6480: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>&5
6483 ac_status=$?
6484 echo "$as_me:6483: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest$ac_exeext'
6487 { (eval echo "$as_me:6486: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:6489: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 emacs_cv_x11_version_6=yes
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 emacs_cv_x11_version_6=no
6498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6501 if test $emacs_cv_x11_version_6 = yes; then
6502 echo "$as_me:6501: result: 6 or newer" >&5
6503 echo "${ECHO_T}6 or newer" >&6
6505 cat >>confdefs.h <<\EOF
6506 #define HAVE_X11R6 1
6509 else
6510 echo "$as_me:6509: result: before 6" >&5
6511 echo "${ECHO_T}before 6" >&6
6515 if test "${window_system}" = "x11"; then
6516 echo "$as_me:6515: checking X11 version 5" >&5
6517 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6518 if test "${emacs_cv_x11_version_5+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 #line 6516 "configure"
6523 #include "confdefs.h"
6524 #include <X11/Xlib.h>
6526 main ()
6528 #if XlibSpecificationRelease < 5
6529 fail;
6530 #endif
6533 return 0;
6535 _ACEOF
6536 rm -f conftest.$ac_objext conftest$ac_exeext
6537 if { (eval echo "$as_me:6536: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6539 ac_status=$?
6540 echo "$as_me:6539: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:6542: \"$ac_try\"") >&5
6544 (eval $ac_try) 2>&5
6545 ac_status=$?
6546 echo "$as_me:6545: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 emacs_cv_x11_version_5=yes
6549 else
6550 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6552 emacs_cv_x11_version_5=no
6554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6557 if test $emacs_cv_x11_version_5 = yes; then
6558 echo "$as_me:6557: result: 5 or newer" >&5
6559 echo "${ECHO_T}5 or newer" >&6
6560 HAVE_X11R5=yes
6562 cat >>confdefs.h <<\EOF
6563 #define HAVE_X11R5 1
6566 else
6567 HAVE_X11R5=no
6568 echo "$as_me:6567: result: before 5" >&5
6569 echo "${ECHO_T}before 5" >&6
6573 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6574 if test x"${HAVE_X11R5}" = xyes; then
6575 echo "$as_me:6574: checking X11 version 5 with Xaw" >&5
6576 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6577 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580 cat >conftest.$ac_ext <<_ACEOF
6581 #line 6575 "configure"
6582 #include "confdefs.h"
6584 #include <X11/Intrinsic.h>
6585 #include <X11/Xaw/Simple.h>
6587 main ()
6591 return 0;
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:6594: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6597 ac_status=$?
6598 echo "$as_me:6597: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:6600: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:6603: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 emacs_cv_x11_version_5_with_xaw=yes
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6610 emacs_cv_x11_version_5_with_xaw=no
6612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6615 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6616 echo "$as_me:6615: result: 5 or newer, with Xaw; use toolkit by default" >&5
6617 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6618 USE_X_TOOLKIT=LUCID
6619 else
6620 echo "$as_me:6619: result: before 5 or no Xaw; do not use toolkit by default" >&5
6621 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6622 USE_X_TOOLKIT=none
6624 else
6625 USE_X_TOOLKIT=none
6629 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6631 if test "${USE_X_TOOLKIT}" != "none"; then
6632 echo "$as_me:6631: checking X11 toolkit version" >&5
6633 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6634 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637 cat >conftest.$ac_ext <<_ACEOF
6638 #line 6632 "configure"
6639 #include "confdefs.h"
6640 #include <X11/Intrinsic.h>
6642 main ()
6644 #if XtSpecificationRelease < 6
6645 fail;
6646 #endif
6649 return 0;
6651 _ACEOF
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:6652: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>&5
6655 ac_status=$?
6656 echo "$as_me:6655: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -s conftest$ac_exeext'
6659 { (eval echo "$as_me:6658: \"$ac_try\"") >&5
6660 (eval $ac_try) 2>&5
6661 ac_status=$?
6662 echo "$as_me:6661: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 emacs_cv_x11_toolkit_version_6=yes
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 cat conftest.$ac_ext >&5
6668 emacs_cv_x11_toolkit_version_6=no
6670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6673 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6674 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6675 echo "$as_me:6674: result: 6 or newer" >&5
6676 echo "${ECHO_T}6 or newer" >&6
6678 cat >>confdefs.h <<\EOF
6679 #define HAVE_X11XTR6 1
6682 else
6683 echo "$as_me:6682: result: before 6" >&5
6684 echo "${ECHO_T}before 6" >&6
6687 OLDLIBS="$LIBS"
6688 if test x$HAVE_X11XTR6 = xyes; then
6689 LIBS="-lXt -lSM -lICE $LIBS"
6690 else
6691 LIBS="-lXt $LIBS"
6694 echo "$as_me:6693: checking for XmuConvertStandardSelection in -lXmu" >&5
6695 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6696 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 ac_check_lib_save_LIBS=$LIBS
6700 LIBS="-lXmu $LIBS"
6701 cat >conftest.$ac_ext <<_ACEOF
6702 #line 6696 "configure"
6703 #include "confdefs.h"
6705 /* Override any gcc2 internal prototype to avoid an error. */
6706 #ifdef __cplusplus
6707 extern "C"
6708 #endif
6709 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6711 char XmuConvertStandardSelection ();
6713 main ()
6715 XmuConvertStandardSelection ();
6717 return 0;
6719 _ACEOF
6720 rm -f conftest.$ac_objext conftest$ac_exeext
6721 if { (eval echo "$as_me:6720: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6723 ac_status=$?
6724 echo "$as_me:6723: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -s conftest$ac_exeext'
6727 { (eval echo "$as_me:6726: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:6729: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6732 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6739 LIBS=$ac_check_lib_save_LIBS
6741 echo "$as_me:6740: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6742 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6743 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6744 cat >>confdefs.h <<EOF
6745 #define HAVE_LIBXMU 1
6748 LIBS="-lXmu $LIBS"
6752 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6755 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6756 if test "${HAVE_X11}" = "yes"; then
6757 if test "${USE_X_TOOLKIT}" != "none"; then
6759 echo "$as_me:6758: checking for XShapeQueryExtension in -lXext" >&5
6760 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6761 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 ac_check_lib_save_LIBS=$LIBS
6765 LIBS="-lXext $LIBS"
6766 cat >conftest.$ac_ext <<_ACEOF
6767 #line 6761 "configure"
6768 #include "confdefs.h"
6770 /* Override any gcc2 internal prototype to avoid an error. */
6771 #ifdef __cplusplus
6772 extern "C"
6773 #endif
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char XShapeQueryExtension ();
6778 main ()
6780 XShapeQueryExtension ();
6782 return 0;
6784 _ACEOF
6785 rm -f conftest.$ac_objext conftest$ac_exeext
6786 if { (eval echo "$as_me:6785: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6788 ac_status=$?
6789 echo "$as_me:6788: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:6791: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:6794: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_lib_Xext_XShapeQueryExtension=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6801 ac_cv_lib_Xext_XShapeQueryExtension=no
6803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6804 LIBS=$ac_check_lib_save_LIBS
6806 echo "$as_me:6805: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6807 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6808 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6809 cat >>confdefs.h <<EOF
6810 #define HAVE_LIBXEXT 1
6813 LIBS="-lXext $LIBS"
6820 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6821 echo "$as_me:6820: checking for Motif version 2.1" >&5
6822 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6823 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826 cat >conftest.$ac_ext <<_ACEOF
6827 #line 6821 "configure"
6828 #include "confdefs.h"
6829 #include <Xm/Xm.h>
6831 main ()
6833 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6834 int x = 5;
6835 #else
6836 Motif version prior to 2.1.
6837 #endif
6839 return 0;
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (eval echo "$as_me:6842: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>&5
6845 ac_status=$?
6846 echo "$as_me:6845: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -s conftest.$ac_objext'
6849 { (eval echo "$as_me:6848: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:6851: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 emacs_cv_motif_version_2_1=yes
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 emacs_cv_motif_version_2_1=no
6860 rm -f conftest.$ac_objext conftest.$ac_ext
6862 echo "$as_me:6861: result: $emacs_cv_motif_version_2_1" >&5
6863 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6864 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6865 if test $emacs_cv_motif_version_2_1 = yes; then
6866 HAVE_LIBXP=no
6868 cat >>confdefs.h <<\EOF
6869 #define HAVE_MOTIF_2_1 1
6872 echo "$as_me:6871: checking for XpCreateContext in -lXp" >&5
6873 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6874 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 ac_check_lib_save_LIBS=$LIBS
6878 LIBS="-lXp $LIBS"
6879 cat >conftest.$ac_ext <<_ACEOF
6880 #line 6874 "configure"
6881 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 #ifdef __cplusplus
6885 extern "C"
6886 #endif
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6889 char XpCreateContext ();
6891 main ()
6893 XpCreateContext ();
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (eval echo "$as_me:6898: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>&5
6901 ac_status=$?
6902 echo "$as_me:6901: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -s conftest$ac_exeext'
6905 { (eval echo "$as_me:6904: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:6907: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 ac_cv_lib_Xp_XpCreateContext=yes
6911 else
6912 echo "$as_me: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6914 ac_cv_lib_Xp_XpCreateContext=no
6916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6917 LIBS=$ac_check_lib_save_LIBS
6919 echo "$as_me:6918: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6920 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6921 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6922 HAVE_LIBXP=yes
6925 if test ${HAVE_LIBXP} = yes; then
6927 cat >>confdefs.h <<\EOF
6928 #define HAVE_LIBXP 1
6935 ### Is -lXaw3d available?
6936 HAVE_XAW3D=no
6937 if test "${HAVE_X11}" = "yes"; then
6938 if test "${USE_X_TOOLKIT}" != "none"; then
6939 echo "$as_me:6938: checking for X11/Xaw3d/Scrollbar.h" >&5
6940 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6941 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 cat >conftest.$ac_ext <<_ACEOF
6945 #line 6939 "configure"
6946 #include "confdefs.h"
6947 #include <X11/Xaw3d/Scrollbar.h>
6948 _ACEOF
6949 if { (eval echo "$as_me:6948: \"$ac_cpp conftest.$ac_ext\"") >&5
6950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6951 ac_status=$?
6952 egrep -v '^ *\+' conftest.er1 >conftest.err
6953 rm -f conftest.er1
6954 cat conftest.err >&5
6955 echo "$as_me:6954: \$? = $ac_status" >&5
6956 (exit $ac_status); } >/dev/null; then
6957 if test -s conftest.err; then
6958 ac_cpp_err=$ac_c_preproc_warn_flag
6959 else
6960 ac_cpp_err=
6962 else
6963 ac_cpp_err=yes
6965 if test -z "$ac_cpp_err"; then
6966 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
6972 rm -f conftest.err conftest.$ac_ext
6974 echo "$as_me:6973: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6975 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6976 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6977 echo "$as_me:6976: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6978 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6979 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 ac_check_lib_save_LIBS=$LIBS
6983 LIBS="-lXaw3d $LIBS"
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line 6979 "configure"
6986 #include "confdefs.h"
6988 /* Override any gcc2 internal prototype to avoid an error. */
6989 #ifdef __cplusplus
6990 extern "C"
6991 #endif
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
6994 char XawScrollbarSetThumb ();
6996 main ()
6998 XawScrollbarSetThumb ();
7000 return 0;
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:7003: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7006 ac_status=$?
7007 echo "$as_me:7006: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:7009: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:7012: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7019 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
7021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7022 LIBS=$ac_check_lib_save_LIBS
7024 echo "$as_me:7023: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7025 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7026 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7027 HAVE_XAW3D=yes
7032 if test "${HAVE_XAW3D}" = "yes"; then
7034 cat >>confdefs.h <<\EOF
7035 #define HAVE_XAW3D 1
7042 USE_TOOLKIT_SCROLL_BARS=no
7043 if test "${with_toolkit_scroll_bars}" != "no"; then
7044 if test "${USE_X_TOOLKIT}" != "none"; then
7045 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7046 cat >>confdefs.h <<\EOF
7047 #define USE_TOOLKIT_SCROLL_BARS 1
7050 HAVE_XAW3D=no
7051 USE_TOOLKIT_SCROLL_BARS=yes
7052 elif test "${HAVE_XAW3D}" = "yes"; then
7053 cat >>confdefs.h <<\EOF
7054 #define USE_TOOLKIT_SCROLL_BARS 1
7057 USE_TOOLKIT_SCROLL_BARS=yes
7062 if test "${with_xim}" != "no"; then
7064 cat >>confdefs.h <<\EOF
7065 #define USE_XIM 1
7070 ### Use -lXpm if available, unless `--with-xpm=no'.
7071 HAVE_XPM=no
7072 if test "${HAVE_X11}" = "yes"; then
7073 if test "${with_xpm}" != "no"; then
7074 echo "$as_me:7073: checking for X11/xpm.h" >&5
7075 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7076 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 cat >conftest.$ac_ext <<_ACEOF
7080 #line 7074 "configure"
7081 #include "confdefs.h"
7082 #include <X11/xpm.h>
7083 _ACEOF
7084 if { (eval echo "$as_me:7083: \"$ac_cpp conftest.$ac_ext\"") >&5
7085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7086 ac_status=$?
7087 egrep -v '^ *\+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:7089: \$? = $ac_status" >&5
7091 (exit $ac_status); } >/dev/null; then
7092 if test -s conftest.err; then
7093 ac_cpp_err=$ac_c_preproc_warn_flag
7094 else
7095 ac_cpp_err=
7097 else
7098 ac_cpp_err=yes
7100 if test -z "$ac_cpp_err"; then
7101 ac_cv_header_X11_xpm_h=yes
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 cat conftest.$ac_ext >&5
7105 ac_cv_header_X11_xpm_h=no
7107 rm -f conftest.err conftest.$ac_ext
7109 echo "$as_me:7108: result: $ac_cv_header_X11_xpm_h" >&5
7110 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7111 if test $ac_cv_header_X11_xpm_h = yes; then
7112 echo "$as_me:7111: checking for XpmReadFileToPixmap in -lXpm" >&5
7113 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7114 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 ac_check_lib_save_LIBS=$LIBS
7118 LIBS="-lXpm -lX11 $LIBS"
7119 cat >conftest.$ac_ext <<_ACEOF
7120 #line 7114 "configure"
7121 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error. */
7124 #ifdef __cplusplus
7125 extern "C"
7126 #endif
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7129 char XpmReadFileToPixmap ();
7131 main ()
7133 XpmReadFileToPixmap ();
7135 return 0;
7137 _ACEOF
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (eval echo "$as_me:7138: \"$ac_link\"") >&5
7140 (eval $ac_link) 2>&5
7141 ac_status=$?
7142 echo "$as_me:7141: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -s conftest$ac_exeext'
7145 { (eval echo "$as_me:7144: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:7147: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7154 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7157 LIBS=$ac_check_lib_save_LIBS
7159 echo "$as_me:7158: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7160 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7161 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7162 HAVE_XPM=yes
7167 if test "${HAVE_XPM}" = "yes"; then
7168 echo "$as_me:7167: checking for XpmReturnAllocPixels preprocessor define" >&5
7169 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7170 cat >conftest.$ac_ext <<_ACEOF
7171 #line 7165 "configure"
7172 #include "confdefs.h"
7173 #include "X11/xpm.h"
7174 #ifndef XpmReturnAllocPixels
7175 no_return_alloc_pixels
7176 #endif
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7181 HAVE_XPM=no
7182 else
7183 HAVE_XPM=yes
7185 rm -f conftest*
7187 if test "${HAVE_XPM}" = "yes"; then
7188 echo "$as_me:7187: result: yes" >&5
7189 echo "${ECHO_T}yes" >&6
7190 else
7191 echo "$as_me:7190: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7197 if test "${HAVE_XPM}" = "yes"; then
7199 cat >>confdefs.h <<\EOF
7200 #define HAVE_XPM 1
7206 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7207 HAVE_JPEG=no
7208 if test "${HAVE_X11}" = "yes"; then
7209 if test "${with_jpeg}" != "no"; then
7210 echo "$as_me:7209: checking for jerror.h" >&5
7211 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7212 if test "${ac_cv_header_jerror_h+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line 7210 "configure"
7217 #include "confdefs.h"
7218 #include <jerror.h>
7219 _ACEOF
7220 if { (eval echo "$as_me:7219: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7222 ac_status=$?
7223 egrep -v '^ *\+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:7225: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_c_preproc_warn_flag
7230 else
7231 ac_cpp_err=
7233 else
7234 ac_cpp_err=yes
7236 if test -z "$ac_cpp_err"; then
7237 ac_cv_header_jerror_h=yes
7238 else
7239 echo "$as_me: failed program was:" >&5
7240 cat conftest.$ac_ext >&5
7241 ac_cv_header_jerror_h=no
7243 rm -f conftest.err conftest.$ac_ext
7245 echo "$as_me:7244: result: $ac_cv_header_jerror_h" >&5
7246 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7247 if test $ac_cv_header_jerror_h = yes; then
7248 echo "$as_me:7247: checking for jpeg_destroy_compress in -ljpeg" >&5
7249 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7250 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 ac_check_lib_save_LIBS=$LIBS
7254 LIBS="-ljpeg $LIBS"
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line 7250 "configure"
7257 #include "confdefs.h"
7259 /* Override any gcc2 internal prototype to avoid an error. */
7260 #ifdef __cplusplus
7261 extern "C"
7262 #endif
7263 /* We use char because int might match the return type of a gcc2
7264 builtin and then its argument prototype would still apply. */
7265 char jpeg_destroy_compress ();
7267 main ()
7269 jpeg_destroy_compress ();
7271 return 0;
7273 _ACEOF
7274 rm -f conftest.$ac_objext conftest$ac_exeext
7275 if { (eval echo "$as_me:7274: \"$ac_link\"") >&5
7276 (eval $ac_link) 2>&5
7277 ac_status=$?
7278 echo "$as_me:7277: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -s conftest$ac_exeext'
7281 { (eval echo "$as_me:7280: \"$ac_try\"") >&5
7282 (eval $ac_try) 2>&5
7283 ac_status=$?
7284 echo "$as_me:7283: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7287 else
7288 echo "$as_me: failed program was:" >&5
7289 cat conftest.$ac_ext >&5
7290 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7293 LIBS=$ac_check_lib_save_LIBS
7295 echo "$as_me:7294: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7296 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7297 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7298 HAVE_JPEG=yes
7305 if test "${HAVE_JPEG}" = "yes"; then
7306 cat >>confdefs.h <<\EOF
7307 #define HAVE_JPEG 1
7310 cat >conftest.$ac_ext <<_ACEOF
7311 #line 7305 "configure"
7312 #include "confdefs.h"
7313 #include <jpeglib.h>
7314 version=JPEG_LIB_VERSION
7316 _ACEOF
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
7319 cat >>confdefs.h <<\EOF
7320 #define HAVE_JPEG 1
7323 else
7324 { echo "$as_me:7323: WARNING: libjpeg found, but not version 6b or later" >&5
7325 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7326 HAVE_JPEG=no
7328 rm -f conftest*
7333 ### Use -lpng if available, unless `--with-png=no'.
7334 HAVE_PNG=no
7335 if test "${HAVE_X11}" = "yes"; then
7336 if test "${with_png}" != "no"; then
7337 echo "$as_me:7336: checking for png.h" >&5
7338 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7339 if test "${ac_cv_header_png_h+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 cat >conftest.$ac_ext <<_ACEOF
7343 #line 7337 "configure"
7344 #include "confdefs.h"
7345 #include <png.h>
7346 _ACEOF
7347 if { (eval echo "$as_me:7346: \"$ac_cpp conftest.$ac_ext\"") >&5
7348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7349 ac_status=$?
7350 egrep -v '^ *\+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:7352: \$? = $ac_status" >&5
7354 (exit $ac_status); } >/dev/null; then
7355 if test -s conftest.err; then
7356 ac_cpp_err=$ac_c_preproc_warn_flag
7357 else
7358 ac_cpp_err=
7360 else
7361 ac_cpp_err=yes
7363 if test -z "$ac_cpp_err"; then
7364 ac_cv_header_png_h=yes
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 ac_cv_header_png_h=no
7370 rm -f conftest.err conftest.$ac_ext
7372 echo "$as_me:7371: result: $ac_cv_header_png_h" >&5
7373 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7374 if test $ac_cv_header_png_h = yes; then
7375 echo "$as_me:7374: checking for png_get_channels in -lpng" >&5
7376 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7377 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 ac_check_lib_save_LIBS=$LIBS
7381 LIBS="-lpng -lz -lm $LIBS"
7382 cat >conftest.$ac_ext <<_ACEOF
7383 #line 7377 "configure"
7384 #include "confdefs.h"
7386 /* Override any gcc2 internal prototype to avoid an error. */
7387 #ifdef __cplusplus
7388 extern "C"
7389 #endif
7390 /* We use char because int might match the return type of a gcc2
7391 builtin and then its argument prototype would still apply. */
7392 char png_get_channels ();
7394 main ()
7396 png_get_channels ();
7398 return 0;
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:7401: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7404 ac_status=$?
7405 echo "$as_me:7404: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest$ac_exeext'
7408 { (eval echo "$as_me:7407: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:7410: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_lib_png_png_get_channels=yes
7414 else
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 ac_cv_lib_png_png_get_channels=no
7419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7420 LIBS=$ac_check_lib_save_LIBS
7422 echo "$as_me:7421: result: $ac_cv_lib_png_png_get_channels" >&5
7423 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7424 if test $ac_cv_lib_png_png_get_channels = yes; then
7425 HAVE_PNG=yes
7432 if test "${HAVE_PNG}" = "yes"; then
7434 cat >>confdefs.h <<\EOF
7435 #define HAVE_PNG 1
7441 ### Use -ltiff if available, unless `--with-tiff=no'.
7442 HAVE_TIFF=no
7443 if test "${HAVE_X11}" = "yes"; then
7444 if test "${with_tiff}" != "no"; then
7445 echo "$as_me:7444: checking for tiffio.h" >&5
7446 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7447 if test "${ac_cv_header_tiffio_h+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line 7445 "configure"
7452 #include "confdefs.h"
7453 #include <tiffio.h>
7454 _ACEOF
7455 if { (eval echo "$as_me:7454: \"$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:7460: \$? = $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=
7468 else
7469 ac_cpp_err=yes
7471 if test -z "$ac_cpp_err"; then
7472 ac_cv_header_tiffio_h=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7476 ac_cv_header_tiffio_h=no
7478 rm -f conftest.err conftest.$ac_ext
7480 echo "$as_me:7479: result: $ac_cv_header_tiffio_h" >&5
7481 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7482 if test $ac_cv_header_tiffio_h = yes; then
7483 tifflibs="-lz -lm"
7484 # At least one tiff package requires the jpeg library.
7485 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7486 echo "$as_me:7485: checking for TIFFGetVersion in -ltiff" >&5
7487 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7488 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 ac_check_lib_save_LIBS=$LIBS
7492 LIBS="-ltiff $tifflibs $LIBS"
7493 cat >conftest.$ac_ext <<_ACEOF
7494 #line 7488 "configure"
7495 #include "confdefs.h"
7497 /* Override any gcc2 internal prototype to avoid an error. */
7498 #ifdef __cplusplus
7499 extern "C"
7500 #endif
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7503 char TIFFGetVersion ();
7505 main ()
7507 TIFFGetVersion ();
7509 return 0;
7511 _ACEOF
7512 rm -f conftest.$ac_objext conftest$ac_exeext
7513 if { (eval echo "$as_me:7512: \"$ac_link\"") >&5
7514 (eval $ac_link) 2>&5
7515 ac_status=$?
7516 echo "$as_me:7515: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -s conftest$ac_exeext'
7519 { (eval echo "$as_me:7518: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:7521: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 ac_cv_lib_tiff_TIFFGetVersion=yes
7525 else
7526 echo "$as_me: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7528 ac_cv_lib_tiff_TIFFGetVersion=no
7530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:7532: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7534 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7535 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7536 HAVE_TIFF=yes
7543 if test "${HAVE_TIFF}" = "yes"; then
7545 cat >>confdefs.h <<\EOF
7546 #define HAVE_TIFF 1
7552 ### Use -lgif if available, unless `--with-gif=no'.
7553 HAVE_GIF=no
7554 if test "${HAVE_X11}" = "yes"; then
7555 if test "${with_gif}" != "no"; then
7556 echo "$as_me:7555: checking for gif_lib.h" >&5
7557 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7558 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561 cat >conftest.$ac_ext <<_ACEOF
7562 #line 7556 "configure"
7563 #include "confdefs.h"
7564 #include <gif_lib.h>
7565 _ACEOF
7566 if { (eval echo "$as_me:7565: \"$ac_cpp conftest.$ac_ext\"") >&5
7567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7568 ac_status=$?
7569 egrep -v '^ *\+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:7571: \$? = $ac_status" >&5
7573 (exit $ac_status); } >/dev/null; then
7574 if test -s conftest.err; then
7575 ac_cpp_err=$ac_c_preproc_warn_flag
7576 else
7577 ac_cpp_err=
7579 else
7580 ac_cpp_err=yes
7582 if test -z "$ac_cpp_err"; then
7583 ac_cv_header_gif_lib_h=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7587 ac_cv_header_gif_lib_h=no
7589 rm -f conftest.err conftest.$ac_ext
7591 echo "$as_me:7590: result: $ac_cv_header_gif_lib_h" >&5
7592 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7593 if test $ac_cv_header_gif_lib_h = yes; then
7594 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7595 # Earlier versions can crash Emacs.
7596 echo "$as_me:7595: checking for EGifPutExtensionLast in -lungif" >&5
7597 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7598 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 ac_check_lib_save_LIBS=$LIBS
7602 LIBS="-lungif $LIBS"
7603 cat >conftest.$ac_ext <<_ACEOF
7604 #line 7598 "configure"
7605 #include "confdefs.h"
7607 /* Override any gcc2 internal prototype to avoid an error. */
7608 #ifdef __cplusplus
7609 extern "C"
7610 #endif
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7613 char EGifPutExtensionLast ();
7615 main ()
7617 EGifPutExtensionLast ();
7619 return 0;
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:7622: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>&5
7625 ac_status=$?
7626 echo "$as_me:7625: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -s conftest$ac_exeext'
7629 { (eval echo "$as_me:7628: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:7631: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_cv_lib_ungif_EGifPutExtensionLast=yes
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7638 ac_cv_lib_ungif_EGifPutExtensionLast=no
7640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7641 LIBS=$ac_check_lib_save_LIBS
7643 echo "$as_me:7642: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7644 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7645 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7646 HAVE_GIF=yes
7653 if test "${HAVE_GIF}" = "yes"; then
7655 cat >>confdefs.h <<\EOF
7656 #define HAVE_GIF 1
7662 ### Use Mac OS X Carbon API to implement GUI.
7663 HAVE_CARBON=no
7664 if test "${with_carbon}" != "no"; then
7665 echo "$as_me:7664: checking for Carbon/Carbon.h" >&5
7666 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7667 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 cat >conftest.$ac_ext <<_ACEOF
7671 #line 7665 "configure"
7672 #include "confdefs.h"
7673 #include <Carbon/Carbon.h>
7674 _ACEOF
7675 if { (eval echo "$as_me:7674: \"$ac_cpp conftest.$ac_ext\"") >&5
7676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7677 ac_status=$?
7678 egrep -v '^ *\+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:7680: \$? = $ac_status" >&5
7682 (exit $ac_status); } >/dev/null; then
7683 if test -s conftest.err; then
7684 ac_cpp_err=$ac_c_preproc_warn_flag
7685 else
7686 ac_cpp_err=
7688 else
7689 ac_cpp_err=yes
7691 if test -z "$ac_cpp_err"; then
7692 ac_cv_header_Carbon_Carbon_h=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 cat conftest.$ac_ext >&5
7696 ac_cv_header_Carbon_Carbon_h=no
7698 rm -f conftest.err conftest.$ac_ext
7700 echo "$as_me:7699: result: $ac_cv_header_Carbon_Carbon_h" >&5
7701 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7702 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7703 HAVE_CARBON=yes
7708 if test "${HAVE_CARBON}" = "yes"; then
7710 cat >>confdefs.h <<\EOF
7711 #define HAVE_CARBON 1
7716 ### Use session management (-lSM -lICE) if available
7717 HAVE_X_SM=no
7718 if test "${HAVE_X11}" = "yes"; then
7719 echo "$as_me:7718: checking for X11/SM/SMlib.h" >&5
7720 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7721 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 cat >conftest.$ac_ext <<_ACEOF
7725 #line 7719 "configure"
7726 #include "confdefs.h"
7727 #include <X11/SM/SMlib.h>
7728 _ACEOF
7729 if { (eval echo "$as_me:7728: \"$ac_cpp conftest.$ac_ext\"") >&5
7730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7731 ac_status=$?
7732 egrep -v '^ *\+' conftest.er1 >conftest.err
7733 rm -f conftest.er1
7734 cat conftest.err >&5
7735 echo "$as_me:7734: \$? = $ac_status" >&5
7736 (exit $ac_status); } >/dev/null; then
7737 if test -s conftest.err; then
7738 ac_cpp_err=$ac_c_preproc_warn_flag
7739 else
7740 ac_cpp_err=
7742 else
7743 ac_cpp_err=yes
7745 if test -z "$ac_cpp_err"; then
7746 ac_cv_header_X11_SM_SMlib_h=yes
7747 else
7748 echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7750 ac_cv_header_X11_SM_SMlib_h=no
7752 rm -f conftest.err conftest.$ac_ext
7754 echo "$as_me:7753: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7755 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7756 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7757 echo "$as_me:7756: checking for SmcOpenConnection in -lSM" >&5
7758 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7759 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 ac_check_lib_save_LIBS=$LIBS
7763 LIBS="-lSM $LIBS"
7764 cat >conftest.$ac_ext <<_ACEOF
7765 #line 7759 "configure"
7766 #include "confdefs.h"
7768 /* Override any gcc2 internal prototype to avoid an error. */
7769 #ifdef __cplusplus
7770 extern "C"
7771 #endif
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7774 char SmcOpenConnection ();
7776 main ()
7778 SmcOpenConnection ();
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:7783: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>&5
7786 ac_status=$?
7787 echo "$as_me:7786: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:7789: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:7792: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_lib_SM_SmcOpenConnection=yes
7796 else
7797 echo "$as_me: failed program was:" >&5
7798 cat conftest.$ac_ext >&5
7799 ac_cv_lib_SM_SmcOpenConnection=no
7801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7802 LIBS=$ac_check_lib_save_LIBS
7804 echo "$as_me:7803: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7805 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7806 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7807 HAVE_X_SM=yes
7808 else
7809 -lICE
7814 if test "${HAVE_X_SM}" = "yes"; then
7816 cat >>confdefs.h <<\EOF
7817 #define HAVE_X_SM 1
7820 case "$LIBS" in
7821 *-lSM*) ;;
7822 *) LIBS="-lSM -lICE $LIBS" ;;
7823 esac
7827 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7828 echo "$as_me:7827: checking whether netdb declares h_errno" >&5
7829 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7830 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line 7828 "configure"
7835 #include "confdefs.h"
7836 #include <netdb.h>
7838 main ()
7840 return h_errno;
7842 return 0;
7844 _ACEOF
7845 rm -f conftest.$ac_objext conftest$ac_exeext
7846 if { (eval echo "$as_me:7845: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>&5
7848 ac_status=$?
7849 echo "$as_me:7848: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:7851: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:7854: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 emacs_cv_netdb_declares_h_errno=yes
7858 else
7859 echo "$as_me: failed program was:" >&5
7860 cat conftest.$ac_ext >&5
7861 emacs_cv_netdb_declares_h_errno=no
7863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7865 echo "$as_me:7864: result: $emacs_cv_netdb_declares_h_errno" >&5
7866 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7867 if test $emacs_cv_netdb_declares_h_errno = yes; then
7869 cat >>confdefs.h <<\EOF
7870 #define HAVE_H_ERRNO 1
7875 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7876 # for constant arguments. Useless!
7877 echo "$as_me:7876: checking for working alloca.h" >&5
7878 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7879 if test "${ac_cv_working_alloca_h+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line 7877 "configure"
7884 #include "confdefs.h"
7885 #include <alloca.h>
7887 main ()
7889 char *p = (char *) alloca (2 * sizeof (int));
7891 return 0;
7893 _ACEOF
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (eval echo "$as_me:7894: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>&5
7897 ac_status=$?
7898 echo "$as_me:7897: \$? = $ac_status" >&5
7899 (exit $ac_status); } &&
7900 { ac_try='test -s conftest$ac_exeext'
7901 { (eval echo "$as_me:7900: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:7903: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 ac_cv_working_alloca_h=yes
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 ac_cv_working_alloca_h=no
7912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7914 echo "$as_me:7913: result: $ac_cv_working_alloca_h" >&5
7915 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7916 if test $ac_cv_working_alloca_h = yes; then
7918 cat >>confdefs.h <<\EOF
7919 #define HAVE_ALLOCA_H 1
7924 echo "$as_me:7923: checking for alloca" >&5
7925 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7926 if test "${ac_cv_func_alloca_works+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 cat >conftest.$ac_ext <<_ACEOF
7930 #line 7924 "configure"
7931 #include "confdefs.h"
7932 #ifdef __GNUC__
7933 # define alloca __builtin_alloca
7934 #else
7935 # ifdef _MSC_VER
7936 # include <malloc.h>
7937 # define alloca _alloca
7938 # else
7939 # if HAVE_ALLOCA_H
7940 # include <alloca.h>
7941 # else
7942 # ifdef _AIX
7943 #pragma alloca
7944 # else
7945 # ifndef alloca /* predefined by HP cc +Olibcalls */
7946 char *alloca ();
7947 # endif
7948 # endif
7949 # endif
7950 # endif
7951 #endif
7954 main ()
7956 char *p = (char *) alloca (1);
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:7961: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>&5
7964 ac_status=$?
7965 echo "$as_me:7964: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:7967: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:7970: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_func_alloca_works=yes
7974 else
7975 echo "$as_me: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7977 ac_cv_func_alloca_works=no
7979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7981 echo "$as_me:7980: result: $ac_cv_func_alloca_works" >&5
7982 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7984 if test $ac_cv_func_alloca_works = yes; then
7986 cat >>confdefs.h <<\EOF
7987 #define HAVE_ALLOCA 1
7990 else
7991 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7992 # that cause trouble. Some versions do not even contain alloca or
7993 # contain a buggy version. If you still want to use their alloca,
7994 # use ar to extract alloca.o from them instead of compiling alloca.c.
7996 ALLOCA=alloca.$ac_objext
7998 cat >>confdefs.h <<\EOF
7999 #define C_ALLOCA 1
8002 echo "$as_me:8001: checking whether \`alloca.c' needs Cray hooks" >&5
8003 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8004 if test "${ac_cv_os_cray+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 #line 8002 "configure"
8009 #include "confdefs.h"
8010 #if defined(CRAY) && ! defined(CRAY2)
8011 webecray
8012 #else
8013 wenotbecray
8014 #endif
8016 _ACEOF
8017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8018 egrep "webecray" >/dev/null 2>&1; then
8019 ac_cv_os_cray=yes
8020 else
8021 ac_cv_os_cray=no
8023 rm -f conftest*
8026 echo "$as_me:8025: result: $ac_cv_os_cray" >&5
8027 echo "${ECHO_T}$ac_cv_os_cray" >&6
8028 if test $ac_cv_os_cray = yes; then
8029 for ac_func in _getb67 GETB67 getb67; do
8030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8031 echo "$as_me:8030: checking for $ac_func" >&5
8032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8033 if eval "test \"\${$as_ac_var+set}\" = set"; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036 cat >conftest.$ac_ext <<_ACEOF
8037 #line 8031 "configure"
8038 #include "confdefs.h"
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char $ac_func (); below. */
8041 #include <assert.h>
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 /* We use char because int might match the return type of a gcc2
8047 builtin and then its argument prototype would still apply. */
8048 char $ac_func ();
8049 char (*f) ();
8052 main ()
8054 /* The GNU C library defines this for functions which it implements
8055 to always fail with ENOSYS. Some functions are actually named
8056 something starting with __ and the normal name is an alias. */
8057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8058 choke me
8059 #else
8060 f = $ac_func;
8061 #endif
8064 return 0;
8066 _ACEOF
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:8067: \"$ac_link\"") >&5
8069 (eval $ac_link) 2>&5
8070 ac_status=$?
8071 echo "$as_me:8070: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -s conftest$ac_exeext'
8074 { (eval echo "$as_me:8073: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:8076: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 eval "$as_ac_var=yes"
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083 eval "$as_ac_var=no"
8085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8087 echo "$as_me:8086: result: `eval echo '${'$as_ac_var'}'`" >&5
8088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8089 if test `eval echo '${'$as_ac_var'}'` = yes; then
8091 cat >>confdefs.h <<EOF
8092 #define CRAY_STACKSEG_END $ac_func
8095 break
8098 done
8101 echo "$as_me:8100: checking stack direction for C alloca" >&5
8102 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8103 if test "${ac_cv_c_stack_direction+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 if test "$cross_compiling" = yes; then
8107 ac_cv_c_stack_direction=0
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 #line 8104 "configure"
8111 #include "confdefs.h"
8113 find_stack_direction ()
8115 static char *addr = 0;
8116 auto char dummy;
8117 if (addr == 0)
8119 addr = &dummy;
8120 return find_stack_direction ();
8122 else
8123 return (&dummy > addr) ? 1 : -1;
8127 main ()
8129 exit (find_stack_direction () < 0);
8131 _ACEOF
8132 rm -f conftest$ac_exeext
8133 if { (eval echo "$as_me:8132: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>&5
8135 ac_status=$?
8136 echo "$as_me:8135: \$? = $ac_status" >&5
8137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8138 { (eval echo "$as_me:8137: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:8140: \$? = $ac_status" >&5
8142 (exit $ac_status); }; }; then
8143 ac_cv_c_stack_direction=1
8144 else
8145 echo "$as_me: program exited with status $ac_status" >&5
8146 echo "$as_me: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 ac_cv_c_stack_direction=-1
8150 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8153 echo "$as_me:8152: result: $ac_cv_c_stack_direction" >&5
8154 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8156 cat >>confdefs.h <<EOF
8157 #define STACK_DIRECTION $ac_cv_c_stack_direction
8162 # fmod, logb, and frexp are found in -lm on most systems.
8163 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8165 echo "$as_me:8164: checking for sqrt in -lm" >&5
8166 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8167 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170 ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-lm $LIBS"
8172 cat >conftest.$ac_ext <<_ACEOF
8173 #line 8167 "configure"
8174 #include "confdefs.h"
8176 /* Override any gcc2 internal prototype to avoid an error. */
8177 #ifdef __cplusplus
8178 extern "C"
8179 #endif
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8182 char sqrt ();
8184 main ()
8186 sqrt ();
8188 return 0;
8190 _ACEOF
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (eval echo "$as_me:8191: \"$ac_link\"") >&5
8193 (eval $ac_link) 2>&5
8194 ac_status=$?
8195 echo "$as_me:8194: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -s conftest$ac_exeext'
8198 { (eval echo "$as_me:8197: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:8200: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8203 ac_cv_lib_m_sqrt=yes
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 ac_cv_lib_m_sqrt=no
8209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8210 LIBS=$ac_check_lib_save_LIBS
8212 echo "$as_me:8211: result: $ac_cv_lib_m_sqrt" >&5
8213 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8214 if test $ac_cv_lib_m_sqrt = yes; then
8215 cat >>confdefs.h <<EOF
8216 #define HAVE_LIBM 1
8219 LIBS="-lm $LIBS"
8223 # Check for mail-locking functions in a "mail" library
8225 echo "$as_me:8224: checking for maillock in -lmail" >&5
8226 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8227 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230 ac_check_lib_save_LIBS=$LIBS
8231 LIBS="-lmail $LIBS"
8232 cat >conftest.$ac_ext <<_ACEOF
8233 #line 8227 "configure"
8234 #include "confdefs.h"
8236 /* Override any gcc2 internal prototype to avoid an error. */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242 char maillock ();
8244 main ()
8246 maillock ();
8248 return 0;
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:8251: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8254 ac_status=$?
8255 echo "$as_me:8254: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:8257: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:8260: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_lib_mail_maillock=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8267 ac_cv_lib_mail_maillock=no
8269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8270 LIBS=$ac_check_lib_save_LIBS
8272 echo "$as_me:8271: result: $ac_cv_lib_mail_maillock" >&5
8273 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8274 if test $ac_cv_lib_mail_maillock = yes; then
8275 cat >>confdefs.h <<EOF
8276 #define HAVE_LIBMAIL 1
8279 LIBS="-lmail $LIBS"
8283 echo "$as_me:8282: checking for maillock in -llockfile" >&5
8284 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8285 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-llockfile $LIBS"
8290 cat >conftest.$ac_ext <<_ACEOF
8291 #line 8285 "configure"
8292 #include "confdefs.h"
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8300 char maillock ();
8302 main ()
8304 maillock ();
8306 return 0;
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:8309: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>&5
8312 ac_status=$?
8313 echo "$as_me:8312: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:8315: \"$ac_try\"") >&5
8317 (eval $ac_try) 2>&5
8318 ac_status=$?
8319 echo "$as_me:8318: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_lib_lockfile_maillock=yes
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8325 ac_cv_lib_lockfile_maillock=no
8327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8328 LIBS=$ac_check_lib_save_LIBS
8330 echo "$as_me:8329: result: $ac_cv_lib_lockfile_maillock" >&5
8331 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8332 if test $ac_cv_lib_lockfile_maillock = yes; then
8333 cat >>confdefs.h <<EOF
8334 #define HAVE_LIBLOCKFILE 1
8337 LIBS="-llockfile $LIBS"
8341 # If we have the shared liblockfile, assume we must use it for mail
8342 # locking (e.g. Debian). If we couldn't link against liblockfile
8343 # (no liblockfile.a installed), ensure that we don't need to.
8344 if test "$ac_cv_lib_lockfile_maillock" = no; then
8345 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8346 set dummy liblockfile.so; ac_word=$2
8347 echo "$as_me:8346: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8349 if test "${ac_cv_prog_liblockfile+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 if test -n "$liblockfile"; then
8353 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8354 else
8355 ac_save_IFS=$IFS; IFS=$ac_path_separator
8356 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8357 for ac_dir in $ac_dummy; do
8358 IFS=$ac_save_IFS
8359 test -z "$ac_dir" && ac_dir=.
8360 $as_executable_p "$ac_dir/$ac_word" || continue
8361 ac_cv_prog_liblockfile="yes"
8362 echo "$as_me:8361: found $ac_dir/$ac_word" >&5
8363 break
8364 done
8366 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8369 liblockfile=$ac_cv_prog_liblockfile
8370 if test -n "$liblockfile"; then
8371 echo "$as_me:8370: result: $liblockfile" >&5
8372 echo "${ECHO_T}$liblockfile" >&6
8373 else
8374 echo "$as_me:8373: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8378 if test $ac_cv_prog_liblockfile = yes; then
8379 { { echo "$as_me:8378: error: Shared liblockfile found but can't link against it.
8380 This probably means that movemail could lose mail.
8381 There may be a \`development' package to install containing liblockfile." >&5
8382 echo "$as_me: error: Shared liblockfile found but can't link against it.
8383 This probably means that movemail could lose mail.
8384 There may be a \`development' package to install containing liblockfile." >&2;}
8385 { (exit 1); exit 1; }; }
8386 else
8387 cat >>confdefs.h <<\EOF
8388 #define LIBMAIL -llockfile
8392 else :
8395 for ac_func in touchlock
8397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8398 echo "$as_me:8397: checking for $ac_func" >&5
8399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8400 if eval "test \"\${$as_ac_var+set}\" = set"; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 else
8403 cat >conftest.$ac_ext <<_ACEOF
8404 #line 8398 "configure"
8405 #include "confdefs.h"
8406 /* System header to define __stub macros and hopefully few prototypes,
8407 which can conflict with char $ac_func (); below. */
8408 #include <assert.h>
8409 /* Override any gcc2 internal prototype to avoid an error. */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 /* We use char because int might match the return type of a gcc2
8414 builtin and then its argument prototype would still apply. */
8415 char $ac_func ();
8416 char (*f) ();
8419 main ()
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8425 choke me
8426 #else
8427 f = $ac_func;
8428 #endif
8431 return 0;
8433 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:8434: \"$ac_link\"") >&5
8436 (eval $ac_link) 2>&5
8437 ac_status=$?
8438 echo "$as_me:8437: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -s conftest$ac_exeext'
8441 { (eval echo "$as_me:8440: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:8443: \$? = $ac_status" >&5
8445 (exit $ac_status); }; }; then
8446 eval "$as_ac_var=yes"
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8450 eval "$as_ac_var=no"
8452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454 echo "$as_me:8453: result: `eval echo '${'$as_ac_var'}'`" >&5
8455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8456 if test `eval echo '${'$as_ac_var'}'` = yes; then
8457 cat >>confdefs.h <<EOF
8458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8462 done
8464 for ac_header in maillock.h
8466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467 echo "$as_me:8466: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line 8467 "configure"
8474 #include "confdefs.h"
8475 #include <$ac_header>
8476 _ACEOF
8477 if { (eval echo "$as_me:8476: \"$ac_cpp conftest.$ac_ext\"") >&5
8478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8479 ac_status=$?
8480 egrep -v '^ *\+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:8482: \$? = $ac_status" >&5
8484 (exit $ac_status); } >/dev/null; then
8485 if test -s conftest.err; then
8486 ac_cpp_err=$ac_c_preproc_warn_flag
8487 else
8488 ac_cpp_err=
8490 else
8491 ac_cpp_err=yes
8493 if test -z "$ac_cpp_err"; then
8494 eval "$as_ac_Header=yes"
8495 else
8496 echo "$as_me: failed program was:" >&5
8497 cat conftest.$ac_ext >&5
8498 eval "$as_ac_Header=no"
8500 rm -f conftest.err conftest.$ac_ext
8502 echo "$as_me:8501: result: `eval echo '${'$as_ac_Header'}'`" >&5
8503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8505 cat >>confdefs.h <<EOF
8506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8510 done
8512 for ac_func in gethostname getdomainname dup2 \
8513 rename closedir mkdir rmdir sysinfo \
8514 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8515 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8516 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8517 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8518 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8519 gai_strerror mkstemp getline getdelim
8521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8522 echo "$as_me:8521: checking for $ac_func" >&5
8523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8524 if eval "test \"\${$as_ac_var+set}\" = set"; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 cat >conftest.$ac_ext <<_ACEOF
8528 #line 8522 "configure"
8529 #include "confdefs.h"
8530 /* System header to define __stub macros and hopefully few prototypes,
8531 which can conflict with char $ac_func (); below. */
8532 #include <assert.h>
8533 /* Override any gcc2 internal prototype to avoid an error. */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8539 char $ac_func ();
8540 char (*f) ();
8543 main ()
8545 /* The GNU C library defines this for functions which it implements
8546 to always fail with ENOSYS. Some functions are actually named
8547 something starting with __ and the normal name is an alias. */
8548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8549 choke me
8550 #else
8551 f = $ac_func;
8552 #endif
8555 return 0;
8557 _ACEOF
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559 if { (eval echo "$as_me:8558: \"$ac_link\"") >&5
8560 (eval $ac_link) 2>&5
8561 ac_status=$?
8562 echo "$as_me:8561: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:8564: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:8567: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
8570 eval "$as_ac_var=yes"
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8574 eval "$as_ac_var=no"
8576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8578 echo "$as_me:8577: result: `eval echo '${'$as_ac_var'}'`" >&5
8579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8580 if test `eval echo '${'$as_ac_var'}'` = yes; then
8581 cat >>confdefs.h <<EOF
8582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8586 done
8588 for ac_header in sys/un.h
8590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8591 echo "$as_me:8590: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596 cat >conftest.$ac_ext <<_ACEOF
8597 #line 8591 "configure"
8598 #include "confdefs.h"
8599 #include <$ac_header>
8600 _ACEOF
8601 if { (eval echo "$as_me:8600: \"$ac_cpp conftest.$ac_ext\"") >&5
8602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8603 ac_status=$?
8604 egrep -v '^ *\+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:8606: \$? = $ac_status" >&5
8608 (exit $ac_status); } >/dev/null; then
8609 if test -s conftest.err; then
8610 ac_cpp_err=$ac_c_preproc_warn_flag
8611 else
8612 ac_cpp_err=
8614 else
8615 ac_cpp_err=yes
8617 if test -z "$ac_cpp_err"; then
8618 eval "$as_ac_Header=yes"
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8622 eval "$as_ac_Header=no"
8624 rm -f conftest.err conftest.$ac_ext
8626 echo "$as_me:8625: result: `eval echo '${'$as_ac_Header'}'`" >&5
8627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8629 cat >>confdefs.h <<EOF
8630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 done
8636 for ac_header in sys/time.h unistd.h
8638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 echo "$as_me:8638: checking for $ac_header" >&5
8640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 else
8644 cat >conftest.$ac_ext <<_ACEOF
8645 #line 8639 "configure"
8646 #include "confdefs.h"
8647 #include <$ac_header>
8648 _ACEOF
8649 if { (eval echo "$as_me:8648: \"$ac_cpp conftest.$ac_ext\"") >&5
8650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8651 ac_status=$?
8652 egrep -v '^ *\+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:8654: \$? = $ac_status" >&5
8656 (exit $ac_status); } >/dev/null; then
8657 if test -s conftest.err; then
8658 ac_cpp_err=$ac_c_preproc_warn_flag
8659 else
8660 ac_cpp_err=
8662 else
8663 ac_cpp_err=yes
8665 if test -z "$ac_cpp_err"; then
8666 eval "$as_ac_Header=yes"
8667 else
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 eval "$as_ac_Header=no"
8672 rm -f conftest.err conftest.$ac_ext
8674 echo "$as_me:8673: result: `eval echo '${'$as_ac_Header'}'`" >&5
8675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8677 cat >>confdefs.h <<EOF
8678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8682 done
8684 for ac_func in alarm
8686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8687 echo "$as_me:8686: checking for $ac_func" >&5
8688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8689 if eval "test \"\${$as_ac_var+set}\" = set"; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line 8687 "configure"
8694 #include "confdefs.h"
8695 /* System header to define __stub macros and hopefully few prototypes,
8696 which can conflict with char $ac_func (); below. */
8697 #include <assert.h>
8698 /* Override any gcc2 internal prototype to avoid an error. */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char $ac_func ();
8705 char (*f) ();
8708 main ()
8710 /* The GNU C library defines this for functions which it implements
8711 to always fail with ENOSYS. Some functions are actually named
8712 something starting with __ and the normal name is an alias. */
8713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8714 choke me
8715 #else
8716 f = $ac_func;
8717 #endif
8720 return 0;
8722 _ACEOF
8723 rm -f conftest.$ac_objext conftest$ac_exeext
8724 if { (eval echo "$as_me:8723: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>&5
8726 ac_status=$?
8727 echo "$as_me:8726: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:8729: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:8732: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 eval "$as_ac_var=yes"
8736 else
8737 echo "$as_me: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8743 echo "$as_me:8742: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h <<EOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8751 done
8753 echo "$as_me:8752: checking for working mktime" >&5
8754 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8755 if test "${ac_cv_func_working_mktime+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 if test "$cross_compiling" = yes; then
8759 ac_cv_func_working_mktime=no
8760 else
8761 cat >conftest.$ac_ext <<_ACEOF
8762 #line 8756 "configure"
8763 #include "confdefs.h"
8764 /* Test program from Paul Eggert and Tony Leneis. */
8765 #if TIME_WITH_SYS_TIME
8766 # include <sys/time.h>
8767 # include <time.h>
8768 #else
8769 # if HAVE_SYS_TIME_H
8770 # include <sys/time.h>
8771 # else
8772 # include <time.h>
8773 # endif
8774 #endif
8776 #if HAVE_UNISTD_H
8777 # include <unistd.h>
8778 #endif
8780 #if !HAVE_ALARM
8781 # define alarm(X) /* empty */
8782 #endif
8784 /* Work around redefinition to rpl_putenv by other config tests. */
8785 #undef putenv
8787 static time_t time_t_max;
8789 /* Values we'll use to set the TZ environment variable. */
8790 static const char *const tz_strings[] = {
8791 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8792 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8794 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8796 /* Fail if mktime fails to convert a date in the spring-forward gap.
8797 Based on a problem report from Andreas Jaeger. */
8798 static void
8799 spring_forward_gap ()
8801 /* glibc (up to about 1998-10-07) failed this test. */
8802 struct tm tm;
8804 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8805 instead of "TZ=America/Vancouver" in order to detect the bug even
8806 on systems that don't support the Olson extension, or don't have the
8807 full zoneinfo tables installed. */
8808 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8810 tm.tm_year = 98;
8811 tm.tm_mon = 3;
8812 tm.tm_mday = 5;
8813 tm.tm_hour = 2;
8814 tm.tm_min = 0;
8815 tm.tm_sec = 0;
8816 tm.tm_isdst = -1;
8817 if (mktime (&tm) == (time_t)-1)
8818 exit (1);
8821 static void
8822 mktime_test (now)
8823 time_t now;
8825 struct tm *lt;
8826 if ((lt = localtime (&now)) && mktime (lt) != now)
8827 exit (1);
8828 now = time_t_max - now;
8829 if ((lt = localtime (&now)) && mktime (lt) != now)
8830 exit (1);
8833 static void
8834 irix_6_4_bug ()
8836 /* Based on code from Ariel Faigon. */
8837 struct tm tm;
8838 tm.tm_year = 96;
8839 tm.tm_mon = 3;
8840 tm.tm_mday = 0;
8841 tm.tm_hour = 0;
8842 tm.tm_min = 0;
8843 tm.tm_sec = 0;
8844 tm.tm_isdst = -1;
8845 mktime (&tm);
8846 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8847 exit (1);
8850 static void
8851 bigtime_test (j)
8852 int j;
8854 struct tm tm;
8855 time_t now;
8856 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8857 now = mktime (&tm);
8858 if (now != (time_t) -1)
8860 struct tm *lt = localtime (&now);
8861 if (! (lt
8862 && lt->tm_year == tm.tm_year
8863 && lt->tm_mon == tm.tm_mon
8864 && lt->tm_mday == tm.tm_mday
8865 && lt->tm_hour == tm.tm_hour
8866 && lt->tm_min == tm.tm_min
8867 && lt->tm_sec == tm.tm_sec
8868 && lt->tm_yday == tm.tm_yday
8869 && lt->tm_wday == tm.tm_wday
8870 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8871 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8872 exit (1);
8877 main ()
8879 time_t t, delta;
8880 int i, j;
8882 /* This test makes some buggy mktime implementations loop.
8883 Give up after 60 seconds; a mktime slower than that
8884 isn't worth using anyway. */
8885 alarm (60);
8887 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8888 continue;
8889 time_t_max--;
8890 delta = time_t_max / 997; /* a suitable prime number */
8891 for (i = 0; i < N_STRINGS; i++)
8893 if (tz_strings[i])
8894 putenv (tz_strings[i]);
8896 for (t = 0; t <= time_t_max - delta; t += delta)
8897 mktime_test (t);
8898 mktime_test ((time_t) 60 * 60);
8899 mktime_test ((time_t) 60 * 60 * 24);
8901 for (j = 1; 0 < j; j *= 2)
8902 bigtime_test (j);
8903 bigtime_test (j - 1);
8905 irix_6_4_bug ();
8906 spring_forward_gap ();
8907 exit (0);
8909 _ACEOF
8910 rm -f conftest$ac_exeext
8911 if { (eval echo "$as_me:8910: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>&5
8913 ac_status=$?
8914 echo "$as_me:8913: \$? = $ac_status" >&5
8915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8916 { (eval echo "$as_me:8915: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:8918: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_func_working_mktime=yes
8922 else
8923 echo "$as_me: program exited with status $ac_status" >&5
8924 echo "$as_me: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8926 ac_cv_func_working_mktime=no
8928 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8931 echo "$as_me:8930: result: $ac_cv_func_working_mktime" >&5
8932 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8933 if test $ac_cv_func_working_mktime = no; then
8934 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8937 if test "$ac_cv_func_working_mktime" = no; then
8939 cat >>confdefs.h <<\EOF
8940 #define BROKEN_MKTIME 1
8945 ac_have_func=no # yes means we've found a way to get the load average.
8947 ac_save_LIBS=$LIBS
8949 # Check for getloadavg, but be sure not to touch the cache variable.
8950 (echo "$as_me:8949: checking for getloadavg" >&5
8951 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8952 if test "${ac_cv_func_getloadavg+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line 8950 "configure"
8957 #include "confdefs.h"
8958 /* System header to define __stub macros and hopefully few prototypes,
8959 which can conflict with char getloadavg (); below. */
8960 #include <assert.h>
8961 /* Override any gcc2 internal prototype to avoid an error. */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8967 char getloadavg ();
8968 char (*f) ();
8971 main ()
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8977 choke me
8978 #else
8979 f = getloadavg;
8980 #endif
8983 return 0;
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:8986: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>&5
8989 ac_status=$?
8990 echo "$as_me:8989: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:8992: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:8995: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_func_getloadavg=yes
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 cat conftest.$ac_ext >&5
9002 ac_cv_func_getloadavg=no
9004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 echo "$as_me:9005: result: $ac_cv_func_getloadavg" >&5
9007 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9008 if test $ac_cv_func_getloadavg = yes; then
9009 exit 0
9010 else
9011 exit 1
9013 ) && ac_have_func=yes
9015 # On HPUX9, an unprivileged user can get load averages through this function.
9017 for ac_func in pstat_getdynamic
9019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9020 echo "$as_me:9019: checking for $ac_func" >&5
9021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9022 if eval "test \"\${$as_ac_var+set}\" = set"; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line 9020 "configure"
9027 #include "confdefs.h"
9028 /* System header to define __stub macros and hopefully few prototypes,
9029 which can conflict with char $ac_func (); below. */
9030 #include <assert.h>
9031 /* Override any gcc2 internal prototype to avoid an error. */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 /* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
9037 char $ac_func ();
9038 char (*f) ();
9041 main ()
9043 /* The GNU C library defines this for functions which it implements
9044 to always fail with ENOSYS. Some functions are actually named
9045 something starting with __ and the normal name is an alias. */
9046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9047 choke me
9048 #else
9049 f = $ac_func;
9050 #endif
9053 return 0;
9055 _ACEOF
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (eval echo "$as_me:9056: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>&5
9059 ac_status=$?
9060 echo "$as_me:9059: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:9065: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 eval "$as_ac_var=yes"
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 eval "$as_ac_var=no"
9074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9076 echo "$as_me:9075: result: `eval echo '${'$as_ac_var'}'`" >&5
9077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9078 if test `eval echo '${'$as_ac_var'}'` = yes; then
9079 cat >>confdefs.h <<EOF
9080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9084 done
9086 # Solaris has libkstat which does not require root.
9088 echo "$as_me:9087: checking for kstat_open in -lkstat" >&5
9089 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9090 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 ac_check_lib_save_LIBS=$LIBS
9094 LIBS="-lkstat $LIBS"
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line 9090 "configure"
9097 #include "confdefs.h"
9099 /* Override any gcc2 internal prototype to avoid an error. */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9105 char kstat_open ();
9107 main ()
9109 kstat_open ();
9111 return 0;
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:9114: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>&5
9117 ac_status=$?
9118 echo "$as_me:9117: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:9120: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:9123: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_lib_kstat_kstat_open=yes
9127 else
9128 echo "$as_me: failed program was:" >&5
9129 cat conftest.$ac_ext >&5
9130 ac_cv_lib_kstat_kstat_open=no
9132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9133 LIBS=$ac_check_lib_save_LIBS
9135 echo "$as_me:9134: result: $ac_cv_lib_kstat_kstat_open" >&5
9136 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9137 if test $ac_cv_lib_kstat_kstat_open = yes; then
9138 cat >>confdefs.h <<EOF
9139 #define HAVE_LIBKSTAT 1
9142 LIBS="-lkstat $LIBS"
9146 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9148 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9149 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9150 # to get the right answer into the cache.
9151 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9152 if test $ac_have_func = no; then
9153 echo "$as_me:9152: checking for elf_begin in -lelf" >&5
9154 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9155 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-lelf $LIBS"
9160 cat >conftest.$ac_ext <<_ACEOF
9161 #line 9155 "configure"
9162 #include "confdefs.h"
9164 /* Override any gcc2 internal prototype to avoid an error. */
9165 #ifdef __cplusplus
9166 extern "C"
9167 #endif
9168 /* We use char because int might match the return type of a gcc2
9169 builtin and then its argument prototype would still apply. */
9170 char elf_begin ();
9172 main ()
9174 elf_begin ();
9176 return 0;
9178 _ACEOF
9179 rm -f conftest.$ac_objext conftest$ac_exeext
9180 if { (eval echo "$as_me:9179: \"$ac_link\"") >&5
9181 (eval $ac_link) 2>&5
9182 ac_status=$?
9183 echo "$as_me:9182: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (eval echo "$as_me:9185: \"$ac_try\"") >&5
9187 (eval $ac_try) 2>&5
9188 ac_status=$?
9189 echo "$as_me:9188: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_lib_elf_elf_begin=yes
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 ac_cv_lib_elf_elf_begin=no
9197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9198 LIBS=$ac_check_lib_save_LIBS
9200 echo "$as_me:9199: result: $ac_cv_lib_elf_elf_begin" >&5
9201 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9202 if test $ac_cv_lib_elf_elf_begin = yes; then
9203 LIBS="-lelf $LIBS"
9207 if test $ac_have_func = no; then
9208 echo "$as_me:9207: checking for kvm_open in -lkvm" >&5
9209 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9210 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213 ac_check_lib_save_LIBS=$LIBS
9214 LIBS="-lkvm $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line 9210 "configure"
9217 #include "confdefs.h"
9219 /* Override any gcc2 internal prototype to avoid an error. */
9220 #ifdef __cplusplus
9221 extern "C"
9222 #endif
9223 /* We use char because int might match the return type of a gcc2
9224 builtin and then its argument prototype would still apply. */
9225 char kvm_open ();
9227 main ()
9229 kvm_open ();
9231 return 0;
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:9234: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>&5
9237 ac_status=$?
9238 echo "$as_me:9237: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:9240: \"$ac_try\"") >&5
9242 (eval $ac_try) 2>&5
9243 ac_status=$?
9244 echo "$as_me:9243: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 ac_cv_lib_kvm_kvm_open=yes
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9250 ac_cv_lib_kvm_kvm_open=no
9252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9253 LIBS=$ac_check_lib_save_LIBS
9255 echo "$as_me:9254: result: $ac_cv_lib_kvm_kvm_open" >&5
9256 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9257 if test $ac_cv_lib_kvm_kvm_open = yes; then
9258 LIBS="-lkvm $LIBS"
9261 # Check for the 4.4BSD definition of getloadavg.
9262 echo "$as_me:9261: checking for getloadavg in -lutil" >&5
9263 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9264 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267 ac_check_lib_save_LIBS=$LIBS
9268 LIBS="-lutil $LIBS"
9269 cat >conftest.$ac_ext <<_ACEOF
9270 #line 9264 "configure"
9271 #include "confdefs.h"
9273 /* Override any gcc2 internal prototype to avoid an error. */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 /* We use char because int might match the return type of a gcc2
9278 builtin and then its argument prototype would still apply. */
9279 char getloadavg ();
9281 main ()
9283 getloadavg ();
9285 return 0;
9287 _ACEOF
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (eval echo "$as_me:9288: \"$ac_link\"") >&5
9290 (eval $ac_link) 2>&5
9291 ac_status=$?
9292 echo "$as_me:9291: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:9294: \"$ac_try\"") >&5
9296 (eval $ac_try) 2>&5
9297 ac_status=$?
9298 echo "$as_me:9297: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_lib_util_getloadavg=yes
9301 else
9302 echo "$as_me: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 ac_cv_lib_util_getloadavg=no
9306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 echo "$as_me:9308: result: $ac_cv_lib_util_getloadavg" >&5
9310 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9311 if test $ac_cv_lib_util_getloadavg = yes; then
9312 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9317 if test $ac_have_func = no; then
9318 # There is a commonly available library for RS/6000 AIX.
9319 # Since it is not a standard part of AIX, it might be installed locally.
9320 ac_getloadavg_LIBS=$LIBS
9321 LIBS="-L/usr/local/lib $LIBS"
9322 echo "$as_me:9321: checking for getloadavg in -lgetloadavg" >&5
9323 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9324 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327 ac_check_lib_save_LIBS=$LIBS
9328 LIBS="-lgetloadavg $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line 9324 "configure"
9331 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9334 #ifdef __cplusplus
9335 extern "C"
9336 #endif
9337 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */
9339 char getloadavg ();
9341 main ()
9343 getloadavg ();
9345 return 0;
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (eval echo "$as_me:9348: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>&5
9351 ac_status=$?
9352 echo "$as_me:9351: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -s conftest$ac_exeext'
9355 { (eval echo "$as_me:9354: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:9357: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_lib_getloadavg_getloadavg=yes
9361 else
9362 echo "$as_me: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9364 ac_cv_lib_getloadavg_getloadavg=no
9366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367 LIBS=$ac_check_lib_save_LIBS
9369 echo "$as_me:9368: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9370 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9371 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9372 LIBS="-lgetloadavg $LIBS"
9373 else
9374 LIBS=$ac_getloadavg_LIBS
9379 # Make sure it is really in the library, if we think we found it,
9380 # otherwise set up the replacement function.
9382 for ac_func in getloadavg
9384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9385 echo "$as_me:9384: checking for $ac_func" >&5
9386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9387 if eval "test \"\${$as_ac_var+set}\" = set"; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 cat >conftest.$ac_ext <<_ACEOF
9391 #line 9385 "configure"
9392 #include "confdefs.h"
9393 /* System header to define __stub macros and hopefully few prototypes,
9394 which can conflict with char $ac_func (); below. */
9395 #include <assert.h>
9396 /* Override any gcc2 internal prototype to avoid an error. */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9402 char $ac_func ();
9403 char (*f) ();
9406 main ()
9408 /* The GNU C library defines this for functions which it implements
9409 to always fail with ENOSYS. Some functions are actually named
9410 something starting with __ and the normal name is an alias. */
9411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9412 choke me
9413 #else
9414 f = $ac_func;
9415 #endif
9418 return 0;
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:9421: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>&5
9424 ac_status=$?
9425 echo "$as_me:9424: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
9427 { ac_try='test -s conftest$ac_exeext'
9428 { (eval echo "$as_me:9427: \"$ac_try\"") >&5
9429 (eval $ac_try) 2>&5
9430 ac_status=$?
9431 echo "$as_me:9430: \$? = $ac_status" >&5
9432 (exit $ac_status); }; }; then
9433 eval "$as_ac_var=yes"
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 eval "$as_ac_var=no"
9439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9441 echo "$as_me:9440: result: `eval echo '${'$as_ac_var'}'`" >&5
9442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9443 if test `eval echo '${'$as_ac_var'}'` = yes; then
9444 cat >>confdefs.h <<EOF
9445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9448 else
9449 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9451 cat >>confdefs.h <<\EOF
9452 #define C_GETLOADAVG 1
9455 # Figure out what our getloadavg.c needs.
9456 ac_have_func=no
9457 echo "$as_me:9456: checking for sys/dg_sys_info.h" >&5
9458 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9459 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 cat >conftest.$ac_ext <<_ACEOF
9463 #line 9457 "configure"
9464 #include "confdefs.h"
9465 #include <sys/dg_sys_info.h>
9466 _ACEOF
9467 if { (eval echo "$as_me:9466: \"$ac_cpp conftest.$ac_ext\"") >&5
9468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9469 ac_status=$?
9470 egrep -v '^ *\+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 echo "$as_me:9472: \$? = $ac_status" >&5
9474 (exit $ac_status); } >/dev/null; then
9475 if test -s conftest.err; then
9476 ac_cpp_err=$ac_c_preproc_warn_flag
9477 else
9478 ac_cpp_err=
9480 else
9481 ac_cpp_err=yes
9483 if test -z "$ac_cpp_err"; then
9484 ac_cv_header_sys_dg_sys_info_h=yes
9485 else
9486 echo "$as_me: failed program was:" >&5
9487 cat conftest.$ac_ext >&5
9488 ac_cv_header_sys_dg_sys_info_h=no
9490 rm -f conftest.err conftest.$ac_ext
9492 echo "$as_me:9491: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9493 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9494 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9495 ac_have_func=yes
9497 cat >>confdefs.h <<\EOF
9498 #define DGUX 1
9501 echo "$as_me:9500: checking for dg_sys_info in -ldgc" >&5
9502 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9503 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506 ac_check_lib_save_LIBS=$LIBS
9507 LIBS="-ldgc $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 #line 9503 "configure"
9510 #include "confdefs.h"
9512 /* Override any gcc2 internal prototype to avoid an error. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 /* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518 char dg_sys_info ();
9520 main ()
9522 dg_sys_info ();
9524 return 0;
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:9527: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9530 ac_status=$?
9531 echo "$as_me:9530: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:9533: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:9536: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_lib_dgc_dg_sys_info=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 ac_cv_lib_dgc_dg_sys_info=no
9545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9548 echo "$as_me:9547: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9549 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9550 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9551 cat >>confdefs.h <<EOF
9552 #define HAVE_LIBDGC 1
9555 LIBS="-ldgc $LIBS"
9561 echo "$as_me:9560: checking for locale.h" >&5
9562 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9563 if test "${ac_cv_header_locale_h+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line 9561 "configure"
9568 #include "confdefs.h"
9569 #include <locale.h>
9570 _ACEOF
9571 if { (eval echo "$as_me:9570: \"$ac_cpp conftest.$ac_ext\"") >&5
9572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9573 ac_status=$?
9574 egrep -v '^ *\+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:9576: \$? = $ac_status" >&5
9578 (exit $ac_status); } >/dev/null; then
9579 if test -s conftest.err; then
9580 ac_cpp_err=$ac_c_preproc_warn_flag
9581 else
9582 ac_cpp_err=
9584 else
9585 ac_cpp_err=yes
9587 if test -z "$ac_cpp_err"; then
9588 ac_cv_header_locale_h=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 ac_cv_header_locale_h=no
9594 rm -f conftest.err conftest.$ac_ext
9596 echo "$as_me:9595: result: $ac_cv_header_locale_h" >&5
9597 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9599 for ac_func in setlocale
9601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 echo "$as_me:9601: checking for $ac_func" >&5
9603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_var+set}\" = set"; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607 cat >conftest.$ac_ext <<_ACEOF
9608 #line 9602 "configure"
9609 #include "confdefs.h"
9610 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below. */
9612 #include <assert.h>
9613 /* Override any gcc2 internal prototype to avoid an error. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9619 char $ac_func ();
9620 char (*f) ();
9623 main ()
9625 /* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9629 choke me
9630 #else
9631 f = $ac_func;
9632 #endif
9635 return 0;
9637 _ACEOF
9638 rm -f conftest.$ac_objext conftest$ac_exeext
9639 if { (eval echo "$as_me:9638: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>&5
9641 ac_status=$?
9642 echo "$as_me:9641: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:9644: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:9647: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 eval "$as_ac_var=yes"
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9654 eval "$as_ac_var=no"
9656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9658 echo "$as_me:9657: result: `eval echo '${'$as_ac_var'}'`" >&5
9659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9660 if test `eval echo '${'$as_ac_var'}'` = yes; then
9661 cat >>confdefs.h <<EOF
9662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9666 done
9668 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9669 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9670 # Irix 4.0.5F has the header but not the library.
9671 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9672 ac_have_func=yes
9674 cat >>confdefs.h <<\EOF
9675 #define SVR4 1
9680 if test $ac_have_func = no; then
9681 echo "$as_me:9680: checking for inq_stats/cpustats.h" >&5
9682 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9683 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line 9681 "configure"
9688 #include "confdefs.h"
9689 #include <inq_stats/cpustats.h>
9690 _ACEOF
9691 if { (eval echo "$as_me:9690: \"$ac_cpp conftest.$ac_ext\"") >&5
9692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9693 ac_status=$?
9694 egrep -v '^ *\+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:9696: \$? = $ac_status" >&5
9698 (exit $ac_status); } >/dev/null; then
9699 if test -s conftest.err; then
9700 ac_cpp_err=$ac_c_preproc_warn_flag
9701 else
9702 ac_cpp_err=
9704 else
9705 ac_cpp_err=yes
9707 if test -z "$ac_cpp_err"; then
9708 ac_cv_header_inq_stats_cpustats_h=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9712 ac_cv_header_inq_stats_cpustats_h=no
9714 rm -f conftest.err conftest.$ac_ext
9716 echo "$as_me:9715: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9717 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9718 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9719 ac_have_func=yes
9721 cat >>confdefs.h <<\EOF
9722 #define UMAX 1
9725 cat >>confdefs.h <<\EOF
9726 #define UMAX4_3 1
9733 if test $ac_have_func = no; then
9734 echo "$as_me:9733: checking for sys/cpustats.h" >&5
9735 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9736 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739 cat >conftest.$ac_ext <<_ACEOF
9740 #line 9734 "configure"
9741 #include "confdefs.h"
9742 #include <sys/cpustats.h>
9743 _ACEOF
9744 if { (eval echo "$as_me:9743: \"$ac_cpp conftest.$ac_ext\"") >&5
9745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9746 ac_status=$?
9747 egrep -v '^ *\+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:9749: \$? = $ac_status" >&5
9751 (exit $ac_status); } >/dev/null; then
9752 if test -s conftest.err; then
9753 ac_cpp_err=$ac_c_preproc_warn_flag
9754 else
9755 ac_cpp_err=
9757 else
9758 ac_cpp_err=yes
9760 if test -z "$ac_cpp_err"; then
9761 ac_cv_header_sys_cpustats_h=yes
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 ac_cv_header_sys_cpustats_h=no
9767 rm -f conftest.err conftest.$ac_ext
9769 echo "$as_me:9768: result: $ac_cv_header_sys_cpustats_h" >&5
9770 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9771 if test $ac_cv_header_sys_cpustats_h = yes; then
9772 ac_have_func=yes; cat >>confdefs.h <<\EOF
9773 #define UMAX 1
9780 if test $ac_have_func = no; then
9782 for ac_header in mach/mach.h
9784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9785 echo "$as_me:9784: checking for $ac_header" >&5
9786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line 9785 "configure"
9792 #include "confdefs.h"
9793 #include <$ac_header>
9794 _ACEOF
9795 if { (eval echo "$as_me:9794: \"$ac_cpp conftest.$ac_ext\"") >&5
9796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9797 ac_status=$?
9798 egrep -v '^ *\+' conftest.er1 >conftest.err
9799 rm -f conftest.er1
9800 cat conftest.err >&5
9801 echo "$as_me:9800: \$? = $ac_status" >&5
9802 (exit $ac_status); } >/dev/null; then
9803 if test -s conftest.err; then
9804 ac_cpp_err=$ac_c_preproc_warn_flag
9805 else
9806 ac_cpp_err=
9808 else
9809 ac_cpp_err=yes
9811 if test -z "$ac_cpp_err"; then
9812 eval "$as_ac_Header=yes"
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9816 eval "$as_ac_Header=no"
9818 rm -f conftest.err conftest.$ac_ext
9820 echo "$as_me:9819: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823 cat >>confdefs.h <<EOF
9824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 done
9832 for ac_header in nlist.h
9834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9835 echo "$as_me:9834: checking for $ac_header" >&5
9836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line 9835 "configure"
9842 #include "confdefs.h"
9843 #include <$ac_header>
9844 _ACEOF
9845 if { (eval echo "$as_me:9844: \"$ac_cpp conftest.$ac_ext\"") >&5
9846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9847 ac_status=$?
9848 egrep -v '^ *\+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:9850: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev/null; then
9853 if test -s conftest.err; then
9854 ac_cpp_err=$ac_c_preproc_warn_flag
9855 else
9856 ac_cpp_err=
9858 else
9859 ac_cpp_err=yes
9861 if test -z "$ac_cpp_err"; then
9862 eval "$as_ac_Header=yes"
9863 else
9864 echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 eval "$as_ac_Header=no"
9868 rm -f conftest.err conftest.$ac_ext
9870 echo "$as_me:9869: result: `eval echo '${'$as_ac_Header'}'`" >&5
9871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9873 cat >>confdefs.h <<EOF
9874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9876 echo "$as_me:9875: checking for struct nlist.n_un.n_name" >&5
9877 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9878 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line 9876 "configure"
9883 #include "confdefs.h"
9884 #include <nlist.h>
9887 main ()
9889 static struct nlist ac_aggr;
9890 if (ac_aggr.n_un.n_name)
9891 return 0;
9893 return 0;
9895 _ACEOF
9896 rm -f conftest.$ac_objext
9897 if { (eval echo "$as_me:9896: \"$ac_compile\"") >&5
9898 (eval $ac_compile) 2>&5
9899 ac_status=$?
9900 echo "$as_me:9899: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
9902 { ac_try='test -s conftest.$ac_objext'
9903 { (eval echo "$as_me:9902: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:9905: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_cv_member_struct_nlist_n_un_n_name=yes
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9912 ac_cv_member_struct_nlist_n_un_n_name=no
9914 rm -f conftest.$ac_objext conftest.$ac_ext
9916 echo "$as_me:9915: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9917 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9918 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9920 cat >>confdefs.h <<EOF
9921 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9924 cat >>confdefs.h <<\EOF
9925 #define NLIST_NAME_UNION 1
9931 done
9934 done
9936 # Some definitions of getloadavg require that the program be installed setgid.
9937 echo "$as_me:9936: checking whether getloadavg requires setgid" >&5
9938 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9939 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 cat >conftest.$ac_ext <<_ACEOF
9943 #line 9937 "configure"
9944 #include "confdefs.h"
9945 #include "$srcdir/getloadavg.c"
9946 #ifdef LDAV_PRIVILEGED
9947 Yowza Am I SETGID yet
9948 #endif
9949 _ACEOF
9950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9951 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9952 ac_cv_func_getloadavg_setgid=yes
9953 else
9954 ac_cv_func_getloadavg_setgid=no
9956 rm -f conftest*
9959 echo "$as_me:9958: result: $ac_cv_func_getloadavg_setgid" >&5
9960 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9961 if test $ac_cv_func_getloadavg_setgid = yes; then
9962 NEED_SETGID=true
9964 cat >>confdefs.h <<\EOF
9965 #define GETLOADAVG_PRIVILEGED 1
9968 else
9969 NEED_SETGID=false
9972 if test $ac_cv_func_getloadavg_setgid = yes; then
9973 echo "$as_me:9972: checking group of /dev/kmem" >&5
9974 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9975 if test "${ac_cv_group_kmem+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9979 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9980 # If we got an error (system does not support symlinks), try without -L.
9981 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9982 ac_cv_group_kmem=`echo $ac_ls_output \
9983 | sed -ne 's/[ ][ ]*/ /g;
9984 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9985 / /s/.* //;p;'`
9988 echo "$as_me:9987: result: $ac_cv_group_kmem" >&5
9989 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9990 KMEM_GROUP=$ac_cv_group_kmem
9992 if test "x$ac_save_LIBS" = x; then
9993 GETLOADAVG_LIBS=$LIBS
9994 else
9995 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9997 LIBS=$ac_save_LIBS
9999 echo "$as_me:9998: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10000 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10001 if test "${ac_cv_sys_largefile_source+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 while :; do
10005 ac_cv_sys_largefile_source=no
10006 cat >conftest.$ac_ext <<_ACEOF
10007 #line 10001 "configure"
10008 #include "confdefs.h"
10009 #include <stdio.h>
10011 main ()
10013 return !fseeko;
10015 return 0;
10017 _ACEOF
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:10018: \"$ac_compile\"") >&5
10020 (eval $ac_compile) 2>&5
10021 ac_status=$?
10022 echo "$as_me:10021: \$? = $ac_status" >&5
10023 (exit $ac_status); } &&
10024 { ac_try='test -s conftest.$ac_objext'
10025 { (eval echo "$as_me:10024: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:10027: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 break
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10035 rm -f conftest.$ac_objext conftest.$ac_ext
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line 10031 "configure"
10038 #include "confdefs.h"
10039 #define _LARGEFILE_SOURCE 1
10040 #include <stdio.h>
10042 main ()
10044 return !fseeko;
10046 return 0;
10048 _ACEOF
10049 rm -f conftest.$ac_objext
10050 if { (eval echo "$as_me:10049: \"$ac_compile\"") >&5
10051 (eval $ac_compile) 2>&5
10052 ac_status=$?
10053 echo "$as_me:10052: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:10055: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:10058: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_sys_largefile_source=1; break
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10066 rm -f conftest.$ac_objext conftest.$ac_ext
10067 break
10068 done
10070 echo "$as_me:10069: result: $ac_cv_sys_largefile_source" >&5
10071 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10072 if test "$ac_cv_sys_largefile_source" != no; then
10074 cat >>confdefs.h <<EOF
10075 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10079 rm -f conftest*
10081 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10082 # in glibc 2.1.3, but that breaks too many other things.
10083 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10084 echo "$as_me:10083: checking for fseeko" >&5
10085 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10086 if test "${ac_cv_func_fseeko+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089 cat >conftest.$ac_ext <<_ACEOF
10090 #line 10084 "configure"
10091 #include "confdefs.h"
10092 #include <stdio.h>
10094 main ()
10096 return fseeko && fseeko (stdin, 0, 0);
10098 return 0;
10100 _ACEOF
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (eval echo "$as_me:10101: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10104 ac_status=$?
10105 echo "$as_me:10104: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:10107: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:10110: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_func_fseeko=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 ac_cv_func_fseeko=no
10119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10121 echo "$as_me:10120: result: $ac_cv_func_fseeko" >&5
10122 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10123 if test $ac_cv_func_fseeko = yes; then
10125 cat >>confdefs.h <<\EOF
10126 #define HAVE_FSEEKO 1
10131 # UNIX98 PTYs.
10133 for ac_func in grantpt
10135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10136 echo "$as_me:10135: checking for $ac_func" >&5
10137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10138 if eval "test \"\${$as_ac_var+set}\" = set"; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141 cat >conftest.$ac_ext <<_ACEOF
10142 #line 10136 "configure"
10143 #include "confdefs.h"
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func (); below. */
10146 #include <assert.h>
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10153 char $ac_func ();
10154 char (*f) ();
10157 main ()
10159 /* The GNU C library defines this for functions which it implements
10160 to always fail with ENOSYS. Some functions are actually named
10161 something starting with __ and the normal name is an alias. */
10162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10163 choke me
10164 #else
10165 f = $ac_func;
10166 #endif
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (eval echo "$as_me:10172: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>&5
10175 ac_status=$?
10176 echo "$as_me:10175: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest$ac_exeext'
10179 { (eval echo "$as_me:10178: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10181 ac_status=$?
10182 echo "$as_me:10181: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 eval "$as_ac_var=yes"
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 eval "$as_ac_var=no"
10190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10192 echo "$as_me:10191: result: `eval echo '${'$as_ac_var'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10194 if test `eval echo '${'$as_ac_var'}'` = yes; then
10195 cat >>confdefs.h <<EOF
10196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10200 done
10202 # PTY-related GNU extensions.
10204 for ac_func in getpt
10206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10207 echo "$as_me:10206: checking for $ac_func" >&5
10208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10209 if eval "test \"\${$as_ac_var+set}\" = set"; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 cat >conftest.$ac_ext <<_ACEOF
10213 #line 10207 "configure"
10214 #include "confdefs.h"
10215 /* System header to define __stub macros and hopefully few prototypes,
10216 which can conflict with char $ac_func (); below. */
10217 #include <assert.h>
10218 /* Override any gcc2 internal prototype to avoid an error. */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10224 char $ac_func ();
10225 char (*f) ();
10228 main ()
10230 /* The GNU C library defines this for functions which it implements
10231 to always fail with ENOSYS. Some functions are actually named
10232 something starting with __ and the normal name is an alias. */
10233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10234 choke me
10235 #else
10236 f = $ac_func;
10237 #endif
10240 return 0;
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (eval echo "$as_me:10243: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>&5
10246 ac_status=$?
10247 echo "$as_me:10246: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -s conftest$ac_exeext'
10250 { (eval echo "$as_me:10249: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:10252: \$? = $ac_status" >&5
10254 (exit $ac_status); }; }; then
10255 eval "$as_ac_var=yes"
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10259 eval "$as_ac_var=no"
10261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10263 echo "$as_me:10262: result: `eval echo '${'$as_ac_var'}'`" >&5
10264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10266 cat >>confdefs.h <<EOF
10267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10271 done
10273 # Check this now, so that we will NOT find the above functions in ncurses.
10274 # That is because we have not set up to link ncurses in lib-src.
10275 # It's better to believe a function is not available
10276 # than to expect to find it in ncurses.
10278 echo "$as_me:10277: checking for tparm in -lncurses" >&5
10279 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10280 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-lncurses $LIBS"
10285 cat >conftest.$ac_ext <<_ACEOF
10286 #line 10280 "configure"
10287 #include "confdefs.h"
10289 /* Override any gcc2 internal prototype to avoid an error. */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 /* We use char because int might match the return type of a gcc2
10294 builtin and then its argument prototype would still apply. */
10295 char tparm ();
10297 main ()
10299 tparm ();
10301 return 0;
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (eval echo "$as_me:10304: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>&5
10307 ac_status=$?
10308 echo "$as_me:10307: \$? = $ac_status" >&5
10309 (exit $ac_status); } &&
10310 { ac_try='test -s conftest$ac_exeext'
10311 { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10313 ac_status=$?
10314 echo "$as_me:10313: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_lib_ncurses_tparm=yes
10317 else
10318 echo "$as_me: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 ac_cv_lib_ncurses_tparm=no
10322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10323 LIBS=$ac_check_lib_save_LIBS
10325 echo "$as_me:10324: result: $ac_cv_lib_ncurses_tparm" >&5
10326 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10327 if test $ac_cv_lib_ncurses_tparm = yes; then
10328 cat >>confdefs.h <<EOF
10329 #define HAVE_LIBNCURSES 1
10332 LIBS="-lncurses $LIBS"
10336 # Do we need the Hesiod library to provide the support routines?
10337 if test "$with_hesiod" = yes ; then
10338 # Don't set $LIBS here -- see comments above.
10339 resolv=no
10340 echo "$as_me:10339: checking for res_send" >&5
10341 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10342 if test "${ac_cv_func_res_send+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 cat >conftest.$ac_ext <<_ACEOF
10346 #line 10340 "configure"
10347 #include "confdefs.h"
10348 /* System header to define __stub macros and hopefully few prototypes,
10349 which can conflict with char res_send (); below. */
10350 #include <assert.h>
10351 /* Override any gcc2 internal prototype to avoid an error. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10357 char res_send ();
10358 char (*f) ();
10361 main ()
10363 /* The GNU C library defines this for functions which it implements
10364 to always fail with ENOSYS. Some functions are actually named
10365 something starting with __ and the normal name is an alias. */
10366 #if defined (__stub_res_send) || defined (__stub___res_send)
10367 choke me
10368 #else
10369 f = res_send;
10370 #endif
10373 return 0;
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (eval echo "$as_me:10376: \"$ac_link\"") >&5
10378 (eval $ac_link) 2>&5
10379 ac_status=$?
10380 echo "$as_me:10379: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -s conftest$ac_exeext'
10383 { (eval echo "$as_me:10382: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10385 ac_status=$?
10386 echo "$as_me:10385: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_func_res_send=yes
10389 else
10390 echo "$as_me: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 ac_cv_func_res_send=no
10394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10396 echo "$as_me:10395: result: $ac_cv_func_res_send" >&5
10397 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10398 if test $ac_cv_func_res_send = yes; then
10400 else
10401 echo "$as_me:10400: checking for __res_send" >&5
10402 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10403 if test "${ac_cv_func___res_send+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406 cat >conftest.$ac_ext <<_ACEOF
10407 #line 10401 "configure"
10408 #include "confdefs.h"
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char __res_send (); below. */
10411 #include <assert.h>
10412 /* Override any gcc2 internal prototype to avoid an error. */
10413 #ifdef __cplusplus
10414 extern "C"
10415 #endif
10416 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */
10418 char __res_send ();
10419 char (*f) ();
10422 main ()
10424 /* The GNU C library defines this for functions which it implements
10425 to always fail with ENOSYS. Some functions are actually named
10426 something starting with __ and the normal name is an alias. */
10427 #if defined (__stub___res_send) || defined (__stub_____res_send)
10428 choke me
10429 #else
10430 f = __res_send;
10431 #endif
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (eval echo "$as_me:10437: \"$ac_link\"") >&5
10439 (eval $ac_link) 2>&5
10440 ac_status=$?
10441 echo "$as_me:10440: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:10443: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:10446: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_func___res_send=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10453 ac_cv_func___res_send=no
10455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10457 echo "$as_me:10456: result: $ac_cv_func___res_send" >&5
10458 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10459 if test $ac_cv_func___res_send = yes; then
10461 else
10462 echo "$as_me:10461: checking for res_send in -lresolv" >&5
10463 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10464 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467 ac_check_lib_save_LIBS=$LIBS
10468 LIBS="-lresolv $LIBS"
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line 10464 "configure"
10471 #include "confdefs.h"
10473 /* Override any gcc2 internal prototype to avoid an error. */
10474 #ifdef __cplusplus
10475 extern "C"
10476 #endif
10477 /* We use char because int might match the return type of a gcc2
10478 builtin and then its argument prototype would still apply. */
10479 char res_send ();
10481 main ()
10483 res_send ();
10485 return 0;
10487 _ACEOF
10488 rm -f conftest.$ac_objext conftest$ac_exeext
10489 if { (eval echo "$as_me:10488: \"$ac_link\"") >&5
10490 (eval $ac_link) 2>&5
10491 ac_status=$?
10492 echo "$as_me:10491: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try='test -s conftest$ac_exeext'
10495 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:10497: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
10500 ac_cv_lib_resolv_res_send=yes
10501 else
10502 echo "$as_me: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10504 ac_cv_lib_resolv_res_send=no
10506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10507 LIBS=$ac_check_lib_save_LIBS
10509 echo "$as_me:10508: result: $ac_cv_lib_resolv_res_send" >&5
10510 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10511 if test $ac_cv_lib_resolv_res_send = yes; then
10512 resolv=yes
10513 else
10514 echo "$as_me:10513: checking for __res_send in -lresolv" >&5
10515 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10516 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-lresolv $LIBS"
10521 cat >conftest.$ac_ext <<_ACEOF
10522 #line 10516 "configure"
10523 #include "confdefs.h"
10525 /* Override any gcc2 internal prototype to avoid an error. */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 /* We use char because int might match the return type of a gcc2
10530 builtin and then its argument prototype would still apply. */
10531 char __res_send ();
10533 main ()
10535 __res_send ();
10537 return 0;
10539 _ACEOF
10540 rm -f conftest.$ac_objext conftest$ac_exeext
10541 if { (eval echo "$as_me:10540: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10543 ac_status=$?
10544 echo "$as_me:10543: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -s conftest$ac_exeext'
10547 { (eval echo "$as_me:10546: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10549 ac_status=$?
10550 echo "$as_me:10549: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_cv_lib_resolv___res_send=yes
10553 else
10554 echo "$as_me: failed program was:" >&5
10555 cat conftest.$ac_ext >&5
10556 ac_cv_lib_resolv___res_send=no
10558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10561 echo "$as_me:10560: result: $ac_cv_lib_resolv___res_send" >&5
10562 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10563 if test $ac_cv_lib_resolv___res_send = yes; then
10564 resolv=yes
10573 if test "$resolv" = yes ; then
10574 RESOLVLIB=-lresolv
10576 cat >>confdefs.h <<\EOF
10577 #define HAVE_LIBRESOLV 1
10580 else
10581 RESOLVLIB=
10583 echo "$as_me:10582: checking for hes_getmailhost" >&5
10584 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10585 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588 cat >conftest.$ac_ext <<_ACEOF
10589 #line 10583 "configure"
10590 #include "confdefs.h"
10591 /* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char hes_getmailhost (); below. */
10593 #include <assert.h>
10594 /* Override any gcc2 internal prototype to avoid an error. */
10595 #ifdef __cplusplus
10596 extern "C"
10597 #endif
10598 /* We use char because int might match the return type of a gcc2
10599 builtin and then its argument prototype would still apply. */
10600 char hes_getmailhost ();
10601 char (*f) ();
10604 main ()
10606 /* The GNU C library defines this for functions which it implements
10607 to always fail with ENOSYS. Some functions are actually named
10608 something starting with __ and the normal name is an alias. */
10609 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10610 choke me
10611 #else
10612 f = hes_getmailhost;
10613 #endif
10616 return 0;
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:10619: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>&5
10622 ac_status=$?
10623 echo "$as_me:10622: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (eval echo "$as_me:10625: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:10628: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_func_hes_getmailhost=yes
10632 else
10633 echo "$as_me: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10635 ac_cv_func_hes_getmailhost=no
10637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10639 echo "$as_me:10638: result: $ac_cv_func_hes_getmailhost" >&5
10640 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10641 if test $ac_cv_func_hes_getmailhost = yes; then
10643 else
10644 echo "$as_me:10643: checking for hes_getmailhost in -lhesiod" >&5
10645 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10646 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-lhesiod $RESOLVLIB $LIBS"
10651 cat >conftest.$ac_ext <<_ACEOF
10652 #line 10646 "configure"
10653 #include "confdefs.h"
10655 /* Override any gcc2 internal prototype to avoid an error. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10661 char hes_getmailhost ();
10663 main ()
10665 hes_getmailhost ();
10667 return 0;
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:10670: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>&5
10673 ac_status=$?
10674 echo "$as_me:10673: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -s conftest$ac_exeext'
10677 { (eval echo "$as_me:10676: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:10679: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_cv_lib_hesiod_hes_getmailhost=yes
10683 else
10684 echo "$as_me: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10686 ac_cv_lib_hesiod_hes_getmailhost=no
10688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10689 LIBS=$ac_check_lib_save_LIBS
10691 echo "$as_me:10690: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10692 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10693 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10695 cat >>confdefs.h <<\EOF
10696 #define HAVE_LIBHESIOD 1
10699 else
10707 # These tell us which Kerberos-related libraries to use.
10708 if test "${with_kerberos+set}" = set; then
10710 echo "$as_me:10709: checking for com_err in -lcom_err" >&5
10711 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10712 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715 ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-lcom_err $LIBS"
10717 cat >conftest.$ac_ext <<_ACEOF
10718 #line 10712 "configure"
10719 #include "confdefs.h"
10721 /* Override any gcc2 internal prototype to avoid an error. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 /* We use char because int might match the return type of a gcc2
10726 builtin and then its argument prototype would still apply. */
10727 char com_err ();
10729 main ()
10731 com_err ();
10733 return 0;
10735 _ACEOF
10736 rm -f conftest.$ac_objext conftest$ac_exeext
10737 if { (eval echo "$as_me:10736: \"$ac_link\"") >&5
10738 (eval $ac_link) 2>&5
10739 ac_status=$?
10740 echo "$as_me:10739: \$? = $ac_status" >&5
10741 (exit $ac_status); } &&
10742 { ac_try='test -s conftest$ac_exeext'
10743 { (eval echo "$as_me:10742: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:10745: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_cv_lib_com_err_com_err=yes
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 cat conftest.$ac_ext >&5
10752 ac_cv_lib_com_err_com_err=no
10754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10757 echo "$as_me:10756: result: $ac_cv_lib_com_err_com_err" >&5
10758 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10759 if test $ac_cv_lib_com_err_com_err = yes; then
10760 cat >>confdefs.h <<EOF
10761 #define HAVE_LIBCOM_ERR 1
10764 LIBS="-lcom_err $LIBS"
10768 echo "$as_me:10767: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10769 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10770 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-lk5crypto $LIBS"
10775 cat >conftest.$ac_ext <<_ACEOF
10776 #line 10770 "configure"
10777 #include "confdefs.h"
10779 /* Override any gcc2 internal prototype to avoid an error. */
10780 #ifdef __cplusplus
10781 extern "C"
10782 #endif
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10785 char mit_des_cbc_encrypt ();
10787 main ()
10789 mit_des_cbc_encrypt ();
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (eval echo "$as_me:10794: \"$ac_link\"") >&5
10796 (eval $ac_link) 2>&5
10797 ac_status=$?
10798 echo "$as_me:10797: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try='test -s conftest$ac_exeext'
10801 { (eval echo "$as_me:10800: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:10803: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10810 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10815 echo "$as_me:10814: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10816 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10817 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10818 cat >>confdefs.h <<EOF
10819 #define HAVE_LIBK5CRYPTO 1
10822 LIBS="-lk5crypto $LIBS"
10826 echo "$as_me:10825: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10827 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10828 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 ac_check_lib_save_LIBS=$LIBS
10832 LIBS="-lcrypto $LIBS"
10833 cat >conftest.$ac_ext <<_ACEOF
10834 #line 10828 "configure"
10835 #include "confdefs.h"
10837 /* Override any gcc2 internal prototype to avoid an error. */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */
10843 char mit_des_cbc_encrypt ();
10845 main ()
10847 mit_des_cbc_encrypt ();
10849 return 0;
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (eval echo "$as_me:10852: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>&5
10855 ac_status=$?
10856 echo "$as_me:10855: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:10858: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:10861: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10865 else
10866 echo "$as_me: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10868 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10871 LIBS=$ac_check_lib_save_LIBS
10873 echo "$as_me:10872: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10874 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10875 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10876 cat >>confdefs.h <<EOF
10877 #define HAVE_LIBCRYPTO 1
10880 LIBS="-lcrypto $LIBS"
10884 echo "$as_me:10883: checking for krb5_init_context in -lkrb5" >&5
10885 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10886 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889 ac_check_lib_save_LIBS=$LIBS
10890 LIBS="-lkrb5 $LIBS"
10891 cat >conftest.$ac_ext <<_ACEOF
10892 #line 10886 "configure"
10893 #include "confdefs.h"
10895 /* Override any gcc2 internal prototype to avoid an error. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 /* We use char because int might match the return type of a gcc2
10900 builtin and then its argument prototype would still apply. */
10901 char krb5_init_context ();
10903 main ()
10905 krb5_init_context ();
10907 return 0;
10909 _ACEOF
10910 rm -f conftest.$ac_objext conftest$ac_exeext
10911 if { (eval echo "$as_me:10910: \"$ac_link\"") >&5
10912 (eval $ac_link) 2>&5
10913 ac_status=$?
10914 echo "$as_me:10913: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:10916: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:10919: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_lib_krb5_krb5_init_context=yes
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10926 ac_cv_lib_krb5_krb5_init_context=no
10928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 echo "$as_me:10930: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10932 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10933 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10934 cat >>confdefs.h <<EOF
10935 #define HAVE_LIBKRB5 1
10938 LIBS="-lkrb5 $LIBS"
10942 if test "${with_kerberos5+set}" != set; then
10944 echo "$as_me:10943: checking for des_cbc_encrypt in -ldes425" >&5
10945 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10946 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-ldes425 $LIBS"
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line 10946 "configure"
10953 #include "confdefs.h"
10955 /* Override any gcc2 internal prototype to avoid an error. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961 char des_cbc_encrypt ();
10963 main ()
10965 des_cbc_encrypt ();
10967 return 0;
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:10970: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>&5
10973 ac_status=$?
10974 echo "$as_me:10973: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -s conftest$ac_exeext'
10977 { (eval echo "$as_me:10976: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:10979: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 ac_cv_lib_des425_des_cbc_encrypt=yes
10983 else
10984 echo "$as_me: failed program was:" >&5
10985 cat conftest.$ac_ext >&5
10986 ac_cv_lib_des425_des_cbc_encrypt=no
10988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10991 echo "$as_me:10990: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10992 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10993 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10994 cat >>confdefs.h <<EOF
10995 #define HAVE_LIBDES425 1
10998 LIBS="-ldes425 $LIBS"
11000 else
11002 echo "$as_me:11001: checking for des_cbc_encrypt in -ldes" >&5
11003 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
11004 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007 ac_check_lib_save_LIBS=$LIBS
11008 LIBS="-ldes $LIBS"
11009 cat >conftest.$ac_ext <<_ACEOF
11010 #line 11004 "configure"
11011 #include "confdefs.h"
11013 /* Override any gcc2 internal prototype to avoid an error. */
11014 #ifdef __cplusplus
11015 extern "C"
11016 #endif
11017 /* We use char because int might match the return type of a gcc2
11018 builtin and then its argument prototype would still apply. */
11019 char des_cbc_encrypt ();
11021 main ()
11023 des_cbc_encrypt ();
11025 return 0;
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (eval echo "$as_me:11028: \"$ac_link\"") >&5
11030 (eval $ac_link) 2>&5
11031 ac_status=$?
11032 echo "$as_me:11031: \$? = $ac_status" >&5
11033 (exit $ac_status); } &&
11034 { ac_try='test -s conftest$ac_exeext'
11035 { (eval echo "$as_me:11034: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11037 ac_status=$?
11038 echo "$as_me:11037: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }; then
11040 ac_cv_lib_des_des_cbc_encrypt=yes
11041 else
11042 echo "$as_me: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11044 ac_cv_lib_des_des_cbc_encrypt=no
11046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_check_lib_save_LIBS
11049 echo "$as_me:11048: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11050 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11051 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11052 cat >>confdefs.h <<EOF
11053 #define HAVE_LIBDES 1
11056 LIBS="-ldes $LIBS"
11062 echo "$as_me:11061: checking for krb_get_cred in -lkrb4" >&5
11063 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11064 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lkrb4 $LIBS"
11069 cat >conftest.$ac_ext <<_ACEOF
11070 #line 11064 "configure"
11071 #include "confdefs.h"
11073 /* Override any gcc2 internal prototype to avoid an error. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 /* We use char because int might match the return type of a gcc2
11078 builtin and then its argument prototype would still apply. */
11079 char krb_get_cred ();
11081 main ()
11083 krb_get_cred ();
11085 return 0;
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (eval echo "$as_me:11088: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>&5
11091 ac_status=$?
11092 echo "$as_me:11091: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -s conftest$ac_exeext'
11095 { (eval echo "$as_me:11094: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:11097: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_cv_lib_krb4_krb_get_cred=yes
11101 else
11102 echo "$as_me: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11104 ac_cv_lib_krb4_krb_get_cred=no
11106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11107 LIBS=$ac_check_lib_save_LIBS
11109 echo "$as_me:11108: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11110 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11111 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11112 cat >>confdefs.h <<EOF
11113 #define HAVE_LIBKRB4 1
11116 LIBS="-lkrb4 $LIBS"
11118 else
11120 echo "$as_me:11119: checking for krb_get_cred in -lkrb" >&5
11121 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11122 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125 ac_check_lib_save_LIBS=$LIBS
11126 LIBS="-lkrb $LIBS"
11127 cat >conftest.$ac_ext <<_ACEOF
11128 #line 11122 "configure"
11129 #include "confdefs.h"
11131 /* Override any gcc2 internal prototype to avoid an error. */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char krb_get_cred ();
11139 main ()
11141 krb_get_cred ();
11143 return 0;
11145 _ACEOF
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (eval echo "$as_me:11146: \"$ac_link\"") >&5
11148 (eval $ac_link) 2>&5
11149 ac_status=$?
11150 echo "$as_me:11149: \$? = $ac_status" >&5
11151 (exit $ac_status); } &&
11152 { ac_try='test -s conftest$ac_exeext'
11153 { (eval echo "$as_me:11152: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11155 ac_status=$?
11156 echo "$as_me:11155: \$? = $ac_status" >&5
11157 (exit $ac_status); }; }; then
11158 ac_cv_lib_krb_krb_get_cred=yes
11159 else
11160 echo "$as_me: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11162 ac_cv_lib_krb_krb_get_cred=no
11164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11165 LIBS=$ac_check_lib_save_LIBS
11167 echo "$as_me:11166: result: $ac_cv_lib_krb_krb_get_cred" >&5
11168 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11169 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11170 cat >>confdefs.h <<EOF
11171 #define HAVE_LIBKRB 1
11174 LIBS="-lkrb $LIBS"
11182 if test "${with_kerberos5+set}" = set; then
11184 for ac_header in krb5.h
11186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187 echo "$as_me:11186: checking for $ac_header" >&5
11188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192 cat >conftest.$ac_ext <<_ACEOF
11193 #line 11187 "configure"
11194 #include "confdefs.h"
11195 #include <$ac_header>
11196 _ACEOF
11197 if { (eval echo "$as_me:11196: \"$ac_cpp conftest.$ac_ext\"") >&5
11198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11199 ac_status=$?
11200 egrep -v '^ *\+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:11202: \$? = $ac_status" >&5
11204 (exit $ac_status); } >/dev/null; then
11205 if test -s conftest.err; then
11206 ac_cpp_err=$ac_c_preproc_warn_flag
11207 else
11208 ac_cpp_err=
11210 else
11211 ac_cpp_err=yes
11213 if test -z "$ac_cpp_err"; then
11214 eval "$as_ac_Header=yes"
11215 else
11216 echo "$as_me: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11218 eval "$as_ac_Header=no"
11220 rm -f conftest.err conftest.$ac_ext
11222 echo "$as_me:11221: result: `eval echo '${'$as_ac_Header'}'`" >&5
11223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11225 cat >>confdefs.h <<EOF
11226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11230 done
11232 else
11234 for ac_header in des.h
11236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11237 echo "$as_me:11236: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242 cat >conftest.$ac_ext <<_ACEOF
11243 #line 11237 "configure"
11244 #include "confdefs.h"
11245 #include <$ac_header>
11246 _ACEOF
11247 if { (eval echo "$as_me:11246: \"$ac_cpp conftest.$ac_ext\"") >&5
11248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11249 ac_status=$?
11250 egrep -v '^ *\+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:11252: \$? = $ac_status" >&5
11254 (exit $ac_status); } >/dev/null; then
11255 if test -s conftest.err; then
11256 ac_cpp_err=$ac_c_preproc_warn_flag
11257 else
11258 ac_cpp_err=
11260 else
11261 ac_cpp_err=yes
11263 if test -z "$ac_cpp_err"; then
11264 eval "$as_ac_Header=yes"
11265 else
11266 echo "$as_me: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
11268 eval "$as_ac_Header=no"
11270 rm -f conftest.err conftest.$ac_ext
11272 echo "$as_me:11271: result: `eval echo '${'$as_ac_Header'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11275 cat >>confdefs.h <<EOF
11276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 else
11281 for ac_header in kerberosIV/des.h
11283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11284 echo "$as_me:11283: checking for $ac_header" >&5
11285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 cat >conftest.$ac_ext <<_ACEOF
11290 #line 11284 "configure"
11291 #include "confdefs.h"
11292 #include <$ac_header>
11293 _ACEOF
11294 if { (eval echo "$as_me:11293: \"$ac_cpp conftest.$ac_ext\"") >&5
11295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11296 ac_status=$?
11297 egrep -v '^ *\+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:11299: \$? = $ac_status" >&5
11301 (exit $ac_status); } >/dev/null; then
11302 if test -s conftest.err; then
11303 ac_cpp_err=$ac_c_preproc_warn_flag
11304 else
11305 ac_cpp_err=
11307 else
11308 ac_cpp_err=yes
11310 if test -z "$ac_cpp_err"; then
11311 eval "$as_ac_Header=yes"
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11315 eval "$as_ac_Header=no"
11317 rm -f conftest.err conftest.$ac_ext
11319 echo "$as_me:11318: result: `eval echo '${'$as_ac_Header'}'`" >&5
11320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11322 cat >>confdefs.h <<EOF
11323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326 else
11328 for ac_header in kerberos/des.h
11330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11331 echo "$as_me:11330: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line 11331 "configure"
11338 #include "confdefs.h"
11339 #include <$ac_header>
11340 _ACEOF
11341 if { (eval echo "$as_me:11340: \"$ac_cpp conftest.$ac_ext\"") >&5
11342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11343 ac_status=$?
11344 egrep -v '^ *\+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:11346: \$? = $ac_status" >&5
11348 (exit $ac_status); } >/dev/null; then
11349 if test -s conftest.err; then
11350 ac_cpp_err=$ac_c_preproc_warn_flag
11351 else
11352 ac_cpp_err=
11354 else
11355 ac_cpp_err=yes
11357 if test -z "$ac_cpp_err"; then
11358 eval "$as_ac_Header=yes"
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11362 eval "$as_ac_Header=no"
11364 rm -f conftest.err conftest.$ac_ext
11366 echo "$as_me:11365: result: `eval echo '${'$as_ac_Header'}'`" >&5
11367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11369 cat >>confdefs.h <<EOF
11370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11374 done
11377 done
11380 done
11382 for ac_header in krb.h
11384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11385 echo "$as_me:11384: checking for $ac_header" >&5
11386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line 11385 "configure"
11392 #include "confdefs.h"
11393 #include <$ac_header>
11394 _ACEOF
11395 if { (eval echo "$as_me:11394: \"$ac_cpp conftest.$ac_ext\"") >&5
11396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11397 ac_status=$?
11398 egrep -v '^ *\+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:11400: \$? = $ac_status" >&5
11402 (exit $ac_status); } >/dev/null; then
11403 if test -s conftest.err; then
11404 ac_cpp_err=$ac_c_preproc_warn_flag
11405 else
11406 ac_cpp_err=
11408 else
11409 ac_cpp_err=yes
11411 if test -z "$ac_cpp_err"; then
11412 eval "$as_ac_Header=yes"
11413 else
11414 echo "$as_me: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11416 eval "$as_ac_Header=no"
11418 rm -f conftest.err conftest.$ac_ext
11420 echo "$as_me:11419: result: `eval echo '${'$as_ac_Header'}'`" >&5
11421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<EOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427 else
11429 for ac_header in kerberosIV/krb.h
11431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11432 echo "$as_me:11431: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 cat >conftest.$ac_ext <<_ACEOF
11438 #line 11432 "configure"
11439 #include "confdefs.h"
11440 #include <$ac_header>
11441 _ACEOF
11442 if { (eval echo "$as_me:11441: \"$ac_cpp conftest.$ac_ext\"") >&5
11443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11444 ac_status=$?
11445 egrep -v '^ *\+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:11447: \$? = $ac_status" >&5
11449 (exit $ac_status); } >/dev/null; then
11450 if test -s conftest.err; then
11451 ac_cpp_err=$ac_c_preproc_warn_flag
11452 else
11453 ac_cpp_err=
11455 else
11456 ac_cpp_err=yes
11458 if test -z "$ac_cpp_err"; then
11459 eval "$as_ac_Header=yes"
11460 else
11461 echo "$as_me: failed program was:" >&5
11462 cat conftest.$ac_ext >&5
11463 eval "$as_ac_Header=no"
11465 rm -f conftest.err conftest.$ac_ext
11467 echo "$as_me:11466: result: `eval echo '${'$as_ac_Header'}'`" >&5
11468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<EOF
11471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 else
11476 for ac_header in kerberos/krb.h
11478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11479 echo "$as_me:11478: checking for $ac_header" >&5
11480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484 cat >conftest.$ac_ext <<_ACEOF
11485 #line 11479 "configure"
11486 #include "confdefs.h"
11487 #include <$ac_header>
11488 _ACEOF
11489 if { (eval echo "$as_me:11488: \"$ac_cpp conftest.$ac_ext\"") >&5
11490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11491 ac_status=$?
11492 egrep -v '^ *\+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:11494: \$? = $ac_status" >&5
11496 (exit $ac_status); } >/dev/null; then
11497 if test -s conftest.err; then
11498 ac_cpp_err=$ac_c_preproc_warn_flag
11499 else
11500 ac_cpp_err=
11502 else
11503 ac_cpp_err=yes
11505 if test -z "$ac_cpp_err"; then
11506 eval "$as_ac_Header=yes"
11507 else
11508 echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 eval "$as_ac_Header=no"
11512 rm -f conftest.err conftest.$ac_ext
11514 echo "$as_me:11513: result: `eval echo '${'$as_ac_Header'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11517 cat >>confdefs.h <<EOF
11518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11522 done
11525 done
11528 done
11532 for ac_header in com_err.h
11534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11535 echo "$as_me:11534: checking for $ac_header" >&5
11536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line 11535 "configure"
11542 #include "confdefs.h"
11543 #include <$ac_header>
11544 _ACEOF
11545 if { (eval echo "$as_me:11544: \"$ac_cpp conftest.$ac_ext\"") >&5
11546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11547 ac_status=$?
11548 egrep -v '^ *\+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:11550: \$? = $ac_status" >&5
11552 (exit $ac_status); } >/dev/null; then
11553 if test -s conftest.err; then
11554 ac_cpp_err=$ac_c_preproc_warn_flag
11555 else
11556 ac_cpp_err=
11558 else
11559 ac_cpp_err=yes
11561 if test -z "$ac_cpp_err"; then
11562 eval "$as_ac_Header=yes"
11563 else
11564 echo "$as_me: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11566 eval "$as_ac_Header=no"
11568 rm -f conftest.err conftest.$ac_ext
11570 echo "$as_me:11569: result: `eval echo '${'$as_ac_Header'}'`" >&5
11571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11573 cat >>confdefs.h <<EOF
11574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11578 done
11582 # Solaris requires -lintl if you want strerror (which calls dgettext)
11583 # to return localized messages.
11585 echo "$as_me:11584: checking for dgettext in -lintl" >&5
11586 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11587 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 else
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-lintl $LIBS"
11592 cat >conftest.$ac_ext <<_ACEOF
11593 #line 11587 "configure"
11594 #include "confdefs.h"
11596 /* Override any gcc2 internal prototype to avoid an error. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 /* We use char because int might match the return type of a gcc2
11601 builtin and then its argument prototype would still apply. */
11602 char dgettext ();
11604 main ()
11606 dgettext ();
11608 return 0;
11610 _ACEOF
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (eval echo "$as_me:11611: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
11614 ac_status=$?
11615 echo "$as_me:11614: \$? = $ac_status" >&5
11616 (exit $ac_status); } &&
11617 { ac_try='test -s conftest$ac_exeext'
11618 { (eval echo "$as_me:11617: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:11620: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 ac_cv_lib_intl_dgettext=yes
11624 else
11625 echo "$as_me: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11627 ac_cv_lib_intl_dgettext=no
11629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11632 echo "$as_me:11631: result: $ac_cv_lib_intl_dgettext" >&5
11633 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11634 if test $ac_cv_lib_intl_dgettext = yes; then
11635 cat >>confdefs.h <<EOF
11636 #define HAVE_LIBINTL 1
11639 LIBS="-lintl $LIBS"
11643 echo "$as_me:11642: checking whether localtime caches TZ" >&5
11644 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11645 if test "${emacs_cv_localtime_cache+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648 if test x$ac_cv_func_tzset = xyes; then
11649 if test "$cross_compiling" = yes; then
11650 # If we have tzset, assume the worst when cross-compiling.
11651 emacs_cv_localtime_cache=yes
11652 else
11653 cat >conftest.$ac_ext <<_ACEOF
11654 #line 11648 "configure"
11655 #include "confdefs.h"
11656 #include <time.h>
11657 extern char **environ;
11658 unset_TZ ()
11660 char **from, **to;
11661 for (to = from = environ; (*to = *from); from++)
11662 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11663 to++;
11665 char TZ_GMT0[] = "TZ=GMT0";
11666 char TZ_PST8[] = "TZ=PST8";
11667 main()
11669 time_t now = time ((time_t *) 0);
11670 int hour_GMT0, hour_unset;
11671 if (putenv (TZ_GMT0) != 0)
11672 exit (1);
11673 hour_GMT0 = localtime (&now)->tm_hour;
11674 unset_TZ ();
11675 hour_unset = localtime (&now)->tm_hour;
11676 if (putenv (TZ_PST8) != 0)
11677 exit (1);
11678 if (localtime (&now)->tm_hour == hour_GMT0)
11679 exit (1);
11680 unset_TZ ();
11681 if (localtime (&now)->tm_hour != hour_unset)
11682 exit (1);
11683 exit (0);
11685 _ACEOF
11686 rm -f conftest$ac_exeext
11687 if { (eval echo "$as_me:11686: \"$ac_link\"") >&5
11688 (eval $ac_link) 2>&5
11689 ac_status=$?
11690 echo "$as_me:11689: \$? = $ac_status" >&5
11691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11692 { (eval echo "$as_me:11691: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:11694: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 emacs_cv_localtime_cache=no
11698 else
11699 echo "$as_me: program exited with status $ac_status" >&5
11700 echo "$as_me: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 emacs_cv_localtime_cache=yes
11704 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11706 else
11707 # If we lack tzset, report that localtime does not cache TZ,
11708 # since we can't invalidate the cache if we don't have tzset.
11709 emacs_cv_localtime_cache=no
11712 echo "$as_me:11711: result: $emacs_cv_localtime_cache" >&5
11713 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11714 if test $emacs_cv_localtime_cache = yes; then
11716 cat >>confdefs.h <<\EOF
11717 #define LOCALTIME_CACHE 1
11722 if test "x$HAVE_TIMEVAL" = xyes; then
11724 for ac_func in gettimeofday
11726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11727 echo "$as_me:11726: checking for $ac_func" >&5
11728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11729 if eval "test \"\${$as_ac_var+set}\" = set"; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 cat >conftest.$ac_ext <<_ACEOF
11733 #line 11727 "configure"
11734 #include "confdefs.h"
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func (); below. */
11737 #include <assert.h>
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 /* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11744 char $ac_func ();
11745 char (*f) ();
11748 main ()
11750 /* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11754 choke me
11755 #else
11756 f = $ac_func;
11757 #endif
11760 return 0;
11762 _ACEOF
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:11763: \"$ac_link\"") >&5
11765 (eval $ac_link) 2>&5
11766 ac_status=$?
11767 echo "$as_me:11766: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -s conftest$ac_exeext'
11770 { (eval echo "$as_me:11769: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:11772: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 eval "$as_ac_var=yes"
11776 else
11777 echo "$as_me: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11779 eval "$as_ac_var=no"
11781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11783 echo "$as_me:11782: result: `eval echo '${'$as_ac_var'}'`" >&5
11784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11785 if test `eval echo '${'$as_ac_var'}'` = yes; then
11786 cat >>confdefs.h <<EOF
11787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11791 done
11793 if test $ac_cv_func_gettimeofday = yes; then
11794 echo "$as_me:11793: checking whether gettimeofday can accept two arguments" >&5
11795 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11796 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799 cat >conftest.$ac_ext <<_ACEOF
11800 #line 11794 "configure"
11801 #include "confdefs.h"
11803 #ifdef TIME_WITH_SYS_TIME
11804 #include <sys/time.h>
11805 #include <time.h>
11806 #else
11807 #ifdef HAVE_SYS_TIME_H
11808 #include <sys/time.h>
11809 #else
11810 #include <time.h>
11811 #endif
11812 #endif
11814 main ()
11816 struct timeval time;
11817 gettimeofday (&time, 0);
11819 return 0;
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:11822: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11825 ac_status=$?
11826 echo "$as_me:11825: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:11828: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:11831: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 emacs_cv_gettimeofday_two_arguments=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 emacs_cv_gettimeofday_two_arguments=no
11840 rm -f conftest.$ac_objext conftest.$ac_ext
11842 echo "$as_me:11841: result: $emacs_cv_gettimeofday_two_arguments" >&5
11843 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11844 if test $emacs_cv_gettimeofday_two_arguments = no; then
11846 cat >>confdefs.h <<\EOF
11847 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11854 if test "$ac_cv_func_gettimeofday" = yes; then
11855 echo "$as_me:11854: checking for struct timezone" >&5
11856 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11857 if test "${emacs_cv_struct_timezone+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 cat >conftest.$ac_ext <<_ACEOF
11861 #line 11855 "configure"
11862 #include "confdefs.h"
11863 #include <sys/time.h>
11865 main ()
11867 struct timezone tz;
11869 return 0;
11871 _ACEOF
11872 rm -f conftest.$ac_objext
11873 if { (eval echo "$as_me:11872: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>&5
11875 ac_status=$?
11876 echo "$as_me:11875: \$? = $ac_status" >&5
11877 (exit $ac_status); } &&
11878 { ac_try='test -s conftest.$ac_objext'
11879 { (eval echo "$as_me:11878: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:11881: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 if test "$cross_compiling" = yes; then
11885 emacs_cv_struct_timezone=yes
11886 else
11887 cat >conftest.$ac_ext <<_ACEOF
11888 #line 11882 "configure"
11889 #include "confdefs.h"
11891 #ifdef TIME_WITH_SYS_TIME
11892 #include <sys/time.h>
11893 #include <time.h>
11894 #else
11895 #ifdef HAVE_SYS_TIME_H
11896 #include <sys/time.h>
11897 #else
11898 #include <time.h>
11899 #endif
11900 #endif
11901 main () {
11902 struct timeval time;
11903 struct timezone dummy;
11904 exit (gettimeofday (&time, &dummy));
11906 _ACEOF
11907 rm -f conftest$ac_exeext
11908 if { (eval echo "$as_me:11907: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>&5
11910 ac_status=$?
11911 echo "$as_me:11910: \$? = $ac_status" >&5
11912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11913 { (eval echo "$as_me:11912: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:11915: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }; then
11918 emacs_cv_struct_timezone=yes
11919 else
11920 echo "$as_me: program exited with status $ac_status" >&5
11921 echo "$as_me: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11923 emacs_cv_struct_timezone=no
11925 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 emacs_cv_struct_timezone=no
11932 rm -f conftest.$ac_objext conftest.$ac_ext
11934 echo "$as_me:11933: result: $emacs_cv_struct_timezone" >&5
11935 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11938 ok_so_far=yes
11939 echo "$as_me:11938: checking for socket" >&5
11940 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11941 if test "${ac_cv_func_socket+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 cat >conftest.$ac_ext <<_ACEOF
11945 #line 11939 "configure"
11946 #include "confdefs.h"
11947 /* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char socket (); below. */
11949 #include <assert.h>
11950 /* Override any gcc2 internal prototype to avoid an error. */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 /* We use char because int might match the return type of a gcc2
11955 builtin and then its argument prototype would still apply. */
11956 char socket ();
11957 char (*f) ();
11960 main ()
11962 /* The GNU C library defines this for functions which it implements
11963 to always fail with ENOSYS. Some functions are actually named
11964 something starting with __ and the normal name is an alias. */
11965 #if defined (__stub_socket) || defined (__stub___socket)
11966 choke me
11967 #else
11968 f = socket;
11969 #endif
11972 return 0;
11974 _ACEOF
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (eval echo "$as_me:11975: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11978 ac_status=$?
11979 echo "$as_me:11978: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (eval echo "$as_me:11981: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:11984: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_cv_func_socket=yes
11988 else
11989 echo "$as_me: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11991 ac_cv_func_socket=no
11993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11995 echo "$as_me:11994: result: $ac_cv_func_socket" >&5
11996 echo "${ECHO_T}$ac_cv_func_socket" >&6
11997 if test $ac_cv_func_socket = yes; then
11999 else
12000 ok_so_far=no
12003 if test $ok_so_far = yes; then
12004 echo "$as_me:12003: checking for netinet/in.h" >&5
12005 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12006 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line 12004 "configure"
12011 #include "confdefs.h"
12012 #include <netinet/in.h>
12013 _ACEOF
12014 if { (eval echo "$as_me:12013: \"$ac_cpp conftest.$ac_ext\"") >&5
12015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12016 ac_status=$?
12017 egrep -v '^ *\+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:12019: \$? = $ac_status" >&5
12021 (exit $ac_status); } >/dev/null; then
12022 if test -s conftest.err; then
12023 ac_cpp_err=$ac_c_preproc_warn_flag
12024 else
12025 ac_cpp_err=
12027 else
12028 ac_cpp_err=yes
12030 if test -z "$ac_cpp_err"; then
12031 ac_cv_header_netinet_in_h=yes
12032 else
12033 echo "$as_me: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12035 ac_cv_header_netinet_in_h=no
12037 rm -f conftest.err conftest.$ac_ext
12039 echo "$as_me:12038: result: $ac_cv_header_netinet_in_h" >&5
12040 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12041 if test $ac_cv_header_netinet_in_h = yes; then
12043 else
12044 ok_so_far=no
12048 if test $ok_so_far = yes; then
12049 echo "$as_me:12048: checking for arpa/inet.h" >&5
12050 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12051 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 cat >conftest.$ac_ext <<_ACEOF
12055 #line 12049 "configure"
12056 #include "confdefs.h"
12057 #include <arpa/inet.h>
12058 _ACEOF
12059 if { (eval echo "$as_me:12058: \"$ac_cpp conftest.$ac_ext\"") >&5
12060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12061 ac_status=$?
12062 egrep -v '^ *\+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:12064: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 else
12070 ac_cpp_err=
12072 else
12073 ac_cpp_err=yes
12075 if test -z "$ac_cpp_err"; then
12076 ac_cv_header_arpa_inet_h=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 ac_cv_header_arpa_inet_h=no
12082 rm -f conftest.err conftest.$ac_ext
12084 echo "$as_me:12083: result: $ac_cv_header_arpa_inet_h" >&5
12085 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12086 if test $ac_cv_header_arpa_inet_h = yes; then
12088 else
12089 ok_so_far=no
12093 if test $ok_so_far = yes; then
12095 cat >>confdefs.h <<\EOF
12096 #define HAVE_INET_SOCKETS 1
12101 if test -f /usr/lpp/X11/bin/smt.exp; then
12103 cat >>confdefs.h <<\EOF
12104 #define HAVE_AIX_SMT_EXP 1
12109 echo "$as_me:12108: checking whether system supports dynamic ptys" >&5
12110 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12111 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12112 echo "$as_me:12111: result: yes" >&5
12113 echo "${ECHO_T}yes" >&6
12115 cat >>confdefs.h <<\EOF
12116 #define HAVE_DEV_PTMX 1
12119 else
12120 echo "$as_me:12119: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12124 echo "$as_me:12123: checking for pid_t" >&5
12125 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12126 if test "${ac_cv_type_pid_t+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129 cat >conftest.$ac_ext <<_ACEOF
12130 #line 12124 "configure"
12131 #include "confdefs.h"
12132 $ac_includes_default
12134 main ()
12136 if ((pid_t *) 0)
12137 return 0;
12138 if (sizeof (pid_t))
12139 return 0;
12141 return 0;
12143 _ACEOF
12144 rm -f conftest.$ac_objext
12145 if { (eval echo "$as_me:12144: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>&5
12147 ac_status=$?
12148 echo "$as_me:12147: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:12150: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12153 ac_status=$?
12154 echo "$as_me:12153: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_cv_type_pid_t=yes
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12160 ac_cv_type_pid_t=no
12162 rm -f conftest.$ac_objext conftest.$ac_ext
12164 echo "$as_me:12163: result: $ac_cv_type_pid_t" >&5
12165 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12166 if test $ac_cv_type_pid_t = yes; then
12168 else
12170 cat >>confdefs.h <<EOF
12171 #define pid_t int
12176 for ac_header in unistd.h vfork.h
12178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12179 echo "$as_me:12178: checking for $ac_header" >&5
12180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 cat >conftest.$ac_ext <<_ACEOF
12185 #line 12179 "configure"
12186 #include "confdefs.h"
12187 #include <$ac_header>
12188 _ACEOF
12189 if { (eval echo "$as_me:12188: \"$ac_cpp conftest.$ac_ext\"") >&5
12190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12191 ac_status=$?
12192 egrep -v '^ *\+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:12194: \$? = $ac_status" >&5
12196 (exit $ac_status); } >/dev/null; then
12197 if test -s conftest.err; then
12198 ac_cpp_err=$ac_c_preproc_warn_flag
12199 else
12200 ac_cpp_err=
12202 else
12203 ac_cpp_err=yes
12205 if test -z "$ac_cpp_err"; then
12206 eval "$as_ac_Header=yes"
12207 else
12208 echo "$as_me: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12210 eval "$as_ac_Header=no"
12212 rm -f conftest.err conftest.$ac_ext
12214 echo "$as_me:12213: result: `eval echo '${'$as_ac_Header'}'`" >&5
12215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12217 cat >>confdefs.h <<EOF
12218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12222 done
12224 for ac_func in fork vfork
12226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12227 echo "$as_me:12226: checking for $ac_func" >&5
12228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12229 if eval "test \"\${$as_ac_var+set}\" = set"; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line 12227 "configure"
12234 #include "confdefs.h"
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below. */
12237 #include <assert.h>
12238 /* Override any gcc2 internal prototype to avoid an error. */
12239 #ifdef __cplusplus
12240 extern "C"
12241 #endif
12242 /* We use char because int might match the return type of a gcc2
12243 builtin and then its argument prototype would still apply. */
12244 char $ac_func ();
12245 char (*f) ();
12248 main ()
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12254 choke me
12255 #else
12256 f = $ac_func;
12257 #endif
12260 return 0;
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (eval echo "$as_me:12263: \"$ac_link\"") >&5
12265 (eval $ac_link) 2>&5
12266 ac_status=$?
12267 echo "$as_me:12266: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -s conftest$ac_exeext'
12270 { (eval echo "$as_me:12269: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:12272: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 eval "$as_ac_var=yes"
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12279 eval "$as_ac_var=no"
12281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12283 echo "$as_me:12282: result: `eval echo '${'$as_ac_var'}'`" >&5
12284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12285 if test `eval echo '${'$as_ac_var'}'` = yes; then
12286 cat >>confdefs.h <<EOF
12287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12291 done
12293 ac_cv_func_fork_works=$ac_cv_func_fork
12294 if test "x$ac_cv_func_fork" = xyes; then
12295 echo "$as_me:12294: checking for working fork" >&5
12296 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12297 if test "${ac_cv_func_fork_works+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 if test "$cross_compiling" = yes; then
12301 ac_cv_func_fork_works=cross
12302 else
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* By Rüdiger Kuhlmann. */
12305 #include <sys/types.h>
12306 #if HAVE_UNISTD_H
12307 # include <unistd.h>
12308 #endif
12309 /* Some systems only have a dummy stub for fork() */
12310 int main ()
12312 if (fork() < 0)
12313 exit (1);
12314 exit (0);
12316 _ACEOF
12317 rm -f conftest$ac_exeext
12318 if { (eval echo "$as_me:12317: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>&5
12320 ac_status=$?
12321 echo "$as_me:12320: \$? = $ac_status" >&5
12322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12323 { (eval echo "$as_me:12322: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:12325: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
12328 ac_cv_func_fork_works=yes
12329 else
12330 echo "$as_me: program exited with status $ac_status" >&5
12331 echo "$as_me: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 ac_cv_func_fork_works=no
12335 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12338 echo "$as_me:12337: result: $ac_cv_func_fork_works" >&5
12339 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12342 if test "x$ac_cv_func_fork_works" = xcross; then
12343 case $host in
12344 *-*-amigaos* | *-*-msdosdjgpp*)
12345 # Override, as these systems have only a dummy fork() stub
12346 ac_cv_func_fork_works=no
12349 ac_cv_func_fork_works=yes
12351 esac
12352 { echo "$as_me:12351: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12353 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12355 ac_cv_func_vfork_works=$ac_cv_func_vfork
12356 if test "x$ac_cv_func_vfork" = xyes; then
12357 echo "$as_me:12356: checking for working vfork" >&5
12358 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12359 if test "${ac_cv_func_vfork_works+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362 if test "$cross_compiling" = yes; then
12363 ac_cv_func_vfork_works=cross
12364 else
12365 cat >conftest.$ac_ext <<_ACEOF
12366 #line 12360 "configure"
12367 #include "confdefs.h"
12368 /* Thanks to Paul Eggert for this test. */
12369 #include <stdio.h>
12370 #include <sys/types.h>
12371 #include <sys/stat.h>
12372 #if HAVE_UNISTD_H
12373 # include <unistd.h>
12374 #endif
12375 #if HAVE_VFORK_H
12376 # include <vfork.h>
12377 #endif
12378 /* On some sparc systems, changes by the child to local and incoming
12379 argument registers are propagated back to the parent. The compiler
12380 is told about this with #include <vfork.h>, but some compilers
12381 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12382 static variable whose address is put into a register that is
12383 clobbered by the vfork. */
12384 static
12385 #ifdef __cplusplus
12386 sparc_address_test (int arg)
12387 # else
12388 sparc_address_test (arg) int arg;
12389 #endif
12391 static pid_t child;
12392 if (!child) {
12393 child = vfork ();
12394 if (child < 0) {
12395 perror ("vfork");
12396 _exit(2);
12398 if (!child) {
12399 arg = getpid();
12400 write(-1, "", 0);
12401 _exit (arg);
12407 main ()
12409 pid_t parent = getpid ();
12410 pid_t child;
12412 sparc_address_test ();
12414 child = vfork ();
12416 if (child == 0) {
12417 /* Here is another test for sparc vfork register problems. This
12418 test uses lots of local variables, at least as many local
12419 variables as main has allocated so far including compiler
12420 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12421 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12422 reuse the register of parent for one of the local variables,
12423 since it will think that parent can't possibly be used any more
12424 in this routine. Assigning to the local variable will thus
12425 munge parent in the parent process. */
12426 pid_t
12427 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12428 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12429 /* Convince the compiler that p..p7 are live; otherwise, it might
12430 use the same hardware register for all 8 local variables. */
12431 if (p != p1 || p != p2 || p != p3 || p != p4
12432 || p != p5 || p != p6 || p != p7)
12433 _exit(1);
12435 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12436 from child file descriptors. If the child closes a descriptor
12437 before it execs or exits, this munges the parent's descriptor
12438 as well. Test for this by closing stdout in the child. */
12439 _exit(close(fileno(stdout)) != 0);
12440 } else {
12441 int status;
12442 struct stat st;
12444 while (wait(&status) != child)
12446 exit(
12447 /* Was there some problem with vforking? */
12448 child < 0
12450 /* Did the child fail? (This shouldn't happen.) */
12451 || status
12453 /* Did the vfork/compiler bug occur? */
12454 || parent != getpid()
12456 /* Did the file descriptor bug occur? */
12457 || fstat(fileno(stdout), &st) != 0
12461 _ACEOF
12462 rm -f conftest$ac_exeext
12463 if { (eval echo "$as_me:12462: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>&5
12465 ac_status=$?
12466 echo "$as_me:12465: \$? = $ac_status" >&5
12467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12468 { (eval echo "$as_me:12467: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:12470: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_func_vfork_works=yes
12474 else
12475 echo "$as_me: program exited with status $ac_status" >&5
12476 echo "$as_me: failed program was:" >&5
12477 cat conftest.$ac_ext >&5
12478 ac_cv_func_vfork_works=no
12480 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12483 echo "$as_me:12482: result: $ac_cv_func_vfork_works" >&5
12484 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12487 if test "x$ac_cv_func_fork_works" = xcross; then
12488 ac_cv_func_vfork_works=ac_cv_func_vfork
12489 { echo "$as_me:12488: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12490 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12493 if test "x$ac_cv_func_vfork_works" = xyes; then
12495 cat >>confdefs.h <<\EOF
12496 #define HAVE_WORKING_VFORK 1
12499 else
12501 cat >>confdefs.h <<\EOF
12502 #define vfork fork
12506 if test "x$ac_cv_func_fork_works" = xyes; then
12508 cat >>confdefs.h <<\EOF
12509 #define HAVE_WORKING_FORK 1
12514 # Fixme: This should be replaced when we have autoconf 2.14.
12515 echo "$as_me:12514: checking for size_t" >&5
12516 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12517 if test "${ac_cv_type_size_t+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #line 12515 "configure"
12522 #include "confdefs.h"
12523 $ac_includes_default
12525 main ()
12527 if ((size_t *) 0)
12528 return 0;
12529 if (sizeof (size_t))
12530 return 0;
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:12535: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12538 ac_status=$?
12539 echo "$as_me:12538: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:12541: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:12544: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_cv_type_size_t=yes
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 cat conftest.$ac_ext >&5
12551 ac_cv_type_size_t=no
12553 rm -f conftest.$ac_objext conftest.$ac_ext
12555 echo "$as_me:12554: result: $ac_cv_type_size_t" >&5
12556 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12557 if test $ac_cv_type_size_t = yes; then
12559 else
12561 cat >>confdefs.h <<EOF
12562 #define size_t unsigned
12567 # Set up the CFLAGS for real compilation, so we can substitute it.
12568 CFLAGS="$REAL_CFLAGS"
12569 CPPFLAGS="$REAL_CPPFLAGS"
12571 #### Find out which version of Emacs this is.
12572 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12573 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12574 if test x"${version}" = x; then
12575 { { echo "$as_me:12574: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12576 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12577 { (exit 1); exit 1; }; }
12580 ### Specify what sort of things we'll be editing into Makefile and config.h.
12581 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12583 cat >>confdefs.h <<EOF
12584 #define EMACS_CONFIGURATION "${canonical}"
12587 cat >>confdefs.h <<EOF
12588 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12591 cat >>confdefs.h <<EOF
12592 #define config_machfile "${machfile}"
12595 cat >>confdefs.h <<EOF
12596 #define config_opsysfile "${opsysfile}"
12599 cat >>confdefs.h <<EOF
12600 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12603 cat >>confdefs.h <<EOF
12604 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12607 cat >>confdefs.h <<EOF
12608 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12611 cat >>confdefs.h <<EOF
12612 #define UNEXEC_SRC ${UNEXEC_SRC}
12615 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12617 cat >>confdefs.h <<\EOF
12618 #define HAVE_X_WINDOWS 1
12622 if test "${USE_X_TOOLKIT}" != "none" ; then
12624 cat >>confdefs.h <<\EOF
12625 #define USE_X_TOOLKIT 1
12629 if test "${HAVE_X11}" = "yes" ; then
12631 cat >>confdefs.h <<\EOF
12632 #define HAVE_X11 1
12636 if test "${HAVE_XFREE386}" = "yes" ; then
12638 cat >>confdefs.h <<\EOF
12639 #define HAVE_XFREE386 1
12643 if test "${HAVE_MENUS}" = "yes" ; then
12645 cat >>confdefs.h <<\EOF
12646 #define HAVE_MENUS 1
12650 if test "${GNU_MALLOC}" = "yes" ; then
12652 cat >>confdefs.h <<\EOF
12653 #define GNU_MALLOC 1
12657 if test "${REL_ALLOC}" = "yes" ; then
12659 cat >>confdefs.h <<\EOF
12660 #define REL_ALLOC 1
12665 for ac_header in nlist.h
12667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12668 echo "$as_me:12667: checking for $ac_header" >&5
12669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 else
12673 cat >conftest.$ac_ext <<_ACEOF
12674 #line 12668 "configure"
12675 #include "confdefs.h"
12676 #include <$ac_header>
12677 _ACEOF
12678 if { (eval echo "$as_me:12677: \"$ac_cpp conftest.$ac_ext\"") >&5
12679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12680 ac_status=$?
12681 egrep -v '^ *\+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:12683: \$? = $ac_status" >&5
12685 (exit $ac_status); } >/dev/null; then
12686 if test -s conftest.err; then
12687 ac_cpp_err=$ac_c_preproc_warn_flag
12688 else
12689 ac_cpp_err=
12691 else
12692 ac_cpp_err=yes
12694 if test -z "$ac_cpp_err"; then
12695 eval "$as_ac_Header=yes"
12696 else
12697 echo "$as_me: failed program was:" >&5
12698 cat conftest.$ac_ext >&5
12699 eval "$as_ac_Header=no"
12701 rm -f conftest.err conftest.$ac_ext
12703 echo "$as_me:12702: result: `eval echo '${'$as_ac_Header'}'`" >&5
12704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12706 cat >>confdefs.h <<EOF
12707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12710 cat >>confdefs.h <<\EOF
12711 #define NLIST_STRUCT 1
12715 done
12717 #### Report on what we decided to do.
12718 echo "
12719 Configured for \`${canonical}'.
12721 Where should the build process find the source code? ${srcdir}
12722 What operating system and machine description files should Emacs use?
12723 \`${opsysfile}' and \`${machfile}'
12724 What compiler should emacs be built with? ${CC} ${CFLAGS}
12725 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12726 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12727 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12728 What window system should Emacs use? ${window_system}
12729 What toolkit should Emacs use? ${USE_X_TOOLKIT}
12730 Should Emacs use a shared game state directory? ${gamedir}"
12732 if test -n "${x_includes}"; then
12733 echo " Where do we find X Windows header files? ${x_includes}"
12734 else
12735 echo " Where do we find X Windows header files? Standard dirs"
12737 if test -n "${x_libraries}"; then
12738 echo " Where do we find X Windows libraries? ${x_libraries}"
12739 else
12740 echo " Where do we find X Windows libraries? Standard dirs"
12743 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12744 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12745 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12746 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12747 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12748 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12749 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12750 echo
12752 # Remove any trailing slashes in these variables.
12753 test "${prefix}" != NONE &&
12754 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12755 test "${exec_prefix}" != NONE &&
12756 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12758 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12759 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12760 ## from Makefile.c can correctly provide the arg `-traditional' to the
12761 ## C preprocessor.
12763 cat >conftest.$ac_ext <<_ACEOF
12764 #line 12758 "configure"
12765 #include "confdefs.h"
12766 yes..yes
12767 _ACEOF
12768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12769 egrep "yes..yes" >/dev/null 2>&1; then
12770 CPP_NEED_TRADITIONAL=no
12771 else
12772 CPP_NEED_TRADITIONAL=yes
12774 rm -f conftest*
12776 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"
12777 ac_config_commands="$ac_config_commands default"
12778 cat >confcache <<\_ACEOF
12779 # This file is a shell script that caches the results of configure
12780 # tests run on this system so they can be shared between configure
12781 # scripts and configure runs, see configure's option --config-cache.
12782 # It is not useful on other systems. If it contains results you don't
12783 # want to keep, you may remove or edit it.
12785 # config.status only pays attention to the cache file if you give it
12786 # the --recheck option to rerun configure.
12788 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12790 # following values.
12792 _ACEOF
12794 # The following way of writing the cache mishandles newlines in values,
12795 # but we know of no workaround that is simple, portable, and efficient.
12796 # So, don't put newlines in cache variables' values.
12797 # Ultrix sh set writes to stderr and can't be redirected directly,
12798 # and sets the high bit in the cache file unless we assign to the vars.
12800 (set) 2>&1 |
12801 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12802 *ac_space=\ *)
12803 # `set' does not quote correctly, so add quotes (double-quote
12804 # substitution turns \\\\ into \\, and sed turns \\ into \).
12805 sed -n \
12806 "s/'/'\\\\''/g;
12807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12810 # `set' quotes correctly as required by POSIX, so do not add quotes.
12811 sed -n \
12812 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12814 esac;
12816 sed '
12817 t clear
12818 : clear
12819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12820 t end
12821 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12822 : end' >>confcache
12823 if cmp -s $cache_file confcache; then :; else
12824 if test -w $cache_file; then
12825 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12826 cat confcache >$cache_file
12827 else
12828 echo "not updating unwritable cache $cache_file"
12831 rm -f confcache
12833 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12834 # Let make expand exec_prefix.
12835 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12837 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12838 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12839 # trailing colons and then remove the whole line if VPATH becomes empty
12840 # (actually we leave an empty line to preserve line numbers).
12841 if test "x$srcdir" = x.; then
12842 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12843 s/:*\$(srcdir):*/:/;
12844 s/:*\${srcdir}:*/:/;
12845 s/:*@srcdir@:*/:/;
12846 s/^\([^=]*=[ ]*\):*/\1/;
12847 s/:*$//;
12848 s/^[^=]*=[ ]*$//;
12852 DEFS=-DHAVE_CONFIG_H
12854 : ${CONFIG_STATUS=./config.status}
12855 ac_clean_files_save=$ac_clean_files
12856 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12857 { echo "$as_me:12856: creating $CONFIG_STATUS" >&5
12858 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12859 cat >$CONFIG_STATUS <<_ACEOF
12860 #! $SHELL
12861 # Generated automatically by configure.
12862 # Run this file to recreate the current configuration.
12863 # Compiler output produced by configure, useful for debugging
12864 # configure, is in config.log if it exists.
12866 debug=false
12867 SHELL=\${CONFIG_SHELL-$SHELL}
12868 ac_cs_invocation="\$0 \$@"
12870 _ACEOF
12872 cat >>$CONFIG_STATUS <<\_ACEOF
12873 # Be Bourne compatible
12874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12875 emulate sh
12876 NULLCMD=:
12877 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12878 set -o posix
12881 # Name of the executable.
12882 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12884 if expr a : '\(a\)' >/dev/null 2>&1; then
12885 as_expr=expr
12886 else
12887 as_expr=false
12890 rm -f conf$$ conf$$.exe conf$$.file
12891 echo >conf$$.file
12892 if ln -s conf$$.file conf$$ 2>/dev/null; then
12893 # We could just check for DJGPP; but this test a) works b) is more generic
12894 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12895 if test -f conf$$.exe; then
12896 # Don't use ln at all; we don't have any links
12897 as_ln_s='cp -p'
12898 else
12899 as_ln_s='ln -s'
12901 elif ln conf$$.file conf$$ 2>/dev/null; then
12902 as_ln_s=ln
12903 else
12904 as_ln_s='cp -p'
12906 rm -f conf$$ conf$$.exe conf$$.file
12908 as_executable_p="test -f"
12910 # Support unset when possible.
12911 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12912 as_unset=unset
12913 else
12914 as_unset=false
12917 # NLS nuisances.
12918 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12919 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12920 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12921 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12922 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12923 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12924 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12925 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12927 # IFS
12928 # We need space, tab and new line, in precisely that order.
12929 as_nl='
12931 IFS=" $as_nl"
12933 # CDPATH.
12934 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12936 exec 6>&1
12938 _ACEOF
12940 # Files that config.status was made for.
12941 if test -n "$ac_config_files"; then
12942 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12945 if test -n "$ac_config_headers"; then
12946 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12949 if test -n "$ac_config_links"; then
12950 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12953 if test -n "$ac_config_commands"; then
12954 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12957 cat >>$CONFIG_STATUS <<\EOF
12959 ac_cs_usage="\
12960 \`$as_me' instantiates files from templates according to the
12961 current configuration.
12963 Usage: $0 [OPTIONS] [FILE]...
12965 -h, --help print this help, then exit
12966 -V, --version print version number, then exit
12967 -d, --debug don't remove temporary files
12968 --recheck update $as_me by reconfiguring in the same conditions
12969 --file=FILE[:TEMPLATE]
12970 instantiate the configuration file FILE
12971 --header=FILE[:TEMPLATE]
12972 instantiate the configuration header FILE
12974 Configuration files:
12975 $config_files
12977 Configuration headers:
12978 $config_headers
12980 Configuration commands:
12981 $config_commands
12983 Report bugs to <bug-autoconf@gnu.org>."
12986 cat >>$CONFIG_STATUS <<EOF
12987 ac_cs_version="\\
12988 config.status
12989 configured by $0, generated by GNU Autoconf 2.52,
12990 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12993 Free Software Foundation, Inc.
12994 This config.status script is free software; the Free Software Foundation
12995 gives unlimited permission to copy, distribute and modify it."
12996 srcdir=$srcdir
12997 INSTALL="$INSTALL"
13000 cat >>$CONFIG_STATUS <<\EOF
13001 # If no file are specified by the user, then we need to provide default
13002 # value. By we need to know if files were specified by the user.
13003 ac_need_defaults=:
13004 while test $# != 0
13006 case $1 in
13007 --*=*)
13008 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13009 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13010 shift
13011 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13012 shift
13014 -*);;
13015 *) # This is not an option, so the user has probably given explicit
13016 # arguments.
13017 ac_need_defaults=false;;
13018 esac
13020 case $1 in
13021 # Handling of the options.
13023 cat >>$CONFIG_STATUS <<EOF
13024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13025 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13026 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13028 cat >>$CONFIG_STATUS <<\EOF
13029 --version | --vers* | -V )
13030 echo "$ac_cs_version"; exit 0 ;;
13031 --he | --h)
13032 # Conflict between --help and --header
13033 { { echo "$as_me:13032: error: ambiguous option: $1
13034 Try \`$0 --help' for more information." >&5
13035 echo "$as_me: error: ambiguous option: $1
13036 Try \`$0 --help' for more information." >&2;}
13037 { (exit 1); exit 1; }; };;
13038 --help | --hel | -h )
13039 echo "$ac_cs_usage"; exit 0 ;;
13040 --debug | --d* | -d )
13041 debug=: ;;
13042 --file | --fil | --fi | --f )
13043 shift
13044 CONFIG_FILES="$CONFIG_FILES $1"
13045 ac_need_defaults=false;;
13046 --header | --heade | --head | --hea )
13047 shift
13048 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13049 ac_need_defaults=false;;
13051 # This is an error.
13052 -*) { { echo "$as_me:13051: error: unrecognized option: $1
13053 Try \`$0 --help' for more information." >&5
13054 echo "$as_me: error: unrecognized option: $1
13055 Try \`$0 --help' for more information." >&2;}
13056 { (exit 1); exit 1; }; } ;;
13058 *) ac_config_targets="$ac_config_targets $1" ;;
13060 esac
13061 shift
13062 done
13064 exec 5>>config.log
13065 cat >&5 << _ACEOF
13067 ## ----------------------- ##
13068 ## Running config.status. ##
13069 ## ----------------------- ##
13071 This file was extended by $as_me 2.52, executed with
13072 CONFIG_FILES = $CONFIG_FILES
13073 CONFIG_HEADERS = $CONFIG_HEADERS
13074 CONFIG_LINKS = $CONFIG_LINKS
13075 CONFIG_COMMANDS = $CONFIG_COMMANDS
13076 > $ac_cs_invocation
13077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13079 _ACEOF
13082 cat >>$CONFIG_STATUS <<EOF
13084 # INIT-COMMANDS section.
13087 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13091 cat >>$CONFIG_STATUS <<\EOF
13092 for ac_config_target in $ac_config_targets
13094 case "$ac_config_target" in
13095 # Handling of arguments.
13096 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13097 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13098 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
13099 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13100 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
13101 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13102 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
13103 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
13104 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
13105 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
13106 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13107 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13108 *) { { echo "$as_me:13107: error: invalid argument: $ac_config_target" >&5
13109 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13110 { (exit 1); exit 1; }; };;
13111 esac
13112 done
13114 # If the user did not use the arguments to specify the items to instantiate,
13115 # then the envvar interface is used. Set only those that are not.
13116 # We use the long form for the default assignment because of an extremely
13117 # bizarre bug on SunOS 4.1.3.
13118 if $ac_need_defaults; then
13119 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13120 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13124 # Create a temporary directory, and hook for its removal unless debugging.
13125 $debug ||
13127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13128 trap '{ (exit 1); exit 1; }' 1 2 13 15
13131 # Create a (secure) tmp directory for tmp files.
13132 : ${TMPDIR=/tmp}
13134 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13135 test -n "$tmp" && test -d "$tmp"
13136 } ||
13138 tmp=$TMPDIR/cs$$-$RANDOM
13139 (umask 077 && mkdir $tmp)
13140 } ||
13142 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13143 { (exit 1); exit 1; }
13148 cat >>$CONFIG_STATUS <<EOF
13151 # CONFIG_FILES section.
13154 # No need to generate the scripts if there are no CONFIG_FILES.
13155 # This happens for instance when ./config.status config.h
13156 if test -n "\$CONFIG_FILES"; then
13157 # Protect against being on the right side of a sed subst in config.status.
13158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13160 s,@SHELL@,$SHELL,;t t
13161 s,@exec_prefix@,$exec_prefix,;t t
13162 s,@prefix@,$prefix,;t t
13163 s,@program_transform_name@,$program_transform_name,;t t
13164 s,@bindir@,$bindir,;t t
13165 s,@sbindir@,$sbindir,;t t
13166 s,@libexecdir@,$libexecdir,;t t
13167 s,@datadir@,$datadir,;t t
13168 s,@sysconfdir@,$sysconfdir,;t t
13169 s,@sharedstatedir@,$sharedstatedir,;t t
13170 s,@localstatedir@,$localstatedir,;t t
13171 s,@libdir@,$libdir,;t t
13172 s,@includedir@,$includedir,;t t
13173 s,@oldincludedir@,$oldincludedir,;t t
13174 s,@infodir@,$infodir,;t t
13175 s,@mandir@,$mandir,;t t
13176 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13177 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13178 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13179 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13180 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13181 s,@build_alias@,$build_alias,;t t
13182 s,@host_alias@,$host_alias,;t t
13183 s,@target_alias@,$target_alias,;t t
13184 s,@ECHO_C@,$ECHO_C,;t t
13185 s,@ECHO_N@,$ECHO_N,;t t
13186 s,@ECHO_T@,$ECHO_T,;t t
13187 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13188 s,@DEFS@,$DEFS,;t t
13189 s,@LIBS@,$LIBS,;t t
13190 s,@build@,$build,;t t
13191 s,@build_cpu@,$build_cpu,;t t
13192 s,@build_vendor@,$build_vendor,;t t
13193 s,@build_os@,$build_os,;t t
13194 s,@host@,$host,;t t
13195 s,@host_cpu@,$host_cpu,;t t
13196 s,@host_vendor@,$host_vendor,;t t
13197 s,@host_os@,$host_os,;t t
13198 s,@CC@,$CC,;t t
13199 s,@CFLAGS@,$CFLAGS,;t t
13200 s,@LDFLAGS@,$LDFLAGS,;t t
13201 s,@CPPFLAGS@,$CPPFLAGS,;t t
13202 s,@ac_ct_CC@,$ac_ct_CC,;t t
13203 s,@EXEEXT@,$EXEEXT,;t t
13204 s,@OBJEXT@,$OBJEXT,;t t
13205 s,@LN_S@,$LN_S,;t t
13206 s,@CPP@,$CPP,;t t
13207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13210 s,@YACC@,$YACC,;t t
13211 s,@RANLIB@,$RANLIB,;t t
13212 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13213 s,@LIBSOUND@,$LIBSOUND,;t t
13214 s,@SET_MAKE@,$SET_MAKE,;t t
13215 s,@ALLOCA@,$ALLOCA,;t t
13216 s,@liblockfile@,$liblockfile,;t t
13217 s,@LIBOBJS@,$LIBOBJS,;t t
13218 s,@NEED_SETGID@,$NEED_SETGID,;t t
13219 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13220 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13221 s,@version@,$version,;t t
13222 s,@configuration@,$configuration,;t t
13223 s,@canonical@,$canonical,;t t
13224 s,@srcdir@,$srcdir,;t t
13225 s,@lispdir@,$lispdir,;t t
13226 s,@locallisppath@,$locallisppath,;t t
13227 s,@lisppath@,$lisppath,;t t
13228 s,@x_default_search_path@,$x_default_search_path,;t t
13229 s,@etcdir@,$etcdir,;t t
13230 s,@archlibdir@,$archlibdir,;t t
13231 s,@docdir@,$docdir,;t t
13232 s,@bitmapdir@,$bitmapdir,;t t
13233 s,@gamedir@,$gamedir,;t t
13234 s,@gameuser@,$gameuser,;t t
13235 s,@c_switch_system@,$c_switch_system,;t t
13236 s,@c_switch_machine@,$c_switch_machine,;t t
13237 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13238 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13239 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13240 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13241 s,@machfile@,$machfile,;t t
13242 s,@opsysfile@,$opsysfile,;t t
13243 CEOF
13247 cat >>$CONFIG_STATUS <<\EOF
13248 # Split the substitutions into bite-sized pieces for seds with
13249 # small command number limits, like on Digital OSF/1 and HP-UX.
13250 ac_max_sed_lines=48
13251 ac_sed_frag=1 # Number of current file.
13252 ac_beg=1 # First line for current file.
13253 ac_end=$ac_max_sed_lines # Line after last line for current file.
13254 ac_more_lines=:
13255 ac_sed_cmds=
13256 while $ac_more_lines; do
13257 if test $ac_beg -gt 1; then
13258 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13259 else
13260 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13262 if test ! -s $tmp/subs.frag; then
13263 ac_more_lines=false
13264 else
13265 # The purpose of the label and of the branching condition is to
13266 # speed up the sed processing (if there are no `@' at all, there
13267 # is no need to browse any of the substitutions).
13268 # These are the two extra sed commands mentioned above.
13269 (echo ':t
13270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13271 if test -z "$ac_sed_cmds"; then
13272 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13273 else
13274 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13276 ac_sed_frag=`expr $ac_sed_frag + 1`
13277 ac_beg=$ac_end
13278 ac_end=`expr $ac_end + $ac_max_sed_lines`
13280 done
13281 if test -z "$ac_sed_cmds"; then
13282 ac_sed_cmds=cat
13284 fi # test -n "$CONFIG_FILES"
13287 cat >>$CONFIG_STATUS <<\EOF
13288 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13289 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13290 case $ac_file in
13291 - | *:- | *:-:* ) # input from stdin
13292 cat >$tmp/stdin
13293 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13294 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13295 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13296 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13297 * ) ac_file_in=$ac_file.in ;;
13298 esac
13300 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13301 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13302 X"$ac_file" : 'X\(//\)[^/]' \| \
13303 X"$ac_file" : 'X\(//\)$' \| \
13304 X"$ac_file" : 'X\(/\)' \| \
13305 . : '\(.\)' 2>/dev/null ||
13306 echo X"$ac_file" |
13307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13309 /^X\(\/\/\)$/{ s//\1/; q; }
13310 /^X\(\/\).*/{ s//\1/; q; }
13311 s/.*/./; q'`
13312 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13313 { case "$ac_dir" in
13314 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13315 *) as_incr_dir=.;;
13316 esac
13317 as_dummy="$ac_dir"
13318 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13319 case $as_mkdir_dir in
13320 # Skip DOS drivespec
13321 ?:) as_incr_dir=$as_mkdir_dir ;;
13323 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13324 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13326 esac
13327 done; }
13329 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13330 # A "../" for each directory in $ac_dir_suffix.
13331 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13332 else
13333 ac_dir_suffix= ac_dots=
13336 case $srcdir in
13337 .) ac_srcdir=.
13338 if test -z "$ac_dots"; then
13339 ac_top_srcdir=.
13340 else
13341 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13342 fi ;;
13343 [\\/]* | ?:[\\/]* )
13344 ac_srcdir=$srcdir$ac_dir_suffix;
13345 ac_top_srcdir=$srcdir ;;
13346 *) # Relative path.
13347 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13348 ac_top_srcdir=$ac_dots$srcdir ;;
13349 esac
13351 case $INSTALL in
13352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13353 *) ac_INSTALL=$ac_dots$INSTALL ;;
13354 esac
13356 if test x"$ac_file" != x-; then
13357 { echo "$as_me:13356: creating $ac_file" >&5
13358 echo "$as_me: creating $ac_file" >&6;}
13359 rm -f "$ac_file"
13361 # Let's still pretend it is `configure' which instantiates (i.e., don't
13362 # use $as_me), people would be surprised to read:
13363 # /* config.h. Generated automatically by config.status. */
13364 configure_input="Generated automatically from `echo $ac_file_in |
13365 sed 's,.*/,,'` by configure."
13367 # First look for the input files in the build tree, otherwise in the
13368 # src tree.
13369 ac_file_inputs=`IFS=:
13370 for f in $ac_file_in; do
13371 case $f in
13372 -) echo $tmp/stdin ;;
13373 [\\/$]*)
13374 # Absolute (can't be DOS-style, as IFS=:)
13375 test -f "$f" || { { echo "$as_me:13374: error: cannot find input file: $f" >&5
13376 echo "$as_me: error: cannot find input file: $f" >&2;}
13377 { (exit 1); exit 1; }; }
13378 echo $f;;
13379 *) # Relative
13380 if test -f "$f"; then
13381 # Build tree
13382 echo $f
13383 elif test -f "$srcdir/$f"; then
13384 # Source tree
13385 echo $srcdir/$f
13386 else
13387 # /dev/null tree
13388 { { echo "$as_me:13387: error: cannot find input file: $f" >&5
13389 echo "$as_me: error: cannot find input file: $f" >&2;}
13390 { (exit 1); exit 1; }; }
13391 fi;;
13392 esac
13393 done` || { (exit 1); exit 1; }
13395 cat >>$CONFIG_STATUS <<EOF
13396 sed "$ac_vpsub
13397 $extrasub
13399 cat >>$CONFIG_STATUS <<\EOF
13401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13402 s,@configure_input@,$configure_input,;t t
13403 s,@srcdir@,$ac_srcdir,;t t
13404 s,@top_srcdir@,$ac_top_srcdir,;t t
13405 s,@INSTALL@,$ac_INSTALL,;t t
13406 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13407 rm -f $tmp/stdin
13408 if test x"$ac_file" != x-; then
13409 mv $tmp/out $ac_file
13410 else
13411 cat $tmp/out
13412 rm -f $tmp/out
13415 done
13417 cat >>$CONFIG_STATUS <<\EOF
13420 # CONFIG_HEADER section.
13423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13426 # ac_d sets the value in "#define NAME VALUE" lines.
13427 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13428 ac_dB='[ ].*$,\1#\2'
13429 ac_dC=' '
13430 ac_dD=',;t'
13431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13432 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13433 ac_uB='$,\1#\2define\3'
13434 ac_uC=' '
13435 ac_uD=',;t'
13437 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13439 case $ac_file in
13440 - | *:- | *:-:* ) # input from stdin
13441 cat >$tmp/stdin
13442 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13444 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13446 * ) ac_file_in=$ac_file.in ;;
13447 esac
13449 test x"$ac_file" != x- && { echo "$as_me:13448: creating $ac_file" >&5
13450 echo "$as_me: creating $ac_file" >&6;}
13452 # First look for the input files in the build tree, otherwise in the
13453 # src tree.
13454 ac_file_inputs=`IFS=:
13455 for f in $ac_file_in; do
13456 case $f in
13457 -) echo $tmp/stdin ;;
13458 [\\/$]*)
13459 # Absolute (can't be DOS-style, as IFS=:)
13460 test -f "$f" || { { echo "$as_me:13459: error: cannot find input file: $f" >&5
13461 echo "$as_me: error: cannot find input file: $f" >&2;}
13462 { (exit 1); exit 1; }; }
13463 echo $f;;
13464 *) # Relative
13465 if test -f "$f"; then
13466 # Build tree
13467 echo $f
13468 elif test -f "$srcdir/$f"; then
13469 # Source tree
13470 echo $srcdir/$f
13471 else
13472 # /dev/null tree
13473 { { echo "$as_me:13472: error: cannot find input file: $f" >&5
13474 echo "$as_me: error: cannot find input file: $f" >&2;}
13475 { (exit 1); exit 1; }; }
13476 fi;;
13477 esac
13478 done` || { (exit 1); exit 1; }
13479 # Remove the trailing spaces.
13480 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13484 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13485 # `conftest.undefs', that substitutes the proper values into
13486 # config.h.in to produce config.h. The first handles `#define'
13487 # templates, and the second `#undef' templates.
13488 # And first: Protect against being on the right side of a sed subst in
13489 # config.status. Protect against being in an unquoted here document
13490 # in config.status.
13491 rm -f conftest.defines conftest.undefs
13492 # Using a here document instead of a string reduces the quoting nightmare.
13493 # Putting comments in sed scripts is not portable.
13495 # `end' is used to avoid that the second main sed command (meant for
13496 # 0-ary CPP macros) applies to n-ary macro definitions.
13497 # See the Autoconf documentation for `clear'.
13498 cat >confdef2sed.sed <<\EOF
13499 s/[\\&,]/\\&/g
13500 s,[\\$`],\\&,g
13501 t clear
13502 : clear
13503 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13504 t end
13505 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13506 : end
13508 # If some macros were called several times there might be several times
13509 # the same #defines, which is useless. Nevertheless, we may not want to
13510 # sort them, since we want the *last* AC-DEFINE to be honored.
13511 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13512 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13513 rm -f confdef2sed.sed
13515 # This sed command replaces #undef with comments. This is necessary, for
13516 # example, in the case of _POSIX_SOURCE, which is predefined and required
13517 # on some systems where configure will not decide to define it.
13518 cat >>conftest.undefs <<\EOF
13519 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13522 # Break up conftest.defines because some shells have a limit on the size
13523 # of here documents, and old seds have small limits too (100 cmds).
13524 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13525 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13526 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13527 echo ' :' >>$CONFIG_STATUS
13528 rm -f conftest.tail
13529 while grep . conftest.defines >/dev/null
13531 # Write a limited-size here document to $tmp/defines.sed.
13532 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13533 # Speed up: don't consider the non `#define' lines.
13534 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13535 # Work around the forget-to-reset-the-flag bug.
13536 echo 't clr' >>$CONFIG_STATUS
13537 echo ': clr' >>$CONFIG_STATUS
13538 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13539 echo 'CEOF
13540 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13541 rm -f $tmp/in
13542 mv $tmp/out $tmp/in
13543 ' >>$CONFIG_STATUS
13544 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13545 rm -f conftest.defines
13546 mv conftest.tail conftest.defines
13547 done
13548 rm -f conftest.defines
13549 echo ' fi # egrep' >>$CONFIG_STATUS
13550 echo >>$CONFIG_STATUS
13552 # Break up conftest.undefs because some shells have a limit on the size
13553 # of here documents, and old seds have small limits too (100 cmds).
13554 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13555 rm -f conftest.tail
13556 while grep . conftest.undefs >/dev/null
13558 # Write a limited-size here document to $tmp/undefs.sed.
13559 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13560 # Speed up: don't consider the non `#undef'
13561 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13562 # Work around the forget-to-reset-the-flag bug.
13563 echo 't clr' >>$CONFIG_STATUS
13564 echo ': clr' >>$CONFIG_STATUS
13565 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13566 echo 'CEOF
13567 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13568 rm -f $tmp/in
13569 mv $tmp/out $tmp/in
13570 ' >>$CONFIG_STATUS
13571 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13572 rm -f conftest.undefs
13573 mv conftest.tail conftest.undefs
13574 done
13575 rm -f conftest.undefs
13577 cat >>$CONFIG_STATUS <<\EOF
13578 # Let's still pretend it is `configure' which instantiates (i.e., don't
13579 # use $as_me), people would be surprised to read:
13580 # /* config.h. Generated automatically by config.status. */
13581 if test x"$ac_file" = x-; then
13582 echo "/* Generated automatically by configure. */" >$tmp/config.h
13583 else
13584 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13586 cat $tmp/in >>$tmp/config.h
13587 rm -f $tmp/in
13588 if test x"$ac_file" != x-; then
13589 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13590 { echo "$as_me:13589: $ac_file is unchanged" >&5
13591 echo "$as_me: $ac_file is unchanged" >&6;}
13592 else
13593 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13594 X"$ac_file" : 'X\(//\)[^/]' \| \
13595 X"$ac_file" : 'X\(//\)$' \| \
13596 X"$ac_file" : 'X\(/\)' \| \
13597 . : '\(.\)' 2>/dev/null ||
13598 echo X"$ac_file" |
13599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13600 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13601 /^X\(\/\/\)$/{ s//\1/; q; }
13602 /^X\(\/\).*/{ s//\1/; q; }
13603 s/.*/./; q'`
13604 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13605 { case "$ac_dir" in
13606 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13607 *) as_incr_dir=.;;
13608 esac
13609 as_dummy="$ac_dir"
13610 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13611 case $as_mkdir_dir in
13612 # Skip DOS drivespec
13613 ?:) as_incr_dir=$as_mkdir_dir ;;
13615 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13616 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13618 esac
13619 done; }
13622 rm -f $ac_file
13623 mv $tmp/config.h $ac_file
13625 else
13626 cat $tmp/config.h
13627 rm -f $tmp/config.h
13629 done
13631 cat >>$CONFIG_STATUS <<\EOF
13634 # CONFIG_COMMANDS section.
13636 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13637 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13638 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13640 case $ac_dest in
13641 default )
13643 ### Make the necessary directories, if they don't exist.
13644 for dir in etc lisp ; do
13645 test -d ${dir} || mkdir ${dir}
13646 done
13648 # Build src/Makefile from ${srcdir}/src/Makefile.c
13649 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13650 # This must be done after src/config.h is built, since we rely on that file.
13652 # Now get this: Some word that is part of the ${srcdir} directory name
13653 # or the ${configuration} value might, just might, happen to be an
13654 # identifier like `sun4' or `i386' or something, and be predefined by
13655 # the C preprocessor to some helpful value like 1, or maybe the empty
13656 # string. Needless to say consequent macro substitutions are less
13657 # than conducive to the makefile finding the correct directory.
13658 undefs="`echo $top_srcdir $configuration $canonical |
13659 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13660 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13663 echo creating src/epaths.h
13664 ${MAKE-make} epaths-force
13666 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13667 # `..' to `. .' unless invoked with -traditional
13669 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13670 CPPFLAGS="$CPPFLAGS -traditional"
13673 echo creating lib-src/Makefile
13674 ( cd lib-src
13675 rm -f junk.c junk1.c junk2.c
13676 sed -e '/start of cpp stuff/q' \
13677 < Makefile.c > junk1.c
13678 sed -e '1,/start of cpp stuff/d'\
13679 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13680 < Makefile.c > junk.c
13681 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13682 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13683 cat junk1.c junk2.c > Makefile.new
13684 rm -f junk.c junk1.c junk2.c
13685 chmod 444 Makefile.new
13686 mv -f Makefile.new Makefile
13689 echo creating src/Makefile
13690 ( cd src
13691 rm -f junk.c junk1.c junk2.c
13692 sed -e '/start of cpp stuff/q' \
13693 < Makefile.c > junk1.c
13694 sed -e '1,/start of cpp stuff/d'\
13695 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13696 < Makefile.c > junk.c
13697 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13698 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13699 cat junk1.c junk2.c > Makefile.new
13700 rm -f junk.c junk1.c junk2.c
13701 chmod 444 Makefile.new
13702 mv -f Makefile.new Makefile
13705 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13706 echo creating src/.gdbinit
13707 echo source $srcdir/src/.gdbinit > src/.gdbinit
13710 # This is how we know whether to re-run configure in certain cases.
13711 touch src/config.stamp
13714 esac
13715 done
13718 cat >>$CONFIG_STATUS <<\EOF
13720 { (exit 0); exit 0; }
13722 chmod +x $CONFIG_STATUS
13723 ac_clean_files=$ac_clean_files_save
13725 # configure is writing to config.log, and then calls config.status.
13726 # config.status does its own redirection, appending to config.log.
13727 # Unfortunately, on DOS this fails, as config.log is still kept open
13728 # by configure, so config.status won't be able to write to it; its
13729 # output is simply discarded. So we exec the FD to /dev/null,
13730 # effectively closing config.log, so it can be properly (re)opened and
13731 # appended to by config.status. When coming back to configure, we
13732 # need to make the FD available again.
13733 if test "$no_create" != yes; then
13734 ac_cs_success=:
13735 exec 5>/dev/null
13736 $SHELL $CONFIG_STATUS || ac_cs_success=false
13737 exec 5>>config.log
13738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13739 # would make configure fail if this is the last instruction.
13740 $ac_cs_success || { (exit 1); exit 1; }