(dired-view-command-alist): Change :version attribute to a string.
[emacs.git] / configure
blob25262dc3dbdf1f8d76b7bd18ad7308d3f1728811
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 ns32k-*-netbsd*) machine=ns32000 ;;
1370 powerpc-*-netbsd*) machine=macppc ;;
1371 sparc*-*-netbsd*) machine=sparc ;;
1372 vax-*-netbsd*) machine=vax ;;
1373 arm-*-netbsd*) machine=arm ;;
1374 esac
1377 ## OpenBSD ports
1378 *-*-openbsd* )
1379 opsys=openbsd
1380 case "${canonical}" in
1381 alpha*-*-openbsd*) machine=alpha ;;
1382 i386-*-openbsd*) machine=intel386 ;;
1383 m68k-*-openbsd*) machine=hp9000s300 ;;
1384 mipsel-*-openbsd*) machine=pmax ;;
1385 ns32k-*-openbsd*) machine=ns32000 ;;
1386 sparc-*-openbsd*) machine=sparc ;;
1387 vax-*-openbsd*) machine=vax ;;
1388 esac
1391 ## Acorn RISCiX:
1392 arm-acorn-riscix1.1* )
1393 machine=acorn opsys=riscix1-1
1395 arm-acorn-riscix1.2* | arm-acorn-riscix )
1396 ## This name is riscix12 instead of riscix1.2
1397 ## to avoid a file name conflict on MSDOS.
1398 machine=acorn opsys=riscix12
1401 ## BSDI ports
1402 *-*-bsdi* )
1403 opsys=bsdi
1404 case "${canonical}" in
1405 i[345]86-*-bsdi*) machine=intel386 ;;
1406 sparc-*-bsdi*) machine=sparc ;;
1407 powerpc-*-bsdi*) machine=macppc ;;
1408 esac
1409 case "${canonical}" in
1410 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1411 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1412 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1413 *-*-bsdi3* ) opsys=bsdos3 ;;
1414 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1415 esac
1418 ## Alliant machines
1419 ## Strictly speaking, we need the version of the alliant operating
1420 ## system to choose the right machine file, but currently the
1421 ## configuration name doesn't tell us enough to choose the right
1422 ## one; we need to give alliants their own operating system name to
1423 ## do this right. When someone cares, they can help us.
1424 fx80-alliant-* )
1425 machine=alliant4 opsys=bsd4-2
1427 i860-alliant-* )
1428 machine=alliant-2800 opsys=bsd4-3
1431 ## Alpha (DEC) machines.
1432 alpha*-dec-osf* )
1433 machine=alpha opsys=osf1
1434 # This is needed to find X11R6.1 libraries for certain tests.
1435 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1436 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1437 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1438 # due to non-traditional preprocessing with the current compiler
1439 # defaults. OSF 4 can also have that compiler version, and there
1440 # seems always to have been a usable /usr/bin/cpp.
1441 NON_GNU_CPP=/usr/bin/cpp
1442 case "${canonical}" in
1443 alpha*-dec-osf[5-9]*)
1444 opsys=osf5-0 ;;
1445 esac
1448 alpha*-*-linux-gnu* )
1449 machine=alpha opsys=gnu-linux
1452 arm*-*-linux-gnu* )
1453 machine=arm opsys=gnu-linux
1456 ppc-*-linux | \
1457 powerpc-*-linux* )
1458 machine=macppc opsys=gnu-linux
1461 ## Altos 3068
1462 m68*-altos-sysv* )
1463 machine=altos opsys=usg5-2
1466 ## Amdahl UTS
1467 580-amdahl-sysv* )
1468 machine=amdahl opsys=usg5-2-2
1471 ## Apollo, Domain/OS
1472 m68*-apollo-* )
1473 machine=apollo opsys=bsd4-3
1476 ## AT&T 3b2, 3b5, 3b15, 3b20
1477 we32k-att-sysv* )
1478 machine=att3b opsys=usg5-2-2
1481 ## AT&T 3b1 - The Mighty Unix PC!
1482 m68*-att-sysv* )
1483 machine=7300 opsys=usg5-2-2
1486 ## Bull dpx20
1487 rs6000-bull-bosx* )
1488 machine=ibmrs6000 opsys=aix3-2
1491 ## Bull dpx2
1492 m68*-bull-sysv3* )
1493 machine=dpx2 opsys=usg5-3
1496 ## Bull sps7
1497 m68*-bull-sysv2* )
1498 machine=sps7 opsys=usg5-2
1501 ## CCI 5/32, 6/32 -- see "Tahoe".
1503 ## Celerity
1504 ## I don't know what configuration name to use for this; config.sub
1505 ## doesn't seem to know anything about it. Hey, Celerity users, get
1506 ## in touch with us!
1507 celerity-celerity-bsd* )
1508 machine=celerity opsys=bsd4-2
1511 ## Clipper
1512 ## What operating systems does this chip run that Emacs has been
1513 ## tested on?
1514 clipper-* )
1515 machine=clipper
1516 ## We'll use the catch-all code at the bottom to guess the
1517 ## operating system.
1520 ## Compaq Nonstop
1521 mips-compaq-nonstopux* )
1522 machine=nonstopux opsys=nonstopux
1525 ## Convex
1526 *-convex-bsd* | *-convex-convexos* )
1527 machine=convex opsys=bsd4-3
1528 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1529 NON_GNU_CPP="cc -E -P"
1532 ## Cubix QBx/386
1533 i[3456]86-cubix-sysv* )
1534 machine=intel386 opsys=usg5-3
1537 ## Cydra 5
1538 cydra*-cydrome-sysv* )
1539 machine=cydra5 opsys=usg5-3
1542 ## Data General AViiON Machines
1543 ## DG changed naming conventions with the release of 5.4.4.10, they
1544 ## dropped the initial 5.4 but left the intervening R. Because of the
1545 ## R this shouldn't conflict with older versions of the OS (which I
1546 ## think were named like dgux4.*). In addition, DG new AViiONs series
1547 ## uses either Motorola M88k or Intel Pentium CPUs.
1548 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1549 machine=aviion opsys=dgux4
1551 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1552 ## This name is dgux5-4-3 instead of dgux5-4r3
1553 ## to avoid a file name conflict on MSDOS.
1554 machine=aviion opsys=dgux5-4-3
1556 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1557 machine=aviion opsys=dgux5-4r2
1559 m88k-dg-dgux* )
1560 machine=aviion opsys=dgux
1563 ## Data General AViiON Intel (x86) Machines
1564 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1565 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1566 i[345]86-dg-dguxR4* )
1567 machine=aviion-intel opsys=dgux4
1570 ## DECstations
1571 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1572 machine=pmax opsys=bsd4-2
1574 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1575 machine=pmax opsys=bsd4-3
1577 mips-dec-ultrix* )
1578 machine=pmax opsys=ultrix4-3
1580 mips-dec-osf* )
1581 machine=pmax opsys=osf1
1583 mips-dec-mach_bsd4.3* )
1584 machine=pmax opsys=mach-bsd4-3
1587 ## Motorola Delta machines
1588 m68k-motorola-sysv* | m68000-motorola-sysv* )
1589 machine=delta opsys=usg5-3
1590 if test -z "`type gnucc | grep 'not found'`"
1591 then
1592 if test -s /etc/167config
1593 then CC="gnucc -m68040"
1594 else CC="gnucc -m68881"
1596 else
1597 if test -z "`type gcc | grep 'not found'`"
1598 then CC=gcc
1599 else CC=cc
1603 m88k-motorola-sysv4* )
1604 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1605 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1606 # I hope there are not other 4.0 versions for this machine
1607 # which really need usg5-4 instead.
1608 machine=delta88k opsys=usg5-4-2
1610 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1611 machine=delta88k opsys=usg5-3
1614 ## Dual machines
1615 m68*-dual-sysv* )
1616 machine=dual opsys=usg5-2
1618 m68*-dual-uniplus* )
1619 machine=dual opsys=unipl5-2
1622 ## Elxsi 6400
1623 elxsi-elxsi-sysv* )
1624 machine=elxsi opsys=usg5-2
1627 ## Encore machines
1628 ns16k-encore-bsd* )
1629 machine=ns16000 opsys=umax
1632 ## The GEC 63 - apparently, this port isn't really finished yet.
1633 # I'm sure we finished off the last of the machines, though. -- fx
1635 ## Gould Power Node and NP1
1636 pn-gould-bsd4.2* )
1637 machine=gould opsys=bsd4-2
1639 pn-gould-bsd4.3* )
1640 machine=gould opsys=bsd4-3
1642 np1-gould-bsd* )
1643 machine=gould-np1 opsys=bsd4-3
1646 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1647 ## as far as Emacs is concerned).
1648 m88k-harris-cxux* )
1649 # Build needs to be different on 7.0 and later releases
1650 case "`uname -r`" in
1651 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1652 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1653 esac
1654 NON_GNU_CPP="/lib/cpp"
1656 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1657 m68k-harris-cxux* )
1658 machine=nh3000 opsys=cxux
1660 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1661 powerpc-harris-powerunix )
1662 machine=nh6000 opsys=powerunix
1663 NON_GNU_CPP="cc -Xo -E -P"
1665 ## SR2001/SR2201 running HI-UX/MPP
1666 hppa1.1-hitachi-hiuxmpp* )
1667 machine=sr2k opsys=hiuxmpp
1669 hppa1.1-hitachi-hiuxwe2* )
1670 machine=sr2k opsys=hiuxwe2
1672 ## Honeywell XPS100
1673 xps*-honeywell-sysv* )
1674 machine=xps100 opsys=usg5-2
1677 ## HP 9000 series 200 or 300
1678 m68*-hp-bsd* )
1679 machine=hp9000s300 opsys=bsd4-3
1681 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1682 m68*-hp-hpux* )
1683 case "`uname -r`" in
1684 ## Someone's system reports A.B8.05 for this.
1685 ## I wonder what other possibilities there are.
1686 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1687 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1688 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1689 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1690 *) machine=hp9000s300 opsys=hpux ;;
1691 esac
1694 ## HP 9000 series 700 and 800, running HP/UX
1695 hppa*-hp-hpux7* )
1696 machine=hp800 opsys=hpux
1698 hppa*-hp-hpux8* )
1699 machine=hp800 opsys=hpux8
1701 hppa*-hp-hpux9shr* )
1702 machine=hp800 opsys=hpux9shr
1704 hppa*-hp-hpux9* )
1705 machine=hp800 opsys=hpux9
1707 hppa*-hp-hpux10* )
1708 machine=hp800 opsys=hpux10
1710 hppa*-hp-hpux1[1-9]* )
1711 machine=hp800 opsys=hpux11
1714 hppa*-*-linux-gnu* )
1715 machine=hp800 opsys=gnu-linux
1718 ## HP 9000 series 700 and 800, running HP/UX
1719 hppa*-hp-hpux* )
1720 ## Cross-compilation? Nah!
1721 case "`uname -r`" in
1722 ## Someone's system reports A.B8.05 for this.
1723 ## I wonder what other possibilities there are.
1724 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1725 *.08.* ) machine=hp800 opsys=hpux8 ;;
1726 *.09.* ) machine=hp800 opsys=hpux9 ;;
1727 *) machine=hp800 opsys=hpux10 ;;
1728 esac
1730 hppa*-*-nextstep* )
1731 machine=hp800 opsys=nextstep
1734 ## Orion machines
1735 orion-orion-bsd* )
1736 machine=orion opsys=bsd4-2
1738 clipper-orion-bsd* )
1739 machine=orion105 opsys=bsd4-2
1742 ## IBM machines
1743 i[3456]86-ibm-aix1.1* )
1744 machine=ibmps2-aix opsys=usg5-2-2
1746 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1747 machine=ibmps2-aix opsys=usg5-3
1749 i370-ibm-aix*)
1750 machine=ibm370aix opsys=usg5-3
1752 s390-*-linux-gnu)
1753 machine=ibms390 opsys=gnu-linux
1755 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1756 machine=ibmrs6000 opsys=aix3-1
1758 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1759 machine=ibmrs6000 opsys=aix3-2-5
1761 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1762 machine=ibmrs6000 opsys=aix4-1
1764 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1765 machine=ibmrs6000 opsys=aix4-2
1767 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* )
1768 machine=ibmrs6000 opsys=aix4-2
1770 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1771 machine=ibmrs6000 opsys=aix4
1773 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1774 machine=ibmrs6000 opsys=aix4-1
1776 rs6000-ibm-aix* | powerpc-ibm-aix* )
1777 machine=ibmrs6000 opsys=aix3-2
1779 romp-ibm-bsd4.3* )
1780 machine=ibmrt opsys=bsd4-3
1782 romp-ibm-bsd4.2* )
1783 machine=ibmrt opsys=bsd4-2
1785 romp-ibm-aos4.3* )
1786 machine=ibmrt opsys=bsd4-3
1788 romp-ibm-aos4.2* )
1789 machine=ibmrt opsys=bsd4-2
1791 romp-ibm-aos* )
1792 machine=ibmrt opsys=bsd4-3
1794 romp-ibm-bsd* )
1795 machine=ibmrt opsys=bsd4-3
1797 romp-ibm-aix* )
1798 machine=ibmrt-aix opsys=usg5-2-2
1801 ## Integrated Solutions `Optimum V'
1802 m68*-isi-bsd4.2* )
1803 machine=isi-ov opsys=bsd4-2
1805 m68*-isi-bsd4.3* )
1806 machine=isi-ov opsys=bsd4-3
1809 ## Intel 386 machines where we do care about the manufacturer
1810 i[3456]86-intsys-sysv* )
1811 machine=is386 opsys=usg5-2-2
1814 ## Prime EXL
1815 i[3456]86-prime-sysv* )
1816 machine=i386 opsys=usg5-3
1819 ## Sequent Symmetry running Dynix
1820 i[3456]86-sequent-bsd* )
1821 machine=symmetry opsys=bsd4-3
1824 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1825 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1826 machine=sequent-ptx opsys=ptx4
1827 NON_GNU_CPP=/lib/cpp
1830 ## Sequent Symmetry running DYNIX/ptx
1831 ## Use the old cpp rather than the newer ANSI one.
1832 i[3456]86-sequent-ptx* )
1833 machine=sequent-ptx opsys=ptx
1834 NON_GNU_CPP="/lib/cpp"
1837 ## ncr machine running svr4.3.
1838 i[3456]86-ncr-sysv4.3 )
1839 machine=ncr386 opsys=usg5-4-3
1842 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1843 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1844 i[3456]86-ncr-sysv* )
1845 machine=ncr386 opsys=usg5-4-2
1848 ## Intel Paragon OSF/1
1849 i860-intel-osf1* )
1850 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1853 ## Intel 860
1854 i860-*-sysv4* )
1855 machine=i860 opsys=usg5-4
1856 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1857 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1860 ## Macintosh PowerPC
1861 powerpc*-*-linux-gnu* )
1862 machine=macppc opsys=gnu-linux
1865 ## Masscomp machines
1866 m68*-masscomp-rtu* )
1867 machine=masscomp opsys=rtu
1870 ## Megatest machines
1871 m68*-megatest-bsd* )
1872 machine=mega68 opsys=bsd4-2
1875 ## Workstations sold by MIPS
1876 ## This is not necessarily all workstations using the MIPS processor -
1877 ## Irises are produced by SGI, and DECstations by DEC.
1879 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1880 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1881 ## it gives for choosing between the alternatives seems to be "Use
1882 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1883 ## the BSD world." I'll assume that these are instructions for
1884 ## handling two odd situations, and that every other situation
1885 ## should use mips.h and usg5-2-2, they being listed first.
1886 mips-mips-usg* )
1887 machine=mips4
1888 ## Fall through to the general code at the bottom to decide on the OS.
1890 mips-mips-riscos4* )
1891 machine=mips4 opsys=bsd4-3
1892 NON_GNU_CC="cc -systype bsd43"
1893 NON_GNU_CPP="cc -systype bsd43 -E"
1895 mips-mips-riscos5* )
1896 machine=mips4 opsys=riscos5
1897 NON_GNU_CC="cc -systype bsd43"
1898 NON_GNU_CPP="cc -systype bsd43 -E"
1900 mips-mips-bsd* )
1901 machine=mips opsys=bsd4-3
1903 mips-mips-* )
1904 machine=mips opsys=usg5-2-2
1907 ## NeXT
1908 m68*-next-* | m68k-*-nextstep* )
1909 machine=m68k opsys=nextstep
1912 ## The complete machine from National Semiconductor
1913 ns32k-ns-genix* )
1914 machine=ns32000 opsys=usg5-2
1917 ## NCR machines
1918 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1919 machine=tower32 opsys=usg5-2-2
1921 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1922 machine=tower32v3 opsys=usg5-3
1925 ## NEC EWS4800
1926 mips-nec-sysv4*)
1927 machine=ews4800 opsys=ux4800
1930 ## Nixdorf Targon 31
1931 m68*-nixdorf-sysv* )
1932 machine=targon31 opsys=usg5-2-2
1935 ## Nu (TI or LMI)
1936 m68*-nu-sysv* )
1937 machine=nu opsys=usg5-2
1940 ## Plexus
1941 m68*-plexus-sysv* )
1942 machine=plexus opsys=usg5-2
1945 ## PowerPC reference platform
1946 powerpcle-*-solaris2* )
1947 machine=prep
1948 opsys=sol2-5
1951 ## Pyramid machines
1952 ## I don't really have any idea what sort of processor the Pyramid has,
1953 ## so I'm assuming it is its own architecture.
1954 pyramid-pyramid-bsd* )
1955 machine=pyramid opsys=bsd4-2
1958 ## Sequent Balance
1959 ns32k-sequent-bsd4.2* )
1960 machine=sequent opsys=bsd4-2
1962 ns32k-sequent-bsd4.3* )
1963 machine=sequent opsys=bsd4-3
1966 ## Siemens Nixdorf
1967 mips-siemens-sysv* | mips-sni-sysv*)
1968 machine=mips-siemens opsys=usg5-4
1969 NON_GNU_CC=/usr/ccs/bin/cc
1970 NON_GNU_CPP=/usr/ccs/lib/cpp
1973 ## Silicon Graphics machines
1974 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1975 m68*-sgi-iris3.5* )
1976 machine=irist opsys=iris3-5
1978 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1979 machine=irist opsys=iris3-6
1981 ## Iris 4D
1982 mips-sgi-irix3* )
1983 machine=iris4d opsys=irix3-3
1985 mips-sgi-irix4* )
1986 machine=iris4d opsys=irix4-0
1988 mips-sgi-irix6.5 )
1989 machine=iris4d opsys=irix6-5
1990 # Without defining _LANGUAGE_C, things get masked out in the headers
1991 # so that, for instance, grepping for `free' in stdlib.h fails and
1992 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1993 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1994 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
1996 mips-sgi-irix6* )
1997 machine=iris4d opsys=irix6-0
1998 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1999 # but presumably it does no harm.
2000 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2001 # -32 probably isn't necessary in later v.6s -- anyone know which?
2002 NON_GCC_TEST_OPTIONS=-32
2004 mips-sgi-irix5.[01]* )
2005 machine=iris4d opsys=irix5-0
2007 mips-sgi-irix5* | mips-sgi-irix* )
2008 machine=iris4d opsys=irix5-2
2011 ## SONY machines
2012 m68*-sony-bsd4.2* )
2013 machine=news opsys=bsd4-2
2015 m68*-sony-bsd4.3* )
2016 machine=news opsys=bsd4-3
2018 m68*-sony-newsos3* | m68*-sony-news3*)
2019 machine=news opsys=bsd4-3
2021 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2022 machine=news-risc opsys=bsd4-3
2024 mips-sony-newsos6* )
2025 machine=news-r6 opsys=newsos6
2027 mips-sony-news* )
2028 machine=news-risc opsys=newsos5
2031 ## Stride
2032 m68*-stride-sysv* )
2033 machine=stride opsys=usg5-2
2036 ## Suns
2037 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2038 machine=sparc opsys=gnu-linux
2041 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2042 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2043 | rs6000-*-solaris2*)
2044 case "${canonical}" in
2045 m68*-sunos1* ) machine=sun1 ;;
2046 m68*-sunos2* ) machine=sun2 ;;
2047 m68* ) machine=sun3 ;;
2048 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2049 i[3456]86-*-* ) machine=intel386 ;;
2050 powerpcle* ) machine=powerpcle ;;
2051 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2052 sparc* ) machine=sparc ;;
2053 * ) unported=yes ;;
2054 esac
2055 case "${canonical}" in
2056 ## The Sun386 didn't get past 4.0.
2057 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2058 *-sunos4.0* ) opsys=sunos4-0 ;;
2059 *-sunos4.1.[3-9]*noshare )
2060 ## This name is sunos413 instead of sunos4-1-3
2061 ## to avoid a file name conflict on MSDOS.
2062 opsys=sunos413
2063 NON_GNU_CPP=/usr/lib/cpp
2064 NON_GCC_TEST_OPTIONS=-Bstatic
2065 GCC_TEST_OPTIONS=-static
2067 *-sunos4.1.[3-9]* | *-sunos4shr*)
2068 opsys=sunos4shr
2069 NON_GNU_CPP=/usr/lib/cpp
2071 *-sunos4* | *-sunos )
2072 opsys=sunos4-1
2073 NON_GCC_TEST_OPTIONS=-Bstatic
2074 GCC_TEST_OPTIONS=-static
2076 *-sunos5.3* | *-solaris2.3* )
2077 opsys=sol2-3
2078 NON_GNU_CPP=/usr/ccs/lib/cpp
2080 *-sunos5.4* | *-solaris2.4* )
2081 opsys=sol2-4
2082 NON_GNU_CPP=/usr/ccs/lib/cpp
2083 RANLIB="ar -ts"
2085 *-sunos5.5* | *-solaris2.5* )
2086 opsys=sol2-5
2087 NON_GNU_CPP=/usr/ccs/lib/cpp
2088 RANLIB="ar -ts"
2090 *-sunos5* | *-solaris* )
2091 opsys=sol2-5
2092 NON_GNU_CPP=/usr/ccs/lib/cpp
2094 * ) opsys=bsd4-2 ;;
2095 esac
2096 ## Watch out for a compiler that we know will not work.
2097 case "${canonical}" in
2098 *-solaris* | *-sunos5* )
2099 if [ "x$CC" = x/usr/ucb/cc ]; then
2100 ## /usr/ucb/cc doesn't work;
2101 ## we should find some other compiler that does work.
2102 unset CC
2105 *) ;;
2106 esac
2108 sparc-*-nextstep* )
2109 machine=sparc opsys=nextstep
2112 ## Tadpole 68k
2113 m68*-tadpole-sysv* )
2114 machine=tad68k opsys=usg5-3
2117 ## Tahoe machines
2118 tahoe-tahoe-bsd4.2* )
2119 machine=tahoe opsys=bsd4-2
2121 tahoe-tahoe-bsd4.3* )
2122 machine=tahoe opsys=bsd4-3
2125 ## Tandem Integrity S2
2126 mips-tandem-sysv* )
2127 machine=tandem-s2 opsys=usg5-3
2130 ## Tektronix XD88
2131 m88k-tektronix-sysv3* )
2132 machine=tekxd88 opsys=usg5-3
2135 ## Tektronix 16000 box (6130?)
2136 ns16k-tektronix-bsd* )
2137 machine=ns16000 opsys=bsd4-2
2139 ## Tektronix 4300
2140 ## src/m/tek4300.h hints that this is a m68k machine.
2141 m68*-tektronix-bsd* )
2142 machine=tek4300 opsys=bsd4-3
2145 ## Titan P2 or P3
2146 ## We seem to have lost the machine-description file titan.h!
2147 titan-titan-sysv* )
2148 machine=titan opsys=usg5-3
2151 ## Ustation E30 (SS5E)
2152 m68*-unisys-uniplus* )
2153 machine=ustation opsystem=unipl5-2
2156 ## Vaxen.
2157 vax-dec-* )
2158 machine=vax
2159 case "${canonical}" in
2160 *-bsd4.1* ) opsys=bsd4-1 ;;
2161 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2162 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2163 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2164 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2165 *-vms* ) opsys=vms ;;
2166 * ) unported=yes
2167 esac
2170 ## Whitechapel MG1
2171 ns16k-whitechapel-* )
2172 machine=mg1
2173 ## We don't know what sort of OS runs on these; we'll let the
2174 ## operating system guessing code below try.
2177 ## Wicat
2178 m68*-wicat-sysv* )
2179 machine=wicat opsys=usg5-2
2182 ## IA-64
2183 ia64*-*-linux* )
2184 machine=ia64 opsys=gnu-linux
2187 ## Intel 386 machines where we don't care about the manufacturer
2188 i[3456]86-*-* )
2189 machine=intel386
2190 case "${canonical}" in
2191 *-lynxos* ) opsys=lynxos ;;
2192 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2193 *-isc2.2* ) opsys=isc2-2 ;;
2194 *-isc4.0* ) opsys=isc4-0 ;;
2195 *-isc4.* ) opsys=isc4-1
2196 GCC_TEST_OPTIONS=-posix
2197 NON_GCC_TEST_OPTIONS=-Xp
2199 *-isc* ) opsys=isc3-0 ;;
2200 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2201 *-esix* ) opsys=esix ;;
2202 *-xenix* ) opsys=xenix ;;
2203 *-linux-gnu* ) opsys=gnu-linux ;;
2204 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2205 *-sco3.2v5* ) opsys=sco5
2206 NON_GNU_CPP=/lib/cpp
2207 # Prevent -belf from being passed to $CPP.
2208 # /lib/cpp does not accept it.
2209 OVERRIDE_CPPFLAGS=" "
2211 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2212 *-386bsd* ) opsys=386bsd ;;
2213 *-nextstep* ) opsys=nextstep ;;
2214 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2215 esac
2218 ## m68k Linux-based GNU system
2219 m68k-*-linux-gnu* )
2220 machine=m68k opsys=gnu-linux
2223 ## Mips Linux-based GNU system
2224 mips-*-linux-gnu* )
2225 machine=mips opsys=gnu-linux
2228 ## UXP/DS
2229 sparc-fujitsu-sysv4* )
2230 machine=sparc opsys=uxpds
2231 NON_GNU_CPP=/usr/ccs/lib/cpp
2232 RANLIB="ar -ts"
2235 ## UXP/V
2236 f301-fujitsu-uxpv4.1)
2237 machine=f301 opsys=uxpv
2240 ## Darwin / Mac OS X
2241 powerpc-apple-darwin* )
2242 machine=powermac opsys=darwin
2243 # Define CPP as follows to make autoconf work correctly.
2244 CPP="cc -E -traditional-cpp"
2248 unported=yes
2250 esac
2252 ### If the code above didn't choose an operating system, just choose
2253 ### an operating system based on the configuration name. You really
2254 ### only want to use this when you have no idea what the right
2255 ### operating system is; if you know what operating systems a machine
2256 ### runs, it's cleaner to make it explicit in the case statement
2257 ### above.
2258 if test x"${opsys}" = x; then
2259 case "${canonical}" in
2260 *-gnu* ) opsys=gnu ;;
2261 *-bsd4.[01] ) opsys=bsd4-1 ;;
2262 *-bsd4.2 ) opsys=bsd4-2 ;;
2263 *-bsd4.3 ) opsys=bsd4-3 ;;
2264 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2265 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2266 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2267 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2268 *-sysv4.2uw* ) opsys=unixware ;;
2269 *-sysv4.1* | *-sysvr4.1* )
2270 NON_GNU_CPP=/usr/lib/cpp
2271 opsys=usg5-4 ;;
2272 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2273 if [ x$NON_GNU_CPP = x ]; then
2274 if [ -f /usr/ccs/lib/cpp ]; then
2275 NON_GNU_CPP=/usr/ccs/lib/cpp
2276 else
2277 NON_GNU_CPP=/lib/cpp
2280 opsys=usg5-4-2 ;;
2281 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2283 unported=yes
2285 esac
2288 if test $unported = yes; then
2289 { { echo "$as_me:2289: error: Emacs hasn't been ported to \`${canonical}' systems.
2290 Check \`etc/MACHINES' for recognized configuration names." >&5
2291 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2292 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2293 { (exit 1); exit 1; }; }
2296 machfile="m/${machine}.h"
2297 opsysfile="s/${opsys}.h"
2299 #### Choose a compiler.
2300 test -n "$CC" && cc_specified=yes
2302 # Save the value of CFLAGS that the user specified.
2303 SPECIFIED_CFLAGS="$CFLAGS"
2305 case ${with_gcc} in
2306 "yes" ) CC="gcc" GCC=yes ;;
2307 "no" ) : ${CC=cc} ;;
2309 esac
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318 echo "$as_me:2318: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 ac_save_IFS=$IFS; IFS=$ac_path_separator
2327 ac_dummy="$PATH"
2328 for ac_dir in $ac_dummy; do
2329 IFS=$ac_save_IFS
2330 test -z "$ac_dir" && ac_dir=.
2331 $as_executable_p "$ac_dir/$ac_word" || continue
2332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2333 echo "$as_me:2333: found $ac_dir/$ac_word" >&5
2334 break
2335 done
2339 CC=$ac_cv_prog_CC
2340 if test -n "$CC"; then
2341 echo "$as_me:2341: result: $CC" >&5
2342 echo "${ECHO_T}$CC" >&6
2343 else
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2349 if test -z "$ac_cv_prog_CC"; then
2350 ac_ct_CC=$CC
2351 # Extract the first word of "gcc", so it can be a program name with args.
2352 set dummy gcc; ac_word=$2
2353 echo "$as_me:2353: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360 else
2361 ac_save_IFS=$IFS; IFS=$ac_path_separator
2362 ac_dummy="$PATH"
2363 for ac_dir in $ac_dummy; do
2364 IFS=$ac_save_IFS
2365 test -z "$ac_dir" && ac_dir=.
2366 $as_executable_p "$ac_dir/$ac_word" || continue
2367 ac_cv_prog_ac_ct_CC="gcc"
2368 echo "$as_me:2368: found $ac_dir/$ac_word" >&5
2369 break
2370 done
2374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2375 if test -n "$ac_ct_CC"; then
2376 echo "$as_me:2376: result: $ac_ct_CC" >&5
2377 echo "${ECHO_T}$ac_ct_CC" >&6
2378 else
2379 echo "$as_me:2379: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2383 CC=$ac_ct_CC
2384 else
2385 CC="$ac_cv_prog_CC"
2388 if test -z "$CC"; then
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}cc; ac_word=$2
2392 echo "$as_me:2392: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2399 else
2400 ac_save_IFS=$IFS; IFS=$ac_path_separator
2401 ac_dummy="$PATH"
2402 for ac_dir in $ac_dummy; do
2403 IFS=$ac_save_IFS
2404 test -z "$ac_dir" && ac_dir=.
2405 $as_executable_p "$ac_dir/$ac_word" || continue
2406 ac_cv_prog_CC="${ac_tool_prefix}cc"
2407 echo "$as_me:2407: found $ac_dir/$ac_word" >&5
2408 break
2409 done
2413 CC=$ac_cv_prog_CC
2414 if test -n "$CC"; then
2415 echo "$as_me:2415: result: $CC" >&5
2416 echo "${ECHO_T}$CC" >&6
2417 else
2418 echo "$as_me:2418: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2423 if test -z "$ac_cv_prog_CC"; then
2424 ac_ct_CC=$CC
2425 # Extract the first word of "cc", so it can be a program name with args.
2426 set dummy cc; ac_word=$2
2427 echo "$as_me:2427: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2434 else
2435 ac_save_IFS=$IFS; IFS=$ac_path_separator
2436 ac_dummy="$PATH"
2437 for ac_dir in $ac_dummy; do
2438 IFS=$ac_save_IFS
2439 test -z "$ac_dir" && ac_dir=.
2440 $as_executable_p "$ac_dir/$ac_word" || continue
2441 ac_cv_prog_ac_ct_CC="cc"
2442 echo "$as_me:2442: found $ac_dir/$ac_word" >&5
2443 break
2444 done
2448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 echo "$as_me:2450: result: $ac_ct_CC" >&5
2451 echo "${ECHO_T}$ac_ct_CC" >&6
2452 else
2453 echo "$as_me:2453: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2457 CC=$ac_ct_CC
2458 else
2459 CC="$ac_cv_prog_CC"
2463 if test -z "$CC"; then
2464 # Extract the first word of "cc", so it can be a program name with args.
2465 set dummy cc; ac_word=$2
2466 echo "$as_me:2466: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 else
2474 ac_prog_rejected=no
2475 ac_save_IFS=$IFS; IFS=$ac_path_separator
2476 ac_dummy="$PATH"
2477 for ac_dir in $ac_dummy; do
2478 IFS=$ac_save_IFS
2479 test -z "$ac_dir" && ac_dir=.
2480 $as_executable_p "$ac_dir/$ac_word" || continue
2481 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2482 ac_prog_rejected=yes
2483 continue
2485 ac_cv_prog_CC="cc"
2486 echo "$as_me:2486: found $ac_dir/$ac_word" >&5
2487 break
2488 done
2490 if test $ac_prog_rejected = yes; then
2491 # We found a bogon in the path, so make sure we never use it.
2492 set dummy $ac_cv_prog_CC
2493 shift
2494 if test $# != 0; then
2495 # We chose a different compiler from the bogus one.
2496 # However, it has the same basename, so the bogon will be chosen
2497 # first if we set CC to just the basename; use the full file name.
2498 shift
2499 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2500 shift
2501 ac_cv_prog_CC="$@"
2506 CC=$ac_cv_prog_CC
2507 if test -n "$CC"; then
2508 echo "$as_me:2508: result: $CC" >&5
2509 echo "${ECHO_T}$CC" >&6
2510 else
2511 echo "$as_me:2511: result: no" >&5
2512 echo "${ECHO_T}no" >&6
2516 if test -z "$CC"; then
2517 if test -n "$ac_tool_prefix"; then
2518 for ac_prog in cl
2520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2522 echo "$as_me:2522: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 ac_save_IFS=$IFS; IFS=$ac_path_separator
2531 ac_dummy="$PATH"
2532 for ac_dir in $ac_dummy; do
2533 IFS=$ac_save_IFS
2534 test -z "$ac_dir" && ac_dir=.
2535 $as_executable_p "$ac_dir/$ac_word" || continue
2536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2537 echo "$as_me:2537: found $ac_dir/$ac_word" >&5
2538 break
2539 done
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545 echo "$as_me:2545: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6
2547 else
2548 echo "$as_me:2548: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2552 test -n "$CC" && break
2553 done
2555 if test -z "$CC"; then
2556 ac_ct_CC=$CC
2557 for ac_prog in cl
2559 # Extract the first word of "$ac_prog", so it can be a program name with args.
2560 set dummy $ac_prog; ac_word=$2
2561 echo "$as_me:2561: checking for $ac_word" >&5
2562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2568 else
2569 ac_save_IFS=$IFS; IFS=$ac_path_separator
2570 ac_dummy="$PATH"
2571 for ac_dir in $ac_dummy; do
2572 IFS=$ac_save_IFS
2573 test -z "$ac_dir" && ac_dir=.
2574 $as_executable_p "$ac_dir/$ac_word" || continue
2575 ac_cv_prog_ac_ct_CC="$ac_prog"
2576 echo "$as_me:2576: found $ac_dir/$ac_word" >&5
2577 break
2578 done
2582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2583 if test -n "$ac_ct_CC"; then
2584 echo "$as_me:2584: result: $ac_ct_CC" >&5
2585 echo "${ECHO_T}$ac_ct_CC" >&6
2586 else
2587 echo "$as_me:2587: result: no" >&5
2588 echo "${ECHO_T}no" >&6
2591 test -n "$ac_ct_CC" && break
2592 done
2594 CC=$ac_ct_CC
2599 test -z "$CC" && { { echo "$as_me:2599: error: no acceptable cc found in \$PATH" >&5
2600 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2601 { (exit 1); exit 1; }; }
2603 # Provide some information about the compiler.
2604 echo "$as_me:2604:" \
2605 "checking for C compiler version" >&5
2606 ac_compiler=`set X $ac_compile; echo $2`
2607 { (eval echo "$as_me:2607: \"$ac_compiler --version </dev/null >&5\"") >&5
2608 (eval $ac_compiler --version </dev/null >&5) 2>&5
2609 ac_status=$?
2610 echo "$as_me:2610: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (eval echo "$as_me:2612: \"$ac_compiler -v </dev/null >&5\"") >&5
2613 (eval $ac_compiler -v </dev/null >&5) 2>&5
2614 ac_status=$?
2615 echo "$as_me:2615: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617 { (eval echo "$as_me:2617: \"$ac_compiler -V </dev/null >&5\"") >&5
2618 (eval $ac_compiler -V </dev/null >&5) 2>&5
2619 ac_status=$?
2620 echo "$as_me:2620: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line 2624 "configure"
2625 #include "confdefs.h"
2628 main ()
2632 return 0;
2634 _ACEOF
2635 ac_clean_files_save=$ac_clean_files
2636 ac_clean_files="$ac_clean_files a.out a.exe"
2637 # Try to create an executable without -o first, disregard a.out.
2638 # It will help us diagnose broken compilers, and finding out an intuition
2639 # of exeext.
2640 echo "$as_me:2640: checking for C compiler default output" >&5
2641 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2642 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2643 if { (eval echo "$as_me:2643: \"$ac_link_default\"") >&5
2644 (eval $ac_link_default) 2>&5
2645 ac_status=$?
2646 echo "$as_me:2646: \$? = $ac_status" >&5
2647 (exit $ac_status); }; then
2648 # Find the output, starting from the most likely. This scheme is
2649 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2650 # resort.
2651 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2652 ls a.out conftest 2>/dev/null;
2653 ls a.* conftest.* 2>/dev/null`; do
2654 case $ac_file in
2655 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2656 a.out ) # We found the default executable, but exeext='' is most
2657 # certainly right.
2658 break;;
2659 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2660 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2661 export ac_cv_exeext
2662 break;;
2663 * ) break;;
2664 esac
2665 done
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 { { echo "$as_me:2669: error: C compiler cannot create executables" >&5
2670 echo "$as_me: error: C compiler cannot create executables" >&2;}
2671 { (exit 77); exit 77; }; }
2674 ac_exeext=$ac_cv_exeext
2675 echo "$as_me:2675: result: $ac_file" >&5
2676 echo "${ECHO_T}$ac_file" >&6
2678 # Check the compiler produces executables we can run. If not, either
2679 # the compiler is broken, or we cross compile.
2680 echo "$as_me:2680: checking whether the C compiler works" >&5
2681 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2682 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2683 # If not cross compiling, check that we can run a simple program.
2684 if test "$cross_compiling" != yes; then
2685 if { ac_try='./$ac_file'
2686 { (eval echo "$as_me:2686: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:2689: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 cross_compiling=no
2692 else
2693 if test "$cross_compiling" = maybe; then
2694 cross_compiling=yes
2695 else
2696 { { echo "$as_me:2696: error: cannot run C compiled programs.
2697 If you meant to cross compile, use \`--host'." >&5
2698 echo "$as_me: error: cannot run C compiled programs.
2699 If you meant to cross compile, use \`--host'." >&2;}
2700 { (exit 1); exit 1; }; }
2704 echo "$as_me:2704: result: yes" >&5
2705 echo "${ECHO_T}yes" >&6
2707 rm -f a.out a.exe conftest$ac_cv_exeext
2708 ac_clean_files=$ac_clean_files_save
2709 # Check the compiler produces executables we can run. If not, either
2710 # the compiler is broken, or we cross compile.
2711 echo "$as_me:2711: checking whether we are cross compiling" >&5
2712 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2713 echo "$as_me:2713: result: $cross_compiling" >&5
2714 echo "${ECHO_T}$cross_compiling" >&6
2716 echo "$as_me:2716: checking for executable suffix" >&5
2717 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2718 if { (eval echo "$as_me:2718: \"$ac_link\"") >&5
2719 (eval $ac_link) 2>&5
2720 ac_status=$?
2721 echo "$as_me:2721: \$? = $ac_status" >&5
2722 (exit $ac_status); }; then
2723 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2724 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2725 # work properly (i.e., refer to `conftest.exe'), while it won't with
2726 # `rm'.
2727 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2728 case $ac_file in
2729 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2731 export ac_cv_exeext
2732 break;;
2733 * ) break;;
2734 esac
2735 done
2736 else
2737 { { echo "$as_me:2737: error: cannot compute EXEEXT: cannot compile and link" >&5
2738 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2739 { (exit 1); exit 1; }; }
2742 rm -f conftest$ac_cv_exeext
2743 echo "$as_me:2743: result: $ac_cv_exeext" >&5
2744 echo "${ECHO_T}$ac_cv_exeext" >&6
2746 rm -f conftest.$ac_ext
2747 EXEEXT=$ac_cv_exeext
2748 ac_exeext=$EXEEXT
2749 echo "$as_me:2749: checking for object suffix" >&5
2750 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2751 if test "${ac_cv_objext+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line 2755 "configure"
2756 #include "confdefs.h"
2759 main ()
2763 return 0;
2765 _ACEOF
2766 rm -f conftest.o conftest.obj
2767 if { (eval echo "$as_me:2767: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>&5
2769 ac_status=$?
2770 echo "$as_me:2770: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2776 break;;
2777 esac
2778 done
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 cat conftest.$ac_ext >&5
2782 { { echo "$as_me:2782: error: cannot compute OBJEXT: cannot compile" >&5
2783 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2784 { (exit 1); exit 1; }; }
2787 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2789 echo "$as_me:2789: result: $ac_cv_objext" >&5
2790 echo "${ECHO_T}$ac_cv_objext" >&6
2791 OBJEXT=$ac_cv_objext
2792 ac_objext=$OBJEXT
2793 echo "$as_me:2793: checking whether we are using the GNU C compiler" >&5
2794 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2795 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 #line 2799 "configure"
2800 #include "confdefs.h"
2803 main ()
2805 #ifndef __GNUC__
2806 choke me
2807 #endif
2810 return 0;
2812 _ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (eval echo "$as_me:2814: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>&5
2816 ac_status=$?
2817 echo "$as_me:2817: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:2820: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:2823: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_compiler_gnu=yes
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 cat conftest.$ac_ext >&5
2829 ac_compiler_gnu=no
2831 rm -f conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2835 echo "$as_me:2835: result: $ac_cv_c_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2837 GCC=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CFLAGS=${CFLAGS+set}
2839 ac_save_CFLAGS=$CFLAGS
2840 CFLAGS="-g"
2841 echo "$as_me:2841: checking whether $CC accepts -g" >&5
2842 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cc_g+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line 2847 "configure"
2848 #include "confdefs.h"
2851 main ()
2855 return 0;
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:2859: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>&5
2861 ac_status=$?
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -s conftest.$ac_objext'
2865 { (eval echo "$as_me:2865: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:2868: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 ac_cv_prog_cc_g=yes
2871 else
2872 echo "$as_me: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 ac_cv_prog_cc_g=no
2876 rm -f conftest.$ac_objext conftest.$ac_ext
2878 echo "$as_me:2878: result: $ac_cv_prog_cc_g" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2880 if test "$ac_test_CFLAGS" = set; then
2881 CFLAGS=$ac_save_CFLAGS
2882 elif test $ac_cv_prog_cc_g = yes; then
2883 if test "$GCC" = yes; then
2884 CFLAGS="-g -O2"
2885 else
2886 CFLAGS="-g"
2888 else
2889 if test "$GCC" = yes; then
2890 CFLAGS="-O2"
2891 else
2892 CFLAGS=
2895 # Some people use a C++ compiler to compile C. Since we use `exit',
2896 # in C++ we need to declare it. In case someone uses the same compiler
2897 # for both compiling C and C++ we need to have the C++ compiler decide
2898 # the declaration of exit, since it's the most demanding environment.
2899 cat >conftest.$ac_ext <<_ACEOF
2900 #ifndef __cplusplus
2901 choke me
2902 #endif
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:2905: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>&5
2907 ac_status=$?
2908 echo "$as_me:2908: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:2911: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:2914: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 for ac_declaration in \
2918 '#include <stdlib.h>' \
2919 'extern "C" void std::exit (int) throw (); using std::exit;' \
2920 'extern "C" void std::exit (int); using std::exit;' \
2921 'extern "C" void exit (int) throw ();' \
2922 'extern "C" void exit (int);' \
2923 'void exit (int);'
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line 2926 "configure"
2927 #include "confdefs.h"
2928 #include <stdlib.h>
2929 $ac_declaration
2931 main ()
2933 exit (42);
2935 return 0;
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (eval echo "$as_me:2939: \"$ac_compile\"") >&5
2940 (eval $ac_compile) 2>&5
2941 ac_status=$?
2942 echo "$as_me:2942: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:2945: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:2948: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2951 else
2952 echo "$as_me: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2954 continue
2956 rm -f conftest.$ac_objext conftest.$ac_ext
2957 cat >conftest.$ac_ext <<_ACEOF
2958 #line 2958 "configure"
2959 #include "confdefs.h"
2960 $ac_declaration
2962 main ()
2964 exit (42);
2966 return 0;
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (eval echo "$as_me:2970: \"$ac_compile\"") >&5
2971 (eval $ac_compile) 2>&5
2972 ac_status=$?
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:2976: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:2979: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 break
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 cat conftest.$ac_ext >&5
2986 rm -f conftest.$ac_objext conftest.$ac_ext
2987 done
2988 rm -f conftest*
2989 if test -n "$ac_declaration"; then
2990 echo '#ifdef __cplusplus' >>confdefs.h
2991 echo $ac_declaration >>confdefs.h
2992 echo '#endif' >>confdefs.h
2995 else
2996 echo "$as_me: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 rm -f conftest.$ac_objext conftest.$ac_ext
3000 ac_ext=c
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 # On Suns, sometimes $CPP names a directory.
3007 if test -n "$CPP" && test -d "$CPP"; then
3008 CPP=
3011 #### Some systems specify a CPP to use unless we are using GCC.
3012 #### Now that we know whether we are using GCC, we can decide whether
3013 #### to use that one.
3014 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3015 then
3016 CPP="$NON_GNU_CPP"
3019 #### Some systems specify a CC to use unless we are using GCC.
3020 #### Now that we know whether we are using GCC, we can decide whether
3021 #### to use that one.
3022 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3023 test x$cc_specified != xyes
3024 then
3025 CC="$NON_GNU_CC"
3028 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3029 then
3030 CC="$CC $GCC_TEST_OPTIONS"
3033 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3034 then
3035 CC="$CC $NON_GCC_TEST_OPTIONS"
3038 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
3039 then
3040 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
3043 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3044 then
3045 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3048 #### Some other nice autoconf tests. If you add a test here which
3049 #### should make an entry in src/config.h, don't forget to add an
3050 #### #undef clause to src/config.h.in for autoconf to modify.
3052 echo "$as_me:3052: checking whether ln -s works" >&5
3053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3054 LN_S=$as_ln_s
3055 if test "$LN_S" = "ln -s"; then
3056 echo "$as_me:3056: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3058 else
3059 echo "$as_me:3059: result: no, using $LN_S" >&5
3060 echo "${ECHO_T}no, using $LN_S" >&6
3063 ac_ext=c
3064 ac_cpp='$CPP $CPPFLAGS'
3065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068 echo "$as_me:3068: checking how to run the C preprocessor" >&5
3069 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3070 # On Suns, sometimes $CPP names a directory.
3071 if test -n "$CPP" && test -d "$CPP"; then
3072 CPP=
3074 if test -z "$CPP"; then
3075 if test "${ac_cv_prog_CPP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 # Double quotes because CPP needs to be expanded
3079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3081 ac_preproc_ok=false
3082 for ac_c_preproc_warn_flag in '' yes
3084 # Use a header file that comes with gcc, so configuring glibc
3085 # with a fresh cross-compiler works.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat >conftest.$ac_ext <<_ACEOF
3089 #line 3089 "configure"
3090 #include "confdefs.h"
3091 #include <assert.h>
3092 Syntax error
3093 _ACEOF
3094 if { (eval echo "$as_me:3094: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 egrep -v '^ *\+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 else
3105 ac_cpp_err=
3107 else
3108 ac_cpp_err=yes
3110 if test -z "$ac_cpp_err"; then
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3116 continue
3118 rm -f conftest.err conftest.$ac_ext
3120 # OK, works on sane cases. Now check whether non-existent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123 #line 3123 "configure"
3124 #include "confdefs.h"
3125 #include <ac_nonexistent.h>
3126 _ACEOF
3127 if { (eval echo "$as_me:3127: \"$ac_cpp conftest.$ac_ext\"") >&5
3128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3129 ac_status=$?
3130 egrep -v '^ *\+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:3133: \$? = $ac_status" >&5
3134 (exit $ac_status); } >/dev/null; then
3135 if test -s conftest.err; then
3136 ac_cpp_err=$ac_c_preproc_warn_flag
3137 else
3138 ac_cpp_err=
3140 else
3141 ac_cpp_err=yes
3143 if test -z "$ac_cpp_err"; then
3144 # Broken: success on invalid input.
3145 continue
3146 else
3147 echo "$as_me: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3149 # Passes both tests.
3150 ac_preproc_ok=:
3151 break
3153 rm -f conftest.err conftest.$ac_ext
3155 done
3156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3157 rm -f conftest.err conftest.$ac_ext
3158 if $ac_preproc_ok; then
3159 break
3162 done
3163 ac_cv_prog_CPP=$CPP
3166 CPP=$ac_cv_prog_CPP
3167 else
3168 ac_cv_prog_CPP=$CPP
3170 echo "$as_me:3170: result: $CPP" >&5
3171 echo "${ECHO_T}$CPP" >&6
3172 ac_preproc_ok=false
3173 for ac_c_preproc_warn_flag in '' yes
3175 # Use a header file that comes with gcc, so configuring glibc
3176 # with a fresh cross-compiler works.
3177 # On the NeXT, cc -E runs the code through the compiler's parser,
3178 # not just through cpp. "Syntax error" is here to catch this case.
3179 cat >conftest.$ac_ext <<_ACEOF
3180 #line 3180 "configure"
3181 #include "confdefs.h"
3182 #include <assert.h>
3183 Syntax error
3184 _ACEOF
3185 if { (eval echo "$as_me:3185: \"$ac_cpp conftest.$ac_ext\"") >&5
3186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3187 ac_status=$?
3188 egrep -v '^ *\+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:3191: \$? = $ac_status" >&5
3192 (exit $ac_status); } >/dev/null; then
3193 if test -s conftest.err; then
3194 ac_cpp_err=$ac_c_preproc_warn_flag
3195 else
3196 ac_cpp_err=
3198 else
3199 ac_cpp_err=yes
3201 if test -z "$ac_cpp_err"; then
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 # Broken: fails on valid input.
3207 continue
3209 rm -f conftest.err conftest.$ac_ext
3211 # OK, works on sane cases. Now check whether non-existent headers
3212 # can be detected and how.
3213 cat >conftest.$ac_ext <<_ACEOF
3214 #line 3214 "configure"
3215 #include "confdefs.h"
3216 #include <ac_nonexistent.h>
3217 _ACEOF
3218 if { (eval echo "$as_me:3218: \"$ac_cpp conftest.$ac_ext\"") >&5
3219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3220 ac_status=$?
3221 egrep -v '^ *\+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 echo "$as_me:3224: \$? = $ac_status" >&5
3225 (exit $ac_status); } >/dev/null; then
3226 if test -s conftest.err; then
3227 ac_cpp_err=$ac_c_preproc_warn_flag
3228 else
3229 ac_cpp_err=
3231 else
3232 ac_cpp_err=yes
3234 if test -z "$ac_cpp_err"; then
3235 # Broken: success on invalid input.
3236 continue
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3240 # Passes both tests.
3241 ac_preproc_ok=:
3242 break
3244 rm -f conftest.err conftest.$ac_ext
3246 done
3247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3248 rm -f conftest.err conftest.$ac_ext
3249 if $ac_preproc_ok; then
3251 else
3252 { { echo "$as_me:3252: error: C preprocessor \"$CPP\" fails sanity check" >&5
3253 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3254 { (exit 1); exit 1; }; }
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 # Find a good install program. We prefer a C program (faster),
3264 # so one script is as good as another. But avoid the broken or
3265 # incompatible versions:
3266 # SysV /etc/install, /usr/sbin/install
3267 # SunOS /usr/etc/install
3268 # IRIX /sbin/install
3269 # AIX /bin/install
3270 # AmigaOS /C/install, which installs bootblocks on floppy discs
3271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3274 # ./install, which can be erroneously created by make from ./install.sh.
3275 echo "$as_me:3275: checking for a BSD compatible install" >&5
3276 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3277 if test -z "$INSTALL"; then
3278 if test "${ac_cv_path_install+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 ac_save_IFS=$IFS; IFS=$ac_path_separator
3282 for ac_dir in $PATH; do
3283 IFS=$ac_save_IFS
3284 # Account for people who put trailing slashes in PATH elements.
3285 case $ac_dir/ in
3286 / | ./ | .// | /cC/* \
3287 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3288 | /usr/ucb/* ) ;;
3290 # OSF1 and SCO ODT 3.0 have their own names for install.
3291 # Don't use installbsd from OSF since it installs stuff as root
3292 # by default.
3293 for ac_prog in ginstall scoinst install; do
3294 if $as_executable_p "$ac_dir/$ac_prog"; then
3295 if test $ac_prog = install &&
3296 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3297 # AIX install. It has an incompatible calling convention.
3299 elif test $ac_prog = install &&
3300 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3301 # program-specific install script used by HP pwplus--don't use.
3303 else
3304 ac_cv_path_install="$ac_dir/$ac_prog -c"
3305 break 2
3308 done
3310 esac
3311 done
3314 if test "${ac_cv_path_install+set}" = set; then
3315 INSTALL=$ac_cv_path_install
3316 else
3317 # As a last resort, use the slow shell script. We don't cache a
3318 # path for INSTALL within a source directory, because that will
3319 # break other packages using the cache if that directory is
3320 # removed, or if the path is relative.
3321 INSTALL=$ac_install_sh
3324 echo "$as_me:3324: result: $INSTALL" >&5
3325 echo "${ECHO_T}$INSTALL" >&6
3327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3328 # It thinks the first close brace ends the variable substitution.
3329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3335 for ac_prog in 'bison -y' byacc
3337 # Extract the first word of "$ac_prog", so it can be a program name with args.
3338 set dummy $ac_prog; ac_word=$2
3339 echo "$as_me:3339: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_YACC+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 if test -n "$YACC"; then
3345 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3346 else
3347 ac_save_IFS=$IFS; IFS=$ac_path_separator
3348 ac_dummy="$PATH"
3349 for ac_dir in $ac_dummy; do
3350 IFS=$ac_save_IFS
3351 test -z "$ac_dir" && ac_dir=.
3352 $as_executable_p "$ac_dir/$ac_word" || continue
3353 ac_cv_prog_YACC="$ac_prog"
3354 echo "$as_me:3354: found $ac_dir/$ac_word" >&5
3355 break
3356 done
3360 YACC=$ac_cv_prog_YACC
3361 if test -n "$YACC"; then
3362 echo "$as_me:3362: result: $YACC" >&5
3363 echo "${ECHO_T}$YACC" >&6
3364 else
3365 echo "$as_me:3365: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3369 test -n "$YACC" && break
3370 done
3371 test -n "$YACC" || YACC="yacc"
3373 if test "x$RANLIB" = x; then
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3377 echo "$as_me:3377: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_RANLIB+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 if test -n "$RANLIB"; then
3383 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3384 else
3385 ac_save_IFS=$IFS; IFS=$ac_path_separator
3386 ac_dummy="$PATH"
3387 for ac_dir in $ac_dummy; do
3388 IFS=$ac_save_IFS
3389 test -z "$ac_dir" && ac_dir=.
3390 $as_executable_p "$ac_dir/$ac_word" || continue
3391 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3392 echo "$as_me:3392: found $ac_dir/$ac_word" >&5
3393 break
3394 done
3398 RANLIB=$ac_cv_prog_RANLIB
3399 if test -n "$RANLIB"; then
3400 echo "$as_me:3400: result: $RANLIB" >&5
3401 echo "${ECHO_T}$RANLIB" >&6
3402 else
3403 echo "$as_me:3403: result: no" >&5
3404 echo "${ECHO_T}no" >&6
3408 if test -z "$ac_cv_prog_RANLIB"; then
3409 ac_ct_RANLIB=$RANLIB
3410 # Extract the first word of "ranlib", so it can be a program name with args.
3411 set dummy ranlib; ac_word=$2
3412 echo "$as_me:3412: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 if test -n "$ac_ct_RANLIB"; then
3418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3419 else
3420 ac_save_IFS=$IFS; IFS=$ac_path_separator
3421 ac_dummy="$PATH"
3422 for ac_dir in $ac_dummy; do
3423 IFS=$ac_save_IFS
3424 test -z "$ac_dir" && ac_dir=.
3425 $as_executable_p "$ac_dir/$ac_word" || continue
3426 ac_cv_prog_ac_ct_RANLIB="ranlib"
3427 echo "$as_me:3427: found $ac_dir/$ac_word" >&5
3428 break
3429 done
3431 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3435 if test -n "$ac_ct_RANLIB"; then
3436 echo "$as_me:3436: result: $ac_ct_RANLIB" >&5
3437 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3438 else
3439 echo "$as_me:3439: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3443 RANLIB=$ac_ct_RANLIB
3444 else
3445 RANLIB="$ac_cv_prog_RANLIB"
3450 echo "$as_me:3450: checking for AIX" >&5
3451 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3452 cat >conftest.$ac_ext <<_ACEOF
3453 #line 3453 "configure"
3454 #include "confdefs.h"
3455 #ifdef _AIX
3457 #endif
3459 _ACEOF
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "yes" >/dev/null 2>&1; then
3462 echo "$as_me:3462: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 cat >>confdefs.h <<\EOF
3465 #define _ALL_SOURCE 1
3468 else
3469 echo "$as_me:3469: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3472 rm -f conftest*
3474 #### Extract some information from the operating system and machine files.
3476 { echo "$as_me:3476: checking the machine- and system-dependent files to find out
3477 - which libraries the lib-src programs will want, and
3478 - whether the GNU malloc routines are usable..." >&5
3479 echo "$as_me: checking the machine- and system-dependent files to find out
3480 - which libraries the lib-src programs will want, and
3481 - whether the GNU malloc routines are usable..." >&6;}
3483 ### First figure out CFLAGS (which we use for running the compiler here)
3484 ### and REAL_CFLAGS (which we use for real compilation).
3485 ### The two are the same except on a few systems, where they are made
3486 ### different to work around various lossages. For example,
3487 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3488 ### as implying static linking.
3490 ### If the CFLAGS env var is specified, we use that value
3491 ### instead of the default.
3493 ### It's not important that this name contain the PID; you can't run
3494 ### two configures in the same directory and have anything work
3495 ### anyway.
3496 tempcname="conftest.c"
3498 echo '
3499 #include "'${srcdir}'/src/'${opsysfile}'"
3500 #include "'${srcdir}'/src/'${machfile}'"
3501 #ifndef LIBS_MACHINE
3502 #define LIBS_MACHINE
3503 #endif
3504 #ifndef LIBS_SYSTEM
3505 #define LIBS_SYSTEM
3506 #endif
3507 #ifndef C_SWITCH_SYSTEM
3508 #define C_SWITCH_SYSTEM
3509 #endif
3510 #ifndef C_SWITCH_MACHINE
3511 #define C_SWITCH_MACHINE
3512 #endif
3513 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3514 configure___ c_switch_system=C_SWITCH_SYSTEM
3515 configure___ c_switch_machine=C_SWITCH_MACHINE
3517 #ifndef LIB_X11_LIB
3518 #define LIB_X11_LIB -lX11
3519 #endif
3521 #ifndef LIBX11_MACHINE
3522 #define LIBX11_MACHINE
3523 #endif
3525 #ifndef LIBX11_SYSTEM
3526 #define LIBX11_SYSTEM
3527 #endif
3528 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3530 #ifdef UNEXEC
3531 configure___ unexec=UNEXEC
3532 #else
3533 configure___ unexec=unexec.o
3534 #endif
3536 #ifdef SYSTEM_MALLOC
3537 configure___ system_malloc=yes
3538 #else
3539 configure___ system_malloc=no
3540 #endif
3542 #ifdef USE_MMAP_FOR_BUFFERS
3543 configure___ use_mmap_for_buffers=yes
3544 #else
3545 configure___ use_mmap_for_buffers=no
3546 #endif
3548 #ifndef C_DEBUG_SWITCH
3549 #define C_DEBUG_SWITCH -g
3550 #endif
3552 #ifndef C_OPTIMIZE_SWITCH
3553 #ifdef __GNUC__
3554 #define C_OPTIMIZE_SWITCH -O2
3555 #else
3556 #define C_OPTIMIZE_SWITCH -O
3557 #endif
3558 #endif
3560 #ifndef LD_SWITCH_MACHINE
3561 #define LD_SWITCH_MACHINE
3562 #endif
3564 #ifndef LD_SWITCH_SYSTEM
3565 #define LD_SWITCH_SYSTEM
3566 #endif
3568 #ifndef LD_SWITCH_X_SITE_AUX
3569 #define LD_SWITCH_X_SITE_AUX
3570 #endif
3572 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3573 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3575 #ifdef THIS_IS_CONFIGURE
3577 /* Get the CFLAGS for tests in configure. */
3578 #ifdef __GNUC__
3579 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3580 #else
3581 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3582 #endif
3584 #else /* not THIS_IS_CONFIGURE */
3586 /* Get the CFLAGS for real compilation. */
3587 #ifdef __GNUC__
3588 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3589 #else
3590 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3591 #endif
3593 #endif /* not THIS_IS_CONFIGURE */
3594 ' > ${tempcname}
3596 # The value of CPP is a quoted variable reference, so we need to do this
3597 # to get its actual value...
3598 CPP=`eval "echo $CPP"`
3599 eval `${CPP} -Isrc ${tempcname} \
3600 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3601 if test "x$SPECIFIED_CFLAGS" = x; then
3602 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3603 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3604 else
3605 REAL_CFLAGS="$CFLAGS"
3607 rm ${tempcname}
3609 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3611 ### Make sure subsequent tests use flags consistent with the build flags.
3613 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3614 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3615 else
3616 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3619 # Check whether --enable-largefile or --disable-largefile was given.
3620 if test "${enable_largefile+set}" = set; then
3621 enableval="$enable_largefile"
3624 if test "$enable_largefile" != no; then
3626 echo "$as_me:3626: checking for special C compiler options needed for large files" >&5
3627 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3628 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 ac_cv_sys_largefile_CC=no
3632 if test "$GCC" != yes; then
3633 ac_save_CC=$CC
3634 while :; do
3635 # IRIX 6.2 and later do not support large files by default,
3636 # so use the C compiler's -n32 option if that helps.
3637 cat >conftest.$ac_ext <<_ACEOF
3638 #line 3638 "configure"
3639 #include "confdefs.h"
3640 #include <sys/types.h>
3641 /* Check that off_t can represent 2**63 - 1 correctly.
3642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3643 since some C++ compilers masquerading as C compilers
3644 incorrectly reject 9223372036854775807. */
3645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3647 && LARGE_OFF_T % 2147483647 == 1)
3648 ? 1 : -1];
3650 main ()
3654 return 0;
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:3658: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>&5
3660 ac_status=$?
3661 echo "$as_me:3661: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:3664: \"$ac_try\"") >&5
3665 (eval $ac_try) 2>&5
3666 ac_status=$?
3667 echo "$as_me:3667: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 break
3670 else
3671 echo "$as_me: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3674 rm -f conftest.$ac_objext
3675 CC="$CC -n32"
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:3677: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>&5
3679 ac_status=$?
3680 echo "$as_me:3680: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:3683: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:3686: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_sys_largefile_CC=' -n32'; break
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 rm -f conftest.$ac_objext
3694 break
3695 done
3696 CC=$ac_save_CC
3697 rm -f conftest.$ac_ext
3700 echo "$as_me:3700: result: $ac_cv_sys_largefile_CC" >&5
3701 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3702 if test "$ac_cv_sys_largefile_CC" != no; then
3703 CC=$CC$ac_cv_sys_largefile_CC
3706 echo "$as_me:3706: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3707 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3708 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 while :; do
3712 ac_cv_sys_file_offset_bits=no
3713 cat >conftest.$ac_ext <<_ACEOF
3714 #line 3714 "configure"
3715 #include "confdefs.h"
3716 #include <sys/types.h>
3717 /* Check that off_t can represent 2**63 - 1 correctly.
3718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3719 since some C++ compilers masquerading as C compilers
3720 incorrectly reject 9223372036854775807. */
3721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3723 && LARGE_OFF_T % 2147483647 == 1)
3724 ? 1 : -1];
3726 main ()
3730 return 0;
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:3734: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>&5
3736 ac_status=$?
3737 echo "$as_me:3737: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 break
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 cat conftest.$ac_ext >&5
3750 rm -f conftest.$ac_objext conftest.$ac_ext
3751 cat >conftest.$ac_ext <<_ACEOF
3752 #line 3752 "configure"
3753 #include "confdefs.h"
3754 #define _FILE_OFFSET_BITS 64
3755 #include <sys/types.h>
3756 /* Check that off_t can represent 2**63 - 1 correctly.
3757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3758 since some C++ compilers masquerading as C compilers
3759 incorrectly reject 9223372036854775807. */
3760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3762 && LARGE_OFF_T % 2147483647 == 1)
3763 ? 1 : -1];
3765 main ()
3769 return 0;
3771 _ACEOF
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:3773: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>&5
3775 ac_status=$?
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit $ac_status); } &&
3778 { ac_try='test -s conftest.$ac_objext'
3779 { (eval echo "$as_me:3779: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:3782: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_sys_file_offset_bits=64; break
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 rm -f conftest.$ac_objext conftest.$ac_ext
3790 break
3791 done
3793 echo "$as_me:3793: result: $ac_cv_sys_file_offset_bits" >&5
3794 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3795 if test "$ac_cv_sys_file_offset_bits" != no; then
3797 cat >>confdefs.h <<EOF
3798 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3802 rm -f conftest*
3803 echo "$as_me:3803: checking for _LARGE_FILES value needed for large files" >&5
3804 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3805 if test "${ac_cv_sys_large_files+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 while :; do
3809 ac_cv_sys_large_files=no
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line 3811 "configure"
3812 #include "confdefs.h"
3813 #include <sys/types.h>
3814 /* Check that off_t can represent 2**63 - 1 correctly.
3815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3816 since some C++ compilers masquerading as C compilers
3817 incorrectly reject 9223372036854775807. */
3818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3820 && LARGE_OFF_T % 2147483647 == 1)
3821 ? 1 : -1];
3823 main ()
3827 return 0;
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3833 ac_status=$?
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 break
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 rm -f conftest.$ac_objext conftest.$ac_ext
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3851 #define _LARGE_FILES 1
3852 #include <sys/types.h>
3853 /* Check that off_t can represent 2**63 - 1 correctly.
3854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3855 since some C++ compilers masquerading as C compilers
3856 incorrectly reject 9223372036854775807. */
3857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3859 && LARGE_OFF_T % 2147483647 == 1)
3860 ? 1 : -1];
3862 main ()
3866 return 0;
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (eval echo "$as_me:3870: \"$ac_compile\"") >&5
3871 (eval $ac_compile) 2>&5
3872 ac_status=$?
3873 echo "$as_me:3873: \$? = $ac_status" >&5
3874 (exit $ac_status); } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:3876: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:3879: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_sys_large_files=1; break
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3886 rm -f conftest.$ac_objext conftest.$ac_ext
3887 break
3888 done
3890 echo "$as_me:3890: result: $ac_cv_sys_large_files" >&5
3891 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3892 if test "$ac_cv_sys_large_files" != no; then
3894 cat >>confdefs.h <<EOF
3895 #define _LARGE_FILES $ac_cv_sys_large_files
3899 rm -f conftest*
3902 if test "${with_sound}" != "no"; then
3903 # Sound support for GNU/Linux and the free BSDs.
3905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
3907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3908 echo "$as_me:3908: checking for $ac_header" >&5
3909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 cat >conftest.$ac_ext <<_ACEOF
3914 #line 3914 "configure"
3915 #include "confdefs.h"
3916 #include <$ac_header>
3917 _ACEOF
3918 if { (eval echo "$as_me:3918: \"$ac_cpp conftest.$ac_ext\"") >&5
3919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3920 ac_status=$?
3921 egrep -v '^ *\+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:3924: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null; then
3926 if test -s conftest.err; then
3927 ac_cpp_err=$ac_c_preproc_warn_flag
3928 else
3929 ac_cpp_err=
3931 else
3932 ac_cpp_err=yes
3934 if test -z "$ac_cpp_err"; then
3935 eval "$as_ac_Header=yes"
3936 else
3937 echo "$as_me: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3939 eval "$as_ac_Header=no"
3941 rm -f conftest.err conftest.$ac_ext
3943 echo "$as_me:3943: result: `eval echo '${'$as_ac_Header'}'`" >&5
3944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3946 cat >>confdefs.h <<EOF
3947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3951 done
3953 # Emulation library used on NetBSD.
3954 echo "$as_me:3954: checking for _oss_ioctl in -lossaudio" >&5
3955 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
3956 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959 ac_check_lib_save_LIBS=$LIBS
3960 LIBS="-lossaudio $LIBS"
3961 cat >conftest.$ac_ext <<_ACEOF
3962 #line 3962 "configure"
3963 #include "confdefs.h"
3965 /* Override any gcc2 internal prototype to avoid an error. */
3966 #ifdef __cplusplus
3967 extern "C"
3968 #endif
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3971 char _oss_ioctl ();
3973 main ()
3975 _oss_ioctl ();
3977 return 0;
3979 _ACEOF
3980 rm -f conftest.$ac_objext conftest$ac_exeext
3981 if { (eval echo "$as_me:3981: \"$ac_link\"") >&5
3982 (eval $ac_link) 2>&5
3983 ac_status=$?
3984 echo "$as_me:3984: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -s conftest$ac_exeext'
3987 { (eval echo "$as_me:3987: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:3990: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_cv_lib_ossaudio__oss_ioctl=yes
3993 else
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 ac_cv_lib_ossaudio__oss_ioctl=no
3998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3999 LIBS=$ac_check_lib_save_LIBS
4001 echo "$as_me:4001: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4002 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4003 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4004 LIBSOUND=-lossaudio
4005 else
4006 LIBSOUND=
4011 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
4012 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
4013 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 echo "$as_me:4016: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 cat >conftest.$ac_ext <<_ACEOF
4022 #line 4022 "configure"
4023 #include "confdefs.h"
4024 #include <$ac_header>
4025 _ACEOF
4026 if { (eval echo "$as_me:4026: \"$ac_cpp conftest.$ac_ext\"") >&5
4027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4028 ac_status=$?
4029 egrep -v '^ *\+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:4032: \$? = $ac_status" >&5
4033 (exit $ac_status); } >/dev/null; then
4034 if test -s conftest.err; then
4035 ac_cpp_err=$ac_c_preproc_warn_flag
4036 else
4037 ac_cpp_err=
4039 else
4040 ac_cpp_err=yes
4042 if test -z "$ac_cpp_err"; then
4043 eval "$as_ac_Header=yes"
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4047 eval "$as_ac_Header=no"
4049 rm -f conftest.err conftest.$ac_ext
4051 echo "$as_me:4051: result: `eval echo '${'$as_ac_Header'}'`" >&5
4052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4054 cat >>confdefs.h <<EOF
4055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4059 done
4061 echo "$as_me:4061: checking for ANSI C header files" >&5
4062 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4063 if test "${ac_cv_header_stdc+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 cat >conftest.$ac_ext <<_ACEOF
4067 #line 4067 "configure"
4068 #include "confdefs.h"
4069 #include <stdlib.h>
4070 #include <stdarg.h>
4071 #include <string.h>
4072 #include <float.h>
4074 _ACEOF
4075 if { (eval echo "$as_me:4075: \"$ac_cpp conftest.$ac_ext\"") >&5
4076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4077 ac_status=$?
4078 egrep -v '^ *\+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:4081: \$? = $ac_status" >&5
4082 (exit $ac_status); } >/dev/null; then
4083 if test -s conftest.err; then
4084 ac_cpp_err=$ac_c_preproc_warn_flag
4085 else
4086 ac_cpp_err=
4088 else
4089 ac_cpp_err=yes
4091 if test -z "$ac_cpp_err"; then
4092 ac_cv_header_stdc=yes
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 ac_cv_header_stdc=no
4098 rm -f conftest.err conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4105 #include <string.h>
4107 _ACEOF
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 egrep "memchr" >/dev/null 2>&1; then
4111 else
4112 ac_cv_header_stdc=no
4114 rm -f conftest*
4118 if test $ac_cv_header_stdc = yes; then
4119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4120 cat >conftest.$ac_ext <<_ACEOF
4121 #line 4121 "configure"
4122 #include "confdefs.h"
4123 #include <stdlib.h>
4125 _ACEOF
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127 egrep "free" >/dev/null 2>&1; then
4129 else
4130 ac_cv_header_stdc=no
4132 rm -f conftest*
4136 if test $ac_cv_header_stdc = yes; then
4137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4138 if test "$cross_compiling" = yes; then
4140 else
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line 4142 "configure"
4143 #include "confdefs.h"
4144 #include <ctype.h>
4145 #if ((' ' & 0x0FF) == 0x020)
4146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4148 #else
4149 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4153 #endif
4155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4157 main ()
4159 int i;
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4163 exit(2);
4164 exit (0);
4166 _ACEOF
4167 rm -f conftest$ac_exeext
4168 if { (eval echo "$as_me:4168: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>&5
4170 ac_status=$?
4171 echo "$as_me:4171: \$? = $ac_status" >&5
4172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4173 { (eval echo "$as_me:4173: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:4176: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4179 else
4180 echo "$as_me: program exited with status $ac_status" >&5
4181 echo "$as_me: failed program was:" >&5
4182 cat conftest.$ac_ext >&5
4183 ac_cv_header_stdc=no
4185 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4189 echo "$as_me:4189: result: $ac_cv_header_stdc" >&5
4190 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4191 if test $ac_cv_header_stdc = yes; then
4193 cat >>confdefs.h <<\EOF
4194 #define STDC_HEADERS 1
4199 echo "$as_me:4199: checking whether time.h and sys/time.h may both be included" >&5
4200 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4201 if test "${ac_cv_header_time+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 cat >conftest.$ac_ext <<_ACEOF
4205 #line 4205 "configure"
4206 #include "confdefs.h"
4207 #include <sys/types.h>
4208 #include <sys/time.h>
4209 #include <time.h>
4212 main ()
4214 if ((struct tm *) 0)
4215 return 0;
4217 return 0;
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (eval echo "$as_me:4221: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4223 ac_status=$?
4224 echo "$as_me:4224: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (eval echo "$as_me:4227: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:4230: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 ac_cv_header_time=yes
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4236 ac_cv_header_time=no
4238 rm -f conftest.$ac_objext conftest.$ac_ext
4240 echo "$as_me:4240: result: $ac_cv_header_time" >&5
4241 echo "${ECHO_T}$ac_cv_header_time" >&6
4242 if test $ac_cv_header_time = yes; then
4244 cat >>confdefs.h <<\EOF
4245 #define TIME_WITH_SYS_TIME 1
4250 echo "$as_me:4250: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4251 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4252 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 cat >conftest.$ac_ext <<_ACEOF
4256 #line 4256 "configure"
4257 #include "confdefs.h"
4258 #include <sys/types.h>
4259 #include <signal.h>
4260 /* NetBSD declares sys_siglist in unistd.h. */
4261 #if HAVE_UNISTD_H
4262 # include <unistd.h>
4263 #endif
4266 main ()
4268 char *msg = *(sys_siglist + 1);
4270 return 0;
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (eval echo "$as_me:4274: \"$ac_compile\"") >&5
4275 (eval $ac_compile) 2>&5
4276 ac_status=$?
4277 echo "$as_me:4277: \$? = $ac_status" >&5
4278 (exit $ac_status); } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (eval echo "$as_me:4280: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:4283: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_decl_sys_siglist=yes
4286 else
4287 echo "$as_me: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4289 ac_cv_decl_sys_siglist=no
4291 rm -f conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me:4293: result: $ac_cv_decl_sys_siglist" >&5
4294 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
4295 if test $ac_cv_decl_sys_siglist = yes; then
4297 cat >>confdefs.h <<\EOF
4298 #define SYS_SIGLIST_DECLARED 1
4303 echo "$as_me:4303: checking for sys/wait.h that is POSIX.1 compatible" >&5
4304 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4305 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 cat >conftest.$ac_ext <<_ACEOF
4309 #line 4309 "configure"
4310 #include "confdefs.h"
4311 #include <sys/types.h>
4312 #include <sys/wait.h>
4313 #ifndef WEXITSTATUS
4314 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4315 #endif
4316 #ifndef WIFEXITED
4317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4318 #endif
4321 main ()
4323 int s;
4324 wait (&s);
4325 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4327 return 0;
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:4331: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4333 ac_status=$?
4334 echo "$as_me:4334: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:4337: \"$ac_try\"") >&5
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
4340 echo "$as_me:4340: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 ac_cv_header_sys_wait_h=yes
4343 else
4344 echo "$as_me: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4346 ac_cv_header_sys_wait_h=no
4348 rm -f conftest.$ac_objext conftest.$ac_ext
4350 echo "$as_me:4350: result: $ac_cv_header_sys_wait_h" >&5
4351 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4352 if test $ac_cv_header_sys_wait_h = yes; then
4354 cat >>confdefs.h <<\EOF
4355 #define HAVE_SYS_WAIT_H 1
4360 echo "$as_me:4360: checking for struct utimbuf" >&5
4361 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
4362 if test "${emacs_cv_struct_utimbuf+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 cat >conftest.$ac_ext <<_ACEOF
4366 #line 4366 "configure"
4367 #include "confdefs.h"
4368 #ifdef TIME_WITH_SYS_TIME
4369 #include <sys/time.h>
4370 #include <time.h>
4371 #else
4372 #ifdef HAVE_SYS_TIME_H
4373 #include <sys/time.h>
4374 #else
4375 #include <time.h>
4376 #endif
4377 #endif
4378 #ifdef HAVE_UTIME_H
4379 #include <utime.h>
4380 #endif
4382 main ()
4384 static struct utimbuf x; x.actime = x.modtime;
4386 return 0;
4388 _ACEOF
4389 rm -f conftest.$ac_objext
4390 if { (eval echo "$as_me:4390: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>&5
4392 ac_status=$?
4393 echo "$as_me:4393: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -s conftest.$ac_objext'
4396 { (eval echo "$as_me:4396: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:4399: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 emacs_cv_struct_utimbuf=yes
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4405 emacs_cv_struct_utimbuf=no
4407 rm -f conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:4409: result: $emacs_cv_struct_utimbuf" >&5
4410 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
4411 if test $emacs_cv_struct_utimbuf = yes; then
4413 cat >>confdefs.h <<\EOF
4414 #define HAVE_STRUCT_UTIMBUF 1
4419 echo "$as_me:4419: checking return type of signal handlers" >&5
4420 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4421 if test "${ac_cv_type_signal+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 cat >conftest.$ac_ext <<_ACEOF
4425 #line 4425 "configure"
4426 #include "confdefs.h"
4427 #include <sys/types.h>
4428 #include <signal.h>
4429 #ifdef signal
4430 # undef signal
4431 #endif
4432 #ifdef __cplusplus
4433 extern "C" void (*signal (int, void (*)(int)))(int);
4434 #else
4435 void (*signal ()) ();
4436 #endif
4439 main ()
4441 int i;
4443 return 0;
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:4447: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>&5
4449 ac_status=$?
4450 echo "$as_me:4450: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:4453: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:4456: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_cv_type_signal=void
4459 else
4460 echo "$as_me: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4462 ac_cv_type_signal=int
4464 rm -f conftest.$ac_objext conftest.$ac_ext
4466 echo "$as_me:4466: result: $ac_cv_type_signal" >&5
4467 echo "${ECHO_T}$ac_cv_type_signal" >&6
4469 cat >>confdefs.h <<EOF
4470 #define RETSIGTYPE $ac_cv_type_signal
4473 echo "$as_me:4473: checking for speed_t" >&5
4474 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
4475 if test "${emacs_cv_speed_t+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 else
4478 cat >conftest.$ac_ext <<_ACEOF
4479 #line 4479 "configure"
4480 #include "confdefs.h"
4481 #include <termios.h>
4483 main ()
4485 speed_t x = 1;
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:4491: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>&5
4493 ac_status=$?
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:4497: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:4500: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 emacs_cv_speed_t=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4506 emacs_cv_speed_t=no
4508 rm -f conftest.$ac_objext conftest.$ac_ext
4510 echo "$as_me:4510: result: $emacs_cv_speed_t" >&5
4511 echo "${ECHO_T}$emacs_cv_speed_t" >&6
4512 if test $emacs_cv_speed_t = yes; then
4514 cat >>confdefs.h <<\EOF
4515 #define HAVE_SPEED_T 1
4520 echo "$as_me:4520: checking for struct timeval" >&5
4521 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
4522 if test "${emacs_cv_struct_timeval+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 cat >conftest.$ac_ext <<_ACEOF
4526 #line 4526 "configure"
4527 #include "confdefs.h"
4528 #ifdef TIME_WITH_SYS_TIME
4529 #include <sys/time.h>
4530 #include <time.h>
4531 #else
4532 #ifdef HAVE_SYS_TIME_H
4533 #include <sys/time.h>
4534 #else
4535 #include <time.h>
4536 #endif
4537 #endif
4539 main ()
4541 static struct timeval x; x.tv_sec = x.tv_usec;
4543 return 0;
4545 _ACEOF
4546 rm -f conftest.$ac_objext
4547 if { (eval echo "$as_me:4547: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4549 ac_status=$?
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:4553: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:4556: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 emacs_cv_struct_timeval=yes
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 emacs_cv_struct_timeval=no
4564 rm -f conftest.$ac_objext conftest.$ac_ext
4566 echo "$as_me:4566: result: $emacs_cv_struct_timeval" >&5
4567 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
4568 HAVE_TIMEVAL=$emacs_cv_struct_timeval
4569 if test $emacs_cv_struct_timeval = yes; then
4571 cat >>confdefs.h <<\EOF
4572 #define HAVE_TIMEVAL 1
4577 echo "$as_me:4577: checking for struct exception" >&5
4578 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
4579 if test "${emacs_cv_struct_exception+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582 cat >conftest.$ac_ext <<_ACEOF
4583 #line 4583 "configure"
4584 #include "confdefs.h"
4585 #include <math.h>
4587 main ()
4589 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
4591 return 0;
4593 _ACEOF
4594 rm -f conftest.$ac_objext
4595 if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>&5
4597 ac_status=$?
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:4601: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 emacs_cv_struct_exception=yes
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4610 emacs_cv_struct_exception=no
4612 rm -f conftest.$ac_objext conftest.$ac_ext
4614 echo "$as_me:4614: result: $emacs_cv_struct_exception" >&5
4615 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
4616 HAVE_EXCEPTION=$emacs_cv_struct_exception
4617 if test $emacs_cv_struct_exception != yes; then
4619 cat >>confdefs.h <<\EOF
4620 #define NO_MATHERR 1
4625 echo "$as_me:4625: checking whether struct tm is in sys/time.h or time.h" >&5
4626 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4627 if test "${ac_cv_struct_tm+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line 4631 "configure"
4632 #include "confdefs.h"
4633 #include <sys/types.h>
4634 #include <time.h>
4637 main ()
4639 struct tm *tp; tp->tm_sec;
4641 return 0;
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (eval echo "$as_me:4645: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>&5
4647 ac_status=$?
4648 echo "$as_me:4648: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:4651: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:4654: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_struct_tm=time.h
4657 else
4658 echo "$as_me: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4660 ac_cv_struct_tm=sys/time.h
4662 rm -f conftest.$ac_objext conftest.$ac_ext
4664 echo "$as_me:4664: result: $ac_cv_struct_tm" >&5
4665 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4666 if test $ac_cv_struct_tm = sys/time.h; then
4668 cat >>confdefs.h <<\EOF
4669 #define TM_IN_SYS_TIME 1
4674 echo "$as_me:4674: checking for struct tm.tm_zone" >&5
4675 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4676 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679 cat >conftest.$ac_ext <<_ACEOF
4680 #line 4680 "configure"
4681 #include "confdefs.h"
4682 #include <sys/types.h>
4683 #include <$ac_cv_struct_tm>
4686 main ()
4688 static struct tm ac_aggr;
4689 if (ac_aggr.tm_zone)
4690 return 0;
4692 return 0;
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:4696: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>&5
4698 ac_status=$?
4699 echo "$as_me:4699: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (eval echo "$as_me:4702: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:4705: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 ac_cv_member_struct_tm_tm_zone=yes
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 cat conftest.$ac_ext >&5
4711 ac_cv_member_struct_tm_tm_zone=no
4713 rm -f conftest.$ac_objext conftest.$ac_ext
4715 echo "$as_me:4715: result: $ac_cv_member_struct_tm_tm_zone" >&5
4716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4717 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4719 cat >>confdefs.h <<EOF
4720 #define HAVE_STRUCT_TM_TM_ZONE 1
4725 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4727 cat >>confdefs.h <<\EOF
4728 #define HAVE_TM_ZONE 1
4731 else
4732 echo "$as_me:4732: checking for tzname" >&5
4733 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4734 if test "${ac_cv_var_tzname+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737 cat >conftest.$ac_ext <<_ACEOF
4738 #line 4738 "configure"
4739 #include "confdefs.h"
4740 #include <time.h>
4741 #ifndef tzname /* For SGI. */
4742 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4743 #endif
4746 main ()
4748 atoi(*tzname);
4750 return 0;
4752 _ACEOF
4753 rm -f conftest.$ac_objext conftest$ac_exeext
4754 if { (eval echo "$as_me:4754: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4756 ac_status=$?
4757 echo "$as_me:4757: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -s conftest$ac_exeext'
4760 { (eval echo "$as_me:4760: \"$ac_try\"") >&5
4761 (eval $ac_try) 2>&5
4762 ac_status=$?
4763 echo "$as_me:4763: \$? = $ac_status" >&5
4764 (exit $ac_status); }; }; then
4765 ac_cv_var_tzname=yes
4766 else
4767 echo "$as_me: failed program was:" >&5
4768 cat conftest.$ac_ext >&5
4769 ac_cv_var_tzname=no
4771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4773 echo "$as_me:4773: result: $ac_cv_var_tzname" >&5
4774 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4775 if test $ac_cv_var_tzname = yes; then
4777 cat >>confdefs.h <<\EOF
4778 #define HAVE_TZNAME 1
4784 echo "$as_me:4784: checking for struct tm.tm_gmtoff" >&5
4785 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
4786 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 cat >conftest.$ac_ext <<_ACEOF
4790 #line 4790 "configure"
4791 #include "confdefs.h"
4792 #include <time.h>
4795 main ()
4797 static struct tm ac_aggr;
4798 if (ac_aggr.tm_gmtoff)
4799 return 0;
4801 return 0;
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (eval echo "$as_me:4805: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>&5
4807 ac_status=$?
4808 echo "$as_me:4808: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
4810 { ac_try='test -s conftest.$ac_objext'
4811 { (eval echo "$as_me:4811: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:4814: \$? = $ac_status" >&5
4815 (exit $ac_status); }; }; then
4816 ac_cv_member_struct_tm_tm_gmtoff=yes
4817 else
4818 echo "$as_me: failed program was:" >&5
4819 cat conftest.$ac_ext >&5
4820 ac_cv_member_struct_tm_tm_gmtoff=no
4822 rm -f conftest.$ac_objext conftest.$ac_ext
4824 echo "$as_me:4824: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
4825 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
4826 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
4828 cat >>confdefs.h <<\EOF
4829 #define HAVE_TM_GMTOFF 1
4834 echo "$as_me:4834: checking for $CC option to accept ANSI C" >&5
4835 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4836 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 ac_cv_prog_cc_stdc=no
4840 ac_save_CC=$CC
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line 4842 "configure"
4843 #include "confdefs.h"
4844 #include <stdarg.h>
4845 #include <stdio.h>
4846 #include <sys/types.h>
4847 #include <sys/stat.h>
4848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4849 struct buf { int x; };
4850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4851 static char *e (p, i)
4852 char **p;
4853 int i;
4855 return p[i];
4857 static char *f (char * (*g) (char **, int), char **p, ...)
4859 char *s;
4860 va_list v;
4861 va_start (v,p);
4862 s = g (p, va_arg (v,int));
4863 va_end (v);
4864 return s;
4866 int test (int i, double x);
4867 struct s1 {int (*f) (int a);};
4868 struct s2 {int (*f) (double a);};
4869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4870 int argc;
4871 char **argv;
4873 main ()
4875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4877 return 0;
4879 _ACEOF
4880 # Don't try gcc -ansi; that turns off useful extensions and
4881 # breaks some systems' header files.
4882 # AIX -qlanglvl=ansi
4883 # Ultrix and OSF/1 -std1
4884 # HP-UX 10.20 and later -Ae
4885 # HP-UX older versions -Aa -D_HPUX_SOURCE
4886 # SVR4 -Xc -D__EXTENSIONS__
4887 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889 CC="$ac_save_CC $ac_arg"
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:4891: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>&5
4893 ac_status=$?
4894 echo "$as_me:4894: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -s conftest.$ac_objext'
4897 { (eval echo "$as_me:4897: \"$ac_try\"") >&5
4898 (eval $ac_try) 2>&5
4899 ac_status=$?
4900 echo "$as_me:4900: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4902 ac_cv_prog_cc_stdc=$ac_arg
4903 break
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4908 rm -f conftest.$ac_objext
4909 done
4910 rm -f conftest.$ac_ext conftest.$ac_objext
4911 CC=$ac_save_CC
4915 case "x$ac_cv_prog_cc_stdc" in
4916 x|xno)
4917 echo "$as_me:4917: result: none needed" >&5
4918 echo "${ECHO_T}none needed" >&6 ;;
4920 echo "$as_me:4920: result: $ac_cv_prog_cc_stdc" >&5
4921 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4922 CC="$CC $ac_cv_prog_cc_stdc" ;;
4923 esac
4925 echo "$as_me:4925: checking for function prototypes" >&5
4926 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4927 if test "$ac_cv_prog_cc_stdc" != no; then
4928 echo "$as_me:4928: result: yes" >&5
4929 echo "${ECHO_T}yes" >&6
4931 cat >>confdefs.h <<\EOF
4932 #define PROTOTYPES 1
4935 else
4936 echo "$as_me:4936: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4940 echo "$as_me:4940: checking for working volatile" >&5
4941 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4942 if test "${ac_cv_c_volatile+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line 4946 "configure"
4947 #include "confdefs.h"
4950 main ()
4953 volatile int x;
4954 int * volatile y;
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:4960: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>&5
4962 ac_status=$?
4963 echo "$as_me:4963: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:4966: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_c_volatile=yes
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 ac_cv_c_volatile=no
4977 rm -f conftest.$ac_objext conftest.$ac_ext
4979 echo "$as_me:4979: result: $ac_cv_c_volatile" >&5
4980 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4981 if test $ac_cv_c_volatile = no; then
4983 cat >>confdefs.h <<\EOF
4984 #define volatile
4989 echo "$as_me:4989: checking for an ANSI C-conforming const" >&5
4990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4991 if test "${ac_cv_c_const+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 cat >conftest.$ac_ext <<_ACEOF
4995 #line 4995 "configure"
4996 #include "confdefs.h"
4999 main ()
5001 /* FIXME: Include the comments suggested by Paul. */
5002 #ifndef __cplusplus
5003 /* Ultrix mips cc rejects this. */
5004 typedef int charset[2];
5005 const charset x;
5006 /* SunOS 4.1.1 cc rejects this. */
5007 char const *const *ccp;
5008 char **p;
5009 /* NEC SVR4.0.2 mips cc rejects this. */
5010 struct point {int x, y;};
5011 static struct point const zero = {0,0};
5012 /* AIX XL C 1.02.0.0 rejects this.
5013 It does not let you subtract one const X* pointer from another in
5014 an arm of an if-expression whose if-part is not a constant
5015 expression */
5016 const char *g = "string";
5017 ccp = &g + (g ? g-g : 0);
5018 /* HPUX 7.0 cc rejects these. */
5019 ++ccp;
5020 p = (char**) ccp;
5021 ccp = (char const *const *) p;
5022 { /* SCO 3.2v4 cc rejects this. */
5023 char *t;
5024 char const *s = 0 ? (char *) 0 : (char const *) 0;
5026 *t++ = 0;
5028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5029 int x[] = {25, 17};
5030 const int *foo = &x[0];
5031 ++foo;
5033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5034 typedef const int *iptr;
5035 iptr p = 0;
5036 ++p;
5038 { /* AIX XL C 1.02.0.0 rejects this saying
5039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5040 struct s { int j; const int *ap[3]; };
5041 struct s *b; b->j = 5;
5043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5044 const int foo = 10;
5046 #endif
5049 return 0;
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:5053: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>&5
5055 ac_status=$?
5056 echo "$as_me:5056: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -s conftest.$ac_objext'
5059 { (eval echo "$as_me:5059: \"$ac_try\"") >&5
5060 (eval $ac_try) 2>&5
5061 ac_status=$?
5062 echo "$as_me:5062: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5064 ac_cv_c_const=yes
5065 else
5066 echo "$as_me: failed program was:" >&5
5067 cat conftest.$ac_ext >&5
5068 ac_cv_c_const=no
5070 rm -f conftest.$ac_objext conftest.$ac_ext
5072 echo "$as_me:5072: result: $ac_cv_c_const" >&5
5073 echo "${ECHO_T}$ac_cv_c_const" >&6
5074 if test $ac_cv_c_const = no; then
5076 cat >>confdefs.h <<\EOF
5077 #define const
5082 echo "$as_me:5082: checking for void * support" >&5
5083 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5084 if test "${emacs_cv_void_star+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line 5088 "configure"
5089 #include "confdefs.h"
5092 main ()
5094 void * foo;
5096 return 0;
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:5100: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5102 ac_status=$?
5103 echo "$as_me:5103: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:5106: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:5109: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 emacs_cv_void_star=yes
5112 else
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 emacs_cv_void_star=no
5117 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:5119: result: $emacs_cv_void_star" >&5
5120 echo "${ECHO_T}$emacs_cv_void_star" >&6
5121 if test $emacs_cv_void_star = yes; then
5122 cat >>confdefs.h <<\EOF
5123 #define POINTER_TYPE void
5126 else
5127 cat >>confdefs.h <<\EOF
5128 #define POINTER_TYPE char
5133 echo "$as_me:5133: checking whether ${MAKE-make} sets \${MAKE}" >&5
5134 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5135 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5136 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 cat >conftest.make <<\EOF
5140 all:
5141 @echo 'ac_maketemp="${MAKE}"'
5143 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5144 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5145 if test -n "$ac_maketemp"; then
5146 eval ac_cv_prog_make_${ac_make}_set=yes
5147 else
5148 eval ac_cv_prog_make_${ac_make}_set=no
5150 rm -f conftest.make
5152 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5153 echo "$as_me:5153: result: yes" >&5
5154 echo "${ECHO_T}yes" >&6
5155 SET_MAKE=
5156 else
5157 echo "$as_me:5157: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5159 SET_MAKE="MAKE=${MAKE-make}"
5162 echo "$as_me:5162: checking for long file names" >&5
5163 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5164 if test "${ac_cv_sys_long_file_names+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 ac_cv_sys_long_file_names=yes
5168 # Test for long file names in all the places we know might matter:
5169 # . the current directory, where building will happen
5170 # $prefix/lib where we will be installing things
5171 # $exec_prefix/lib likewise
5172 # eval it to expand exec_prefix.
5173 # $TMPDIR if set, where it might want to write temporary files
5174 # if $TMPDIR is not set:
5175 # /tmp where it might want to write temporary files
5176 # /var/tmp likewise
5177 # /usr/tmp likewise
5178 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5179 ac_tmpdirs=$TMPDIR
5180 else
5181 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
5183 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5184 test -d $ac_dir || continue
5185 test -w $ac_dir || continue # It is less confusing to not echo anything here.
5186 ac_xdir=$ac_dir/cf$$
5187 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
5188 ac_tf1=$ac_xdir/conftest9012345
5189 ac_tf2=$ac_xdir/conftest9012346
5190 (echo 1 >$ac_tf1) 2>/dev/null
5191 (echo 2 >$ac_tf2) 2>/dev/null
5192 ac_val=`cat $ac_tf1 2>/dev/null`
5193 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
5194 ac_cv_sys_long_file_names=no
5195 rm -rf $ac_xdir 2>/dev/null
5196 break
5198 rm -rf $ac_xdir 2>/dev/null
5199 done
5201 echo "$as_me:5201: result: $ac_cv_sys_long_file_names" >&5
5202 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
5203 if test $ac_cv_sys_long_file_names = yes; then
5205 cat >>confdefs.h <<\EOF
5206 #define HAVE_LONG_FILE_NAMES 1
5211 #### Choose a window system.
5213 echo "$as_me:5213: checking for X" >&5
5214 echo $ECHO_N "checking for X... $ECHO_C" >&6
5216 # Check whether --with-x or --without-x was given.
5217 if test "${with_x+set}" = set; then
5218 withval="$with_x"
5221 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5222 if test "x$with_x" = xno; then
5223 # The user explicitly disabled X.
5224 have_x=disabled
5225 else
5226 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5227 # Both variables are already set.
5228 have_x=yes
5229 else
5230 if test "${ac_cv_have_x+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 # One or both of the vars are not set, and there is no cached value.
5234 ac_x_includes=no ac_x_libraries=no
5235 rm -fr conftest.dir
5236 if mkdir conftest.dir; then
5237 cd conftest.dir
5238 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5239 cat >Imakefile <<'EOF'
5240 acfindx:
5241 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5243 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5244 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5245 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5246 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5247 for ac_extension in a so sl; do
5248 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5249 test -f $ac_im_libdir/libX11.$ac_extension; then
5250 ac_im_usrlibdir=$ac_im_libdir; break
5252 done
5253 # Screen out bogus values from the imake configuration. They are
5254 # bogus both because they are the default anyway, and because
5255 # using them would break gcc on systems where it needs fixed includes.
5256 case $ac_im_incroot in
5257 /usr/include) ;;
5258 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5259 esac
5260 case $ac_im_usrlibdir in
5261 /usr/lib | /lib) ;;
5262 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5263 esac
5265 cd ..
5266 rm -fr conftest.dir
5269 # Standard set of common directories for X headers.
5270 # Check X11 before X11Rn because it is often a symlink to the current release.
5271 ac_x_header_dirs='
5272 /usr/X11/include
5273 /usr/X11R6/include
5274 /usr/X11R5/include
5275 /usr/X11R4/include
5277 /usr/include/X11
5278 /usr/include/X11R6
5279 /usr/include/X11R5
5280 /usr/include/X11R4
5282 /usr/local/X11/include
5283 /usr/local/X11R6/include
5284 /usr/local/X11R5/include
5285 /usr/local/X11R4/include
5287 /usr/local/include/X11
5288 /usr/local/include/X11R6
5289 /usr/local/include/X11R5
5290 /usr/local/include/X11R4
5292 /usr/X386/include
5293 /usr/x386/include
5294 /usr/XFree86/include/X11
5296 /usr/include
5297 /usr/local/include
5298 /usr/unsupported/include
5299 /usr/athena/include
5300 /usr/local/x11r5/include
5301 /usr/lpp/Xamples/include
5303 /usr/openwin/include
5304 /usr/openwin/share/include'
5306 if test "$ac_x_includes" = no; then
5307 # Guess where to find include files, by looking for Intrinsic.h.
5308 # First, try using that file with no special directory specified.
5309 cat >conftest.$ac_ext <<_ACEOF
5310 #line 5310 "configure"
5311 #include "confdefs.h"
5312 #include <X11/Intrinsic.h>
5313 _ACEOF
5314 if { (eval echo "$as_me:5314: \"$ac_cpp conftest.$ac_ext\"") >&5
5315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5316 ac_status=$?
5317 egrep -v '^ *\+' conftest.er1 >conftest.err
5318 rm -f conftest.er1
5319 cat conftest.err >&5
5320 echo "$as_me:5320: \$? = $ac_status" >&5
5321 (exit $ac_status); } >/dev/null; then
5322 if test -s conftest.err; then
5323 ac_cpp_err=$ac_c_preproc_warn_flag
5324 else
5325 ac_cpp_err=
5327 else
5328 ac_cpp_err=yes
5330 if test -z "$ac_cpp_err"; then
5331 # We can compile using X headers with no special include directory.
5332 ac_x_includes=
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5336 for ac_dir in $ac_x_header_dirs; do
5337 if test -r "$ac_dir/X11/Intrinsic.h"; then
5338 ac_x_includes=$ac_dir
5339 break
5341 done
5343 rm -f conftest.err conftest.$ac_ext
5344 fi # $ac_x_includes = no
5346 if test "$ac_x_libraries" = no; then
5347 # Check for the libraries.
5348 # See if we find them without any special options.
5349 # Don't add to $LIBS permanently.
5350 ac_save_LIBS=$LIBS
5351 LIBS="-lXt $LIBS"
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line 5353 "configure"
5354 #include "confdefs.h"
5355 #include <X11/Intrinsic.h>
5357 main ()
5359 XtMalloc (0)
5361 return 0;
5363 _ACEOF
5364 rm -f conftest.$ac_objext conftest$ac_exeext
5365 if { (eval echo "$as_me:5365: \"$ac_link\"") >&5
5366 (eval $ac_link) 2>&5
5367 ac_status=$?
5368 echo "$as_me:5368: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -s conftest$ac_exeext'
5371 { (eval echo "$as_me:5371: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:5374: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 LIBS=$ac_save_LIBS
5377 # We can link X programs with no special library path.
5378 ac_x_libraries=
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 LIBS=$ac_save_LIBS
5383 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5385 # Don't even attempt the hair of trying to link an X program!
5386 for ac_extension in a so sl; do
5387 if test -r $ac_dir/libXt.$ac_extension; then
5388 ac_x_libraries=$ac_dir
5389 break 2
5391 done
5392 done
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 fi # $ac_x_libraries = no
5397 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5398 # Didn't find X anywhere. Cache the known absence of X.
5399 ac_cv_have_x="have_x=no"
5400 else
5401 # Record where we found X for the cache.
5402 ac_cv_have_x="have_x=yes \
5403 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5408 eval "$ac_cv_have_x"
5409 fi # $with_x != no
5411 if test "$have_x" != yes; then
5412 echo "$as_me:5412: result: $have_x" >&5
5413 echo "${ECHO_T}$have_x" >&6
5414 no_x=yes
5415 else
5416 # If each of the values was on the command line, it overrides each guess.
5417 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5418 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5419 # Update the cache value to reflect the command line values.
5420 ac_cv_have_x="have_x=yes \
5421 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5422 echo "$as_me:5422: result: libraries $x_libraries, headers $x_includes" >&5
5423 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5426 if test "$no_x" = yes; then
5427 window_system=none
5428 else
5429 window_system=x11
5432 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
5433 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
5434 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
5435 x_default_search_path=""
5436 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
5437 x_search_path="\
5438 ${x_library}/X11/%L/%T/%N%C%S:\
5439 ${x_library}/X11/%l/%T/%N%C%S:\
5440 ${x_library}/X11/%T/%N%C%S:\
5441 ${x_library}/X11/%L/%T/%N%S:\
5442 ${x_library}/X11/%l/%T/%N%S:\
5443 ${x_library}/X11/%T/%N%S"
5444 if test x"${x_default_search_path}" = x; then
5445 x_default_search_path=${x_search_path}
5446 else
5447 x_default_search_path="${x_search_path}:${x_default_search_path}"
5449 done
5451 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
5452 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
5455 if test x"${x_includes}" = x; then
5456 bitmapdir=/usr/include/X11/bitmaps
5457 else
5458 # accumulate include directories that have X11 bitmap subdirectories
5459 bmd_acc="dummyval"
5460 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
5461 if test -d "${bmd}/X11/bitmaps"; then
5462 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
5464 if test -d "${bmd}/bitmaps"; then
5465 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
5467 done
5468 if test ${bmd_acc} != "dummyval"; then
5469 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
5473 case "${window_system}" in
5474 x11 )
5475 HAVE_X_WINDOWS=yes
5476 HAVE_X11=yes
5477 case "${with_x_toolkit}" in
5478 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
5479 motif ) USE_X_TOOLKIT=MOTIF ;;
5480 no ) USE_X_TOOLKIT=none ;;
5481 * ) USE_X_TOOLKIT=maybe ;;
5482 esac
5484 none )
5485 HAVE_X_WINDOWS=no
5486 HAVE_X11=no
5487 USE_X_TOOLKIT=none
5489 esac
5491 ### If we're using X11, we should use the X menu package.
5492 HAVE_MENUS=no
5493 case ${HAVE_X11} in
5494 yes ) HAVE_MENUS=yes ;;
5495 esac
5497 if test "${opsys}" = "hpux9"; then
5498 case "${x_libraries}" in
5499 *X11R4* )
5500 opsysfile="s/hpux9-x11r4.h"
5502 esac
5505 if test "${opsys}" = "hpux9shr"; then
5506 case "${x_libraries}" in
5507 *X11R4* )
5508 opsysfile="s/hpux9shxr4.h"
5510 esac
5513 ### Compute the unexec source name from the object name.
5514 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
5516 # Do the opsystem or machine files prohibit the use of the GNU malloc?
5517 # Assume not, until told otherwise.
5518 GNU_MALLOC=yes
5519 doug_lea_malloc=yes
5520 echo "$as_me:5520: checking for malloc_get_state" >&5
5521 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
5522 if test "${ac_cv_func_malloc_get_state+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 cat >conftest.$ac_ext <<_ACEOF
5526 #line 5526 "configure"
5527 #include "confdefs.h"
5528 /* System header to define __stub macros and hopefully few prototypes,
5529 which can conflict with char malloc_get_state (); below. */
5530 #include <assert.h>
5531 /* Override any gcc2 internal prototype to avoid an error. */
5532 #ifdef __cplusplus
5533 extern "C"
5534 #endif
5535 /* We use char because int might match the return type of a gcc2
5536 builtin and then its argument prototype would still apply. */
5537 char malloc_get_state ();
5538 char (*f) ();
5541 main ()
5543 /* The GNU C library defines this for functions which it implements
5544 to always fail with ENOSYS. Some functions are actually named
5545 something starting with __ and the normal name is an alias. */
5546 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
5547 choke me
5548 #else
5549 f = malloc_get_state;
5550 #endif
5553 return 0;
5555 _ACEOF
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:5557: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>&5
5559 ac_status=$?
5560 echo "$as_me:5560: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try='test -s conftest$ac_exeext'
5563 { (eval echo "$as_me:5563: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:5566: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_func_malloc_get_state=yes
5569 else
5570 echo "$as_me: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5572 ac_cv_func_malloc_get_state=no
5574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5576 echo "$as_me:5576: result: $ac_cv_func_malloc_get_state" >&5
5577 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
5578 if test $ac_cv_func_malloc_get_state = yes; then
5580 else
5581 doug_lea_malloc=no
5584 echo "$as_me:5584: checking for malloc_set_state" >&5
5585 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
5586 if test "${ac_cv_func_malloc_set_state+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589 cat >conftest.$ac_ext <<_ACEOF
5590 #line 5590 "configure"
5591 #include "confdefs.h"
5592 /* System header to define __stub macros and hopefully few prototypes,
5593 which can conflict with char malloc_set_state (); below. */
5594 #include <assert.h>
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 #ifdef __cplusplus
5597 extern "C"
5598 #endif
5599 /* We use char because int might match the return type of a gcc2
5600 builtin and then its argument prototype would still apply. */
5601 char malloc_set_state ();
5602 char (*f) ();
5605 main ()
5607 /* The GNU C library defines this for functions which it implements
5608 to always fail with ENOSYS. Some functions are actually named
5609 something starting with __ and the normal name is an alias. */
5610 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
5611 choke me
5612 #else
5613 f = malloc_set_state;
5614 #endif
5617 return 0;
5619 _ACEOF
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (eval echo "$as_me:5621: \"$ac_link\"") >&5
5622 (eval $ac_link) 2>&5
5623 ac_status=$?
5624 echo "$as_me:5624: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -s conftest$ac_exeext'
5627 { (eval echo "$as_me:5627: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:5630: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_func_malloc_set_state=yes
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5636 ac_cv_func_malloc_set_state=no
5638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640 echo "$as_me:5640: result: $ac_cv_func_malloc_set_state" >&5
5641 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
5642 if test $ac_cv_func_malloc_set_state = yes; then
5644 else
5645 doug_lea_malloc=no
5648 echo "$as_me:5648: checking whether __after_morecore_hook exists" >&5
5649 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
5650 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line 5654 "configure"
5655 #include "confdefs.h"
5656 extern void (* __after_morecore_hook)();
5658 main ()
5660 __after_morecore_hook = 0
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:5666: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>&5
5668 ac_status=$?
5669 echo "$as_me:5669: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:5672: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:5675: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 emacs_cv_var___after_morecore_hook=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 emacs_cv_var___after_morecore_hook=no
5683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5685 echo "$as_me:5685: result: $emacs_cv_var___after_morecore_hook" >&5
5686 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
5687 if test $emacs_cv_var___after_morecore_hook = no; then
5688 doug_lea_malloc=no
5690 if test "${system_malloc}" = "yes"; then
5691 GNU_MALLOC=no
5692 GNU_MALLOC_reason="
5693 (The GNU allocators don't work with this system configuration.)"
5695 if test "$doug_lea_malloc" = "yes" ; then
5696 if test "$GNU_MALLOC" = yes ; then
5697 GNU_MALLOC_reason="
5698 (Using Doug Lea's new malloc from the GNU C Library.)"
5701 cat >>confdefs.h <<\EOF
5702 #define DOUG_LEA_MALLOC 1
5707 if test x"${REL_ALLOC}" = x; then
5708 REL_ALLOC=${GNU_MALLOC}
5711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5714 inttypes.h stdint.h unistd.h
5716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5717 echo "$as_me:5717: checking for $ac_header" >&5
5718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 cat >conftest.$ac_ext <<_ACEOF
5723 #line 5723 "configure"
5724 #include "confdefs.h"
5725 $ac_includes_default
5726 #include <$ac_header>
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:5729: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5731 ac_status=$?
5732 echo "$as_me:5732: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (eval echo "$as_me:5735: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:5738: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 eval "$as_ac_Header=yes"
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5744 eval "$as_ac_Header=no"
5746 rm -f conftest.$ac_objext conftest.$ac_ext
5748 echo "$as_me:5748: result: `eval echo '${'$as_ac_Header'}'`" >&5
5749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5751 cat >>confdefs.h <<EOF
5752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5756 done
5758 for ac_header in stdlib.h unistd.h
5760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5761 echo "$as_me:5761: checking for $ac_header" >&5
5762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 cat >conftest.$ac_ext <<_ACEOF
5767 #line 5767 "configure"
5768 #include "confdefs.h"
5769 #include <$ac_header>
5770 _ACEOF
5771 if { (eval echo "$as_me:5771: \"$ac_cpp conftest.$ac_ext\"") >&5
5772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5773 ac_status=$?
5774 egrep -v '^ *\+' conftest.er1 >conftest.err
5775 rm -f conftest.er1
5776 cat conftest.err >&5
5777 echo "$as_me:5777: \$? = $ac_status" >&5
5778 (exit $ac_status); } >/dev/null; then
5779 if test -s conftest.err; then
5780 ac_cpp_err=$ac_c_preproc_warn_flag
5781 else
5782 ac_cpp_err=
5784 else
5785 ac_cpp_err=yes
5787 if test -z "$ac_cpp_err"; then
5788 eval "$as_ac_Header=yes"
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5792 eval "$as_ac_Header=no"
5794 rm -f conftest.err conftest.$ac_ext
5796 echo "$as_me:5796: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5799 cat >>confdefs.h <<EOF
5800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5804 done
5806 for ac_func in getpagesize
5808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5809 echo "$as_me:5809: checking for $ac_func" >&5
5810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_var+set}\" = set"; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line 5815 "configure"
5816 #include "confdefs.h"
5817 /* System header to define __stub macros and hopefully few prototypes,
5818 which can conflict with char $ac_func (); below. */
5819 #include <assert.h>
5820 /* Override any gcc2 internal prototype to avoid an error. */
5821 #ifdef __cplusplus
5822 extern "C"
5823 #endif
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char $ac_func ();
5827 char (*f) ();
5830 main ()
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5836 choke me
5837 #else
5838 f = $ac_func;
5839 #endif
5842 return 0;
5844 _ACEOF
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846 if { (eval echo "$as_me:5846: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>&5
5848 ac_status=$?
5849 echo "$as_me:5849: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:5852: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:5855: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 eval "$as_ac_var=yes"
5858 else
5859 echo "$as_me: failed program was:" >&5
5860 cat conftest.$ac_ext >&5
5861 eval "$as_ac_var=no"
5863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5865 echo "$as_me:5865: result: `eval echo '${'$as_ac_var'}'`" >&5
5866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5867 if test `eval echo '${'$as_ac_var'}'` = yes; then
5868 cat >>confdefs.h <<EOF
5869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5873 done
5875 echo "$as_me:5875: checking for working mmap" >&5
5876 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5877 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 if test "$cross_compiling" = yes; then
5881 ac_cv_func_mmap_fixed_mapped=no
5882 else
5883 cat >conftest.$ac_ext <<_ACEOF
5884 #line 5884 "configure"
5885 #include "confdefs.h"
5886 $ac_includes_default
5887 /* Thanks to Mike Haertel and Jim Avera for this test.
5888 Here is a matrix of mmap possibilities:
5889 mmap private not fixed
5890 mmap private fixed at somewhere currently unmapped
5891 mmap private fixed at somewhere already mapped
5892 mmap shared not fixed
5893 mmap shared fixed at somewhere currently unmapped
5894 mmap shared fixed at somewhere already mapped
5895 For private mappings, we should verify that changes cannot be read()
5896 back from the file, nor mmap's back from the file at a different
5897 address. (There have been systems where private was not correctly
5898 implemented like the infamous i386 svr4.0, and systems where the
5899 VM page cache was not coherent with the file system buffer cache
5900 like early versions of FreeBSD and possibly contemporary NetBSD.)
5901 For shared mappings, we should conversely verify that changes get
5902 propogated back to all the places they're supposed to be.
5904 Grep wants private fixed already mapped.
5905 The main things grep needs to know about mmap are:
5906 * does it exist and is it safe to write into the mmap'd area
5907 * how to use it (BSD variants) */
5909 #include <fcntl.h>
5910 #include <sys/mman.h>
5912 #if !STDC_HEADERS && !HAVE_STDLIB_H
5913 char *malloc ();
5914 #endif
5916 /* This mess was copied from the GNU getpagesize.h. */
5917 #if !HAVE_GETPAGESIZE
5918 /* Assume that all systems that can run configure have sys/param.h. */
5919 # if !HAVE_SYS_PARAM_H
5920 # define HAVE_SYS_PARAM_H 1
5921 # endif
5923 # ifdef _SC_PAGESIZE
5924 # define getpagesize() sysconf(_SC_PAGESIZE)
5925 # else /* no _SC_PAGESIZE */
5926 # if HAVE_SYS_PARAM_H
5927 # include <sys/param.h>
5928 # ifdef EXEC_PAGESIZE
5929 # define getpagesize() EXEC_PAGESIZE
5930 # else /* no EXEC_PAGESIZE */
5931 # ifdef NBPG
5932 # define getpagesize() NBPG * CLSIZE
5933 # ifndef CLSIZE
5934 # define CLSIZE 1
5935 # endif /* no CLSIZE */
5936 # else /* no NBPG */
5937 # ifdef NBPC
5938 # define getpagesize() NBPC
5939 # else /* no NBPC */
5940 # ifdef PAGESIZE
5941 # define getpagesize() PAGESIZE
5942 # endif /* PAGESIZE */
5943 # endif /* no NBPC */
5944 # endif /* no NBPG */
5945 # endif /* no EXEC_PAGESIZE */
5946 # else /* no HAVE_SYS_PARAM_H */
5947 # define getpagesize() 8192 /* punt totally */
5948 # endif /* no HAVE_SYS_PARAM_H */
5949 # endif /* no _SC_PAGESIZE */
5951 #endif /* no HAVE_GETPAGESIZE */
5954 main ()
5956 char *data, *data2, *data3;
5957 int i, pagesize;
5958 int fd;
5960 pagesize = getpagesize ();
5962 /* First, make a file with some known garbage in it. */
5963 data = (char *) malloc (pagesize);
5964 if (!data)
5965 exit (1);
5966 for (i = 0; i < pagesize; ++i)
5967 *(data + i) = rand ();
5968 umask (0);
5969 fd = creat ("conftest.mmap", 0600);
5970 if (fd < 0)
5971 exit (1);
5972 if (write (fd, data, pagesize) != pagesize)
5973 exit (1);
5974 close (fd);
5976 /* Next, try to mmap the file at a fixed address which already has
5977 something else allocated at it. If we can, also make sure that
5978 we see the same garbage. */
5979 fd = open ("conftest.mmap", O_RDWR);
5980 if (fd < 0)
5981 exit (1);
5982 data2 = (char *) malloc (2 * pagesize);
5983 if (!data2)
5984 exit (1);
5985 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
5986 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5987 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5988 exit (1);
5989 for (i = 0; i < pagesize; ++i)
5990 if (*(data + i) != *(data2 + i))
5991 exit (1);
5993 /* Finally, make sure that changes to the mapped area do not
5994 percolate back to the file as seen by read(). (This is a bug on
5995 some variants of i386 svr4.0.) */
5996 for (i = 0; i < pagesize; ++i)
5997 *(data2 + i) = *(data2 + i) + 1;
5998 data3 = (char *) malloc (pagesize);
5999 if (!data3)
6000 exit (1);
6001 if (read (fd, data3, pagesize) != pagesize)
6002 exit (1);
6003 for (i = 0; i < pagesize; ++i)
6004 if (*(data + i) != *(data3 + i))
6005 exit (1);
6006 close (fd);
6007 exit (0);
6009 _ACEOF
6010 rm -f conftest$ac_exeext
6011 if { (eval echo "$as_me:6011: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>&5
6013 ac_status=$?
6014 echo "$as_me:6014: \$? = $ac_status" >&5
6015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6016 { (eval echo "$as_me:6016: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:6019: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 ac_cv_func_mmap_fixed_mapped=yes
6022 else
6023 echo "$as_me: program exited with status $ac_status" >&5
6024 echo "$as_me: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026 ac_cv_func_mmap_fixed_mapped=no
6028 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6031 echo "$as_me:6031: result: $ac_cv_func_mmap_fixed_mapped" >&5
6032 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6033 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6035 cat >>confdefs.h <<\EOF
6036 #define HAVE_MMAP 1
6040 rm -f conftest.mmap
6042 if test $use_mmap_for_buffers = yes; then
6043 REL_ALLOC=no
6046 LIBS="$libsrc_libs $LIBS"
6048 echo "$as_me:6048: checking for dnet_ntoa in -ldnet" >&5
6049 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6050 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-ldnet $LIBS"
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line 6056 "configure"
6057 #include "confdefs.h"
6059 /* Override any gcc2 internal prototype to avoid an error. */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6065 char dnet_ntoa ();
6067 main ()
6069 dnet_ntoa ();
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:6075: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>&5
6077 ac_status=$?
6078 echo "$as_me:6078: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -s conftest$ac_exeext'
6081 { (eval echo "$as_me:6081: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:6084: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_lib_dnet_dnet_ntoa=yes
6087 else
6088 echo "$as_me: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6090 ac_cv_lib_dnet_dnet_ntoa=no
6092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6093 LIBS=$ac_check_lib_save_LIBS
6095 echo "$as_me:6095: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6096 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6097 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6098 cat >>confdefs.h <<EOF
6099 #define HAVE_LIBDNET 1
6102 LIBS="-ldnet $LIBS"
6106 echo "$as_me:6106: checking for main in -lXbsd" >&5
6107 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6108 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 ac_check_lib_save_LIBS=$LIBS
6112 LIBS="-lXbsd $LIBS"
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line 6114 "configure"
6115 #include "confdefs.h"
6118 main ()
6120 main ();
6122 return 0;
6124 _ACEOF
6125 rm -f conftest.$ac_objext conftest$ac_exeext
6126 if { (eval echo "$as_me:6126: \"$ac_link\"") >&5
6127 (eval $ac_link) 2>&5
6128 ac_status=$?
6129 echo "$as_me:6129: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:6132: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:6135: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_lib_Xbsd_main=yes
6138 else
6139 echo "$as_me: failed program was:" >&5
6140 cat conftest.$ac_ext >&5
6141 ac_cv_lib_Xbsd_main=no
6143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6144 LIBS=$ac_check_lib_save_LIBS
6146 echo "$as_me:6146: result: $ac_cv_lib_Xbsd_main" >&5
6147 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
6148 if test $ac_cv_lib_Xbsd_main = yes; then
6149 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
6152 echo "$as_me:6152: checking for cma_open in -lpthreads" >&5
6153 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
6154 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157 ac_check_lib_save_LIBS=$LIBS
6158 LIBS="-lpthreads $LIBS"
6159 cat >conftest.$ac_ext <<_ACEOF
6160 #line 6160 "configure"
6161 #include "confdefs.h"
6163 /* Override any gcc2 internal prototype to avoid an error. */
6164 #ifdef __cplusplus
6165 extern "C"
6166 #endif
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6169 char cma_open ();
6171 main ()
6173 cma_open ();
6175 return 0;
6177 _ACEOF
6178 rm -f conftest.$ac_objext conftest$ac_exeext
6179 if { (eval echo "$as_me:6179: \"$ac_link\"") >&5
6180 (eval $ac_link) 2>&5
6181 ac_status=$?
6182 echo "$as_me:6182: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:6185: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:6188: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_lib_pthreads_cma_open=yes
6191 else
6192 echo "$as_me: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6194 ac_cv_lib_pthreads_cma_open=no
6196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6197 LIBS=$ac_check_lib_save_LIBS
6199 echo "$as_me:6199: result: $ac_cv_lib_pthreads_cma_open" >&5
6200 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
6201 if test $ac_cv_lib_pthreads_cma_open = yes; then
6202 cat >>confdefs.h <<EOF
6203 #define HAVE_LIBPTHREADS 1
6206 LIBS="-lpthreads $LIBS"
6210 echo "$as_me:6210: checking for XFree86 in /usr/X386" >&5
6211 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
6212 if test -d /usr/X386/include; then
6213 HAVE_XFREE386=yes
6214 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
6215 else
6216 HAVE_XFREE386=no
6218 echo "$as_me:6218: result: $HAVE_XFREE386" >&5
6219 echo "${ECHO_T}$HAVE_XFREE386" >&6
6221 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
6222 # for the tests that follow. We set it back to REAL_CFLAGS later on.
6224 REAL_CPPFLAGS="$CPPFLAGS"
6226 if test "${HAVE_X11}" = "yes"; then
6227 DEFS="$C_SWITCH_X_SITE $DEFS"
6228 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
6229 LIBS="$LIBX $LIBS"
6230 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
6231 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
6233 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
6234 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
6235 # but it's more convenient here to set LD_RUN_PATH
6236 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
6237 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
6238 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
6239 export LD_RUN_PATH
6242 if test "${opsys}" = "gnu-linux"; then
6243 echo "$as_me:6243: checking whether X on GNU/Linux needs -b to link" >&5
6244 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line 6246 "configure"
6247 #include "confdefs.h"
6250 main ()
6252 XOpenDisplay ("foo");
6254 return 0;
6256 _ACEOF
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (eval echo "$as_me:6258: \"$ac_link\"") >&5
6259 (eval $ac_link) 2>&5
6260 ac_status=$?
6261 echo "$as_me:6261: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try='test -s conftest$ac_exeext'
6264 { (eval echo "$as_me:6264: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:6267: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
6269 xlinux_first_failure=no
6270 else
6271 echo "$as_me: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6273 xlinux_first_failure=yes
6275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6276 if test "${xlinux_first_failure}" = "yes"; then
6277 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
6278 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
6279 OLD_CPPFLAGS="$CPPFLAGS"
6280 OLD_LIBS="$LIBS"
6281 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
6282 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
6283 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
6284 LIBS="$LIBS -b i486-linuxaout"
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line 6286 "configure"
6287 #include "confdefs.h"
6290 main ()
6292 XOpenDisplay ("foo");
6294 return 0;
6296 _ACEOF
6297 rm -f conftest.$ac_objext conftest$ac_exeext
6298 if { (eval echo "$as_me:6298: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6300 ac_status=$?
6301 echo "$as_me:6301: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:6304: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:6307: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 xlinux_second_failure=no
6310 else
6311 echo "$as_me: failed program was:" >&5
6312 cat conftest.$ac_ext >&5
6313 xlinux_second_failure=yes
6315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6316 if test "${xlinux_second_failure}" = "yes"; then
6317 # If we get the same failure with -b, there is no use adding -b.
6318 # So take it out. This plays safe.
6319 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
6320 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
6321 CPPFLAGS="$OLD_CPPFLAGS"
6322 LIBS="$OLD_LIBS"
6323 echo "$as_me:6323: result: no" >&5
6324 echo "${ECHO_T}no" >&6
6325 else
6326 echo "$as_me:6326: result: yes" >&5
6327 echo "${ECHO_T}yes" >&6
6329 else
6330 echo "$as_me:6330: result: no" >&5
6331 echo "${ECHO_T}no" >&6
6335 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
6336 # header files included from there.
6337 echo "$as_me:6337: checking for Xkb" >&5
6338 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
6339 cat >conftest.$ac_ext <<_ACEOF
6340 #line 6340 "configure"
6341 #include "confdefs.h"
6342 #include <X11/Xlib.h>
6343 #include <X11/XKBlib.h>
6345 main ()
6347 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
6349 return 0;
6351 _ACEOF
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (eval echo "$as_me:6353: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6355 ac_status=$?
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:6359: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:6362: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 emacs_xkb=yes
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6368 emacs_xkb=no
6370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6371 echo "$as_me:6371: result: $emacs_xkb" >&5
6372 echo "${ECHO_T}$emacs_xkb" >&6
6373 if test $emacs_xkb = yes; then
6375 cat >>confdefs.h <<\EOF
6376 #define HAVE_XKBGETKEYBOARD 1
6381 for ac_func in XrmSetDatabase XScreenResourceString \
6382 XScreenNumberOfScreen XSetWMProtocols
6384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6385 echo "$as_me:6385: checking for $ac_func" >&5
6386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_var+set}\" = set"; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390 cat >conftest.$ac_ext <<_ACEOF
6391 #line 6391 "configure"
6392 #include "confdefs.h"
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func (); below. */
6395 #include <assert.h>
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 #ifdef __cplusplus
6398 extern "C"
6399 #endif
6400 /* We use char because int might match the return type of a gcc2
6401 builtin and then its argument prototype would still apply. */
6402 char $ac_func ();
6403 char (*f) ();
6406 main ()
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 choke me
6413 #else
6414 f = $ac_func;
6415 #endif
6418 return 0;
6420 _ACEOF
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:6422: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6424 ac_status=$?
6425 echo "$as_me:6425: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:6428: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:6431: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 eval "$as_ac_var=yes"
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 eval "$as_ac_var=no"
6439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 echo "$as_me:6441: result: `eval echo '${'$as_ac_var'}'`" >&5
6442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6443 if test `eval echo '${'$as_ac_var'}'` = yes; then
6444 cat >>confdefs.h <<EOF
6445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6449 done
6453 if test "${window_system}" = "x11"; then
6454 echo "$as_me:6454: checking X11 version 6" >&5
6455 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
6456 if test "${emacs_cv_x11_version_6+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459 cat >conftest.$ac_ext <<_ACEOF
6460 #line 6460 "configure"
6461 #include "confdefs.h"
6462 #include <X11/Xlib.h>
6464 main ()
6466 #if XlibSpecificationRelease < 6
6467 fail;
6468 #endif
6471 return 0;
6473 _ACEOF
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:6475: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>&5
6477 ac_status=$?
6478 echo "$as_me:6478: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:6481: \"$ac_try\"") >&5
6482 (eval $ac_try) 2>&5
6483 ac_status=$?
6484 echo "$as_me:6484: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 emacs_cv_x11_version_6=yes
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6490 emacs_cv_x11_version_6=no
6492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6495 if test $emacs_cv_x11_version_6 = yes; then
6496 echo "$as_me:6496: result: 6 or newer" >&5
6497 echo "${ECHO_T}6 or newer" >&6
6499 cat >>confdefs.h <<\EOF
6500 #define HAVE_X11R6 1
6503 else
6504 echo "$as_me:6504: result: before 6" >&5
6505 echo "${ECHO_T}before 6" >&6
6509 if test "${window_system}" = "x11"; then
6510 echo "$as_me:6510: checking X11 version 5" >&5
6511 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
6512 if test "${emacs_cv_x11_version_5+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line 6516 "configure"
6517 #include "confdefs.h"
6518 #include <X11/Xlib.h>
6520 main ()
6522 #if XlibSpecificationRelease < 5
6523 fail;
6524 #endif
6527 return 0;
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:6531: \"$ac_link\"") >&5
6532 (eval $ac_link) 2>&5
6533 ac_status=$?
6534 echo "$as_me:6534: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try='test -s conftest$ac_exeext'
6537 { (eval echo "$as_me:6537: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:6540: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 emacs_cv_x11_version_5=yes
6543 else
6544 echo "$as_me: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6546 emacs_cv_x11_version_5=no
6548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6551 if test $emacs_cv_x11_version_5 = yes; then
6552 echo "$as_me:6552: result: 5 or newer" >&5
6553 echo "${ECHO_T}5 or newer" >&6
6554 HAVE_X11R5=yes
6556 cat >>confdefs.h <<\EOF
6557 #define HAVE_X11R5 1
6560 else
6561 HAVE_X11R5=no
6562 echo "$as_me:6562: result: before 5" >&5
6563 echo "${ECHO_T}before 5" >&6
6567 if test x"${USE_X_TOOLKIT}" = xmaybe; then
6568 if test x"${HAVE_X11R5}" = xyes; then
6569 echo "$as_me:6569: checking X11 version 5 with Xaw" >&5
6570 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
6571 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 #line 6575 "configure"
6576 #include "confdefs.h"
6578 #include <X11/Intrinsic.h>
6579 #include <X11/Xaw/Simple.h>
6581 main ()
6585 return 0;
6587 _ACEOF
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (eval echo "$as_me:6589: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6591 ac_status=$?
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:6595: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 emacs_cv_x11_version_5_with_xaw=yes
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6604 emacs_cv_x11_version_5_with_xaw=no
6606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6609 if test $emacs_cv_x11_version_5_with_xaw = yes; then
6610 echo "$as_me:6610: result: 5 or newer, with Xaw; use toolkit by default" >&5
6611 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
6612 USE_X_TOOLKIT=LUCID
6613 else
6614 echo "$as_me:6614: result: before 5 or no Xaw; do not use toolkit by default" >&5
6615 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
6616 USE_X_TOOLKIT=none
6618 else
6619 USE_X_TOOLKIT=none
6623 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
6625 if test "${USE_X_TOOLKIT}" != "none"; then
6626 echo "$as_me:6626: checking X11 toolkit version" >&5
6627 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
6628 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 cat >conftest.$ac_ext <<_ACEOF
6632 #line 6632 "configure"
6633 #include "confdefs.h"
6634 #include <X11/Intrinsic.h>
6636 main ()
6638 #if XtSpecificationRelease < 6
6639 fail;
6640 #endif
6643 return 0;
6645 _ACEOF
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:6647: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>&5
6649 ac_status=$?
6650 echo "$as_me:6650: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -s conftest$ac_exeext'
6653 { (eval echo "$as_me:6653: \"$ac_try\"") >&5
6654 (eval $ac_try) 2>&5
6655 ac_status=$?
6656 echo "$as_me:6656: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 emacs_cv_x11_toolkit_version_6=yes
6659 else
6660 echo "$as_me: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6662 emacs_cv_x11_toolkit_version_6=no
6664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6667 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
6668 if test $emacs_cv_x11_toolkit_version_6 = yes; then
6669 echo "$as_me:6669: result: 6 or newer" >&5
6670 echo "${ECHO_T}6 or newer" >&6
6672 cat >>confdefs.h <<\EOF
6673 #define HAVE_X11XTR6 1
6676 else
6677 echo "$as_me:6677: result: before 6" >&5
6678 echo "${ECHO_T}before 6" >&6
6681 OLDLIBS="$LIBS"
6682 if test x$HAVE_X11XTR6 = xyes; then
6683 LIBS="-lXt -lSM -lICE $LIBS"
6684 else
6685 LIBS="-lXt $LIBS"
6688 echo "$as_me:6688: checking for XmuConvertStandardSelection in -lXmu" >&5
6689 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
6690 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 ac_check_lib_save_LIBS=$LIBS
6694 LIBS="-lXmu $LIBS"
6695 cat >conftest.$ac_ext <<_ACEOF
6696 #line 6696 "configure"
6697 #include "confdefs.h"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 #ifdef __cplusplus
6701 extern "C"
6702 #endif
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char XmuConvertStandardSelection ();
6707 main ()
6709 XmuConvertStandardSelection ();
6711 return 0;
6713 _ACEOF
6714 rm -f conftest.$ac_objext conftest$ac_exeext
6715 if { (eval echo "$as_me:6715: \"$ac_link\"") >&5
6716 (eval $ac_link) 2>&5
6717 ac_status=$?
6718 echo "$as_me:6718: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try='test -s conftest$ac_exeext'
6721 { (eval echo "$as_me:6721: \"$ac_try\"") >&5
6722 (eval $ac_try) 2>&5
6723 ac_status=$?
6724 echo "$as_me:6724: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6726 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6730 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
6732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6733 LIBS=$ac_check_lib_save_LIBS
6735 echo "$as_me:6735: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
6736 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
6737 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
6738 cat >>confdefs.h <<EOF
6739 #define HAVE_LIBXMU 1
6742 LIBS="-lXmu $LIBS"
6746 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
6749 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
6750 if test "${HAVE_X11}" = "yes"; then
6751 if test "${USE_X_TOOLKIT}" != "none"; then
6753 echo "$as_me:6753: checking for XShapeQueryExtension in -lXext" >&5
6754 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6755 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 ac_check_lib_save_LIBS=$LIBS
6759 LIBS="-lXext $LIBS"
6760 cat >conftest.$ac_ext <<_ACEOF
6761 #line 6761 "configure"
6762 #include "confdefs.h"
6764 /* Override any gcc2 internal prototype to avoid an error. */
6765 #ifdef __cplusplus
6766 extern "C"
6767 #endif
6768 /* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6770 char XShapeQueryExtension ();
6772 main ()
6774 XShapeQueryExtension ();
6776 return 0;
6778 _ACEOF
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (eval echo "$as_me:6780: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>&5
6782 ac_status=$?
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 (exit $ac_status); } &&
6785 { ac_try='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:6786: \"$ac_try\"") >&5
6787 (eval $ac_try) 2>&5
6788 ac_status=$?
6789 echo "$as_me:6789: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6791 ac_cv_lib_Xext_XShapeQueryExtension=yes
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6795 ac_cv_lib_Xext_XShapeQueryExtension=no
6797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6798 LIBS=$ac_check_lib_save_LIBS
6800 echo "$as_me:6800: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
6801 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6802 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
6803 cat >>confdefs.h <<EOF
6804 #define HAVE_LIBXEXT 1
6807 LIBS="-lXext $LIBS"
6814 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
6815 echo "$as_me:6815: checking for Motif version 2.1" >&5
6816 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
6817 if test "${emacs_cv_motif_version_2_1+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6823 #include <Xm/Xm.h>
6825 main ()
6827 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
6828 int x = 5;
6829 #else
6830 Motif version prior to 2.1.
6831 #endif
6833 return 0;
6835 _ACEOF
6836 rm -f conftest.$ac_objext
6837 if { (eval echo "$as_me:6837: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>&5
6839 ac_status=$?
6840 echo "$as_me:6840: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:6843: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:6846: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 emacs_cv_motif_version_2_1=yes
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6852 emacs_cv_motif_version_2_1=no
6854 rm -f conftest.$ac_objext conftest.$ac_ext
6856 echo "$as_me:6856: result: $emacs_cv_motif_version_2_1" >&5
6857 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
6858 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
6859 if test $emacs_cv_motif_version_2_1 = yes; then
6860 HAVE_LIBXP=no
6862 cat >>confdefs.h <<\EOF
6863 #define HAVE_MOTIF_2_1 1
6866 echo "$as_me:6866: checking for XpCreateContext in -lXp" >&5
6867 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
6868 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 ac_check_lib_save_LIBS=$LIBS
6872 LIBS="-lXp $LIBS"
6873 cat >conftest.$ac_ext <<_ACEOF
6874 #line 6874 "configure"
6875 #include "confdefs.h"
6877 /* Override any gcc2 internal prototype to avoid an error. */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6883 char XpCreateContext ();
6885 main ()
6887 XpCreateContext ();
6889 return 0;
6891 _ACEOF
6892 rm -f conftest.$ac_objext conftest$ac_exeext
6893 if { (eval echo "$as_me:6893: \"$ac_link\"") >&5
6894 (eval $ac_link) 2>&5
6895 ac_status=$?
6896 echo "$as_me:6896: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:6899: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:6902: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_lib_Xp_XpCreateContext=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 ac_cv_lib_Xp_XpCreateContext=no
6910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6911 LIBS=$ac_check_lib_save_LIBS
6913 echo "$as_me:6913: result: $ac_cv_lib_Xp_XpCreateContext" >&5
6914 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
6915 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
6916 HAVE_LIBXP=yes
6919 if test ${HAVE_LIBXP} = yes; then
6921 cat >>confdefs.h <<\EOF
6922 #define HAVE_LIBXP 1
6929 ### Is -lXaw3d available?
6930 HAVE_XAW3D=no
6931 if test "${HAVE_X11}" = "yes"; then
6932 if test "${USE_X_TOOLKIT}" != "none"; then
6933 echo "$as_me:6933: checking for X11/Xaw3d/Scrollbar.h" >&5
6934 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
6935 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938 cat >conftest.$ac_ext <<_ACEOF
6939 #line 6939 "configure"
6940 #include "confdefs.h"
6941 #include <X11/Xaw3d/Scrollbar.h>
6942 _ACEOF
6943 if { (eval echo "$as_me:6943: \"$ac_cpp conftest.$ac_ext\"") >&5
6944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6945 ac_status=$?
6946 egrep -v '^ *\+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
6949 echo "$as_me:6949: \$? = $ac_status" >&5
6950 (exit $ac_status); } >/dev/null; then
6951 if test -s conftest.err; then
6952 ac_cpp_err=$ac_c_preproc_warn_flag
6953 else
6954 ac_cpp_err=
6956 else
6957 ac_cpp_err=yes
6959 if test -z "$ac_cpp_err"; then
6960 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6964 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
6966 rm -f conftest.err conftest.$ac_ext
6968 echo "$as_me:6968: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
6969 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
6970 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
6971 echo "$as_me:6971: checking for XawScrollbarSetThumb in -lXaw3d" >&5
6972 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
6973 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 ac_check_lib_save_LIBS=$LIBS
6977 LIBS="-lXaw3d $LIBS"
6978 cat >conftest.$ac_ext <<_ACEOF
6979 #line 6979 "configure"
6980 #include "confdefs.h"
6982 /* Override any gcc2 internal prototype to avoid an error. */
6983 #ifdef __cplusplus
6984 extern "C"
6985 #endif
6986 /* We use char because int might match the return type of a gcc2
6987 builtin and then its argument prototype would still apply. */
6988 char XawScrollbarSetThumb ();
6990 main ()
6992 XawScrollbarSetThumb ();
6994 return 0;
6996 _ACEOF
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:6998: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>&5
7000 ac_status=$?
7001 echo "$as_me:7001: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -s conftest$ac_exeext'
7004 { (eval echo "$as_me:7004: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:7007: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
7010 else
7011 echo "$as_me: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7013 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016 LIBS=$ac_check_lib_save_LIBS
7018 echo "$as_me:7018: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
7019 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
7020 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
7021 HAVE_XAW3D=yes
7026 if test "${HAVE_XAW3D}" = "yes"; then
7028 cat >>confdefs.h <<\EOF
7029 #define HAVE_XAW3D 1
7036 USE_TOOLKIT_SCROLL_BARS=no
7037 if test "${with_toolkit_scroll_bars}" != "no"; then
7038 if test "${USE_X_TOOLKIT}" != "none"; then
7039 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7040 cat >>confdefs.h <<\EOF
7041 #define USE_TOOLKIT_SCROLL_BARS 1
7044 HAVE_XAW3D=no
7045 USE_TOOLKIT_SCROLL_BARS=yes
7046 elif test "${HAVE_XAW3D}" = "yes"; then
7047 cat >>confdefs.h <<\EOF
7048 #define USE_TOOLKIT_SCROLL_BARS 1
7051 USE_TOOLKIT_SCROLL_BARS=yes
7056 if test "${with_xim}" != "no"; then
7058 cat >>confdefs.h <<\EOF
7059 #define USE_XIM 1
7064 ### Use -lXpm if available, unless `--with-xpm=no'.
7065 HAVE_XPM=no
7066 if test "${HAVE_X11}" = "yes"; then
7067 if test "${with_xpm}" != "no"; then
7068 echo "$as_me:7068: checking for X11/xpm.h" >&5
7069 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
7070 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line 7074 "configure"
7075 #include "confdefs.h"
7076 #include <X11/xpm.h>
7077 _ACEOF
7078 if { (eval echo "$as_me:7078: \"$ac_cpp conftest.$ac_ext\"") >&5
7079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080 ac_status=$?
7081 egrep -v '^ *\+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:7084: \$? = $ac_status" >&5
7085 (exit $ac_status); } >/dev/null; then
7086 if test -s conftest.err; then
7087 ac_cpp_err=$ac_c_preproc_warn_flag
7088 else
7089 ac_cpp_err=
7091 else
7092 ac_cpp_err=yes
7094 if test -z "$ac_cpp_err"; then
7095 ac_cv_header_X11_xpm_h=yes
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7099 ac_cv_header_X11_xpm_h=no
7101 rm -f conftest.err conftest.$ac_ext
7103 echo "$as_me:7103: result: $ac_cv_header_X11_xpm_h" >&5
7104 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
7105 if test $ac_cv_header_X11_xpm_h = yes; then
7106 echo "$as_me:7106: checking for XpmReadFileToPixmap in -lXpm" >&5
7107 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
7108 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 ac_check_lib_save_LIBS=$LIBS
7112 LIBS="-lXpm -lX11 $LIBS"
7113 cat >conftest.$ac_ext <<_ACEOF
7114 #line 7114 "configure"
7115 #include "confdefs.h"
7117 /* Override any gcc2 internal prototype to avoid an error. */
7118 #ifdef __cplusplus
7119 extern "C"
7120 #endif
7121 /* We use char because int might match the return type of a gcc2
7122 builtin and then its argument prototype would still apply. */
7123 char XpmReadFileToPixmap ();
7125 main ()
7127 XpmReadFileToPixmap ();
7129 return 0;
7131 _ACEOF
7132 rm -f conftest.$ac_objext conftest$ac_exeext
7133 if { (eval echo "$as_me:7133: \"$ac_link\"") >&5
7134 (eval $ac_link) 2>&5
7135 ac_status=$?
7136 echo "$as_me:7136: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -s conftest$ac_exeext'
7139 { (eval echo "$as_me:7139: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:7142: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
7150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7151 LIBS=$ac_check_lib_save_LIBS
7153 echo "$as_me:7153: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
7154 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
7155 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
7156 HAVE_XPM=yes
7161 if test "${HAVE_XPM}" = "yes"; then
7162 echo "$as_me:7162: checking for XpmReturnAllocPixels preprocessor define" >&5
7163 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
7164 cat >conftest.$ac_ext <<_ACEOF
7165 #line 7165 "configure"
7166 #include "confdefs.h"
7167 #include "X11/xpm.h"
7168 #ifndef XpmReturnAllocPixels
7169 no_return_alloc_pixels
7170 #endif
7172 _ACEOF
7173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7174 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then
7175 HAVE_XPM=no
7176 else
7177 HAVE_XPM=yes
7179 rm -f conftest*
7181 if test "${HAVE_XPM}" = "yes"; then
7182 echo "$as_me:7182: result: yes" >&5
7183 echo "${ECHO_T}yes" >&6
7184 else
7185 echo "$as_me:7185: result: no" >&5
7186 echo "${ECHO_T}no" >&6
7191 if test "${HAVE_XPM}" = "yes"; then
7193 cat >>confdefs.h <<\EOF
7194 #define HAVE_XPM 1
7200 ### Use -ljpeg if available, unless `--with-jpeg=no'.
7201 HAVE_JPEG=no
7202 if test "${HAVE_X11}" = "yes"; then
7203 if test "${with_jpeg}" != "no"; then
7204 echo "$as_me:7204: checking for jerror.h" >&5
7205 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
7206 if test "${ac_cv_header_jerror_h+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 cat >conftest.$ac_ext <<_ACEOF
7210 #line 7210 "configure"
7211 #include "confdefs.h"
7212 #include <jerror.h>
7213 _ACEOF
7214 if { (eval echo "$as_me:7214: \"$ac_cpp conftest.$ac_ext\"") >&5
7215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7216 ac_status=$?
7217 egrep -v '^ *\+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:7220: \$? = $ac_status" >&5
7221 (exit $ac_status); } >/dev/null; then
7222 if test -s conftest.err; then
7223 ac_cpp_err=$ac_c_preproc_warn_flag
7224 else
7225 ac_cpp_err=
7227 else
7228 ac_cpp_err=yes
7230 if test -z "$ac_cpp_err"; then
7231 ac_cv_header_jerror_h=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 ac_cv_header_jerror_h=no
7237 rm -f conftest.err conftest.$ac_ext
7239 echo "$as_me:7239: result: $ac_cv_header_jerror_h" >&5
7240 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
7241 if test $ac_cv_header_jerror_h = yes; then
7242 echo "$as_me:7242: checking for jpeg_destroy_compress in -ljpeg" >&5
7243 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
7244 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 ac_check_lib_save_LIBS=$LIBS
7248 LIBS="-ljpeg $LIBS"
7249 cat >conftest.$ac_ext <<_ACEOF
7250 #line 7250 "configure"
7251 #include "confdefs.h"
7253 /* Override any gcc2 internal prototype to avoid an error. */
7254 #ifdef __cplusplus
7255 extern "C"
7256 #endif
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7259 char jpeg_destroy_compress ();
7261 main ()
7263 jpeg_destroy_compress ();
7265 return 0;
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (eval echo "$as_me:7269: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>&5
7271 ac_status=$?
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 (exit $ac_status); } &&
7274 { ac_try='test -s conftest$ac_exeext'
7275 { (eval echo "$as_me:7275: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:7278: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7284 ac_cv_lib_jpeg_jpeg_destroy_compress=no
7286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7287 LIBS=$ac_check_lib_save_LIBS
7289 echo "$as_me:7289: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
7290 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
7291 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
7292 HAVE_JPEG=yes
7299 if test "${HAVE_JPEG}" = "yes"; then
7300 cat >>confdefs.h <<\EOF
7301 #define HAVE_JPEG 1
7304 cat >conftest.$ac_ext <<_ACEOF
7305 #line 7305 "configure"
7306 #include "confdefs.h"
7307 #include <jpeglib.h>
7308 version=JPEG_LIB_VERSION
7310 _ACEOF
7311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7312 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
7313 cat >>confdefs.h <<\EOF
7314 #define HAVE_JPEG 1
7317 else
7318 { echo "$as_me:7318: WARNING: libjpeg found, but not version 6b or later" >&5
7319 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
7320 HAVE_JPEG=no
7322 rm -f conftest*
7327 ### Use -lpng if available, unless `--with-png=no'.
7328 HAVE_PNG=no
7329 if test "${HAVE_X11}" = "yes"; then
7330 if test "${with_png}" != "no"; then
7331 echo "$as_me:7331: checking for png.h" >&5
7332 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
7333 if test "${ac_cv_header_png_h+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 cat >conftest.$ac_ext <<_ACEOF
7337 #line 7337 "configure"
7338 #include "confdefs.h"
7339 #include <png.h>
7340 _ACEOF
7341 if { (eval echo "$as_me:7341: \"$ac_cpp conftest.$ac_ext\"") >&5
7342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7343 ac_status=$?
7344 egrep -v '^ *\+' conftest.er1 >conftest.err
7345 rm -f conftest.er1
7346 cat conftest.err >&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit $ac_status); } >/dev/null; then
7349 if test -s conftest.err; then
7350 ac_cpp_err=$ac_c_preproc_warn_flag
7351 else
7352 ac_cpp_err=
7354 else
7355 ac_cpp_err=yes
7357 if test -z "$ac_cpp_err"; then
7358 ac_cv_header_png_h=yes
7359 else
7360 echo "$as_me: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7362 ac_cv_header_png_h=no
7364 rm -f conftest.err conftest.$ac_ext
7366 echo "$as_me:7366: result: $ac_cv_header_png_h" >&5
7367 echo "${ECHO_T}$ac_cv_header_png_h" >&6
7368 if test $ac_cv_header_png_h = yes; then
7369 echo "$as_me:7369: checking for png_get_channels in -lpng" >&5
7370 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
7371 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374 ac_check_lib_save_LIBS=$LIBS
7375 LIBS="-lpng -lz -lm $LIBS"
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line 7377 "configure"
7378 #include "confdefs.h"
7380 /* Override any gcc2 internal prototype to avoid an error. */
7381 #ifdef __cplusplus
7382 extern "C"
7383 #endif
7384 /* We use char because int might match the return type of a gcc2
7385 builtin and then its argument prototype would still apply. */
7386 char png_get_channels ();
7388 main ()
7390 png_get_channels ();
7392 return 0;
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (eval echo "$as_me:7396: \"$ac_link\"") >&5
7397 (eval $ac_link) 2>&5
7398 ac_status=$?
7399 echo "$as_me:7399: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try='test -s conftest$ac_exeext'
7402 { (eval echo "$as_me:7402: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:7405: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_cv_lib_png_png_get_channels=yes
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 ac_cv_lib_png_png_get_channels=no
7413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7414 LIBS=$ac_check_lib_save_LIBS
7416 echo "$as_me:7416: result: $ac_cv_lib_png_png_get_channels" >&5
7417 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
7418 if test $ac_cv_lib_png_png_get_channels = yes; then
7419 HAVE_PNG=yes
7426 if test "${HAVE_PNG}" = "yes"; then
7428 cat >>confdefs.h <<\EOF
7429 #define HAVE_PNG 1
7435 ### Use -ltiff if available, unless `--with-tiff=no'.
7436 HAVE_TIFF=no
7437 if test "${HAVE_X11}" = "yes"; then
7438 if test "${with_tiff}" != "no"; then
7439 echo "$as_me:7439: checking for tiffio.h" >&5
7440 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
7441 if test "${ac_cv_header_tiffio_h+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 cat >conftest.$ac_ext <<_ACEOF
7445 #line 7445 "configure"
7446 #include "confdefs.h"
7447 #include <tiffio.h>
7448 _ACEOF
7449 if { (eval echo "$as_me:7449: \"$ac_cpp conftest.$ac_ext\"") >&5
7450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7451 ac_status=$?
7452 egrep -v '^ *\+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:7455: \$? = $ac_status" >&5
7456 (exit $ac_status); } >/dev/null; then
7457 if test -s conftest.err; then
7458 ac_cpp_err=$ac_c_preproc_warn_flag
7459 else
7460 ac_cpp_err=
7462 else
7463 ac_cpp_err=yes
7465 if test -z "$ac_cpp_err"; then
7466 ac_cv_header_tiffio_h=yes
7467 else
7468 echo "$as_me: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7470 ac_cv_header_tiffio_h=no
7472 rm -f conftest.err conftest.$ac_ext
7474 echo "$as_me:7474: result: $ac_cv_header_tiffio_h" >&5
7475 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
7476 if test $ac_cv_header_tiffio_h = yes; then
7477 tifflibs="-lz -lm"
7478 # At least one tiff package requires the jpeg library.
7479 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
7480 echo "$as_me:7480: checking for TIFFGetVersion in -ltiff" >&5
7481 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
7482 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 ac_check_lib_save_LIBS=$LIBS
7486 LIBS="-ltiff $tifflibs $LIBS"
7487 cat >conftest.$ac_ext <<_ACEOF
7488 #line 7488 "configure"
7489 #include "confdefs.h"
7491 /* Override any gcc2 internal prototype to avoid an error. */
7492 #ifdef __cplusplus
7493 extern "C"
7494 #endif
7495 /* We use char because int might match the return type of a gcc2
7496 builtin and then its argument prototype would still apply. */
7497 char TIFFGetVersion ();
7499 main ()
7501 TIFFGetVersion ();
7503 return 0;
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:7507: \"$ac_link\"") >&5
7508 (eval $ac_link) 2>&5
7509 ac_status=$?
7510 echo "$as_me:7510: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -s conftest$ac_exeext'
7513 { (eval echo "$as_me:7513: \"$ac_try\"") >&5
7514 (eval $ac_try) 2>&5
7515 ac_status=$?
7516 echo "$as_me:7516: \$? = $ac_status" >&5
7517 (exit $ac_status); }; }; then
7518 ac_cv_lib_tiff_TIFFGetVersion=yes
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 ac_cv_lib_tiff_TIFFGetVersion=no
7524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7525 LIBS=$ac_check_lib_save_LIBS
7527 echo "$as_me:7527: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
7528 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
7529 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
7530 HAVE_TIFF=yes
7537 if test "${HAVE_TIFF}" = "yes"; then
7539 cat >>confdefs.h <<\EOF
7540 #define HAVE_TIFF 1
7546 ### Use -lgif if available, unless `--with-gif=no'.
7547 HAVE_GIF=no
7548 if test "${HAVE_X11}" = "yes"; then
7549 if test "${with_gif}" != "no"; then
7550 echo "$as_me:7550: checking for gif_lib.h" >&5
7551 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
7552 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 cat >conftest.$ac_ext <<_ACEOF
7556 #line 7556 "configure"
7557 #include "confdefs.h"
7558 #include <gif_lib.h>
7559 _ACEOF
7560 if { (eval echo "$as_me:7560: \"$ac_cpp conftest.$ac_ext\"") >&5
7561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7562 ac_status=$?
7563 egrep -v '^ *\+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:7566: \$? = $ac_status" >&5
7567 (exit $ac_status); } >/dev/null; then
7568 if test -s conftest.err; then
7569 ac_cpp_err=$ac_c_preproc_warn_flag
7570 else
7571 ac_cpp_err=
7573 else
7574 ac_cpp_err=yes
7576 if test -z "$ac_cpp_err"; then
7577 ac_cv_header_gif_lib_h=yes
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7581 ac_cv_header_gif_lib_h=no
7583 rm -f conftest.err conftest.$ac_ext
7585 echo "$as_me:7585: result: $ac_cv_header_gif_lib_h" >&5
7586 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
7587 if test $ac_cv_header_gif_lib_h = yes; then
7588 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
7589 # Earlier versions can crash Emacs.
7590 echo "$as_me:7590: checking for EGifPutExtensionLast in -lungif" >&5
7591 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
7592 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 ac_check_lib_save_LIBS=$LIBS
7596 LIBS="-lungif $LIBS"
7597 cat >conftest.$ac_ext <<_ACEOF
7598 #line 7598 "configure"
7599 #include "confdefs.h"
7601 /* Override any gcc2 internal prototype to avoid an error. */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char EGifPutExtensionLast ();
7609 main ()
7611 EGifPutExtensionLast ();
7613 return 0;
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:7617: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7619 ac_status=$?
7620 echo "$as_me:7620: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:7623: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_lib_ungif_EGifPutExtensionLast=yes
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7632 ac_cv_lib_ungif_EGifPutExtensionLast=no
7634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7637 echo "$as_me:7637: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
7638 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
7639 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
7640 HAVE_GIF=yes
7647 if test "${HAVE_GIF}" = "yes"; then
7649 cat >>confdefs.h <<\EOF
7650 #define HAVE_GIF 1
7656 ### Use Mac OS X Carbon API to implement GUI.
7657 HAVE_CARBON=no
7658 if test "${with_carbon}" != "no"; then
7659 echo "$as_me:7659: checking for Carbon/Carbon.h" >&5
7660 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
7661 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line 7665 "configure"
7666 #include "confdefs.h"
7667 #include <Carbon/Carbon.h>
7668 _ACEOF
7669 if { (eval echo "$as_me:7669: \"$ac_cpp conftest.$ac_ext\"") >&5
7670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7671 ac_status=$?
7672 egrep -v '^ *\+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); } >/dev/null; then
7677 if test -s conftest.err; then
7678 ac_cpp_err=$ac_c_preproc_warn_flag
7679 else
7680 ac_cpp_err=
7682 else
7683 ac_cpp_err=yes
7685 if test -z "$ac_cpp_err"; then
7686 ac_cv_header_Carbon_Carbon_h=yes
7687 else
7688 echo "$as_me: failed program was:" >&5
7689 cat conftest.$ac_ext >&5
7690 ac_cv_header_Carbon_Carbon_h=no
7692 rm -f conftest.err conftest.$ac_ext
7694 echo "$as_me:7694: result: $ac_cv_header_Carbon_Carbon_h" >&5
7695 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
7696 if test $ac_cv_header_Carbon_Carbon_h = yes; then
7697 HAVE_CARBON=yes
7702 if test "${HAVE_CARBON}" = "yes"; then
7704 cat >>confdefs.h <<\EOF
7705 #define HAVE_CARBON 1
7710 ### Use session management (-lSM -lICE) if available
7711 HAVE_X_SM=no
7712 if test "${HAVE_X11}" = "yes"; then
7713 echo "$as_me:7713: checking for X11/SM/SMlib.h" >&5
7714 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
7715 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 cat >conftest.$ac_ext <<_ACEOF
7719 #line 7719 "configure"
7720 #include "confdefs.h"
7721 #include <X11/SM/SMlib.h>
7722 _ACEOF
7723 if { (eval echo "$as_me:7723: \"$ac_cpp conftest.$ac_ext\"") >&5
7724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7725 ac_status=$?
7726 egrep -v '^ *\+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 (exit $ac_status); } >/dev/null; then
7731 if test -s conftest.err; then
7732 ac_cpp_err=$ac_c_preproc_warn_flag
7733 else
7734 ac_cpp_err=
7736 else
7737 ac_cpp_err=yes
7739 if test -z "$ac_cpp_err"; then
7740 ac_cv_header_X11_SM_SMlib_h=yes
7741 else
7742 echo "$as_me: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7744 ac_cv_header_X11_SM_SMlib_h=no
7746 rm -f conftest.err conftest.$ac_ext
7748 echo "$as_me:7748: result: $ac_cv_header_X11_SM_SMlib_h" >&5
7749 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
7750 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
7751 echo "$as_me:7751: checking for SmcOpenConnection in -lSM" >&5
7752 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
7753 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756 ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-lSM $LIBS"
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line 7759 "configure"
7760 #include "confdefs.h"
7762 /* Override any gcc2 internal prototype to avoid an error. */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char SmcOpenConnection ();
7770 main ()
7772 SmcOpenConnection ();
7774 return 0;
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:7778: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>&5
7780 ac_status=$?
7781 echo "$as_me:7781: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:7784: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:7787: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_lib_SM_SmcOpenConnection=yes
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7793 ac_cv_lib_SM_SmcOpenConnection=no
7795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7796 LIBS=$ac_check_lib_save_LIBS
7798 echo "$as_me:7798: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
7799 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
7800 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
7801 HAVE_X_SM=yes
7802 else
7803 -lICE
7808 if test "${HAVE_X_SM}" = "yes"; then
7810 cat >>confdefs.h <<\EOF
7811 #define HAVE_X_SM 1
7814 case "$LIBS" in
7815 *-lSM*) ;;
7816 *) LIBS="-lSM -lICE $LIBS" ;;
7817 esac
7821 # If netdb.h doesn't declare h_errno, we must declare it by hand.
7822 echo "$as_me:7822: checking whether netdb declares h_errno" >&5
7823 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
7824 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line 7828 "configure"
7829 #include "confdefs.h"
7830 #include <netdb.h>
7832 main ()
7834 return h_errno;
7836 return 0;
7838 _ACEOF
7839 rm -f conftest.$ac_objext conftest$ac_exeext
7840 if { (eval echo "$as_me:7840: \"$ac_link\"") >&5
7841 (eval $ac_link) 2>&5
7842 ac_status=$?
7843 echo "$as_me:7843: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -s conftest$ac_exeext'
7846 { (eval echo "$as_me:7846: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 emacs_cv_netdb_declares_h_errno=yes
7852 else
7853 echo "$as_me: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 emacs_cv_netdb_declares_h_errno=no
7857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7859 echo "$as_me:7859: result: $emacs_cv_netdb_declares_h_errno" >&5
7860 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
7861 if test $emacs_cv_netdb_declares_h_errno = yes; then
7863 cat >>confdefs.h <<\EOF
7864 #define HAVE_H_ERRNO 1
7869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7870 # for constant arguments. Useless!
7871 echo "$as_me:7871: checking for working alloca.h" >&5
7872 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7873 if test "${ac_cv_working_alloca_h+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876 cat >conftest.$ac_ext <<_ACEOF
7877 #line 7877 "configure"
7878 #include "confdefs.h"
7879 #include <alloca.h>
7881 main ()
7883 char *p = (char *) alloca (2 * sizeof (int));
7885 return 0;
7887 _ACEOF
7888 rm -f conftest.$ac_objext conftest$ac_exeext
7889 if { (eval echo "$as_me:7889: \"$ac_link\"") >&5
7890 (eval $ac_link) 2>&5
7891 ac_status=$?
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -s conftest$ac_exeext'
7895 { (eval echo "$as_me:7895: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:7898: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_working_alloca_h=yes
7901 else
7902 echo "$as_me: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7904 ac_cv_working_alloca_h=no
7906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7908 echo "$as_me:7908: result: $ac_cv_working_alloca_h" >&5
7909 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7910 if test $ac_cv_working_alloca_h = yes; then
7912 cat >>confdefs.h <<\EOF
7913 #define HAVE_ALLOCA_H 1
7918 echo "$as_me:7918: checking for alloca" >&5
7919 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7920 if test "${ac_cv_func_alloca_works+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 cat >conftest.$ac_ext <<_ACEOF
7924 #line 7924 "configure"
7925 #include "confdefs.h"
7926 #ifdef __GNUC__
7927 # define alloca __builtin_alloca
7928 #else
7929 # ifdef _MSC_VER
7930 # include <malloc.h>
7931 # define alloca _alloca
7932 # else
7933 # if HAVE_ALLOCA_H
7934 # include <alloca.h>
7935 # else
7936 # ifdef _AIX
7937 #pragma alloca
7938 # else
7939 # ifndef alloca /* predefined by HP cc +Olibcalls */
7940 char *alloca ();
7941 # endif
7942 # endif
7943 # endif
7944 # endif
7945 #endif
7948 main ()
7950 char *p = (char *) alloca (1);
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (eval echo "$as_me:7956: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>&5
7958 ac_status=$?
7959 echo "$as_me:7959: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -s conftest$ac_exeext'
7962 { (eval echo "$as_me:7962: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:7965: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_func_alloca_works=yes
7968 else
7969 echo "$as_me: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7971 ac_cv_func_alloca_works=no
7973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7975 echo "$as_me:7975: result: $ac_cv_func_alloca_works" >&5
7976 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7978 if test $ac_cv_func_alloca_works = yes; then
7980 cat >>confdefs.h <<\EOF
7981 #define HAVE_ALLOCA 1
7984 else
7985 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7986 # that cause trouble. Some versions do not even contain alloca or
7987 # contain a buggy version. If you still want to use their alloca,
7988 # use ar to extract alloca.o from them instead of compiling alloca.c.
7990 ALLOCA=alloca.$ac_objext
7992 cat >>confdefs.h <<\EOF
7993 #define C_ALLOCA 1
7996 echo "$as_me:7996: checking whether \`alloca.c' needs Cray hooks" >&5
7997 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7998 if test "${ac_cv_os_cray+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 cat >conftest.$ac_ext <<_ACEOF
8002 #line 8002 "configure"
8003 #include "confdefs.h"
8004 #if defined(CRAY) && ! defined(CRAY2)
8005 webecray
8006 #else
8007 wenotbecray
8008 #endif
8010 _ACEOF
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012 egrep "webecray" >/dev/null 2>&1; then
8013 ac_cv_os_cray=yes
8014 else
8015 ac_cv_os_cray=no
8017 rm -f conftest*
8020 echo "$as_me:8020: result: $ac_cv_os_cray" >&5
8021 echo "${ECHO_T}$ac_cv_os_cray" >&6
8022 if test $ac_cv_os_cray = yes; then
8023 for ac_func in _getb67 GETB67 getb67; do
8024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8025 echo "$as_me:8025: checking for $ac_func" >&5
8026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8027 if eval "test \"\${$as_ac_var+set}\" = set"; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 cat >conftest.$ac_ext <<_ACEOF
8031 #line 8031 "configure"
8032 #include "confdefs.h"
8033 /* System header to define __stub macros and hopefully few prototypes,
8034 which can conflict with char $ac_func (); below. */
8035 #include <assert.h>
8036 /* Override any gcc2 internal prototype to avoid an error. */
8037 #ifdef __cplusplus
8038 extern "C"
8039 #endif
8040 /* We use char because int might match the return type of a gcc2
8041 builtin and then its argument prototype would still apply. */
8042 char $ac_func ();
8043 char (*f) ();
8046 main ()
8048 /* The GNU C library defines this for functions which it implements
8049 to always fail with ENOSYS. Some functions are actually named
8050 something starting with __ and the normal name is an alias. */
8051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8052 choke me
8053 #else
8054 f = $ac_func;
8055 #endif
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (eval echo "$as_me:8062: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8064 ac_status=$?
8065 echo "$as_me:8065: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -s conftest$ac_exeext'
8068 { (eval echo "$as_me:8068: \"$ac_try\"") >&5
8069 (eval $ac_try) 2>&5
8070 ac_status=$?
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 eval "$as_ac_var=yes"
8074 else
8075 echo "$as_me: failed program was:" >&5
8076 cat conftest.$ac_ext >&5
8077 eval "$as_ac_var=no"
8079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8081 echo "$as_me:8081: result: `eval echo '${'$as_ac_var'}'`" >&5
8082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8083 if test `eval echo '${'$as_ac_var'}'` = yes; then
8085 cat >>confdefs.h <<EOF
8086 #define CRAY_STACKSEG_END $ac_func
8089 break
8092 done
8095 echo "$as_me:8095: checking stack direction for C alloca" >&5
8096 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8097 if test "${ac_cv_c_stack_direction+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 if test "$cross_compiling" = yes; then
8101 ac_cv_c_stack_direction=0
8102 else
8103 cat >conftest.$ac_ext <<_ACEOF
8104 #line 8104 "configure"
8105 #include "confdefs.h"
8107 find_stack_direction ()
8109 static char *addr = 0;
8110 auto char dummy;
8111 if (addr == 0)
8113 addr = &dummy;
8114 return find_stack_direction ();
8116 else
8117 return (&dummy > addr) ? 1 : -1;
8121 main ()
8123 exit (find_stack_direction () < 0);
8125 _ACEOF
8126 rm -f conftest$ac_exeext
8127 if { (eval echo "$as_me:8127: \"$ac_link\"") >&5
8128 (eval $ac_link) 2>&5
8129 ac_status=$?
8130 echo "$as_me:8130: \$? = $ac_status" >&5
8131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8132 { (eval echo "$as_me:8132: \"$ac_try\"") >&5
8133 (eval $ac_try) 2>&5
8134 ac_status=$?
8135 echo "$as_me:8135: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_cv_c_stack_direction=1
8138 else
8139 echo "$as_me: program exited with status $ac_status" >&5
8140 echo "$as_me: failed program was:" >&5
8141 cat conftest.$ac_ext >&5
8142 ac_cv_c_stack_direction=-1
8144 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8147 echo "$as_me:8147: result: $ac_cv_c_stack_direction" >&5
8148 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8150 cat >>confdefs.h <<EOF
8151 #define STACK_DIRECTION $ac_cv_c_stack_direction
8156 # fmod, logb, and frexp are found in -lm on most systems.
8157 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
8159 echo "$as_me:8159: checking for sqrt in -lm" >&5
8160 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
8161 if test "${ac_cv_lib_m_sqrt+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 ac_check_lib_save_LIBS=$LIBS
8165 LIBS="-lm $LIBS"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 #line 8167 "configure"
8168 #include "confdefs.h"
8170 /* Override any gcc2 internal prototype to avoid an error. */
8171 #ifdef __cplusplus
8172 extern "C"
8173 #endif
8174 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */
8176 char sqrt ();
8178 main ()
8180 sqrt ();
8182 return 0;
8184 _ACEOF
8185 rm -f conftest.$ac_objext conftest$ac_exeext
8186 if { (eval echo "$as_me:8186: \"$ac_link\"") >&5
8187 (eval $ac_link) 2>&5
8188 ac_status=$?
8189 echo "$as_me:8189: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:8192: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:8195: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_cv_lib_m_sqrt=yes
8198 else
8199 echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 ac_cv_lib_m_sqrt=no
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204 LIBS=$ac_check_lib_save_LIBS
8206 echo "$as_me:8206: result: $ac_cv_lib_m_sqrt" >&5
8207 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
8208 if test $ac_cv_lib_m_sqrt = yes; then
8209 cat >>confdefs.h <<EOF
8210 #define HAVE_LIBM 1
8213 LIBS="-lm $LIBS"
8217 # Check for mail-locking functions in a "mail" library
8219 echo "$as_me:8219: checking for maillock in -lmail" >&5
8220 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
8221 if test "${ac_cv_lib_mail_maillock+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 ac_check_lib_save_LIBS=$LIBS
8225 LIBS="-lmail $LIBS"
8226 cat >conftest.$ac_ext <<_ACEOF
8227 #line 8227 "configure"
8228 #include "confdefs.h"
8230 /* Override any gcc2 internal prototype to avoid an error. */
8231 #ifdef __cplusplus
8232 extern "C"
8233 #endif
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char maillock ();
8238 main ()
8240 maillock ();
8242 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (eval echo "$as_me:8246: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>&5
8248 ac_status=$?
8249 echo "$as_me:8249: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -s conftest$ac_exeext'
8252 { (eval echo "$as_me:8252: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:8255: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_lib_mail_maillock=yes
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8261 ac_cv_lib_mail_maillock=no
8263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8266 echo "$as_me:8266: result: $ac_cv_lib_mail_maillock" >&5
8267 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
8268 if test $ac_cv_lib_mail_maillock = yes; then
8269 cat >>confdefs.h <<EOF
8270 #define HAVE_LIBMAIL 1
8273 LIBS="-lmail $LIBS"
8277 echo "$as_me:8277: checking for maillock in -llockfile" >&5
8278 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
8279 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 ac_check_lib_save_LIBS=$LIBS
8283 LIBS="-llockfile $LIBS"
8284 cat >conftest.$ac_ext <<_ACEOF
8285 #line 8285 "configure"
8286 #include "confdefs.h"
8288 /* Override any gcc2 internal prototype to avoid an error. */
8289 #ifdef __cplusplus
8290 extern "C"
8291 #endif
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8294 char maillock ();
8296 main ()
8298 maillock ();
8300 return 0;
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:8304: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>&5
8306 ac_status=$?
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:8310: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:8313: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_lib_lockfile_maillock=yes
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8319 ac_cv_lib_lockfile_maillock=no
8321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8322 LIBS=$ac_check_lib_save_LIBS
8324 echo "$as_me:8324: result: $ac_cv_lib_lockfile_maillock" >&5
8325 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
8326 if test $ac_cv_lib_lockfile_maillock = yes; then
8327 cat >>confdefs.h <<EOF
8328 #define HAVE_LIBLOCKFILE 1
8331 LIBS="-llockfile $LIBS"
8335 # If we have the shared liblockfile, assume we must use it for mail
8336 # locking (e.g. Debian). If we couldn't link against liblockfile
8337 # (no liblockfile.a installed), ensure that we don't need to.
8338 if test "$ac_cv_lib_lockfile_maillock" = no; then
8339 # Extract the first word of "liblockfile.so", so it can be a program name with args.
8340 set dummy liblockfile.so; ac_word=$2
8341 echo "$as_me:8341: checking for $ac_word" >&5
8342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8343 if test "${ac_cv_prog_liblockfile+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346 if test -n "$liblockfile"; then
8347 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
8348 else
8349 ac_save_IFS=$IFS; IFS=$ac_path_separator
8350 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
8351 for ac_dir in $ac_dummy; do
8352 IFS=$ac_save_IFS
8353 test -z "$ac_dir" && ac_dir=.
8354 $as_executable_p "$ac_dir/$ac_word" || continue
8355 ac_cv_prog_liblockfile="yes"
8356 echo "$as_me:8356: found $ac_dir/$ac_word" >&5
8357 break
8358 done
8360 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
8363 liblockfile=$ac_cv_prog_liblockfile
8364 if test -n "$liblockfile"; then
8365 echo "$as_me:8365: result: $liblockfile" >&5
8366 echo "${ECHO_T}$liblockfile" >&6
8367 else
8368 echo "$as_me:8368: result: no" >&5
8369 echo "${ECHO_T}no" >&6
8372 if test $ac_cv_prog_liblockfile = yes; then
8373 { { echo "$as_me:8373: error: Shared liblockfile found but can't link against it.
8374 This probably means that movemail could lose mail.
8375 There may be a \`development' package to install containing liblockfile." >&5
8376 echo "$as_me: error: Shared liblockfile found but can't link against it.
8377 This probably means that movemail could lose mail.
8378 There may be a \`development' package to install containing liblockfile." >&2;}
8379 { (exit 1); exit 1; }; }
8380 else
8381 cat >>confdefs.h <<\EOF
8382 #define LIBMAIL -llockfile
8386 else :
8389 for ac_func in touchlock
8391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8392 echo "$as_me:8392: checking for $ac_func" >&5
8393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8394 if eval "test \"\${$as_ac_var+set}\" = set"; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 cat >conftest.$ac_ext <<_ACEOF
8398 #line 8398 "configure"
8399 #include "confdefs.h"
8400 /* System header to define __stub macros and hopefully few prototypes,
8401 which can conflict with char $ac_func (); below. */
8402 #include <assert.h>
8403 /* Override any gcc2 internal prototype to avoid an error. */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 /* We use char because int might match the return type of a gcc2
8408 builtin and then its argument prototype would still apply. */
8409 char $ac_func ();
8410 char (*f) ();
8413 main ()
8415 /* The GNU C library defines this for functions which it implements
8416 to always fail with ENOSYS. Some functions are actually named
8417 something starting with __ and the normal name is an alias. */
8418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8419 choke me
8420 #else
8421 f = $ac_func;
8422 #endif
8425 return 0;
8427 _ACEOF
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (eval echo "$as_me:8429: \"$ac_link\"") >&5
8430 (eval $ac_link) 2>&5
8431 ac_status=$?
8432 echo "$as_me:8432: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:8435: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:8438: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 eval "$as_ac_var=yes"
8441 else
8442 echo "$as_me: failed program was:" >&5
8443 cat conftest.$ac_ext >&5
8444 eval "$as_ac_var=no"
8446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8448 echo "$as_me:8448: result: `eval echo '${'$as_ac_var'}'`" >&5
8449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8450 if test `eval echo '${'$as_ac_var'}'` = yes; then
8451 cat >>confdefs.h <<EOF
8452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8456 done
8458 for ac_header in maillock.h
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 echo "$as_me:8461: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466 cat >conftest.$ac_ext <<_ACEOF
8467 #line 8467 "configure"
8468 #include "confdefs.h"
8469 #include <$ac_header>
8470 _ACEOF
8471 if { (eval echo "$as_me:8471: \"$ac_cpp conftest.$ac_ext\"") >&5
8472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8473 ac_status=$?
8474 egrep -v '^ *\+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:8477: \$? = $ac_status" >&5
8478 (exit $ac_status); } >/dev/null; then
8479 if test -s conftest.err; then
8480 ac_cpp_err=$ac_c_preproc_warn_flag
8481 else
8482 ac_cpp_err=
8484 else
8485 ac_cpp_err=yes
8487 if test -z "$ac_cpp_err"; then
8488 eval "$as_ac_Header=yes"
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8492 eval "$as_ac_Header=no"
8494 rm -f conftest.err conftest.$ac_ext
8496 echo "$as_me:8496: result: `eval echo '${'$as_ac_Header'}'`" >&5
8497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8499 cat >>confdefs.h <<EOF
8500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504 done
8506 for ac_func in gethostname getdomainname dup2 \
8507 rename closedir mkdir rmdir sysinfo \
8508 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
8509 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
8510 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
8511 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
8512 sendto recvfrom getsockopt setsockopt getsockname getpeername \
8513 gai_strerror mkstemp getline getdelim
8515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8516 echo "$as_me:8516: checking for $ac_func" >&5
8517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8518 if eval "test \"\${$as_ac_var+set}\" = set"; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line 8522 "configure"
8523 #include "confdefs.h"
8524 /* System header to define __stub macros and hopefully few prototypes,
8525 which can conflict with char $ac_func (); below. */
8526 #include <assert.h>
8527 /* Override any gcc2 internal prototype to avoid an error. */
8528 #ifdef __cplusplus
8529 extern "C"
8530 #endif
8531 /* We use char because int might match the return type of a gcc2
8532 builtin and then its argument prototype would still apply. */
8533 char $ac_func ();
8534 char (*f) ();
8537 main ()
8539 /* The GNU C library defines this for functions which it implements
8540 to always fail with ENOSYS. Some functions are actually named
8541 something starting with __ and the normal name is an alias. */
8542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8543 choke me
8544 #else
8545 f = $ac_func;
8546 #endif
8549 return 0;
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:8553: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>&5
8555 ac_status=$?
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -s conftest$ac_exeext'
8559 { (eval echo "$as_me:8559: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:8562: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 eval "$as_ac_var=yes"
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 eval "$as_ac_var=no"
8570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8572 echo "$as_me:8572: result: `eval echo '${'$as_ac_var'}'`" >&5
8573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8574 if test `eval echo '${'$as_ac_var'}'` = yes; then
8575 cat >>confdefs.h <<EOF
8576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8580 done
8582 for ac_header in sys/un.h
8584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8585 echo "$as_me:8585: checking for $ac_header" >&5
8586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 cat >conftest.$ac_ext <<_ACEOF
8591 #line 8591 "configure"
8592 #include "confdefs.h"
8593 #include <$ac_header>
8594 _ACEOF
8595 if { (eval echo "$as_me:8595: \"$ac_cpp conftest.$ac_ext\"") >&5
8596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8597 ac_status=$?
8598 egrep -v '^ *\+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:8601: \$? = $ac_status" >&5
8602 (exit $ac_status); } >/dev/null; then
8603 if test -s conftest.err; then
8604 ac_cpp_err=$ac_c_preproc_warn_flag
8605 else
8606 ac_cpp_err=
8608 else
8609 ac_cpp_err=yes
8611 if test -z "$ac_cpp_err"; then
8612 eval "$as_ac_Header=yes"
8613 else
8614 echo "$as_me: failed program was:" >&5
8615 cat conftest.$ac_ext >&5
8616 eval "$as_ac_Header=no"
8618 rm -f conftest.err conftest.$ac_ext
8620 echo "$as_me:8620: result: `eval echo '${'$as_ac_Header'}'`" >&5
8621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8623 cat >>confdefs.h <<EOF
8624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628 done
8630 for ac_header in sys/time.h unistd.h
8632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8633 echo "$as_me:8633: checking for $ac_header" >&5
8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 #line 8639 "configure"
8640 #include "confdefs.h"
8641 #include <$ac_header>
8642 _ACEOF
8643 if { (eval echo "$as_me:8643: \"$ac_cpp conftest.$ac_ext\"") >&5
8644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8645 ac_status=$?
8646 egrep -v '^ *\+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:8649: \$? = $ac_status" >&5
8650 (exit $ac_status); } >/dev/null; then
8651 if test -s conftest.err; then
8652 ac_cpp_err=$ac_c_preproc_warn_flag
8653 else
8654 ac_cpp_err=
8656 else
8657 ac_cpp_err=yes
8659 if test -z "$ac_cpp_err"; then
8660 eval "$as_ac_Header=yes"
8661 else
8662 echo "$as_me: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 eval "$as_ac_Header=no"
8666 rm -f conftest.err conftest.$ac_ext
8668 echo "$as_me:8668: result: `eval echo '${'$as_ac_Header'}'`" >&5
8669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8671 cat >>confdefs.h <<EOF
8672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8676 done
8678 for ac_func in alarm
8680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8681 echo "$as_me:8681: checking for $ac_func" >&5
8682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_var+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 cat >conftest.$ac_ext <<_ACEOF
8687 #line 8687 "configure"
8688 #include "confdefs.h"
8689 /* System header to define __stub macros and hopefully few prototypes,
8690 which can conflict with char $ac_func (); below. */
8691 #include <assert.h>
8692 /* Override any gcc2 internal prototype to avoid an error. */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8698 char $ac_func ();
8699 char (*f) ();
8702 main ()
8704 /* The GNU C library defines this for functions which it implements
8705 to always fail with ENOSYS. Some functions are actually named
8706 something starting with __ and the normal name is an alias. */
8707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8708 choke me
8709 #else
8710 f = $ac_func;
8711 #endif
8714 return 0;
8716 _ACEOF
8717 rm -f conftest.$ac_objext conftest$ac_exeext
8718 if { (eval echo "$as_me:8718: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>&5
8720 ac_status=$?
8721 echo "$as_me:8721: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:8724: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:8727: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 eval "$as_ac_var=yes"
8730 else
8731 echo "$as_me: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8733 eval "$as_ac_var=no"
8735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8737 echo "$as_me:8737: result: `eval echo '${'$as_ac_var'}'`" >&5
8738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8739 if test `eval echo '${'$as_ac_var'}'` = yes; then
8740 cat >>confdefs.h <<EOF
8741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8745 done
8747 echo "$as_me:8747: checking for working mktime" >&5
8748 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
8749 if test "${ac_cv_func_working_mktime+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 if test "$cross_compiling" = yes; then
8753 ac_cv_func_working_mktime=no
8754 else
8755 cat >conftest.$ac_ext <<_ACEOF
8756 #line 8756 "configure"
8757 #include "confdefs.h"
8758 /* Test program from Paul Eggert and Tony Leneis. */
8759 #if TIME_WITH_SYS_TIME
8760 # include <sys/time.h>
8761 # include <time.h>
8762 #else
8763 # if HAVE_SYS_TIME_H
8764 # include <sys/time.h>
8765 # else
8766 # include <time.h>
8767 # endif
8768 #endif
8770 #if HAVE_UNISTD_H
8771 # include <unistd.h>
8772 #endif
8774 #if !HAVE_ALARM
8775 # define alarm(X) /* empty */
8776 #endif
8778 /* Work around redefinition to rpl_putenv by other config tests. */
8779 #undef putenv
8781 static time_t time_t_max;
8783 /* Values we'll use to set the TZ environment variable. */
8784 static const char *const tz_strings[] = {
8785 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8786 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8788 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8790 /* Fail if mktime fails to convert a date in the spring-forward gap.
8791 Based on a problem report from Andreas Jaeger. */
8792 static void
8793 spring_forward_gap ()
8795 /* glibc (up to about 1998-10-07) failed this test. */
8796 struct tm tm;
8798 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8799 instead of "TZ=America/Vancouver" in order to detect the bug even
8800 on systems that don't support the Olson extension, or don't have the
8801 full zoneinfo tables installed. */
8802 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
8804 tm.tm_year = 98;
8805 tm.tm_mon = 3;
8806 tm.tm_mday = 5;
8807 tm.tm_hour = 2;
8808 tm.tm_min = 0;
8809 tm.tm_sec = 0;
8810 tm.tm_isdst = -1;
8811 if (mktime (&tm) == (time_t)-1)
8812 exit (1);
8815 static void
8816 mktime_test (now)
8817 time_t now;
8819 struct tm *lt;
8820 if ((lt = localtime (&now)) && mktime (lt) != now)
8821 exit (1);
8822 now = time_t_max - now;
8823 if ((lt = localtime (&now)) && mktime (lt) != now)
8824 exit (1);
8827 static void
8828 irix_6_4_bug ()
8830 /* Based on code from Ariel Faigon. */
8831 struct tm tm;
8832 tm.tm_year = 96;
8833 tm.tm_mon = 3;
8834 tm.tm_mday = 0;
8835 tm.tm_hour = 0;
8836 tm.tm_min = 0;
8837 tm.tm_sec = 0;
8838 tm.tm_isdst = -1;
8839 mktime (&tm);
8840 if (tm.tm_mon != 2 || tm.tm_mday != 31)
8841 exit (1);
8844 static void
8845 bigtime_test (j)
8846 int j;
8848 struct tm tm;
8849 time_t now;
8850 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8851 now = mktime (&tm);
8852 if (now != (time_t) -1)
8854 struct tm *lt = localtime (&now);
8855 if (! (lt
8856 && lt->tm_year == tm.tm_year
8857 && lt->tm_mon == tm.tm_mon
8858 && lt->tm_mday == tm.tm_mday
8859 && lt->tm_hour == tm.tm_hour
8860 && lt->tm_min == tm.tm_min
8861 && lt->tm_sec == tm.tm_sec
8862 && lt->tm_yday == tm.tm_yday
8863 && lt->tm_wday == tm.tm_wday
8864 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8865 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8866 exit (1);
8871 main ()
8873 time_t t, delta;
8874 int i, j;
8876 /* This test makes some buggy mktime implementations loop.
8877 Give up after 60 seconds; a mktime slower than that
8878 isn't worth using anyway. */
8879 alarm (60);
8881 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
8882 continue;
8883 time_t_max--;
8884 delta = time_t_max / 997; /* a suitable prime number */
8885 for (i = 0; i < N_STRINGS; i++)
8887 if (tz_strings[i])
8888 putenv (tz_strings[i]);
8890 for (t = 0; t <= time_t_max - delta; t += delta)
8891 mktime_test (t);
8892 mktime_test ((time_t) 60 * 60);
8893 mktime_test ((time_t) 60 * 60 * 24);
8895 for (j = 1; 0 < j; j *= 2)
8896 bigtime_test (j);
8897 bigtime_test (j - 1);
8899 irix_6_4_bug ();
8900 spring_forward_gap ();
8901 exit (0);
8903 _ACEOF
8904 rm -f conftest$ac_exeext
8905 if { (eval echo "$as_me:8905: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>&5
8907 ac_status=$?
8908 echo "$as_me:8908: \$? = $ac_status" >&5
8909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8910 { (eval echo "$as_me:8910: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:8913: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_func_working_mktime=yes
8916 else
8917 echo "$as_me: program exited with status $ac_status" >&5
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 ac_cv_func_working_mktime=no
8922 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8925 echo "$as_me:8925: result: $ac_cv_func_working_mktime" >&5
8926 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
8927 if test $ac_cv_func_working_mktime = no; then
8928 LIBOBJS="$LIBOBJS mktime.$ac_objext"
8931 if test "$ac_cv_func_working_mktime" = no; then
8933 cat >>confdefs.h <<\EOF
8934 #define BROKEN_MKTIME 1
8939 ac_have_func=no # yes means we've found a way to get the load average.
8941 ac_save_LIBS=$LIBS
8943 # Check for getloadavg, but be sure not to touch the cache variable.
8944 (echo "$as_me:8944: checking for getloadavg" >&5
8945 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
8946 if test "${ac_cv_func_getloadavg+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 cat >conftest.$ac_ext <<_ACEOF
8950 #line 8950 "configure"
8951 #include "confdefs.h"
8952 /* System header to define __stub macros and hopefully few prototypes,
8953 which can conflict with char getloadavg (); below. */
8954 #include <assert.h>
8955 /* Override any gcc2 internal prototype to avoid an error. */
8956 #ifdef __cplusplus
8957 extern "C"
8958 #endif
8959 /* We use char because int might match the return type of a gcc2
8960 builtin and then its argument prototype would still apply. */
8961 char getloadavg ();
8962 char (*f) ();
8965 main ()
8967 /* The GNU C library defines this for functions which it implements
8968 to always fail with ENOSYS. Some functions are actually named
8969 something starting with __ and the normal name is an alias. */
8970 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
8971 choke me
8972 #else
8973 f = getloadavg;
8974 #endif
8977 return 0;
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:8981: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>&5
8983 ac_status=$?
8984 echo "$as_me:8984: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest$ac_exeext'
8987 { (eval echo "$as_me:8987: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:8990: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_func_getloadavg=yes
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 ac_cv_func_getloadavg=no
8998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9000 echo "$as_me:9000: result: $ac_cv_func_getloadavg" >&5
9001 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
9002 if test $ac_cv_func_getloadavg = yes; then
9003 exit 0
9004 else
9005 exit 1
9007 ) && ac_have_func=yes
9009 # On HPUX9, an unprivileged user can get load averages through this function.
9011 for ac_func in pstat_getdynamic
9013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9014 echo "$as_me:9014: checking for $ac_func" >&5
9015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_var+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 cat >conftest.$ac_ext <<_ACEOF
9020 #line 9020 "configure"
9021 #include "confdefs.h"
9022 /* System header to define __stub macros and hopefully few prototypes,
9023 which can conflict with char $ac_func (); below. */
9024 #include <assert.h>
9025 /* Override any gcc2 internal prototype to avoid an error. */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 /* We use char because int might match the return type of a gcc2
9030 builtin and then its argument prototype would still apply. */
9031 char $ac_func ();
9032 char (*f) ();
9035 main ()
9037 /* The GNU C library defines this for functions which it implements
9038 to always fail with ENOSYS. Some functions are actually named
9039 something starting with __ and the normal name is an alias. */
9040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9041 choke me
9042 #else
9043 f = $ac_func;
9044 #endif
9047 return 0;
9049 _ACEOF
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:9051: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>&5
9053 ac_status=$?
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -s conftest$ac_exeext'
9057 { (eval echo "$as_me:9057: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 eval "$as_ac_var=yes"
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 eval "$as_ac_var=no"
9068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9070 echo "$as_me:9070: result: `eval echo '${'$as_ac_var'}'`" >&5
9071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9072 if test `eval echo '${'$as_ac_var'}'` = yes; then
9073 cat >>confdefs.h <<EOF
9074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9078 done
9080 # Solaris has libkstat which does not require root.
9082 echo "$as_me:9082: checking for kstat_open in -lkstat" >&5
9083 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
9084 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-lkstat $LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9090 #line 9090 "configure"
9091 #include "confdefs.h"
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9099 char kstat_open ();
9101 main ()
9103 kstat_open ();
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (eval echo "$as_me:9109: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>&5
9111 ac_status=$?
9112 echo "$as_me:9112: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -s conftest$ac_exeext'
9115 { (eval echo "$as_me:9115: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:9118: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_cv_lib_kstat_kstat_open=yes
9121 else
9122 echo "$as_me: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 ac_cv_lib_kstat_kstat_open=no
9126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9127 LIBS=$ac_check_lib_save_LIBS
9129 echo "$as_me:9129: result: $ac_cv_lib_kstat_kstat_open" >&5
9130 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
9131 if test $ac_cv_lib_kstat_kstat_open = yes; then
9132 cat >>confdefs.h <<EOF
9133 #define HAVE_LIBKSTAT 1
9136 LIBS="-lkstat $LIBS"
9140 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9142 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9143 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9144 # to get the right answer into the cache.
9145 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9146 if test $ac_have_func = no; then
9147 echo "$as_me:9147: checking for elf_begin in -lelf" >&5
9148 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
9149 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 ac_check_lib_save_LIBS=$LIBS
9153 LIBS="-lelf $LIBS"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 #line 9155 "configure"
9156 #include "confdefs.h"
9158 /* Override any gcc2 internal prototype to avoid an error. */
9159 #ifdef __cplusplus
9160 extern "C"
9161 #endif
9162 /* We use char because int might match the return type of a gcc2
9163 builtin and then its argument prototype would still apply. */
9164 char elf_begin ();
9166 main ()
9168 elf_begin ();
9170 return 0;
9172 _ACEOF
9173 rm -f conftest.$ac_objext conftest$ac_exeext
9174 if { (eval echo "$as_me:9174: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>&5
9176 ac_status=$?
9177 echo "$as_me:9177: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:9180: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_lib_elf_elf_begin=yes
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9189 ac_cv_lib_elf_elf_begin=no
9191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9192 LIBS=$ac_check_lib_save_LIBS
9194 echo "$as_me:9194: result: $ac_cv_lib_elf_elf_begin" >&5
9195 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
9196 if test $ac_cv_lib_elf_elf_begin = yes; then
9197 LIBS="-lelf $LIBS"
9201 if test $ac_have_func = no; then
9202 echo "$as_me:9202: checking for kvm_open in -lkvm" >&5
9203 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
9204 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207 ac_check_lib_save_LIBS=$LIBS
9208 LIBS="-lkvm $LIBS"
9209 cat >conftest.$ac_ext <<_ACEOF
9210 #line 9210 "configure"
9211 #include "confdefs.h"
9213 /* Override any gcc2 internal prototype to avoid an error. */
9214 #ifdef __cplusplus
9215 extern "C"
9216 #endif
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9219 char kvm_open ();
9221 main ()
9223 kvm_open ();
9225 return 0;
9227 _ACEOF
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:9229: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>&5
9231 ac_status=$?
9232 echo "$as_me:9232: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:9235: \"$ac_try\"") >&5
9236 (eval $ac_try) 2>&5
9237 ac_status=$?
9238 echo "$as_me:9238: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_lib_kvm_kvm_open=yes
9241 else
9242 echo "$as_me: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9244 ac_cv_lib_kvm_kvm_open=no
9246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9247 LIBS=$ac_check_lib_save_LIBS
9249 echo "$as_me:9249: result: $ac_cv_lib_kvm_kvm_open" >&5
9250 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
9251 if test $ac_cv_lib_kvm_kvm_open = yes; then
9252 LIBS="-lkvm $LIBS"
9255 # Check for the 4.4BSD definition of getloadavg.
9256 echo "$as_me:9256: checking for getloadavg in -lutil" >&5
9257 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
9258 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261 ac_check_lib_save_LIBS=$LIBS
9262 LIBS="-lutil $LIBS"
9263 cat >conftest.$ac_ext <<_ACEOF
9264 #line 9264 "configure"
9265 #include "confdefs.h"
9267 /* Override any gcc2 internal prototype to avoid an error. */
9268 #ifdef __cplusplus
9269 extern "C"
9270 #endif
9271 /* We use char because int might match the return type of a gcc2
9272 builtin and then its argument prototype would still apply. */
9273 char getloadavg ();
9275 main ()
9277 getloadavg ();
9279 return 0;
9281 _ACEOF
9282 rm -f conftest.$ac_objext conftest$ac_exeext
9283 if { (eval echo "$as_me:9283: \"$ac_link\"") >&5
9284 (eval $ac_link) 2>&5
9285 ac_status=$?
9286 echo "$as_me:9286: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -s conftest$ac_exeext'
9289 { (eval echo "$as_me:9289: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:9292: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_lib_util_getloadavg=yes
9295 else
9296 echo "$as_me: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 ac_cv_lib_util_getloadavg=no
9300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9301 LIBS=$ac_check_lib_save_LIBS
9303 echo "$as_me:9303: result: $ac_cv_lib_util_getloadavg" >&5
9304 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
9305 if test $ac_cv_lib_util_getloadavg = yes; then
9306 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9311 if test $ac_have_func = no; then
9312 # There is a commonly available library for RS/6000 AIX.
9313 # Since it is not a standard part of AIX, it might be installed locally.
9314 ac_getloadavg_LIBS=$LIBS
9315 LIBS="-L/usr/local/lib $LIBS"
9316 echo "$as_me:9316: checking for getloadavg in -lgetloadavg" >&5
9317 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
9318 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 ac_check_lib_save_LIBS=$LIBS
9322 LIBS="-lgetloadavg $LIBS"
9323 cat >conftest.$ac_ext <<_ACEOF
9324 #line 9324 "configure"
9325 #include "confdefs.h"
9327 /* Override any gcc2 internal prototype to avoid an error. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9333 char getloadavg ();
9335 main ()
9337 getloadavg ();
9339 return 0;
9341 _ACEOF
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (eval echo "$as_me:9343: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>&5
9345 ac_status=$?
9346 echo "$as_me:9346: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -s conftest$ac_exeext'
9349 { (eval echo "$as_me:9349: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:9352: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_lib_getloadavg_getloadavg=yes
9355 else
9356 echo "$as_me: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9358 ac_cv_lib_getloadavg_getloadavg=no
9360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9361 LIBS=$ac_check_lib_save_LIBS
9363 echo "$as_me:9363: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9364 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
9365 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
9366 LIBS="-lgetloadavg $LIBS"
9367 else
9368 LIBS=$ac_getloadavg_LIBS
9373 # Make sure it is really in the library, if we think we found it,
9374 # otherwise set up the replacement function.
9376 for ac_func in getloadavg
9378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9379 echo "$as_me:9379: checking for $ac_func" >&5
9380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9381 if eval "test \"\${$as_ac_var+set}\" = set"; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 cat >conftest.$ac_ext <<_ACEOF
9385 #line 9385 "configure"
9386 #include "confdefs.h"
9387 /* System header to define __stub macros and hopefully few prototypes,
9388 which can conflict with char $ac_func (); below. */
9389 #include <assert.h>
9390 /* Override any gcc2 internal prototype to avoid an error. */
9391 #ifdef __cplusplus
9392 extern "C"
9393 #endif
9394 /* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396 char $ac_func ();
9397 char (*f) ();
9400 main ()
9402 /* The GNU C library defines this for functions which it implements
9403 to always fail with ENOSYS. Some functions are actually named
9404 something starting with __ and the normal name is an alias. */
9405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9406 choke me
9407 #else
9408 f = $ac_func;
9409 #endif
9412 return 0;
9414 _ACEOF
9415 rm -f conftest.$ac_objext conftest$ac_exeext
9416 if { (eval echo "$as_me:9416: \"$ac_link\"") >&5
9417 (eval $ac_link) 2>&5
9418 ac_status=$?
9419 echo "$as_me:9419: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -s conftest$ac_exeext'
9422 { (eval echo "$as_me:9422: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:9425: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 eval "$as_ac_var=yes"
9428 else
9429 echo "$as_me: failed program was:" >&5
9430 cat conftest.$ac_ext >&5
9431 eval "$as_ac_var=no"
9433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9435 echo "$as_me:9435: result: `eval echo '${'$as_ac_var'}'`" >&5
9436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9437 if test `eval echo '${'$as_ac_var'}'` = yes; then
9438 cat >>confdefs.h <<EOF
9439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9442 else
9443 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9445 cat >>confdefs.h <<\EOF
9446 #define C_GETLOADAVG 1
9449 # Figure out what our getloadavg.c needs.
9450 ac_have_func=no
9451 echo "$as_me:9451: checking for sys/dg_sys_info.h" >&5
9452 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
9453 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456 cat >conftest.$ac_ext <<_ACEOF
9457 #line 9457 "configure"
9458 #include "confdefs.h"
9459 #include <sys/dg_sys_info.h>
9460 _ACEOF
9461 if { (eval echo "$as_me:9461: \"$ac_cpp conftest.$ac_ext\"") >&5
9462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9463 ac_status=$?
9464 egrep -v '^ *\+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:9467: \$? = $ac_status" >&5
9468 (exit $ac_status); } >/dev/null; then
9469 if test -s conftest.err; then
9470 ac_cpp_err=$ac_c_preproc_warn_flag
9471 else
9472 ac_cpp_err=
9474 else
9475 ac_cpp_err=yes
9477 if test -z "$ac_cpp_err"; then
9478 ac_cv_header_sys_dg_sys_info_h=yes
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9482 ac_cv_header_sys_dg_sys_info_h=no
9484 rm -f conftest.err conftest.$ac_ext
9486 echo "$as_me:9486: result: $ac_cv_header_sys_dg_sys_info_h" >&5
9487 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
9488 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
9489 ac_have_func=yes
9491 cat >>confdefs.h <<\EOF
9492 #define DGUX 1
9495 echo "$as_me:9495: checking for dg_sys_info in -ldgc" >&5
9496 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
9497 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500 ac_check_lib_save_LIBS=$LIBS
9501 LIBS="-ldgc $LIBS"
9502 cat >conftest.$ac_ext <<_ACEOF
9503 #line 9503 "configure"
9504 #include "confdefs.h"
9506 /* Override any gcc2 internal prototype to avoid an error. */
9507 #ifdef __cplusplus
9508 extern "C"
9509 #endif
9510 /* We use char because int might match the return type of a gcc2
9511 builtin and then its argument prototype would still apply. */
9512 char dg_sys_info ();
9514 main ()
9516 dg_sys_info ();
9518 return 0;
9520 _ACEOF
9521 rm -f conftest.$ac_objext conftest$ac_exeext
9522 if { (eval echo "$as_me:9522: \"$ac_link\"") >&5
9523 (eval $ac_link) 2>&5
9524 ac_status=$?
9525 echo "$as_me:9525: \$? = $ac_status" >&5
9526 (exit $ac_status); } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:9528: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:9531: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_lib_dgc_dg_sys_info=yes
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 ac_cv_lib_dgc_dg_sys_info=no
9539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9542 echo "$as_me:9542: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9543 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
9544 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
9545 cat >>confdefs.h <<EOF
9546 #define HAVE_LIBDGC 1
9549 LIBS="-ldgc $LIBS"
9555 echo "$as_me:9555: checking for locale.h" >&5
9556 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
9557 if test "${ac_cv_header_locale_h+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560 cat >conftest.$ac_ext <<_ACEOF
9561 #line 9561 "configure"
9562 #include "confdefs.h"
9563 #include <locale.h>
9564 _ACEOF
9565 if { (eval echo "$as_me:9565: \"$ac_cpp conftest.$ac_ext\"") >&5
9566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9567 ac_status=$?
9568 egrep -v '^ *\+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 echo "$as_me:9571: \$? = $ac_status" >&5
9572 (exit $ac_status); } >/dev/null; then
9573 if test -s conftest.err; then
9574 ac_cpp_err=$ac_c_preproc_warn_flag
9575 else
9576 ac_cpp_err=
9578 else
9579 ac_cpp_err=yes
9581 if test -z "$ac_cpp_err"; then
9582 ac_cv_header_locale_h=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.$ac_ext >&5
9586 ac_cv_header_locale_h=no
9588 rm -f conftest.err conftest.$ac_ext
9590 echo "$as_me:9590: result: $ac_cv_header_locale_h" >&5
9591 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
9593 for ac_func in setlocale
9595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 echo "$as_me:9596: checking for $ac_func" >&5
9597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9598 if eval "test \"\${$as_ac_var+set}\" = set"; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line 9602 "configure"
9603 #include "confdefs.h"
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char $ac_func (); below. */
9606 #include <assert.h>
9607 /* Override any gcc2 internal prototype to avoid an error. */
9608 #ifdef __cplusplus
9609 extern "C"
9610 #endif
9611 /* We use char because int might match the return type of a gcc2
9612 builtin and then its argument prototype would still apply. */
9613 char $ac_func ();
9614 char (*f) ();
9617 main ()
9619 /* The GNU C library defines this for functions which it implements
9620 to always fail with ENOSYS. Some functions are actually named
9621 something starting with __ and the normal name is an alias. */
9622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9623 choke me
9624 #else
9625 f = $ac_func;
9626 #endif
9629 return 0;
9631 _ACEOF
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (eval echo "$as_me:9633: \"$ac_link\"") >&5
9634 (eval $ac_link) 2>&5
9635 ac_status=$?
9636 echo "$as_me:9636: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -s conftest$ac_exeext'
9639 { (eval echo "$as_me:9639: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:9642: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 eval "$as_ac_var=yes"
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9648 eval "$as_ac_var=no"
9650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9652 echo "$as_me:9652: result: `eval echo '${'$as_ac_var'}'`" >&5
9653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9654 if test `eval echo '${'$as_ac_var'}'` = yes; then
9655 cat >>confdefs.h <<EOF
9656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9660 done
9662 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9663 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9664 # Irix 4.0.5F has the header but not the library.
9665 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
9666 ac_have_func=yes
9668 cat >>confdefs.h <<\EOF
9669 #define SVR4 1
9674 if test $ac_have_func = no; then
9675 echo "$as_me:9675: checking for inq_stats/cpustats.h" >&5
9676 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
9677 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 cat >conftest.$ac_ext <<_ACEOF
9681 #line 9681 "configure"
9682 #include "confdefs.h"
9683 #include <inq_stats/cpustats.h>
9684 _ACEOF
9685 if { (eval echo "$as_me:9685: \"$ac_cpp conftest.$ac_ext\"") >&5
9686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9687 ac_status=$?
9688 egrep -v '^ *\+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:9691: \$? = $ac_status" >&5
9692 (exit $ac_status); } >/dev/null; then
9693 if test -s conftest.err; then
9694 ac_cpp_err=$ac_c_preproc_warn_flag
9695 else
9696 ac_cpp_err=
9698 else
9699 ac_cpp_err=yes
9701 if test -z "$ac_cpp_err"; then
9702 ac_cv_header_inq_stats_cpustats_h=yes
9703 else
9704 echo "$as_me: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 ac_cv_header_inq_stats_cpustats_h=no
9708 rm -f conftest.err conftest.$ac_ext
9710 echo "$as_me:9710: result: $ac_cv_header_inq_stats_cpustats_h" >&5
9711 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
9712 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
9713 ac_have_func=yes
9715 cat >>confdefs.h <<\EOF
9716 #define UMAX 1
9719 cat >>confdefs.h <<\EOF
9720 #define UMAX4_3 1
9727 if test $ac_have_func = no; then
9728 echo "$as_me:9728: checking for sys/cpustats.h" >&5
9729 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
9730 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733 cat >conftest.$ac_ext <<_ACEOF
9734 #line 9734 "configure"
9735 #include "confdefs.h"
9736 #include <sys/cpustats.h>
9737 _ACEOF
9738 if { (eval echo "$as_me:9738: \"$ac_cpp conftest.$ac_ext\"") >&5
9739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9740 ac_status=$?
9741 egrep -v '^ *\+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 echo "$as_me:9744: \$? = $ac_status" >&5
9745 (exit $ac_status); } >/dev/null; then
9746 if test -s conftest.err; then
9747 ac_cpp_err=$ac_c_preproc_warn_flag
9748 else
9749 ac_cpp_err=
9751 else
9752 ac_cpp_err=yes
9754 if test -z "$ac_cpp_err"; then
9755 ac_cv_header_sys_cpustats_h=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 ac_cv_header_sys_cpustats_h=no
9761 rm -f conftest.err conftest.$ac_ext
9763 echo "$as_me:9763: result: $ac_cv_header_sys_cpustats_h" >&5
9764 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
9765 if test $ac_cv_header_sys_cpustats_h = yes; then
9766 ac_have_func=yes; cat >>confdefs.h <<\EOF
9767 #define UMAX 1
9774 if test $ac_have_func = no; then
9776 for ac_header in mach/mach.h
9778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779 echo "$as_me:9779: checking for $ac_header" >&5
9780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 cat >conftest.$ac_ext <<_ACEOF
9785 #line 9785 "configure"
9786 #include "confdefs.h"
9787 #include <$ac_header>
9788 _ACEOF
9789 if { (eval echo "$as_me:9789: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9791 ac_status=$?
9792 egrep -v '^ *\+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:9795: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev/null; then
9797 if test -s conftest.err; then
9798 ac_cpp_err=$ac_c_preproc_warn_flag
9799 else
9800 ac_cpp_err=
9802 else
9803 ac_cpp_err=yes
9805 if test -z "$ac_cpp_err"; then
9806 eval "$as_ac_Header=yes"
9807 else
9808 echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9810 eval "$as_ac_Header=no"
9812 rm -f conftest.err conftest.$ac_ext
9814 echo "$as_me:9814: result: `eval echo '${'$as_ac_Header'}'`" >&5
9815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9817 cat >>confdefs.h <<EOF
9818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9822 done
9826 for ac_header in nlist.h
9828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9829 echo "$as_me:9829: checking for $ac_header" >&5
9830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834 cat >conftest.$ac_ext <<_ACEOF
9835 #line 9835 "configure"
9836 #include "confdefs.h"
9837 #include <$ac_header>
9838 _ACEOF
9839 if { (eval echo "$as_me:9839: \"$ac_cpp conftest.$ac_ext\"") >&5
9840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9841 ac_status=$?
9842 egrep -v '^ *\+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 (exit $ac_status); } >/dev/null; then
9847 if test -s conftest.err; then
9848 ac_cpp_err=$ac_c_preproc_warn_flag
9849 else
9850 ac_cpp_err=
9852 else
9853 ac_cpp_err=yes
9855 if test -z "$ac_cpp_err"; then
9856 eval "$as_ac_Header=yes"
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9860 eval "$as_ac_Header=no"
9862 rm -f conftest.err conftest.$ac_ext
9864 echo "$as_me:9864: result: `eval echo '${'$as_ac_Header'}'`" >&5
9865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9867 cat >>confdefs.h <<EOF
9868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9870 echo "$as_me:9870: checking for struct nlist.n_un.n_name" >&5
9871 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
9872 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line 9876 "configure"
9877 #include "confdefs.h"
9878 #include <nlist.h>
9881 main ()
9883 static struct nlist ac_aggr;
9884 if (ac_aggr.n_un.n_name)
9885 return 0;
9887 return 0;
9889 _ACEOF
9890 rm -f conftest.$ac_objext
9891 if { (eval echo "$as_me:9891: \"$ac_compile\"") >&5
9892 (eval $ac_compile) 2>&5
9893 ac_status=$?
9894 echo "$as_me:9894: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -s conftest.$ac_objext'
9897 { (eval echo "$as_me:9897: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:9900: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_member_struct_nlist_n_un_n_name=yes
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 cat conftest.$ac_ext >&5
9906 ac_cv_member_struct_nlist_n_un_n_name=no
9908 rm -f conftest.$ac_objext conftest.$ac_ext
9910 echo "$as_me:9910: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
9911 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
9912 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
9914 cat >>confdefs.h <<EOF
9915 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
9918 cat >>confdefs.h <<\EOF
9919 #define NLIST_NAME_UNION 1
9925 done
9928 done
9930 # Some definitions of getloadavg require that the program be installed setgid.
9931 echo "$as_me:9931: checking whether getloadavg requires setgid" >&5
9932 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
9933 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 cat >conftest.$ac_ext <<_ACEOF
9937 #line 9937 "configure"
9938 #include "confdefs.h"
9939 #include "$srcdir/getloadavg.c"
9940 #ifdef LDAV_PRIVILEGED
9941 Yowza Am I SETGID yet
9942 #endif
9943 _ACEOF
9944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9945 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then
9946 ac_cv_func_getloadavg_setgid=yes
9947 else
9948 ac_cv_func_getloadavg_setgid=no
9950 rm -f conftest*
9953 echo "$as_me:9953: result: $ac_cv_func_getloadavg_setgid" >&5
9954 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
9955 if test $ac_cv_func_getloadavg_setgid = yes; then
9956 NEED_SETGID=true
9958 cat >>confdefs.h <<\EOF
9959 #define GETLOADAVG_PRIVILEGED 1
9962 else
9963 NEED_SETGID=false
9966 if test $ac_cv_func_getloadavg_setgid = yes; then
9967 echo "$as_me:9967: checking group of /dev/kmem" >&5
9968 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
9969 if test "${ac_cv_group_kmem+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
9973 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
9974 # If we got an error (system does not support symlinks), try without -L.
9975 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
9976 ac_cv_group_kmem=`echo $ac_ls_output \
9977 | sed -ne 's/[ ][ ]*/ /g;
9978 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
9979 / /s/.* //;p;'`
9982 echo "$as_me:9982: result: $ac_cv_group_kmem" >&5
9983 echo "${ECHO_T}$ac_cv_group_kmem" >&6
9984 KMEM_GROUP=$ac_cv_group_kmem
9986 if test "x$ac_save_LIBS" = x; then
9987 GETLOADAVG_LIBS=$LIBS
9988 else
9989 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
9991 LIBS=$ac_save_LIBS
9993 echo "$as_me:9993: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9994 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9995 if test "${ac_cv_sys_largefile_source+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 while :; do
9999 ac_cv_sys_largefile_source=no
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line 10001 "configure"
10002 #include "confdefs.h"
10003 #include <stdio.h>
10005 main ()
10007 return !fseeko;
10009 return 0;
10011 _ACEOF
10012 rm -f conftest.$ac_objext
10013 if { (eval echo "$as_me:10013: \"$ac_compile\"") >&5
10014 (eval $ac_compile) 2>&5
10015 ac_status=$?
10016 echo "$as_me:10016: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:10019: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:10022: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 break
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10029 rm -f conftest.$ac_objext conftest.$ac_ext
10030 cat >conftest.$ac_ext <<_ACEOF
10031 #line 10031 "configure"
10032 #include "confdefs.h"
10033 #define _LARGEFILE_SOURCE 1
10034 #include <stdio.h>
10036 main ()
10038 return !fseeko;
10040 return 0;
10042 _ACEOF
10043 rm -f conftest.$ac_objext
10044 if { (eval echo "$as_me:10044: \"$ac_compile\"") >&5
10045 (eval $ac_compile) 2>&5
10046 ac_status=$?
10047 echo "$as_me:10047: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -s conftest.$ac_objext'
10050 { (eval echo "$as_me:10050: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:10053: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_sys_largefile_source=1; break
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 cat conftest.$ac_ext >&5
10060 rm -f conftest.$ac_objext conftest.$ac_ext
10061 break
10062 done
10064 echo "$as_me:10064: result: $ac_cv_sys_largefile_source" >&5
10065 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10066 if test "$ac_cv_sys_largefile_source" != no; then
10068 cat >>confdefs.h <<EOF
10069 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10073 rm -f conftest*
10075 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10076 # in glibc 2.1.3, but that breaks too many other things.
10077 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10078 echo "$as_me:10078: checking for fseeko" >&5
10079 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10080 if test "${ac_cv_func_fseeko+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083 cat >conftest.$ac_ext <<_ACEOF
10084 #line 10084 "configure"
10085 #include "confdefs.h"
10086 #include <stdio.h>
10088 main ()
10090 return fseeko && fseeko (stdin, 0, 0);
10092 return 0;
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (eval echo "$as_me:10096: \"$ac_link\"") >&5
10097 (eval $ac_link) 2>&5
10098 ac_status=$?
10099 echo "$as_me:10099: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -s conftest$ac_exeext'
10102 { (eval echo "$as_me:10102: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:10105: \$? = $ac_status" >&5
10106 (exit $ac_status); }; }; then
10107 ac_cv_func_fseeko=yes
10108 else
10109 echo "$as_me: failed program was:" >&5
10110 cat conftest.$ac_ext >&5
10111 ac_cv_func_fseeko=no
10113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10115 echo "$as_me:10115: result: $ac_cv_func_fseeko" >&5
10116 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
10117 if test $ac_cv_func_fseeko = yes; then
10119 cat >>confdefs.h <<\EOF
10120 #define HAVE_FSEEKO 1
10125 # UNIX98 PTYs.
10127 for ac_func in grantpt
10129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10130 echo "$as_me:10130: checking for $ac_func" >&5
10131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10132 if eval "test \"\${$as_ac_var+set}\" = set"; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 cat >conftest.$ac_ext <<_ACEOF
10136 #line 10136 "configure"
10137 #include "confdefs.h"
10138 /* System header to define __stub macros and hopefully few prototypes,
10139 which can conflict with char $ac_func (); below. */
10140 #include <assert.h>
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 /* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10147 char $ac_func ();
10148 char (*f) ();
10151 main ()
10153 /* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10157 choke me
10158 #else
10159 f = $ac_func;
10160 #endif
10163 return 0;
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:10167: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10169 ac_status=$?
10170 echo "$as_me:10170: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:10173: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10175 ac_status=$?
10176 echo "$as_me:10176: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 eval "$as_ac_var=yes"
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 eval "$as_ac_var=no"
10184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10186 echo "$as_me:10186: result: `eval echo '${'$as_ac_var'}'`" >&5
10187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10188 if test `eval echo '${'$as_ac_var'}'` = yes; then
10189 cat >>confdefs.h <<EOF
10190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194 done
10196 # PTY-related GNU extensions.
10198 for ac_func in getpt
10200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10201 echo "$as_me:10201: checking for $ac_func" >&5
10202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10203 if eval "test \"\${$as_ac_var+set}\" = set"; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line 10207 "configure"
10208 #include "confdefs.h"
10209 /* System header to define __stub macros and hopefully few prototypes,
10210 which can conflict with char $ac_func (); below. */
10211 #include <assert.h>
10212 /* Override any gcc2 internal prototype to avoid an error. */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10218 char $ac_func ();
10219 char (*f) ();
10222 main ()
10224 /* The GNU C library defines this for functions which it implements
10225 to always fail with ENOSYS. Some functions are actually named
10226 something starting with __ and the normal name is an alias. */
10227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10228 choke me
10229 #else
10230 f = $ac_func;
10231 #endif
10234 return 0;
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (eval echo "$as_me:10238: \"$ac_link\"") >&5
10239 (eval $ac_link) 2>&5
10240 ac_status=$?
10241 echo "$as_me:10241: \$? = $ac_status" >&5
10242 (exit $ac_status); } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:10244: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:10247: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 eval "$as_ac_var=yes"
10250 else
10251 echo "$as_me: failed program was:" >&5
10252 cat conftest.$ac_ext >&5
10253 eval "$as_ac_var=no"
10255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10257 echo "$as_me:10257: result: `eval echo '${'$as_ac_var'}'`" >&5
10258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10259 if test `eval echo '${'$as_ac_var'}'` = yes; then
10260 cat >>confdefs.h <<EOF
10261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10265 done
10267 # Check this now, so that we will NOT find the above functions in ncurses.
10268 # That is because we have not set up to link ncurses in lib-src.
10269 # It's better to believe a function is not available
10270 # than to expect to find it in ncurses.
10272 echo "$as_me:10272: checking for tparm in -lncurses" >&5
10273 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
10274 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 ac_check_lib_save_LIBS=$LIBS
10278 LIBS="-lncurses $LIBS"
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line 10280 "configure"
10281 #include "confdefs.h"
10283 /* Override any gcc2 internal prototype to avoid an error. */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10289 char tparm ();
10291 main ()
10293 tparm ();
10295 return 0;
10297 _ACEOF
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (eval echo "$as_me:10299: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>&5
10301 ac_status=$?
10302 echo "$as_me:10302: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:10305: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10307 ac_status=$?
10308 echo "$as_me:10308: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_lib_ncurses_tparm=yes
10311 else
10312 echo "$as_me: failed program was:" >&5
10313 cat conftest.$ac_ext >&5
10314 ac_cv_lib_ncurses_tparm=no
10316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10317 LIBS=$ac_check_lib_save_LIBS
10319 echo "$as_me:10319: result: $ac_cv_lib_ncurses_tparm" >&5
10320 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
10321 if test $ac_cv_lib_ncurses_tparm = yes; then
10322 cat >>confdefs.h <<EOF
10323 #define HAVE_LIBNCURSES 1
10326 LIBS="-lncurses $LIBS"
10330 # Do we need the Hesiod library to provide the support routines?
10331 if test "$with_hesiod" = yes ; then
10332 # Don't set $LIBS here -- see comments above.
10333 resolv=no
10334 echo "$as_me:10334: checking for res_send" >&5
10335 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
10336 if test "${ac_cv_func_res_send+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339 cat >conftest.$ac_ext <<_ACEOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10342 /* System header to define __stub macros and hopefully few prototypes,
10343 which can conflict with char res_send (); below. */
10344 #include <assert.h>
10345 /* Override any gcc2 internal prototype to avoid an error. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 /* We use char because int might match the return type of a gcc2
10350 builtin and then its argument prototype would still apply. */
10351 char res_send ();
10352 char (*f) ();
10355 main ()
10357 /* The GNU C library defines this for functions which it implements
10358 to always fail with ENOSYS. Some functions are actually named
10359 something starting with __ and the normal name is an alias. */
10360 #if defined (__stub_res_send) || defined (__stub___res_send)
10361 choke me
10362 #else
10363 f = res_send;
10364 #endif
10367 return 0;
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (eval echo "$as_me:10371: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>&5
10373 ac_status=$?
10374 echo "$as_me:10374: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
10376 { ac_try='test -s conftest$ac_exeext'
10377 { (eval echo "$as_me:10377: \"$ac_try\"") >&5
10378 (eval $ac_try) 2>&5
10379 ac_status=$?
10380 echo "$as_me:10380: \$? = $ac_status" >&5
10381 (exit $ac_status); }; }; then
10382 ac_cv_func_res_send=yes
10383 else
10384 echo "$as_me: failed program was:" >&5
10385 cat conftest.$ac_ext >&5
10386 ac_cv_func_res_send=no
10388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10390 echo "$as_me:10390: result: $ac_cv_func_res_send" >&5
10391 echo "${ECHO_T}$ac_cv_func_res_send" >&6
10392 if test $ac_cv_func_res_send = yes; then
10394 else
10395 echo "$as_me:10395: checking for __res_send" >&5
10396 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
10397 if test "${ac_cv_func___res_send+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 cat >conftest.$ac_ext <<_ACEOF
10401 #line 10401 "configure"
10402 #include "confdefs.h"
10403 /* System header to define __stub macros and hopefully few prototypes,
10404 which can conflict with char __res_send (); below. */
10405 #include <assert.h>
10406 /* Override any gcc2 internal prototype to avoid an error. */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 /* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
10412 char __res_send ();
10413 char (*f) ();
10416 main ()
10418 /* The GNU C library defines this for functions which it implements
10419 to always fail with ENOSYS. Some functions are actually named
10420 something starting with __ and the normal name is an alias. */
10421 #if defined (__stub___res_send) || defined (__stub_____res_send)
10422 choke me
10423 #else
10424 f = __res_send;
10425 #endif
10428 return 0;
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (eval echo "$as_me:10432: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10434 ac_status=$?
10435 echo "$as_me:10435: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -s conftest$ac_exeext'
10438 { (eval echo "$as_me:10438: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_func___res_send=yes
10444 else
10445 echo "$as_me: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10447 ac_cv_func___res_send=no
10449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10451 echo "$as_me:10451: result: $ac_cv_func___res_send" >&5
10452 echo "${ECHO_T}$ac_cv_func___res_send" >&6
10453 if test $ac_cv_func___res_send = yes; then
10455 else
10456 echo "$as_me:10456: checking for res_send in -lresolv" >&5
10457 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
10458 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461 ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-lresolv $LIBS"
10463 cat >conftest.$ac_ext <<_ACEOF
10464 #line 10464 "configure"
10465 #include "confdefs.h"
10467 /* Override any gcc2 internal prototype to avoid an error. */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10473 char res_send ();
10475 main ()
10477 res_send ();
10479 return 0;
10481 _ACEOF
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:10483: \"$ac_link\"") >&5
10484 (eval $ac_link) 2>&5
10485 ac_status=$?
10486 echo "$as_me:10486: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:10489: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:10492: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_lib_resolv_res_send=yes
10495 else
10496 echo "$as_me: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 ac_cv_lib_resolv_res_send=no
10500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10501 LIBS=$ac_check_lib_save_LIBS
10503 echo "$as_me:10503: result: $ac_cv_lib_resolv_res_send" >&5
10504 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
10505 if test $ac_cv_lib_resolv_res_send = yes; then
10506 resolv=yes
10507 else
10508 echo "$as_me:10508: checking for __res_send in -lresolv" >&5
10509 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
10510 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-lresolv $LIBS"
10515 cat >conftest.$ac_ext <<_ACEOF
10516 #line 10516 "configure"
10517 #include "confdefs.h"
10519 /* Override any gcc2 internal prototype to avoid an error. */
10520 #ifdef __cplusplus
10521 extern "C"
10522 #endif
10523 /* We use char because int might match the return type of a gcc2
10524 builtin and then its argument prototype would still apply. */
10525 char __res_send ();
10527 main ()
10529 __res_send ();
10531 return 0;
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (eval echo "$as_me:10535: \"$ac_link\"") >&5
10536 (eval $ac_link) 2>&5
10537 ac_status=$?
10538 echo "$as_me:10538: \$? = $ac_status" >&5
10539 (exit $ac_status); } &&
10540 { ac_try='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:10541: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10543 ac_status=$?
10544 echo "$as_me:10544: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_cv_lib_resolv___res_send=yes
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10550 ac_cv_lib_resolv___res_send=no
10552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10553 LIBS=$ac_check_lib_save_LIBS
10555 echo "$as_me:10555: result: $ac_cv_lib_resolv___res_send" >&5
10556 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
10557 if test $ac_cv_lib_resolv___res_send = yes; then
10558 resolv=yes
10567 if test "$resolv" = yes ; then
10568 RESOLVLIB=-lresolv
10570 cat >>confdefs.h <<\EOF
10571 #define HAVE_LIBRESOLV 1
10574 else
10575 RESOLVLIB=
10577 echo "$as_me:10577: checking for hes_getmailhost" >&5
10578 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
10579 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582 cat >conftest.$ac_ext <<_ACEOF
10583 #line 10583 "configure"
10584 #include "confdefs.h"
10585 /* System header to define __stub macros and hopefully few prototypes,
10586 which can conflict with char hes_getmailhost (); below. */
10587 #include <assert.h>
10588 /* Override any gcc2 internal prototype to avoid an error. */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 /* We use char because int might match the return type of a gcc2
10593 builtin and then its argument prototype would still apply. */
10594 char hes_getmailhost ();
10595 char (*f) ();
10598 main ()
10600 /* The GNU C library defines this for functions which it implements
10601 to always fail with ENOSYS. Some functions are actually named
10602 something starting with __ and the normal name is an alias. */
10603 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
10604 choke me
10605 #else
10606 f = hes_getmailhost;
10607 #endif
10610 return 0;
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (eval echo "$as_me:10614: \"$ac_link\"") >&5
10615 (eval $ac_link) 2>&5
10616 ac_status=$?
10617 echo "$as_me:10617: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -s conftest$ac_exeext'
10620 { (eval echo "$as_me:10620: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:10623: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625 ac_cv_func_hes_getmailhost=yes
10626 else
10627 echo "$as_me: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10629 ac_cv_func_hes_getmailhost=no
10631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10633 echo "$as_me:10633: result: $ac_cv_func_hes_getmailhost" >&5
10634 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
10635 if test $ac_cv_func_hes_getmailhost = yes; then
10637 else
10638 echo "$as_me:10638: checking for hes_getmailhost in -lhesiod" >&5
10639 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
10640 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-lhesiod $RESOLVLIB $LIBS"
10645 cat >conftest.$ac_ext <<_ACEOF
10646 #line 10646 "configure"
10647 #include "confdefs.h"
10649 /* Override any gcc2 internal prototype to avoid an error. */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655 char hes_getmailhost ();
10657 main ()
10659 hes_getmailhost ();
10661 return 0;
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:10665: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>&5
10667 ac_status=$?
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -s conftest$ac_exeext'
10671 { (eval echo "$as_me:10671: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:10674: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_lib_hesiod_hes_getmailhost=yes
10677 else
10678 echo "$as_me: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10680 ac_cv_lib_hesiod_hes_getmailhost=no
10682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10685 echo "$as_me:10685: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
10686 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
10687 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
10689 cat >>confdefs.h <<\EOF
10690 #define HAVE_LIBHESIOD 1
10693 else
10701 # These tell us which Kerberos-related libraries to use.
10702 if test "${with_kerberos+set}" = set; then
10704 echo "$as_me:10704: checking for com_err in -lcom_err" >&5
10705 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
10706 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 else
10709 ac_check_lib_save_LIBS=$LIBS
10710 LIBS="-lcom_err $LIBS"
10711 cat >conftest.$ac_ext <<_ACEOF
10712 #line 10712 "configure"
10713 #include "confdefs.h"
10715 /* Override any gcc2 internal prototype to avoid an error. */
10716 #ifdef __cplusplus
10717 extern "C"
10718 #endif
10719 /* We use char because int might match the return type of a gcc2
10720 builtin and then its argument prototype would still apply. */
10721 char com_err ();
10723 main ()
10725 com_err ();
10727 return 0;
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:10731: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>&5
10733 ac_status=$?
10734 echo "$as_me:10734: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:10737: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:10740: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_lib_com_err_com_err=yes
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10746 ac_cv_lib_com_err_com_err=no
10748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 echo "$as_me:10751: result: $ac_cv_lib_com_err_com_err" >&5
10752 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
10753 if test $ac_cv_lib_com_err_com_err = yes; then
10754 cat >>confdefs.h <<EOF
10755 #define HAVE_LIBCOM_ERR 1
10758 LIBS="-lcom_err $LIBS"
10762 echo "$as_me:10762: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
10763 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
10764 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-lk5crypto $LIBS"
10769 cat >conftest.$ac_ext <<_ACEOF
10770 #line 10770 "configure"
10771 #include "confdefs.h"
10773 /* Override any gcc2 internal prototype to avoid an error. */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 /* We use char because int might match the return type of a gcc2
10778 builtin and then its argument prototype would still apply. */
10779 char mit_des_cbc_encrypt ();
10781 main ()
10783 mit_des_cbc_encrypt ();
10785 return 0;
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:10789: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10791 ac_status=$?
10792 echo "$as_me:10792: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:10795: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:10798: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
10801 else
10802 echo "$as_me: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
10806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 echo "$as_me:10809: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
10810 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
10811 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
10812 cat >>confdefs.h <<EOF
10813 #define HAVE_LIBK5CRYPTO 1
10816 LIBS="-lk5crypto $LIBS"
10820 echo "$as_me:10820: checking for mit_des_cbc_encrypt in -lcrypto" >&5
10821 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10822 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-lcrypto $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 #line 10828 "configure"
10829 #include "confdefs.h"
10831 /* Override any gcc2 internal prototype to avoid an error. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 /* We use char because int might match the return type of a gcc2
10836 builtin and then its argument prototype would still apply. */
10837 char mit_des_cbc_encrypt ();
10839 main ()
10841 mit_des_cbc_encrypt ();
10843 return 0;
10845 _ACEOF
10846 rm -f conftest.$ac_objext conftest$ac_exeext
10847 if { (eval echo "$as_me:10847: \"$ac_link\"") >&5
10848 (eval $ac_link) 2>&5
10849 ac_status=$?
10850 echo "$as_me:10850: \$? = $ac_status" >&5
10851 (exit $ac_status); } &&
10852 { ac_try='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:10853: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:10856: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10862 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
10864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10867 echo "$as_me:10867: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
10868 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
10869 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
10870 cat >>confdefs.h <<EOF
10871 #define HAVE_LIBCRYPTO 1
10874 LIBS="-lcrypto $LIBS"
10878 echo "$as_me:10878: checking for krb5_init_context in -lkrb5" >&5
10879 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
10880 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-lkrb5 $LIBS"
10885 cat >conftest.$ac_ext <<_ACEOF
10886 #line 10886 "configure"
10887 #include "confdefs.h"
10889 /* Override any gcc2 internal prototype to avoid an error. */
10890 #ifdef __cplusplus
10891 extern "C"
10892 #endif
10893 /* We use char because int might match the return type of a gcc2
10894 builtin and then its argument prototype would still apply. */
10895 char krb5_init_context ();
10897 main ()
10899 krb5_init_context ();
10901 return 0;
10903 _ACEOF
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (eval echo "$as_me:10905: \"$ac_link\"") >&5
10906 (eval $ac_link) 2>&5
10907 ac_status=$?
10908 echo "$as_me:10908: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:10911: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:10914: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_krb5_krb5_init_context=yes
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 ac_cv_lib_krb5_krb5_init_context=no
10922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 echo "$as_me:10925: result: $ac_cv_lib_krb5_krb5_init_context" >&5
10926 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
10927 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
10928 cat >>confdefs.h <<EOF
10929 #define HAVE_LIBKRB5 1
10932 LIBS="-lkrb5 $LIBS"
10936 if test "${with_kerberos5+set}" != set; then
10938 echo "$as_me:10938: checking for des_cbc_encrypt in -ldes425" >&5
10939 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
10940 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943 ac_check_lib_save_LIBS=$LIBS
10944 LIBS="-ldes425 $LIBS"
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line 10946 "configure"
10947 #include "confdefs.h"
10949 /* Override any gcc2 internal prototype to avoid an error. */
10950 #ifdef __cplusplus
10951 extern "C"
10952 #endif
10953 /* We use char because int might match the return type of a gcc2
10954 builtin and then its argument prototype would still apply. */
10955 char des_cbc_encrypt ();
10957 main ()
10959 des_cbc_encrypt ();
10961 return 0;
10963 _ACEOF
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (eval echo "$as_me:10965: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>&5
10967 ac_status=$?
10968 echo "$as_me:10968: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
10970 { ac_try='test -s conftest$ac_exeext'
10971 { (eval echo "$as_me:10971: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:10974: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_cv_lib_des425_des_cbc_encrypt=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10980 ac_cv_lib_des425_des_cbc_encrypt=no
10982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10983 LIBS=$ac_check_lib_save_LIBS
10985 echo "$as_me:10985: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
10986 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
10987 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
10988 cat >>confdefs.h <<EOF
10989 #define HAVE_LIBDES425 1
10992 LIBS="-ldes425 $LIBS"
10994 else
10996 echo "$as_me:10996: checking for des_cbc_encrypt in -ldes" >&5
10997 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
10998 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-ldes $LIBS"
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11007 /* Override any gcc2 internal prototype to avoid an error. */
11008 #ifdef __cplusplus
11009 extern "C"
11010 #endif
11011 /* We use char because int might match the return type of a gcc2
11012 builtin and then its argument prototype would still apply. */
11013 char des_cbc_encrypt ();
11015 main ()
11017 des_cbc_encrypt ();
11019 return 0;
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (eval echo "$as_me:11023: \"$ac_link\"") >&5
11024 (eval $ac_link) 2>&5
11025 ac_status=$?
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit $ac_status); } &&
11028 { ac_try='test -s conftest$ac_exeext'
11029 { (eval echo "$as_me:11029: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11031 ac_status=$?
11032 echo "$as_me:11032: \$? = $ac_status" >&5
11033 (exit $ac_status); }; }; then
11034 ac_cv_lib_des_des_cbc_encrypt=yes
11035 else
11036 echo "$as_me: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11038 ac_cv_lib_des_des_cbc_encrypt=no
11040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11043 echo "$as_me:11043: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
11044 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
11045 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
11046 cat >>confdefs.h <<EOF
11047 #define HAVE_LIBDES 1
11050 LIBS="-ldes $LIBS"
11056 echo "$as_me:11056: checking for krb_get_cred in -lkrb4" >&5
11057 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
11058 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061 ac_check_lib_save_LIBS=$LIBS
11062 LIBS="-lkrb4 $LIBS"
11063 cat >conftest.$ac_ext <<_ACEOF
11064 #line 11064 "configure"
11065 #include "confdefs.h"
11067 /* Override any gcc2 internal prototype to avoid an error. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 /* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
11073 char krb_get_cred ();
11075 main ()
11077 krb_get_cred ();
11079 return 0;
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:11083: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>&5
11085 ac_status=$?
11086 echo "$as_me:11086: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -s conftest$ac_exeext'
11089 { (eval echo "$as_me:11089: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:11092: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_cv_lib_krb4_krb_get_cred=yes
11095 else
11096 echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 ac_cv_lib_krb4_krb_get_cred=no
11100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11103 echo "$as_me:11103: result: $ac_cv_lib_krb4_krb_get_cred" >&5
11104 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
11105 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
11106 cat >>confdefs.h <<EOF
11107 #define HAVE_LIBKRB4 1
11110 LIBS="-lkrb4 $LIBS"
11112 else
11114 echo "$as_me:11114: checking for krb_get_cred in -lkrb" >&5
11115 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
11116 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119 ac_check_lib_save_LIBS=$LIBS
11120 LIBS="-lkrb $LIBS"
11121 cat >conftest.$ac_ext <<_ACEOF
11122 #line 11122 "configure"
11123 #include "confdefs.h"
11125 /* Override any gcc2 internal prototype to avoid an error. */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 /* We use char because int might match the return type of a gcc2
11130 builtin and then its argument prototype would still apply. */
11131 char krb_get_cred ();
11133 main ()
11135 krb_get_cred ();
11137 return 0;
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (eval echo "$as_me:11141: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>&5
11143 ac_status=$?
11144 echo "$as_me:11144: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
11146 { ac_try='test -s conftest$ac_exeext'
11147 { (eval echo "$as_me:11147: \"$ac_try\"") >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 echo "$as_me:11150: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_lib_krb_krb_get_cred=yes
11153 else
11154 echo "$as_me: failed program was:" >&5
11155 cat conftest.$ac_ext >&5
11156 ac_cv_lib_krb_krb_get_cred=no
11158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11161 echo "$as_me:11161: result: $ac_cv_lib_krb_krb_get_cred" >&5
11162 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
11163 if test $ac_cv_lib_krb_krb_get_cred = yes; then
11164 cat >>confdefs.h <<EOF
11165 #define HAVE_LIBKRB 1
11168 LIBS="-lkrb $LIBS"
11176 if test "${with_kerberos5+set}" = set; then
11178 for ac_header in krb5.h
11180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11181 echo "$as_me:11181: checking for $ac_header" >&5
11182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 cat >conftest.$ac_ext <<_ACEOF
11187 #line 11187 "configure"
11188 #include "confdefs.h"
11189 #include <$ac_header>
11190 _ACEOF
11191 if { (eval echo "$as_me:11191: \"$ac_cpp conftest.$ac_ext\"") >&5
11192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11193 ac_status=$?
11194 egrep -v '^ *\+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
11197 echo "$as_me:11197: \$? = $ac_status" >&5
11198 (exit $ac_status); } >/dev/null; then
11199 if test -s conftest.err; then
11200 ac_cpp_err=$ac_c_preproc_warn_flag
11201 else
11202 ac_cpp_err=
11204 else
11205 ac_cpp_err=yes
11207 if test -z "$ac_cpp_err"; then
11208 eval "$as_ac_Header=yes"
11209 else
11210 echo "$as_me: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11212 eval "$as_ac_Header=no"
11214 rm -f conftest.err conftest.$ac_ext
11216 echo "$as_me:11216: result: `eval echo '${'$as_ac_Header'}'`" >&5
11217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11219 cat >>confdefs.h <<EOF
11220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11224 done
11226 else
11228 for ac_header in des.h
11230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11231 echo "$as_me:11231: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 cat >conftest.$ac_ext <<_ACEOF
11237 #line 11237 "configure"
11238 #include "confdefs.h"
11239 #include <$ac_header>
11240 _ACEOF
11241 if { (eval echo "$as_me:11241: \"$ac_cpp conftest.$ac_ext\"") >&5
11242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11243 ac_status=$?
11244 egrep -v '^ *\+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:11247: \$? = $ac_status" >&5
11248 (exit $ac_status); } >/dev/null; then
11249 if test -s conftest.err; then
11250 ac_cpp_err=$ac_c_preproc_warn_flag
11251 else
11252 ac_cpp_err=
11254 else
11255 ac_cpp_err=yes
11257 if test -z "$ac_cpp_err"; then
11258 eval "$as_ac_Header=yes"
11259 else
11260 echo "$as_me: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 eval "$as_ac_Header=no"
11264 rm -f conftest.err conftest.$ac_ext
11266 echo "$as_me:11266: result: `eval echo '${'$as_ac_Header'}'`" >&5
11267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11269 cat >>confdefs.h <<EOF
11270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11273 else
11275 for ac_header in kerberosIV/des.h
11277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11278 echo "$as_me:11278: checking for $ac_header" >&5
11279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line 11284 "configure"
11285 #include "confdefs.h"
11286 #include <$ac_header>
11287 _ACEOF
11288 if { (eval echo "$as_me:11288: \"$ac_cpp conftest.$ac_ext\"") >&5
11289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11290 ac_status=$?
11291 egrep -v '^ *\+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
11294 echo "$as_me:11294: \$? = $ac_status" >&5
11295 (exit $ac_status); } >/dev/null; then
11296 if test -s conftest.err; then
11297 ac_cpp_err=$ac_c_preproc_warn_flag
11298 else
11299 ac_cpp_err=
11301 else
11302 ac_cpp_err=yes
11304 if test -z "$ac_cpp_err"; then
11305 eval "$as_ac_Header=yes"
11306 else
11307 echo "$as_me: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 eval "$as_ac_Header=no"
11311 rm -f conftest.err conftest.$ac_ext
11313 echo "$as_me:11313: result: `eval echo '${'$as_ac_Header'}'`" >&5
11314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11316 cat >>confdefs.h <<EOF
11317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11320 else
11322 for ac_header in kerberos/des.h
11324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325 echo "$as_me:11325: checking for $ac_header" >&5
11326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line 11331 "configure"
11332 #include "confdefs.h"
11333 #include <$ac_header>
11334 _ACEOF
11335 if { (eval echo "$as_me:11335: \"$ac_cpp conftest.$ac_ext\"") >&5
11336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11337 ac_status=$?
11338 egrep -v '^ *\+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:11341: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null; then
11343 if test -s conftest.err; then
11344 ac_cpp_err=$ac_c_preproc_warn_flag
11345 else
11346 ac_cpp_err=
11348 else
11349 ac_cpp_err=yes
11351 if test -z "$ac_cpp_err"; then
11352 eval "$as_ac_Header=yes"
11353 else
11354 echo "$as_me: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11356 eval "$as_ac_Header=no"
11358 rm -f conftest.err conftest.$ac_ext
11360 echo "$as_me:11360: result: `eval echo '${'$as_ac_Header'}'`" >&5
11361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11363 cat >>confdefs.h <<EOF
11364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11368 done
11371 done
11374 done
11376 for ac_header in krb.h
11378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11379 echo "$as_me:11379: checking for $ac_header" >&5
11380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384 cat >conftest.$ac_ext <<_ACEOF
11385 #line 11385 "configure"
11386 #include "confdefs.h"
11387 #include <$ac_header>
11388 _ACEOF
11389 if { (eval echo "$as_me:11389: \"$ac_cpp conftest.$ac_ext\"") >&5
11390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11391 ac_status=$?
11392 egrep -v '^ *\+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:11395: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 else
11400 ac_cpp_err=
11402 else
11403 ac_cpp_err=yes
11405 if test -z "$ac_cpp_err"; then
11406 eval "$as_ac_Header=yes"
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 cat conftest.$ac_ext >&5
11410 eval "$as_ac_Header=no"
11412 rm -f conftest.err conftest.$ac_ext
11414 echo "$as_me:11414: result: `eval echo '${'$as_ac_Header'}'`" >&5
11415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417 cat >>confdefs.h <<EOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421 else
11423 for ac_header in kerberosIV/krb.h
11425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11426 echo "$as_me:11426: checking for $ac_header" >&5
11427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 else
11431 cat >conftest.$ac_ext <<_ACEOF
11432 #line 11432 "configure"
11433 #include "confdefs.h"
11434 #include <$ac_header>
11435 _ACEOF
11436 if { (eval echo "$as_me:11436: \"$ac_cpp conftest.$ac_ext\"") >&5
11437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11438 ac_status=$?
11439 egrep -v '^ *\+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 echo "$as_me:11442: \$? = $ac_status" >&5
11443 (exit $ac_status); } >/dev/null; then
11444 if test -s conftest.err; then
11445 ac_cpp_err=$ac_c_preproc_warn_flag
11446 else
11447 ac_cpp_err=
11449 else
11450 ac_cpp_err=yes
11452 if test -z "$ac_cpp_err"; then
11453 eval "$as_ac_Header=yes"
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
11457 eval "$as_ac_Header=no"
11459 rm -f conftest.err conftest.$ac_ext
11461 echo "$as_me:11461: result: `eval echo '${'$as_ac_Header'}'`" >&5
11462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11464 cat >>confdefs.h <<EOF
11465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11468 else
11470 for ac_header in kerberos/krb.h
11472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11473 echo "$as_me:11473: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 else
11478 cat >conftest.$ac_ext <<_ACEOF
11479 #line 11479 "configure"
11480 #include "confdefs.h"
11481 #include <$ac_header>
11482 _ACEOF
11483 if { (eval echo "$as_me:11483: \"$ac_cpp conftest.$ac_ext\"") >&5
11484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11485 ac_status=$?
11486 egrep -v '^ *\+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:11489: \$? = $ac_status" >&5
11490 (exit $ac_status); } >/dev/null; then
11491 if test -s conftest.err; then
11492 ac_cpp_err=$ac_c_preproc_warn_flag
11493 else
11494 ac_cpp_err=
11496 else
11497 ac_cpp_err=yes
11499 if test -z "$ac_cpp_err"; then
11500 eval "$as_ac_Header=yes"
11501 else
11502 echo "$as_me: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11504 eval "$as_ac_Header=no"
11506 rm -f conftest.err conftest.$ac_ext
11508 echo "$as_me:11508: result: `eval echo '${'$as_ac_Header'}'`" >&5
11509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h <<EOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11516 done
11519 done
11522 done
11526 for ac_header in com_err.h
11528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11529 echo "$as_me:11529: checking for $ac_header" >&5
11530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 #line 11535 "configure"
11536 #include "confdefs.h"
11537 #include <$ac_header>
11538 _ACEOF
11539 if { (eval echo "$as_me:11539: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11541 ac_status=$?
11542 egrep -v '^ *\+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:11545: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 else
11550 ac_cpp_err=
11552 else
11553 ac_cpp_err=yes
11555 if test -z "$ac_cpp_err"; then
11556 eval "$as_ac_Header=yes"
11557 else
11558 echo "$as_me: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11560 eval "$as_ac_Header=no"
11562 rm -f conftest.err conftest.$ac_ext
11564 echo "$as_me:11564: result: `eval echo '${'$as_ac_Header'}'`" >&5
11565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567 cat >>confdefs.h <<EOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11572 done
11576 # Solaris requires -lintl if you want strerror (which calls dgettext)
11577 # to return localized messages.
11579 echo "$as_me:11579: checking for dgettext in -lintl" >&5
11580 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
11581 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584 ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-lintl $LIBS"
11586 cat >conftest.$ac_ext <<_ACEOF
11587 #line 11587 "configure"
11588 #include "confdefs.h"
11590 /* Override any gcc2 internal prototype to avoid an error. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11596 char dgettext ();
11598 main ()
11600 dgettext ();
11602 return 0;
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:11606: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11608 ac_status=$?
11609 echo "$as_me:11609: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:11612: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:11615: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_lib_intl_dgettext=yes
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 cat conftest.$ac_ext >&5
11621 ac_cv_lib_intl_dgettext=no
11623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11626 echo "$as_me:11626: result: $ac_cv_lib_intl_dgettext" >&5
11627 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
11628 if test $ac_cv_lib_intl_dgettext = yes; then
11629 cat >>confdefs.h <<EOF
11630 #define HAVE_LIBINTL 1
11633 LIBS="-lintl $LIBS"
11637 echo "$as_me:11637: checking whether localtime caches TZ" >&5
11638 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
11639 if test "${emacs_cv_localtime_cache+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642 if test x$ac_cv_func_tzset = xyes; then
11643 if test "$cross_compiling" = yes; then
11644 # If we have tzset, assume the worst when cross-compiling.
11645 emacs_cv_localtime_cache=yes
11646 else
11647 cat >conftest.$ac_ext <<_ACEOF
11648 #line 11648 "configure"
11649 #include "confdefs.h"
11650 #include <time.h>
11651 extern char **environ;
11652 unset_TZ ()
11654 char **from, **to;
11655 for (to = from = environ; (*to = *from); from++)
11656 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
11657 to++;
11659 char TZ_GMT0[] = "TZ=GMT0";
11660 char TZ_PST8[] = "TZ=PST8";
11661 main()
11663 time_t now = time ((time_t *) 0);
11664 int hour_GMT0, hour_unset;
11665 if (putenv (TZ_GMT0) != 0)
11666 exit (1);
11667 hour_GMT0 = localtime (&now)->tm_hour;
11668 unset_TZ ();
11669 hour_unset = localtime (&now)->tm_hour;
11670 if (putenv (TZ_PST8) != 0)
11671 exit (1);
11672 if (localtime (&now)->tm_hour == hour_GMT0)
11673 exit (1);
11674 unset_TZ ();
11675 if (localtime (&now)->tm_hour != hour_unset)
11676 exit (1);
11677 exit (0);
11679 _ACEOF
11680 rm -f conftest$ac_exeext
11681 if { (eval echo "$as_me:11681: \"$ac_link\"") >&5
11682 (eval $ac_link) 2>&5
11683 ac_status=$?
11684 echo "$as_me:11684: \$? = $ac_status" >&5
11685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11686 { (eval echo "$as_me:11686: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:11689: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 emacs_cv_localtime_cache=no
11692 else
11693 echo "$as_me: program exited with status $ac_status" >&5
11694 echo "$as_me: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 emacs_cv_localtime_cache=yes
11698 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11700 else
11701 # If we lack tzset, report that localtime does not cache TZ,
11702 # since we can't invalidate the cache if we don't have tzset.
11703 emacs_cv_localtime_cache=no
11706 echo "$as_me:11706: result: $emacs_cv_localtime_cache" >&5
11707 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
11708 if test $emacs_cv_localtime_cache = yes; then
11710 cat >>confdefs.h <<\EOF
11711 #define LOCALTIME_CACHE 1
11716 if test "x$HAVE_TIMEVAL" = xyes; then
11718 for ac_func in gettimeofday
11720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721 echo "$as_me:11721: checking for $ac_func" >&5
11722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11723 if eval "test \"\${$as_ac_var+set}\" = set"; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726 cat >conftest.$ac_ext <<_ACEOF
11727 #line 11727 "configure"
11728 #include "confdefs.h"
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char $ac_func (); below. */
11731 #include <assert.h>
11732 /* Override any gcc2 internal prototype to avoid an error. */
11733 #ifdef __cplusplus
11734 extern "C"
11735 #endif
11736 /* We use char because int might match the return type of a gcc2
11737 builtin and then its argument prototype would still apply. */
11738 char $ac_func ();
11739 char (*f) ();
11742 main ()
11744 /* The GNU C library defines this for functions which it implements
11745 to always fail with ENOSYS. Some functions are actually named
11746 something starting with __ and the normal name is an alias. */
11747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11748 choke me
11749 #else
11750 f = $ac_func;
11751 #endif
11754 return 0;
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:11758: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11760 ac_status=$?
11761 echo "$as_me:11761: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:11764: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:11767: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 eval "$as_ac_var=yes"
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11773 eval "$as_ac_var=no"
11775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11777 echo "$as_me:11777: result: `eval echo '${'$as_ac_var'}'`" >&5
11778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11779 if test `eval echo '${'$as_ac_var'}'` = yes; then
11780 cat >>confdefs.h <<EOF
11781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 done
11787 if test $ac_cv_func_gettimeofday = yes; then
11788 echo "$as_me:11788: checking whether gettimeofday can accept two arguments" >&5
11789 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11790 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793 cat >conftest.$ac_ext <<_ACEOF
11794 #line 11794 "configure"
11795 #include "confdefs.h"
11797 #ifdef TIME_WITH_SYS_TIME
11798 #include <sys/time.h>
11799 #include <time.h>
11800 #else
11801 #ifdef HAVE_SYS_TIME_H
11802 #include <sys/time.h>
11803 #else
11804 #include <time.h>
11805 #endif
11806 #endif
11808 main ()
11810 struct timeval time;
11811 gettimeofday (&time, 0);
11813 return 0;
11815 _ACEOF
11816 rm -f conftest.$ac_objext
11817 if { (eval echo "$as_me:11817: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>&5
11819 ac_status=$?
11820 echo "$as_me:11820: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:11823: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:11826: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 emacs_cv_gettimeofday_two_arguments=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 emacs_cv_gettimeofday_two_arguments=no
11834 rm -f conftest.$ac_objext conftest.$ac_ext
11836 echo "$as_me:11836: result: $emacs_cv_gettimeofday_two_arguments" >&5
11837 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11838 if test $emacs_cv_gettimeofday_two_arguments = no; then
11840 cat >>confdefs.h <<\EOF
11841 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11848 if test "$ac_cv_func_gettimeofday" = yes; then
11849 echo "$as_me:11849: checking for struct timezone" >&5
11850 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11851 if test "${emacs_cv_struct_timezone+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854 cat >conftest.$ac_ext <<_ACEOF
11855 #line 11855 "configure"
11856 #include "confdefs.h"
11857 #include <sys/time.h>
11859 main ()
11861 struct timezone tz;
11863 return 0;
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:11867: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>&5
11869 ac_status=$?
11870 echo "$as_me:11870: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:11873: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:11876: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 if test "$cross_compiling" = yes; then
11879 emacs_cv_struct_timezone=yes
11880 else
11881 cat >conftest.$ac_ext <<_ACEOF
11882 #line 11882 "configure"
11883 #include "confdefs.h"
11885 #ifdef TIME_WITH_SYS_TIME
11886 #include <sys/time.h>
11887 #include <time.h>
11888 #else
11889 #ifdef HAVE_SYS_TIME_H
11890 #include <sys/time.h>
11891 #else
11892 #include <time.h>
11893 #endif
11894 #endif
11895 main () {
11896 struct timeval time;
11897 struct timezone dummy;
11898 exit (gettimeofday (&time, &dummy));
11900 _ACEOF
11901 rm -f conftest$ac_exeext
11902 if { (eval echo "$as_me:11902: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>&5
11904 ac_status=$?
11905 echo "$as_me:11905: \$? = $ac_status" >&5
11906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11907 { (eval echo "$as_me:11907: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 echo "$as_me:11910: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 emacs_cv_struct_timezone=yes
11913 else
11914 echo "$as_me: program exited with status $ac_status" >&5
11915 echo "$as_me: failed program was:" >&5
11916 cat conftest.$ac_ext >&5
11917 emacs_cv_struct_timezone=no
11919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 emacs_cv_struct_timezone=no
11926 rm -f conftest.$ac_objext conftest.$ac_ext
11928 echo "$as_me:11928: result: $emacs_cv_struct_timezone" >&5
11929 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
11932 ok_so_far=yes
11933 echo "$as_me:11933: checking for socket" >&5
11934 echo $ECHO_N "checking for socket... $ECHO_C" >&6
11935 if test "${ac_cv_func_socket+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938 cat >conftest.$ac_ext <<_ACEOF
11939 #line 11939 "configure"
11940 #include "confdefs.h"
11941 /* System header to define __stub macros and hopefully few prototypes,
11942 which can conflict with char socket (); below. */
11943 #include <assert.h>
11944 /* Override any gcc2 internal prototype to avoid an error. */
11945 #ifdef __cplusplus
11946 extern "C"
11947 #endif
11948 /* We use char because int might match the return type of a gcc2
11949 builtin and then its argument prototype would still apply. */
11950 char socket ();
11951 char (*f) ();
11954 main ()
11956 /* The GNU C library defines this for functions which it implements
11957 to always fail with ENOSYS. Some functions are actually named
11958 something starting with __ and the normal name is an alias. */
11959 #if defined (__stub_socket) || defined (__stub___socket)
11960 choke me
11961 #else
11962 f = socket;
11963 #endif
11966 return 0;
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:11970: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>&5
11972 ac_status=$?
11973 echo "$as_me:11973: \$? = $ac_status" >&5
11974 (exit $ac_status); } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:11976: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_func_socket=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 ac_cv_func_socket=no
11987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11989 echo "$as_me:11989: result: $ac_cv_func_socket" >&5
11990 echo "${ECHO_T}$ac_cv_func_socket" >&6
11991 if test $ac_cv_func_socket = yes; then
11993 else
11994 ok_so_far=no
11997 if test $ok_so_far = yes; then
11998 echo "$as_me:11998: checking for netinet/in.h" >&5
11999 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
12000 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 cat >conftest.$ac_ext <<_ACEOF
12004 #line 12004 "configure"
12005 #include "confdefs.h"
12006 #include <netinet/in.h>
12007 _ACEOF
12008 if { (eval echo "$as_me:12008: \"$ac_cpp conftest.$ac_ext\"") >&5
12009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12010 ac_status=$?
12011 egrep -v '^ *\+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:12014: \$? = $ac_status" >&5
12015 (exit $ac_status); } >/dev/null; then
12016 if test -s conftest.err; then
12017 ac_cpp_err=$ac_c_preproc_warn_flag
12018 else
12019 ac_cpp_err=
12021 else
12022 ac_cpp_err=yes
12024 if test -z "$ac_cpp_err"; then
12025 ac_cv_header_netinet_in_h=yes
12026 else
12027 echo "$as_me: failed program was:" >&5
12028 cat conftest.$ac_ext >&5
12029 ac_cv_header_netinet_in_h=no
12031 rm -f conftest.err conftest.$ac_ext
12033 echo "$as_me:12033: result: $ac_cv_header_netinet_in_h" >&5
12034 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
12035 if test $ac_cv_header_netinet_in_h = yes; then
12037 else
12038 ok_so_far=no
12042 if test $ok_so_far = yes; then
12043 echo "$as_me:12043: checking for arpa/inet.h" >&5
12044 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
12045 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 else
12048 cat >conftest.$ac_ext <<_ACEOF
12049 #line 12049 "configure"
12050 #include "confdefs.h"
12051 #include <arpa/inet.h>
12052 _ACEOF
12053 if { (eval echo "$as_me:12053: \"$ac_cpp conftest.$ac_ext\"") >&5
12054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12055 ac_status=$?
12056 egrep -v '^ *\+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:12059: \$? = $ac_status" >&5
12060 (exit $ac_status); } >/dev/null; then
12061 if test -s conftest.err; then
12062 ac_cpp_err=$ac_c_preproc_warn_flag
12063 else
12064 ac_cpp_err=
12066 else
12067 ac_cpp_err=yes
12069 if test -z "$ac_cpp_err"; then
12070 ac_cv_header_arpa_inet_h=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 ac_cv_header_arpa_inet_h=no
12076 rm -f conftest.err conftest.$ac_ext
12078 echo "$as_me:12078: result: $ac_cv_header_arpa_inet_h" >&5
12079 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
12080 if test $ac_cv_header_arpa_inet_h = yes; then
12082 else
12083 ok_so_far=no
12087 if test $ok_so_far = yes; then
12089 cat >>confdefs.h <<\EOF
12090 #define HAVE_INET_SOCKETS 1
12095 if test -f /usr/lpp/X11/bin/smt.exp; then
12097 cat >>confdefs.h <<\EOF
12098 #define HAVE_AIX_SMT_EXP 1
12103 echo "$as_me:12103: checking whether system supports dynamic ptys" >&5
12104 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
12105 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12106 echo "$as_me:12106: result: yes" >&5
12107 echo "${ECHO_T}yes" >&6
12109 cat >>confdefs.h <<\EOF
12110 #define HAVE_DEV_PTMX 1
12113 else
12114 echo "$as_me:12114: result: no" >&5
12115 echo "${ECHO_T}no" >&6
12118 echo "$as_me:12118: checking for pid_t" >&5
12119 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12120 if test "${ac_cv_type_pid_t+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123 cat >conftest.$ac_ext <<_ACEOF
12124 #line 12124 "configure"
12125 #include "confdefs.h"
12126 $ac_includes_default
12128 main ()
12130 if ((pid_t *) 0)
12131 return 0;
12132 if (sizeof (pid_t))
12133 return 0;
12135 return 0;
12137 _ACEOF
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:12139: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>&5
12141 ac_status=$?
12142 echo "$as_me:12142: \$? = $ac_status" >&5
12143 (exit $ac_status); } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:12145: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:12148: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_cv_type_pid_t=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12154 ac_cv_type_pid_t=no
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:12158: result: $ac_cv_type_pid_t" >&5
12159 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12160 if test $ac_cv_type_pid_t = yes; then
12162 else
12164 cat >>confdefs.h <<EOF
12165 #define pid_t int
12170 for ac_header in unistd.h vfork.h
12172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12173 echo "$as_me:12173: checking for $ac_header" >&5
12174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 cat >conftest.$ac_ext <<_ACEOF
12179 #line 12179 "configure"
12180 #include "confdefs.h"
12181 #include <$ac_header>
12182 _ACEOF
12183 if { (eval echo "$as_me:12183: \"$ac_cpp conftest.$ac_ext\"") >&5
12184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12185 ac_status=$?
12186 egrep -v '^ *\+' conftest.er1 >conftest.err
12187 rm -f conftest.er1
12188 cat conftest.err >&5
12189 echo "$as_me:12189: \$? = $ac_status" >&5
12190 (exit $ac_status); } >/dev/null; then
12191 if test -s conftest.err; then
12192 ac_cpp_err=$ac_c_preproc_warn_flag
12193 else
12194 ac_cpp_err=
12196 else
12197 ac_cpp_err=yes
12199 if test -z "$ac_cpp_err"; then
12200 eval "$as_ac_Header=yes"
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 cat conftest.$ac_ext >&5
12204 eval "$as_ac_Header=no"
12206 rm -f conftest.err conftest.$ac_ext
12208 echo "$as_me:12208: result: `eval echo '${'$as_ac_Header'}'`" >&5
12209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12211 cat >>confdefs.h <<EOF
12212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12216 done
12218 for ac_func in fork vfork
12220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12221 echo "$as_me:12221: checking for $ac_func" >&5
12222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12223 if eval "test \"\${$as_ac_var+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char $ac_func (); below. */
12231 #include <assert.h>
12232 /* Override any gcc2 internal prototype to avoid an error. */
12233 #ifdef __cplusplus
12234 extern "C"
12235 #endif
12236 /* We use char because int might match the return type of a gcc2
12237 builtin and then its argument prototype would still apply. */
12238 char $ac_func ();
12239 char (*f) ();
12242 main ()
12244 /* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12248 choke me
12249 #else
12250 f = $ac_func;
12251 #endif
12254 return 0;
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:12258: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>&5
12260 ac_status=$?
12261 echo "$as_me:12261: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:12264: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:12267: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 eval "$as_ac_var=yes"
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12273 eval "$as_ac_var=no"
12275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12277 echo "$as_me:12277: result: `eval echo '${'$as_ac_var'}'`" >&5
12278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12279 if test `eval echo '${'$as_ac_var'}'` = yes; then
12280 cat >>confdefs.h <<EOF
12281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12285 done
12287 ac_cv_func_fork_works=$ac_cv_func_fork
12288 if test "x$ac_cv_func_fork" = xyes; then
12289 echo "$as_me:12289: checking for working fork" >&5
12290 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12291 if test "${ac_cv_func_fork_works+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294 if test "$cross_compiling" = yes; then
12295 ac_cv_func_fork_works=cross
12296 else
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* By Rüdiger Kuhlmann. */
12299 #include <sys/types.h>
12300 #if HAVE_UNISTD_H
12301 # include <unistd.h>
12302 #endif
12303 /* Some systems only have a dummy stub for fork() */
12304 int main ()
12306 if (fork() < 0)
12307 exit (1);
12308 exit (0);
12310 _ACEOF
12311 rm -f conftest$ac_exeext
12312 if { (eval echo "$as_me:12312: \"$ac_link\"") >&5
12313 (eval $ac_link) 2>&5
12314 ac_status=$?
12315 echo "$as_me:12315: \$? = $ac_status" >&5
12316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12317 { (eval echo "$as_me:12317: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12319 ac_status=$?
12320 echo "$as_me:12320: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_func_fork_works=yes
12323 else
12324 echo "$as_me: program exited with status $ac_status" >&5
12325 echo "$as_me: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 ac_cv_func_fork_works=no
12329 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12332 echo "$as_me:12332: result: $ac_cv_func_fork_works" >&5
12333 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12336 if test "x$ac_cv_func_fork_works" = xcross; then
12337 case $host in
12338 *-*-amigaos* | *-*-msdosdjgpp*)
12339 # Override, as these systems have only a dummy fork() stub
12340 ac_cv_func_fork_works=no
12343 ac_cv_func_fork_works=yes
12345 esac
12346 { echo "$as_me:12346: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12347 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12349 ac_cv_func_vfork_works=$ac_cv_func_vfork
12350 if test "x$ac_cv_func_vfork" = xyes; then
12351 echo "$as_me:12351: checking for working vfork" >&5
12352 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12353 if test "${ac_cv_func_vfork_works+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356 if test "$cross_compiling" = yes; then
12357 ac_cv_func_vfork_works=cross
12358 else
12359 cat >conftest.$ac_ext <<_ACEOF
12360 #line 12360 "configure"
12361 #include "confdefs.h"
12362 /* Thanks to Paul Eggert for this test. */
12363 #include <stdio.h>
12364 #include <sys/types.h>
12365 #include <sys/stat.h>
12366 #if HAVE_UNISTD_H
12367 # include <unistd.h>
12368 #endif
12369 #if HAVE_VFORK_H
12370 # include <vfork.h>
12371 #endif
12372 /* On some sparc systems, changes by the child to local and incoming
12373 argument registers are propagated back to the parent. The compiler
12374 is told about this with #include <vfork.h>, but some compilers
12375 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12376 static variable whose address is put into a register that is
12377 clobbered by the vfork. */
12378 static
12379 #ifdef __cplusplus
12380 sparc_address_test (int arg)
12381 # else
12382 sparc_address_test (arg) int arg;
12383 #endif
12385 static pid_t child;
12386 if (!child) {
12387 child = vfork ();
12388 if (child < 0) {
12389 perror ("vfork");
12390 _exit(2);
12392 if (!child) {
12393 arg = getpid();
12394 write(-1, "", 0);
12395 _exit (arg);
12401 main ()
12403 pid_t parent = getpid ();
12404 pid_t child;
12406 sparc_address_test ();
12408 child = vfork ();
12410 if (child == 0) {
12411 /* Here is another test for sparc vfork register problems. This
12412 test uses lots of local variables, at least as many local
12413 variables as main has allocated so far including compiler
12414 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12415 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12416 reuse the register of parent for one of the local variables,
12417 since it will think that parent can't possibly be used any more
12418 in this routine. Assigning to the local variable will thus
12419 munge parent in the parent process. */
12420 pid_t
12421 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12422 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12423 /* Convince the compiler that p..p7 are live; otherwise, it might
12424 use the same hardware register for all 8 local variables. */
12425 if (p != p1 || p != p2 || p != p3 || p != p4
12426 || p != p5 || p != p6 || p != p7)
12427 _exit(1);
12429 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12430 from child file descriptors. If the child closes a descriptor
12431 before it execs or exits, this munges the parent's descriptor
12432 as well. Test for this by closing stdout in the child. */
12433 _exit(close(fileno(stdout)) != 0);
12434 } else {
12435 int status;
12436 struct stat st;
12438 while (wait(&status) != child)
12440 exit(
12441 /* Was there some problem with vforking? */
12442 child < 0
12444 /* Did the child fail? (This shouldn't happen.) */
12445 || status
12447 /* Did the vfork/compiler bug occur? */
12448 || parent != getpid()
12450 /* Did the file descriptor bug occur? */
12451 || fstat(fileno(stdout), &st) != 0
12455 _ACEOF
12456 rm -f conftest$ac_exeext
12457 if { (eval echo "$as_me:12457: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12459 ac_status=$?
12460 echo "$as_me:12460: \$? = $ac_status" >&5
12461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12462 { (eval echo "$as_me:12462: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:12465: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_func_vfork_works=yes
12468 else
12469 echo "$as_me: program exited with status $ac_status" >&5
12470 echo "$as_me: failed program was:" >&5
12471 cat conftest.$ac_ext >&5
12472 ac_cv_func_vfork_works=no
12474 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:12477: result: $ac_cv_func_vfork_works" >&5
12478 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12481 if test "x$ac_cv_func_fork_works" = xcross; then
12482 ac_cv_func_vfork_works=ac_cv_func_vfork
12483 { echo "$as_me:12483: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12484 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12487 if test "x$ac_cv_func_vfork_works" = xyes; then
12489 cat >>confdefs.h <<\EOF
12490 #define HAVE_WORKING_VFORK 1
12493 else
12495 cat >>confdefs.h <<\EOF
12496 #define vfork fork
12500 if test "x$ac_cv_func_fork_works" = xyes; then
12502 cat >>confdefs.h <<\EOF
12503 #define HAVE_WORKING_FORK 1
12508 # Fixme: This should be replaced when we have autoconf 2.14.
12509 echo "$as_me:12509: checking for size_t" >&5
12510 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12511 if test "${ac_cv_type_size_t+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 cat >conftest.$ac_ext <<_ACEOF
12515 #line 12515 "configure"
12516 #include "confdefs.h"
12517 $ac_includes_default
12519 main ()
12521 if ((size_t *) 0)
12522 return 0;
12523 if (sizeof (size_t))
12524 return 0;
12526 return 0;
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (eval echo "$as_me:12530: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>&5
12532 ac_status=$?
12533 echo "$as_me:12533: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:12536: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:12539: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_type_size_t=yes
12542 else
12543 echo "$as_me: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 ac_cv_type_size_t=no
12547 rm -f conftest.$ac_objext conftest.$ac_ext
12549 echo "$as_me:12549: result: $ac_cv_type_size_t" >&5
12550 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12551 if test $ac_cv_type_size_t = yes; then
12553 else
12555 cat >>confdefs.h <<EOF
12556 #define size_t unsigned
12561 # Set up the CFLAGS for real compilation, so we can substitute it.
12562 CFLAGS="$REAL_CFLAGS"
12563 CPPFLAGS="$REAL_CPPFLAGS"
12565 #### Find out which version of Emacs this is.
12566 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
12567 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
12568 if test x"${version}" = x; then
12569 { { echo "$as_me:12569: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
12570 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
12571 { (exit 1); exit 1; }; }
12574 ### Specify what sort of things we'll be editing into Makefile and config.h.
12575 ### Use configuration here uncanonicalized to avoid exceeding size limits.
12577 cat >>confdefs.h <<EOF
12578 #define EMACS_CONFIGURATION "${canonical}"
12581 cat >>confdefs.h <<EOF
12582 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
12585 cat >>confdefs.h <<EOF
12586 #define config_machfile "${machfile}"
12589 cat >>confdefs.h <<EOF
12590 #define config_opsysfile "${opsysfile}"
12593 cat >>confdefs.h <<EOF
12594 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
12597 cat >>confdefs.h <<EOF
12598 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
12601 cat >>confdefs.h <<EOF
12602 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
12605 cat >>confdefs.h <<EOF
12606 #define UNEXEC_SRC ${UNEXEC_SRC}
12609 if test "${HAVE_X_WINDOWS}" = "yes" ; then
12611 cat >>confdefs.h <<\EOF
12612 #define HAVE_X_WINDOWS 1
12616 if test "${USE_X_TOOLKIT}" != "none" ; then
12618 cat >>confdefs.h <<\EOF
12619 #define USE_X_TOOLKIT 1
12623 if test "${HAVE_X11}" = "yes" ; then
12625 cat >>confdefs.h <<\EOF
12626 #define HAVE_X11 1
12630 if test "${HAVE_XFREE386}" = "yes" ; then
12632 cat >>confdefs.h <<\EOF
12633 #define HAVE_XFREE386 1
12637 if test "${HAVE_MENUS}" = "yes" ; then
12639 cat >>confdefs.h <<\EOF
12640 #define HAVE_MENUS 1
12644 if test "${GNU_MALLOC}" = "yes" ; then
12646 cat >>confdefs.h <<\EOF
12647 #define GNU_MALLOC 1
12651 if test "${REL_ALLOC}" = "yes" ; then
12653 cat >>confdefs.h <<\EOF
12654 #define REL_ALLOC 1
12659 for ac_header in nlist.h
12661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 echo "$as_me:12662: checking for $ac_header" >&5
12663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667 cat >conftest.$ac_ext <<_ACEOF
12668 #line 12668 "configure"
12669 #include "confdefs.h"
12670 #include <$ac_header>
12671 _ACEOF
12672 if { (eval echo "$as_me:12672: \"$ac_cpp conftest.$ac_ext\"") >&5
12673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12674 ac_status=$?
12675 egrep -v '^ *\+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
12678 echo "$as_me:12678: \$? = $ac_status" >&5
12679 (exit $ac_status); } >/dev/null; then
12680 if test -s conftest.err; then
12681 ac_cpp_err=$ac_c_preproc_warn_flag
12682 else
12683 ac_cpp_err=
12685 else
12686 ac_cpp_err=yes
12688 if test -z "$ac_cpp_err"; then
12689 eval "$as_ac_Header=yes"
12690 else
12691 echo "$as_me: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 eval "$as_ac_Header=no"
12695 rm -f conftest.err conftest.$ac_ext
12697 echo "$as_me:12697: result: `eval echo '${'$as_ac_Header'}'`" >&5
12698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12700 cat >>confdefs.h <<EOF
12701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12704 cat >>confdefs.h <<\EOF
12705 #define NLIST_STRUCT 1
12709 done
12711 #### Report on what we decided to do.
12712 echo "
12713 Configured for \`${canonical}'.
12715 Where should the build process find the source code? ${srcdir}
12716 What operating system and machine description files should Emacs use?
12717 \`${opsysfile}' and \`${machfile}'
12718 What compiler should emacs be built with? ${CC} ${CFLAGS}
12719 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
12720 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
12721 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
12722 What window system should Emacs use? ${window_system}
12723 What toolkit should Emacs use? ${USE_X_TOOLKIT}
12724 Should Emacs use a shared game state directory? ${gamedir}"
12726 if test -n "${x_includes}"; then
12727 echo " Where do we find X Windows header files? ${x_includes}"
12728 else
12729 echo " Where do we find X Windows header files? Standard dirs"
12731 if test -n "${x_libraries}"; then
12732 echo " Where do we find X Windows libraries? ${x_libraries}"
12733 else
12734 echo " Where do we find X Windows libraries? Standard dirs"
12737 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
12738 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
12739 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
12740 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
12741 echo " Does Emacs use -lungif? ${HAVE_GIF}"
12742 echo " Does Emacs use -lpng? ${HAVE_PNG}"
12743 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
12744 echo
12746 # Remove any trailing slashes in these variables.
12747 test "${prefix}" != NONE &&
12748 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
12749 test "${exec_prefix}" != NONE &&
12750 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
12752 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
12753 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
12754 ## from Makefile.c can correctly provide the arg `-traditional' to the
12755 ## C preprocessor.
12757 cat >conftest.$ac_ext <<_ACEOF
12758 #line 12758 "configure"
12759 #include "confdefs.h"
12760 yes..yes
12761 _ACEOF
12762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12763 egrep "yes..yes" >/dev/null 2>&1; then
12764 CPP_NEED_TRADITIONAL=no
12765 else
12766 CPP_NEED_TRADITIONAL=yes
12768 rm -f conftest*
12770 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"
12771 ac_config_commands="$ac_config_commands default"
12772 cat >confcache <<\_ACEOF
12773 # This file is a shell script that caches the results of configure
12774 # tests run on this system so they can be shared between configure
12775 # scripts and configure runs, see configure's option --config-cache.
12776 # It is not useful on other systems. If it contains results you don't
12777 # want to keep, you may remove or edit it.
12779 # config.status only pays attention to the cache file if you give it
12780 # the --recheck option to rerun configure.
12782 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12783 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12784 # following values.
12786 _ACEOF
12788 # The following way of writing the cache mishandles newlines in values,
12789 # but we know of no workaround that is simple, portable, and efficient.
12790 # So, don't put newlines in cache variables' values.
12791 # Ultrix sh set writes to stderr and can't be redirected directly,
12792 # and sets the high bit in the cache file unless we assign to the vars.
12794 (set) 2>&1 |
12795 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12796 *ac_space=\ *)
12797 # `set' does not quote correctly, so add quotes (double-quote
12798 # substitution turns \\\\ into \\, and sed turns \\ into \).
12799 sed -n \
12800 "s/'/'\\\\''/g;
12801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12804 # `set' quotes correctly as required by POSIX, so do not add quotes.
12805 sed -n \
12806 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12808 esac;
12810 sed '
12811 t clear
12812 : clear
12813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12814 t end
12815 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12816 : end' >>confcache
12817 if cmp -s $cache_file confcache; then :; else
12818 if test -w $cache_file; then
12819 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12820 cat confcache >$cache_file
12821 else
12822 echo "not updating unwritable cache $cache_file"
12825 rm -f confcache
12827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12828 # Let make expand exec_prefix.
12829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12831 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12832 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12833 # trailing colons and then remove the whole line if VPATH becomes empty
12834 # (actually we leave an empty line to preserve line numbers).
12835 if test "x$srcdir" = x.; then
12836 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12837 s/:*\$(srcdir):*/:/;
12838 s/:*\${srcdir}:*/:/;
12839 s/:*@srcdir@:*/:/;
12840 s/^\([^=]*=[ ]*\):*/\1/;
12841 s/:*$//;
12842 s/^[^=]*=[ ]*$//;
12846 DEFS=-DHAVE_CONFIG_H
12848 : ${CONFIG_STATUS=./config.status}
12849 ac_clean_files_save=$ac_clean_files
12850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12851 { echo "$as_me:12851: creating $CONFIG_STATUS" >&5
12852 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12853 cat >$CONFIG_STATUS <<_ACEOF
12854 #! $SHELL
12855 # Generated automatically by configure.
12856 # Run this file to recreate the current configuration.
12857 # Compiler output produced by configure, useful for debugging
12858 # configure, is in config.log if it exists.
12860 debug=false
12861 SHELL=\${CONFIG_SHELL-$SHELL}
12862 ac_cs_invocation="\$0 \$@"
12864 _ACEOF
12866 cat >>$CONFIG_STATUS <<\_ACEOF
12867 # Be Bourne compatible
12868 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12869 emulate sh
12870 NULLCMD=:
12871 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12872 set -o posix
12875 # Name of the executable.
12876 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12878 if expr a : '\(a\)' >/dev/null 2>&1; then
12879 as_expr=expr
12880 else
12881 as_expr=false
12884 rm -f conf$$ conf$$.exe conf$$.file
12885 echo >conf$$.file
12886 if ln -s conf$$.file conf$$ 2>/dev/null; then
12887 # We could just check for DJGPP; but this test a) works b) is more generic
12888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12889 if test -f conf$$.exe; then
12890 # Don't use ln at all; we don't have any links
12891 as_ln_s='cp -p'
12892 else
12893 as_ln_s='ln -s'
12895 elif ln conf$$.file conf$$ 2>/dev/null; then
12896 as_ln_s=ln
12897 else
12898 as_ln_s='cp -p'
12900 rm -f conf$$ conf$$.exe conf$$.file
12902 as_executable_p="test -f"
12904 # Support unset when possible.
12905 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12906 as_unset=unset
12907 else
12908 as_unset=false
12911 # NLS nuisances.
12912 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12913 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12914 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12915 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12916 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12917 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12918 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12919 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12921 # IFS
12922 # We need space, tab and new line, in precisely that order.
12923 as_nl='
12925 IFS=" $as_nl"
12927 # CDPATH.
12928 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12930 exec 6>&1
12932 _ACEOF
12934 # Files that config.status was made for.
12935 if test -n "$ac_config_files"; then
12936 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12939 if test -n "$ac_config_headers"; then
12940 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12943 if test -n "$ac_config_links"; then
12944 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12947 if test -n "$ac_config_commands"; then
12948 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12951 cat >>$CONFIG_STATUS <<\EOF
12953 ac_cs_usage="\
12954 \`$as_me' instantiates files from templates according to the
12955 current configuration.
12957 Usage: $0 [OPTIONS] [FILE]...
12959 -h, --help print this help, then exit
12960 -V, --version print version number, then exit
12961 -d, --debug don't remove temporary files
12962 --recheck update $as_me by reconfiguring in the same conditions
12963 --file=FILE[:TEMPLATE]
12964 instantiate the configuration file FILE
12965 --header=FILE[:TEMPLATE]
12966 instantiate the configuration header FILE
12968 Configuration files:
12969 $config_files
12971 Configuration headers:
12972 $config_headers
12974 Configuration commands:
12975 $config_commands
12977 Report bugs to <bug-autoconf@gnu.org>."
12980 cat >>$CONFIG_STATUS <<EOF
12981 ac_cs_version="\\
12982 config.status
12983 configured by $0, generated by GNU Autoconf 2.52,
12984 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12986 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12987 Free Software Foundation, Inc.
12988 This config.status script is free software; the Free Software Foundation
12989 gives unlimited permission to copy, distribute and modify it."
12990 srcdir=$srcdir
12991 INSTALL="$INSTALL"
12994 cat >>$CONFIG_STATUS <<\EOF
12995 # If no file are specified by the user, then we need to provide default
12996 # value. By we need to know if files were specified by the user.
12997 ac_need_defaults=:
12998 while test $# != 0
13000 case $1 in
13001 --*=*)
13002 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13003 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13004 shift
13005 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13006 shift
13008 -*);;
13009 *) # This is not an option, so the user has probably given explicit
13010 # arguments.
13011 ac_need_defaults=false;;
13012 esac
13014 case $1 in
13015 # Handling of the options.
13017 cat >>$CONFIG_STATUS <<EOF
13018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13019 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13020 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13022 cat >>$CONFIG_STATUS <<\EOF
13023 --version | --vers* | -V )
13024 echo "$ac_cs_version"; exit 0 ;;
13025 --he | --h)
13026 # Conflict between --help and --header
13027 { { echo "$as_me:13027: error: ambiguous option: $1
13028 Try \`$0 --help' for more information." >&5
13029 echo "$as_me: error: ambiguous option: $1
13030 Try \`$0 --help' for more information." >&2;}
13031 { (exit 1); exit 1; }; };;
13032 --help | --hel | -h )
13033 echo "$ac_cs_usage"; exit 0 ;;
13034 --debug | --d* | -d )
13035 debug=: ;;
13036 --file | --fil | --fi | --f )
13037 shift
13038 CONFIG_FILES="$CONFIG_FILES $1"
13039 ac_need_defaults=false;;
13040 --header | --heade | --head | --hea )
13041 shift
13042 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13043 ac_need_defaults=false;;
13045 # This is an error.
13046 -*) { { echo "$as_me:13046: error: unrecognized option: $1
13047 Try \`$0 --help' for more information." >&5
13048 echo "$as_me: error: unrecognized option: $1
13049 Try \`$0 --help' for more information." >&2;}
13050 { (exit 1); exit 1; }; } ;;
13052 *) ac_config_targets="$ac_config_targets $1" ;;
13054 esac
13055 shift
13056 done
13058 exec 5>>config.log
13059 cat >&5 << _ACEOF
13061 ## ----------------------- ##
13062 ## Running config.status. ##
13063 ## ----------------------- ##
13065 This file was extended by $as_me 2.52, executed with
13066 CONFIG_FILES = $CONFIG_FILES
13067 CONFIG_HEADERS = $CONFIG_HEADERS
13068 CONFIG_LINKS = $CONFIG_LINKS
13069 CONFIG_COMMANDS = $CONFIG_COMMANDS
13070 > $ac_cs_invocation
13071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13073 _ACEOF
13076 cat >>$CONFIG_STATUS <<EOF
13078 # INIT-COMMANDS section.
13081 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
13085 cat >>$CONFIG_STATUS <<\EOF
13086 for ac_config_target in $ac_config_targets
13088 case "$ac_config_target" in
13089 # Handling of arguments.
13090 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13091 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
13092 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
13093 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13094 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
13095 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
13096 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
13097 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
13098 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
13099 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
13100 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13101 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
13102 *) { { echo "$as_me:13102: error: invalid argument: $ac_config_target" >&5
13103 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13104 { (exit 1); exit 1; }; };;
13105 esac
13106 done
13108 # If the user did not use the arguments to specify the items to instantiate,
13109 # then the envvar interface is used. Set only those that are not.
13110 # We use the long form for the default assignment because of an extremely
13111 # bizarre bug on SunOS 4.1.3.
13112 if $ac_need_defaults; then
13113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13114 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13115 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13118 # Create a temporary directory, and hook for its removal unless debugging.
13119 $debug ||
13121 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13122 trap '{ (exit 1); exit 1; }' 1 2 13 15
13125 # Create a (secure) tmp directory for tmp files.
13126 : ${TMPDIR=/tmp}
13128 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13129 test -n "$tmp" && test -d "$tmp"
13130 } ||
13132 tmp=$TMPDIR/cs$$-$RANDOM
13133 (umask 077 && mkdir $tmp)
13134 } ||
13136 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13137 { (exit 1); exit 1; }
13142 cat >>$CONFIG_STATUS <<EOF
13145 # CONFIG_FILES section.
13148 # No need to generate the scripts if there are no CONFIG_FILES.
13149 # This happens for instance when ./config.status config.h
13150 if test -n "\$CONFIG_FILES"; then
13151 # Protect against being on the right side of a sed subst in config.status.
13152 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13153 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13154 s,@SHELL@,$SHELL,;t t
13155 s,@exec_prefix@,$exec_prefix,;t t
13156 s,@prefix@,$prefix,;t t
13157 s,@program_transform_name@,$program_transform_name,;t t
13158 s,@bindir@,$bindir,;t t
13159 s,@sbindir@,$sbindir,;t t
13160 s,@libexecdir@,$libexecdir,;t t
13161 s,@datadir@,$datadir,;t t
13162 s,@sysconfdir@,$sysconfdir,;t t
13163 s,@sharedstatedir@,$sharedstatedir,;t t
13164 s,@localstatedir@,$localstatedir,;t t
13165 s,@libdir@,$libdir,;t t
13166 s,@includedir@,$includedir,;t t
13167 s,@oldincludedir@,$oldincludedir,;t t
13168 s,@infodir@,$infodir,;t t
13169 s,@mandir@,$mandir,;t t
13170 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13171 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13172 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13173 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13174 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13175 s,@build_alias@,$build_alias,;t t
13176 s,@host_alias@,$host_alias,;t t
13177 s,@target_alias@,$target_alias,;t t
13178 s,@ECHO_C@,$ECHO_C,;t t
13179 s,@ECHO_N@,$ECHO_N,;t t
13180 s,@ECHO_T@,$ECHO_T,;t t
13181 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13182 s,@DEFS@,$DEFS,;t t
13183 s,@LIBS@,$LIBS,;t t
13184 s,@build@,$build,;t t
13185 s,@build_cpu@,$build_cpu,;t t
13186 s,@build_vendor@,$build_vendor,;t t
13187 s,@build_os@,$build_os,;t t
13188 s,@host@,$host,;t t
13189 s,@host_cpu@,$host_cpu,;t t
13190 s,@host_vendor@,$host_vendor,;t t
13191 s,@host_os@,$host_os,;t t
13192 s,@CC@,$CC,;t t
13193 s,@CFLAGS@,$CFLAGS,;t t
13194 s,@LDFLAGS@,$LDFLAGS,;t t
13195 s,@CPPFLAGS@,$CPPFLAGS,;t t
13196 s,@ac_ct_CC@,$ac_ct_CC,;t t
13197 s,@EXEEXT@,$EXEEXT,;t t
13198 s,@OBJEXT@,$OBJEXT,;t t
13199 s,@LN_S@,$LN_S,;t t
13200 s,@CPP@,$CPP,;t t
13201 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13202 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13203 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13204 s,@YACC@,$YACC,;t t
13205 s,@RANLIB@,$RANLIB,;t t
13206 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13207 s,@LIBSOUND@,$LIBSOUND,;t t
13208 s,@SET_MAKE@,$SET_MAKE,;t t
13209 s,@ALLOCA@,$ALLOCA,;t t
13210 s,@liblockfile@,$liblockfile,;t t
13211 s,@LIBOBJS@,$LIBOBJS,;t t
13212 s,@NEED_SETGID@,$NEED_SETGID,;t t
13213 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
13214 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
13215 s,@version@,$version,;t t
13216 s,@configuration@,$configuration,;t t
13217 s,@canonical@,$canonical,;t t
13218 s,@srcdir@,$srcdir,;t t
13219 s,@lispdir@,$lispdir,;t t
13220 s,@locallisppath@,$locallisppath,;t t
13221 s,@lisppath@,$lisppath,;t t
13222 s,@x_default_search_path@,$x_default_search_path,;t t
13223 s,@etcdir@,$etcdir,;t t
13224 s,@archlibdir@,$archlibdir,;t t
13225 s,@docdir@,$docdir,;t t
13226 s,@bitmapdir@,$bitmapdir,;t t
13227 s,@gamedir@,$gamedir,;t t
13228 s,@gameuser@,$gameuser,;t t
13229 s,@c_switch_system@,$c_switch_system,;t t
13230 s,@c_switch_machine@,$c_switch_machine,;t t
13231 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
13232 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
13233 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
13234 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
13235 s,@machfile@,$machfile,;t t
13236 s,@opsysfile@,$opsysfile,;t t
13237 CEOF
13241 cat >>$CONFIG_STATUS <<\EOF
13242 # Split the substitutions into bite-sized pieces for seds with
13243 # small command number limits, like on Digital OSF/1 and HP-UX.
13244 ac_max_sed_lines=48
13245 ac_sed_frag=1 # Number of current file.
13246 ac_beg=1 # First line for current file.
13247 ac_end=$ac_max_sed_lines # Line after last line for current file.
13248 ac_more_lines=:
13249 ac_sed_cmds=
13250 while $ac_more_lines; do
13251 if test $ac_beg -gt 1; then
13252 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13253 else
13254 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13256 if test ! -s $tmp/subs.frag; then
13257 ac_more_lines=false
13258 else
13259 # The purpose of the label and of the branching condition is to
13260 # speed up the sed processing (if there are no `@' at all, there
13261 # is no need to browse any of the substitutions).
13262 # These are the two extra sed commands mentioned above.
13263 (echo ':t
13264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13265 if test -z "$ac_sed_cmds"; then
13266 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13267 else
13268 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13270 ac_sed_frag=`expr $ac_sed_frag + 1`
13271 ac_beg=$ac_end
13272 ac_end=`expr $ac_end + $ac_max_sed_lines`
13274 done
13275 if test -z "$ac_sed_cmds"; then
13276 ac_sed_cmds=cat
13278 fi # test -n "$CONFIG_FILES"
13281 cat >>$CONFIG_STATUS <<\EOF
13282 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13283 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13284 case $ac_file in
13285 - | *:- | *:-:* ) # input from stdin
13286 cat >$tmp/stdin
13287 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13288 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13289 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13290 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13291 * ) ac_file_in=$ac_file.in ;;
13292 esac
13294 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13295 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13296 X"$ac_file" : 'X\(//\)[^/]' \| \
13297 X"$ac_file" : 'X\(//\)$' \| \
13298 X"$ac_file" : 'X\(/\)' \| \
13299 . : '\(.\)' 2>/dev/null ||
13300 echo X"$ac_file" |
13301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13303 /^X\(\/\/\)$/{ s//\1/; q; }
13304 /^X\(\/\).*/{ s//\1/; q; }
13305 s/.*/./; q'`
13306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13307 { case "$ac_dir" in
13308 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13309 *) as_incr_dir=.;;
13310 esac
13311 as_dummy="$ac_dir"
13312 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13313 case $as_mkdir_dir in
13314 # Skip DOS drivespec
13315 ?:) as_incr_dir=$as_mkdir_dir ;;
13317 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13318 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13320 esac
13321 done; }
13323 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13324 # A "../" for each directory in $ac_dir_suffix.
13325 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13326 else
13327 ac_dir_suffix= ac_dots=
13330 case $srcdir in
13331 .) ac_srcdir=.
13332 if test -z "$ac_dots"; then
13333 ac_top_srcdir=.
13334 else
13335 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13336 fi ;;
13337 [\\/]* | ?:[\\/]* )
13338 ac_srcdir=$srcdir$ac_dir_suffix;
13339 ac_top_srcdir=$srcdir ;;
13340 *) # Relative path.
13341 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13342 ac_top_srcdir=$ac_dots$srcdir ;;
13343 esac
13345 case $INSTALL in
13346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13347 *) ac_INSTALL=$ac_dots$INSTALL ;;
13348 esac
13350 if test x"$ac_file" != x-; then
13351 { echo "$as_me:13351: creating $ac_file" >&5
13352 echo "$as_me: creating $ac_file" >&6;}
13353 rm -f "$ac_file"
13355 # Let's still pretend it is `configure' which instantiates (i.e., don't
13356 # use $as_me), people would be surprised to read:
13357 # /* config.h. Generated automatically by config.status. */
13358 configure_input="Generated automatically from `echo $ac_file_in |
13359 sed 's,.*/,,'` by configure."
13361 # First look for the input files in the build tree, otherwise in the
13362 # src tree.
13363 ac_file_inputs=`IFS=:
13364 for f in $ac_file_in; do
13365 case $f in
13366 -) echo $tmp/stdin ;;
13367 [\\/$]*)
13368 # Absolute (can't be DOS-style, as IFS=:)
13369 test -f "$f" || { { echo "$as_me:13369: error: cannot find input file: $f" >&5
13370 echo "$as_me: error: cannot find input file: $f" >&2;}
13371 { (exit 1); exit 1; }; }
13372 echo $f;;
13373 *) # Relative
13374 if test -f "$f"; then
13375 # Build tree
13376 echo $f
13377 elif test -f "$srcdir/$f"; then
13378 # Source tree
13379 echo $srcdir/$f
13380 else
13381 # /dev/null tree
13382 { { echo "$as_me:13382: error: cannot find input file: $f" >&5
13383 echo "$as_me: error: cannot find input file: $f" >&2;}
13384 { (exit 1); exit 1; }; }
13385 fi;;
13386 esac
13387 done` || { (exit 1); exit 1; }
13389 cat >>$CONFIG_STATUS <<EOF
13390 sed "$ac_vpsub
13391 $extrasub
13393 cat >>$CONFIG_STATUS <<\EOF
13395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13396 s,@configure_input@,$configure_input,;t t
13397 s,@srcdir@,$ac_srcdir,;t t
13398 s,@top_srcdir@,$ac_top_srcdir,;t t
13399 s,@INSTALL@,$ac_INSTALL,;t t
13400 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13401 rm -f $tmp/stdin
13402 if test x"$ac_file" != x-; then
13403 mv $tmp/out $ac_file
13404 else
13405 cat $tmp/out
13406 rm -f $tmp/out
13409 done
13411 cat >>$CONFIG_STATUS <<\EOF
13414 # CONFIG_HEADER section.
13417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13420 # ac_d sets the value in "#define NAME VALUE" lines.
13421 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13422 ac_dB='[ ].*$,\1#\2'
13423 ac_dC=' '
13424 ac_dD=',;t'
13425 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13426 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13427 ac_uB='$,\1#\2define\3'
13428 ac_uC=' '
13429 ac_uD=',;t'
13431 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13433 case $ac_file in
13434 - | *:- | *:-:* ) # input from stdin
13435 cat >$tmp/stdin
13436 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13438 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13439 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13440 * ) ac_file_in=$ac_file.in ;;
13441 esac
13443 test x"$ac_file" != x- && { echo "$as_me:13443: creating $ac_file" >&5
13444 echo "$as_me: creating $ac_file" >&6;}
13446 # First look for the input files in the build tree, otherwise in the
13447 # src tree.
13448 ac_file_inputs=`IFS=:
13449 for f in $ac_file_in; do
13450 case $f in
13451 -) echo $tmp/stdin ;;
13452 [\\/$]*)
13453 # Absolute (can't be DOS-style, as IFS=:)
13454 test -f "$f" || { { echo "$as_me:13454: error: cannot find input file: $f" >&5
13455 echo "$as_me: error: cannot find input file: $f" >&2;}
13456 { (exit 1); exit 1; }; }
13457 echo $f;;
13458 *) # Relative
13459 if test -f "$f"; then
13460 # Build tree
13461 echo $f
13462 elif test -f "$srcdir/$f"; then
13463 # Source tree
13464 echo $srcdir/$f
13465 else
13466 # /dev/null tree
13467 { { echo "$as_me:13467: error: cannot find input file: $f" >&5
13468 echo "$as_me: error: cannot find input file: $f" >&2;}
13469 { (exit 1); exit 1; }; }
13470 fi;;
13471 esac
13472 done` || { (exit 1); exit 1; }
13473 # Remove the trailing spaces.
13474 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13478 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13479 # `conftest.undefs', that substitutes the proper values into
13480 # config.h.in to produce config.h. The first handles `#define'
13481 # templates, and the second `#undef' templates.
13482 # And first: Protect against being on the right side of a sed subst in
13483 # config.status. Protect against being in an unquoted here document
13484 # in config.status.
13485 rm -f conftest.defines conftest.undefs
13486 # Using a here document instead of a string reduces the quoting nightmare.
13487 # Putting comments in sed scripts is not portable.
13489 # `end' is used to avoid that the second main sed command (meant for
13490 # 0-ary CPP macros) applies to n-ary macro definitions.
13491 # See the Autoconf documentation for `clear'.
13492 cat >confdef2sed.sed <<\EOF
13493 s/[\\&,]/\\&/g
13494 s,[\\$`],\\&,g
13495 t clear
13496 : clear
13497 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13498 t end
13499 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13500 : end
13502 # If some macros were called several times there might be several times
13503 # the same #defines, which is useless. Nevertheless, we may not want to
13504 # sort them, since we want the *last* AC-DEFINE to be honored.
13505 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13506 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13507 rm -f confdef2sed.sed
13509 # This sed command replaces #undef with comments. This is necessary, for
13510 # example, in the case of _POSIX_SOURCE, which is predefined and required
13511 # on some systems where configure will not decide to define it.
13512 cat >>conftest.undefs <<\EOF
13513 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13516 # Break up conftest.defines because some shells have a limit on the size
13517 # of here documents, and old seds have small limits too (100 cmds).
13518 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13519 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13520 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13521 echo ' :' >>$CONFIG_STATUS
13522 rm -f conftest.tail
13523 while grep . conftest.defines >/dev/null
13525 # Write a limited-size here document to $tmp/defines.sed.
13526 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13527 # Speed up: don't consider the non `#define' lines.
13528 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13529 # Work around the forget-to-reset-the-flag bug.
13530 echo 't clr' >>$CONFIG_STATUS
13531 echo ': clr' >>$CONFIG_STATUS
13532 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13533 echo 'CEOF
13534 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13535 rm -f $tmp/in
13536 mv $tmp/out $tmp/in
13537 ' >>$CONFIG_STATUS
13538 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13539 rm -f conftest.defines
13540 mv conftest.tail conftest.defines
13541 done
13542 rm -f conftest.defines
13543 echo ' fi # egrep' >>$CONFIG_STATUS
13544 echo >>$CONFIG_STATUS
13546 # Break up conftest.undefs because some shells have a limit on the size
13547 # of here documents, and old seds have small limits too (100 cmds).
13548 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13549 rm -f conftest.tail
13550 while grep . conftest.undefs >/dev/null
13552 # Write a limited-size here document to $tmp/undefs.sed.
13553 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13554 # Speed up: don't consider the non `#undef'
13555 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13556 # Work around the forget-to-reset-the-flag bug.
13557 echo 't clr' >>$CONFIG_STATUS
13558 echo ': clr' >>$CONFIG_STATUS
13559 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13560 echo 'CEOF
13561 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13562 rm -f $tmp/in
13563 mv $tmp/out $tmp/in
13564 ' >>$CONFIG_STATUS
13565 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13566 rm -f conftest.undefs
13567 mv conftest.tail conftest.undefs
13568 done
13569 rm -f conftest.undefs
13571 cat >>$CONFIG_STATUS <<\EOF
13572 # Let's still pretend it is `configure' which instantiates (i.e., don't
13573 # use $as_me), people would be surprised to read:
13574 # /* config.h. Generated automatically by config.status. */
13575 if test x"$ac_file" = x-; then
13576 echo "/* Generated automatically by configure. */" >$tmp/config.h
13577 else
13578 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13580 cat $tmp/in >>$tmp/config.h
13581 rm -f $tmp/in
13582 if test x"$ac_file" != x-; then
13583 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13584 { echo "$as_me:13584: $ac_file is unchanged" >&5
13585 echo "$as_me: $ac_file is unchanged" >&6;}
13586 else
13587 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13588 X"$ac_file" : 'X\(//\)[^/]' \| \
13589 X"$ac_file" : 'X\(//\)$' \| \
13590 X"$ac_file" : 'X\(/\)' \| \
13591 . : '\(.\)' 2>/dev/null ||
13592 echo X"$ac_file" |
13593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13595 /^X\(\/\/\)$/{ s//\1/; q; }
13596 /^X\(\/\).*/{ s//\1/; q; }
13597 s/.*/./; q'`
13598 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13599 { case "$ac_dir" in
13600 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13601 *) as_incr_dir=.;;
13602 esac
13603 as_dummy="$ac_dir"
13604 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13605 case $as_mkdir_dir in
13606 # Skip DOS drivespec
13607 ?:) as_incr_dir=$as_mkdir_dir ;;
13609 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13610 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13612 esac
13613 done; }
13616 rm -f $ac_file
13617 mv $tmp/config.h $ac_file
13619 else
13620 cat $tmp/config.h
13621 rm -f $tmp/config.h
13623 done
13625 cat >>$CONFIG_STATUS <<\EOF
13628 # CONFIG_COMMANDS section.
13630 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13631 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13632 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13634 case $ac_dest in
13635 default )
13637 ### Make the necessary directories, if they don't exist.
13638 for dir in etc lisp ; do
13639 test -d ${dir} || mkdir ${dir}
13640 done
13642 # Build src/Makefile from ${srcdir}/src/Makefile.c
13643 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
13644 # This must be done after src/config.h is built, since we rely on that file.
13646 # Now get this: Some word that is part of the ${srcdir} directory name
13647 # or the ${configuration} value might, just might, happen to be an
13648 # identifier like `sun4' or `i386' or something, and be predefined by
13649 # the C preprocessor to some helpful value like 1, or maybe the empty
13650 # string. Needless to say consequent macro substitutions are less
13651 # than conducive to the makefile finding the correct directory.
13652 undefs="`echo $top_srcdir $configuration $canonical |
13653 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
13654 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
13657 echo creating src/epaths.h
13658 ${MAKE-make} epaths-force
13660 # As of 2000-11-19, newest development versions of GNU cpp preprocess
13661 # `..' to `. .' unless invoked with -traditional
13663 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
13664 CPPFLAGS="$CPPFLAGS -traditional"
13667 echo creating lib-src/Makefile
13668 ( cd lib-src
13669 rm -f junk.c junk1.c junk2.c
13670 sed -e '/start of cpp stuff/q' \
13671 < Makefile.c > junk1.c
13672 sed -e '1,/start of cpp stuff/d'\
13673 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13674 < Makefile.c > junk.c
13675 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13676 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13677 cat junk1.c junk2.c > Makefile.new
13678 rm -f junk.c junk1.c junk2.c
13679 chmod 444 Makefile.new
13680 mv -f Makefile.new Makefile
13683 echo creating src/Makefile
13684 ( cd src
13685 rm -f junk.c junk1.c junk2.c
13686 sed -e '/start of cpp stuff/q' \
13687 < Makefile.c > junk1.c
13688 sed -e '1,/start of cpp stuff/d'\
13689 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
13690 < Makefile.c > junk.c
13691 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
13692 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
13693 cat junk1.c junk2.c > Makefile.new
13694 rm -f junk.c junk1.c junk2.c
13695 chmod 444 Makefile.new
13696 mv -f Makefile.new Makefile
13699 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
13700 echo creating src/.gdbinit
13701 echo source $srcdir/src/.gdbinit > src/.gdbinit
13704 # This is how we know whether to re-run configure in certain cases.
13705 touch src/config.stamp
13708 esac
13709 done
13712 cat >>$CONFIG_STATUS <<\EOF
13714 { (exit 0); exit 0; }
13716 chmod +x $CONFIG_STATUS
13717 ac_clean_files=$ac_clean_files_save
13719 # configure is writing to config.log, and then calls config.status.
13720 # config.status does its own redirection, appending to config.log.
13721 # Unfortunately, on DOS this fails, as config.log is still kept open
13722 # by configure, so config.status won't be able to write to it; its
13723 # output is simply discarded. So we exec the FD to /dev/null,
13724 # effectively closing config.log, so it can be properly (re)opened and
13725 # appended to by config.status. When coming back to configure, we
13726 # need to make the FD available again.
13727 if test "$no_create" != yes; then
13728 ac_cs_success=:
13729 exec 5>/dev/null
13730 $SHELL $CONFIG_STATUS || ac_cs_success=false
13731 exec 5>>config.log
13732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13733 # would make configure fail if this is the last instruction.
13734 $ac_cs_success || { (exit 1); exit 1; }