(Fdisplay_buffer, Fsplit_window, split-height-threshold): Doc fix.
[emacs.git] / configure
blob0e74a04e7002c0396e7baa981d01f2c546e36261
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="src/lisp.h"
275 ac_config_libobj_dir=src
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802 _ACEOF
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
833 cat <<\_ACEOF
835 Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 X features:
841 --x-includes=DIR X include files are in DIR
842 --x-libraries=DIR X library files are in DIR
844 System types:
845 --build=BUILD configure for building on BUILD [guessed]
846 --host=HOST cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
850 if test -n "$ac_init_help"; then
852 cat <<\_ACEOF
854 Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --enable-carbon-app[=DIR] [DIR=/Application]
858 specify install directory for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-largefile omit support for large files
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-gcc don't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version 5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server host
871 --without-sound don't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
896 Use these variables to override the choices made by `configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
899 _ACEOF
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
904 ac_popdir=`pwd`
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
907 ac_builddir=.
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
913 else
914 ac_dir_suffix= ac_top_builddir=
917 case $srcdir in
918 .) # No --srcdir option. We are building in place.
919 ac_srcdir=.
920 if test -z "$ac_top_builddir"; then
921 ac_top_srcdir=.
922 else
923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
924 fi ;;
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
928 *) # Relative path.
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
931 esac
933 # Do not use `cd foo && pwd` to compute absolute paths, because
934 # the directories may not exist.
935 case `pwd` in
936 .) ac_abs_builddir="$ac_dir";;
938 case "$ac_dir" in
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
956 case $ac_srcdir in
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 esac;;
970 esac
972 cd $ac_dir
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
975 echo
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
978 echo
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
982 echo
983 $ac_configure --help
984 else
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 cd $ac_popdir
988 done
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
993 cat <<\_ACEOF
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
998 _ACEOF
999 exit 0
1001 exec 5>config.log
1002 cat >&5 <<_ACEOF
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1009 $ $0 $@
1011 _ACEOF
1013 cat <<_ASUNAME
1014 ## --------- ##
1015 ## Platform. ##
1016 ## --------- ##
1018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1035 _ASUNAME
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 for as_dir in $PATH
1040 IFS=$as_save_IFS
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1043 done
1045 } >&5
1047 cat >&5 <<_ACEOF
1050 ## ----------- ##
1051 ## Core tests. ##
1052 ## ----------- ##
1054 _ACEOF
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_configure_args=
1063 ac_configure_args0=
1064 ac_configure_args1=
1065 ac_sep=
1066 ac_must_keep_next=false
1067 for ac_pass in 1 2
1069 for ac_arg
1071 case $ac_arg in
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 continue ;;
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078 esac
1079 case $ac_pass in
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1085 else
1086 case $ac_arg in
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 esac
1095 -* ) ac_must_keep_next=true ;;
1096 esac
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1100 ac_sep=" "
1102 esac
1103 done
1104 done
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close' the trap.
1113 trap 'exit_status=$?
1114 # Save into config.log some information that might help in debugging.
1116 echo
1118 cat <<\_ASBOX
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1122 _ASBOX
1123 echo
1124 # The following way of writing the cache mishandles newlines in values,
1126 (set) 2>&1 |
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 *ac_space=\ *)
1129 sed -n \
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 sed -n \
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 esac;
1139 echo
1141 cat <<\_ASBOX
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1145 _ASBOX
1146 echo
1147 for ac_var in $ac_subst_vars
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1154 if test -n "$ac_subst_files"; then
1155 cat <<\_ASBOX
1156 ## ------------- ##
1157 ## Output files. ##
1158 ## ------------- ##
1159 _ASBOX
1160 echo
1161 for ac_var in $ac_subst_files
1163 eval ac_val=$`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1165 done | sort
1166 echo
1169 if test -s confdefs.h; then
1170 cat <<\_ASBOX
1171 ## ----------- ##
1172 ## confdefs.h. ##
1173 ## ----------- ##
1174 _ASBOX
1175 echo
1176 sed "/^$/d" confdefs.h | sort
1177 echo
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1182 } >&5
1183 rm -f core *.core &&
1184 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185 exit $exit_status
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 done
1190 ac_signal=0
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 echo >confdefs.h
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 _ACEOF
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 _ACEOF
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229 else
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's/^/| /' "$ac_site_file" >&5
1238 . "$ac_site_file"
1240 done
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1248 case $cache_file in
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1251 esac
1253 else
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1256 >$cache_file
1259 # Check that the precious variables saved in the cache have kept the same
1260 # value.
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1269 set,)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,set)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,);;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1287 fi;;
1288 esac
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1291 case $ac_new_val in
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1295 esac
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 esac
1301 done
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1310 ac_ext=c
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it if useless.
1344 cat <<\_ACEOF >conftest.sed
1345 s/[\\$]/&&/g;s/;s,x,x,$//
1346 _ACEOF
1347 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1348 rm conftest.sed
1351 lispdir='${datadir}/emacs/${version}/lisp'
1352 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath='${locallisppath}:${lispdir}'
1355 etcdir='${datadir}/emacs/${version}/etc'
1356 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir='${datadir}/emacs/${version}/etc'
1358 gamedir='${localstatedir}/games/emacs'
1360 gameuser=games
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1365 withval="$with_gcc"
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1371 withval="$with_pop"
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h <<\_ACEOF
1374 #define MAIL_USE_POP 1
1375 _ACEOF
1377 else :
1379 else
1380 cat >>confdefs.h <<\_ACEOF
1381 #define MAIL_USE_POP 1
1382 _ACEOF
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval="$with_kerberos"
1390 cat >>confdefs.h <<\_ACEOF
1391 #define KERBEROS 1
1392 _ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1402 with_kerberos=yes
1403 cat >>confdefs.h <<\_ACEOF
1404 #define KERBEROS 1
1405 _ACEOF
1410 cat >>confdefs.h <<\_ACEOF
1411 #define KERBEROS5 1
1412 _ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval="$with_hesiod"
1420 cat >>confdefs.h <<\_ACEOF
1421 #define HESIOD 1
1422 _ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye | yes ) val=athena ;;
1439 n | no ) val=no ;;
1440 l | lu | luc | luci | lucid ) val=lucid ;;
1441 a | at | ath | athe | athen | athena ) val=athena ;;
1442 m | mo | mot | moti | motif ) val=motif ;;
1443 g | gt | gtk ) val=gtk ;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1453 esac
1454 with_x_toolkit=$val
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1460 withval="$with_xpm"
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1478 withval="$with_gif"
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1484 withval="$with_png"
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1490 withval="$with_gtk"
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1508 withval="$with_xim"
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval="$enable_carbon_app"
1520 carbon_appdir_x=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE=$enableval
1527 else
1528 USE_MAINTAINER_MODE=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1531 MAINT=
1532 else
1533 MAINT=#
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1542 unset CDPATH
1543 case "${srcdir}" in
1544 /* ) ;;
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1552 then
1553 srcdir="$PWD"
1554 else
1555 srcdir="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1559 esac
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1583 ac_aux_dir=
1584 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1585 if test -f $ac_dir/install-sh; then
1586 ac_aux_dir=$ac_dir
1587 ac_install_sh="$ac_aux_dir/install-sh -c"
1588 break
1589 elif test -f $ac_dir/install.sh; then
1590 ac_aux_dir=$ac_dir
1591 ac_install_sh="$ac_aux_dir/install.sh -c"
1592 break
1593 elif test -f $ac_dir/shtool; then
1594 ac_aux_dir=$ac_dir
1595 ac_install_sh="$ac_aux_dir/shtool install -c"
1596 break
1598 done
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 canonical=$host
1663 configuration=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine='' opsys='' unported=no
1691 case "${canonical}" in
1693 ## FreeBSD ports
1694 *-*-freebsd* )
1695 opsys=freebsd
1696 case "${canonical}" in
1697 alpha*-*-freebsd*) machine=alpha ;;
1698 i[3456]86-*-freebsd*) machine=intel386 ;;
1699 esac
1702 ## NetBSD ports
1703 *-*-netbsd* )
1704 opsys=netbsd
1705 if test -f /usr/lib/crti.o; then
1707 cat >>confdefs.h <<\_ACEOF
1708 #define HAVE_CRTIN
1709 _ACEOF
1713 case "${canonical}" in
1714 alpha*-*-netbsd*) machine=alpha ;;
1715 i[3456]86-*-netbsd*) machine=intel386 ;;
1716 m68k-*-netbsd*)
1717 # This is somewhat bogus.
1718 machine=hp9000s300 ;;
1719 powerpc-apple-netbsd*) machine=macppc ;;
1720 mips-*-netbsd*) machine=pmax ;;
1721 mipsel-*-netbsd*) machine=pmax ;;
1722 mipseb-*-netbsd*) machine=pmax ;;
1723 ns32k-*-netbsd*) machine=ns32000 ;;
1724 powerpc-*-netbsd*) machine=macppc ;;
1725 sparc*-*-netbsd*) machine=sparc ;;
1726 vax-*-netbsd*) machine=vax ;;
1727 arm-*-netbsd*) machine=arm ;;
1728 esac
1731 ## OpenBSD ports
1732 *-*-openbsd* )
1733 opsys=openbsd
1734 case "${canonical}" in
1735 alpha*-*-openbsd*) machine=alpha ;;
1736 i386-*-openbsd*) machine=intel386 ;;
1737 m68k-*-openbsd*) machine=hp9000s300 ;;
1738 mipsel-*-openbsd*) machine=pmax ;;
1739 ns32k-*-openbsd*) machine=ns32000 ;;
1740 sparc-*-openbsd*) machine=sparc ;;
1741 vax-*-openbsd*) machine=vax ;;
1742 esac
1745 ## Acorn RISCiX:
1746 arm-acorn-riscix1.1* )
1747 machine=acorn opsys=riscix1-1
1749 arm-acorn-riscix1.2* | arm-acorn-riscix )
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine=acorn opsys=riscix12
1755 ## BSDI ports
1756 *-*-bsdi* )
1757 opsys=bsdi
1758 case "${canonical}" in
1759 i[345]86-*-bsdi*) machine=intel386 ;;
1760 sparc-*-bsdi*) machine=sparc ;;
1761 powerpc-*-bsdi*) machine=macppc ;;
1762 esac
1763 case "${canonical}" in
1764 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1765 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1766 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1767 *-*-bsdi3* ) opsys=bsdos3 ;;
1768 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1769 esac
1772 ## Alliant machines
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1778 fx80-alliant-* )
1779 machine=alliant4 opsys=bsd4-2
1781 i860-alliant-* )
1782 machine=alliant-2800 opsys=bsd4-3
1785 ## Alpha (DEC) machines.
1786 alpha*-dec-osf* )
1787 machine=alpha opsys=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1790 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP=/usr/bin/cpp
1796 case "${canonical}" in
1797 alpha*-dec-osf[5-9]*)
1798 opsys=osf5-0 ;;
1799 esac
1802 alpha*-*-linux-gnu* )
1803 machine=alpha opsys=gnu-linux
1806 arm*-*-linux-gnu* )
1807 machine=arm opsys=gnu-linux
1810 ppc-*-linux | \
1811 powerpc-*-linux* )
1812 machine=macppc opsys=gnu-linux
1815 ## Altos 3068
1816 m68*-altos-sysv* )
1817 machine=altos opsys=usg5-2
1820 ## Amdahl UTS
1821 580-amdahl-sysv* )
1822 machine=amdahl opsys=usg5-2-2
1825 ## Apollo, Domain/OS
1826 m68*-apollo-* )
1827 machine=apollo opsys=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1831 we32k-att-sysv* )
1832 machine=att3b opsys=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1836 m68*-att-sysv* )
1837 machine=7300 opsys=usg5-2-2
1840 ## Bull dpx20
1841 rs6000-bull-bosx* )
1842 machine=ibmrs6000 opsys=aix3-2
1845 ## Bull dpx2
1846 m68*-bull-sysv3* )
1847 machine=dpx2 opsys=usg5-3
1850 ## Bull sps7
1851 m68*-bull-sysv2* )
1852 machine=sps7 opsys=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1857 ## Celerity
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd* )
1862 machine=celerity opsys=bsd4-2
1865 ## Clipper
1866 ## What operating systems does this chip run that Emacs has been
1867 ## tested on?
1868 clipper-* )
1869 machine=clipper
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1874 ## Compaq Nonstop
1875 mips-compaq-nonstopux* )
1876 machine=nonstopux opsys=nonstopux
1879 ## Convex
1880 *-convex-bsd* | *-convex-convexos* )
1881 machine=convex opsys=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP="cc -E -P"
1886 ## Cubix QBx/386
1887 i[3456]86-cubix-sysv* )
1888 machine=intel386 opsys=usg5-3
1891 ## Cydra 5
1892 cydra*-cydrome-sysv* )
1893 machine=cydra5 opsys=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1903 machine=aviion opsys=dgux4
1905 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine=aviion opsys=dgux5-4-3
1910 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1911 machine=aviion opsys=dgux5-4r2
1913 m88k-dg-dgux* )
1914 machine=aviion opsys=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i[345]86-dg-dguxR4* )
1921 machine=aviion-intel opsys=dgux4
1924 ## DECstations
1925 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1926 machine=pmax opsys=bsd4-2
1928 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1929 machine=pmax opsys=bsd4-3
1931 mips-dec-ultrix* )
1932 machine=pmax opsys=ultrix4-3
1934 mips-dec-osf* )
1935 machine=pmax opsys=osf1
1937 mips-dec-mach_bsd4.3* )
1938 machine=pmax opsys=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv* | m68000-motorola-sysv* )
1943 machine=delta opsys=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1945 then
1946 if test -s /etc/167config
1947 then CC="gnucc -m68040"
1948 else CC="gnucc -m68881"
1950 else
1951 if test -z "`type gcc | grep 'not found'`"
1952 then CC=gcc
1953 else CC=cc
1957 m88k-motorola-sysv4* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine=delta88k opsys=usg5-4-2
1964 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1965 machine=delta88k opsys=usg5-3
1968 ## Dual machines
1969 m68*-dual-sysv* )
1970 machine=dual opsys=usg5-2
1972 m68*-dual-uniplus* )
1973 machine=dual opsys=unipl5-2
1976 ## Elxsi 6400
1977 elxsi-elxsi-sysv* )
1978 machine=elxsi opsys=usg5-2
1981 ## Encore machines
1982 ns16k-encore-bsd* )
1983 machine=ns16000 opsys=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1990 pn-gould-bsd4.2* )
1991 machine=gould opsys=bsd4-2
1993 pn-gould-bsd4.3* )
1994 machine=gould opsys=bsd4-3
1996 np1-gould-bsd* )
1997 machine=gould-np1 opsys=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2002 m88k-harris-cxux* )
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2006 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2007 esac
2008 NON_GNU_CPP="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2011 m68k-harris-cxux* )
2012 machine=nh3000 opsys=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix )
2016 machine=nh6000 opsys=powerunix
2017 NON_GNU_CPP="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1-hitachi-hiuxmpp* )
2021 machine=sr2k opsys=hiuxmpp
2023 hppa1.1-hitachi-hiuxwe2* )
2024 machine=sr2k opsys=hiuxwe2
2026 ## Honeywell XPS100
2027 xps*-honeywell-sysv* )
2028 machine=xps100 opsys=usg5-2
2031 ## HP 9000 series 200 or 300
2032 m68*-hp-bsd* )
2033 machine=hp9000s300 opsys=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2036 m68*-hp-hpux* )
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2041 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2042 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2043 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2044 *) machine=hp9000s300 opsys=hpux ;;
2045 esac
2048 ## HP 9000 series 700 and 800, running HP/UX
2049 hppa*-hp-hpux7* )
2050 machine=hp800 opsys=hpux
2052 hppa*-hp-hpux8* )
2053 machine=hp800 opsys=hpux8
2055 hppa*-hp-hpux9shr* )
2056 machine=hp800 opsys=hpux9shr
2058 hppa*-hp-hpux9* )
2059 machine=hp800 opsys=hpux9
2061 hppa*-hp-hpux10.2* )
2062 machine=hp800 opsys=hpux10-20
2064 hppa*-hp-hpux10* )
2065 machine=hp800 opsys=hpux10
2067 hppa*-hp-hpux1[1-9]* )
2068 machine=hp800 opsys=hpux11
2071 hppa*-*-linux-gnu* )
2072 machine=hp800 opsys=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux* )
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2082 *.08.* ) machine=hp800 opsys=hpux8 ;;
2083 *.09.* ) machine=hp800 opsys=hpux9 ;;
2084 *) machine=hp800 opsys=hpux10 ;;
2085 esac
2087 hppa*-*-nextstep* )
2088 machine=hp800 opsys=nextstep
2091 ## Orion machines
2092 orion-orion-bsd* )
2093 machine=orion opsys=bsd4-2
2095 clipper-orion-bsd* )
2096 machine=orion105 opsys=bsd4-2
2099 ## IBM machines
2100 i[3456]86-ibm-aix1.1* )
2101 machine=ibmps2-aix opsys=usg5-2-2
2103 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2104 machine=ibmps2-aix opsys=usg5-3
2106 i370-ibm-aix*)
2107 machine=ibm370aix opsys=usg5-3
2109 s390-*-linux-gnu* )
2110 machine=ibms390 opsys=gnu-linux
2112 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2113 machine=ibmrs6000 opsys=aix3-1
2115 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2116 machine=ibmrs6000 opsys=aix3-2-5
2118 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2119 machine=ibmrs6000 opsys=aix4-1
2121 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2122 machine=ibmrs6000 opsys=aix4-2
2124 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2125 machine=ibmrs6000 opsys=aix4-2
2127 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2128 machine=ibmrs6000 opsys=aix4
2130 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2131 machine=ibmrs6000 opsys=aix4-1
2133 rs6000-ibm-aix* | powerpc-ibm-aix* )
2134 machine=ibmrs6000 opsys=aix3-2
2136 romp-ibm-bsd4.3* )
2137 machine=ibmrt opsys=bsd4-3
2139 romp-ibm-bsd4.2* )
2140 machine=ibmrt opsys=bsd4-2
2142 romp-ibm-aos4.3* )
2143 machine=ibmrt opsys=bsd4-3
2145 romp-ibm-aos4.2* )
2146 machine=ibmrt opsys=bsd4-2
2148 romp-ibm-aos* )
2149 machine=ibmrt opsys=bsd4-3
2151 romp-ibm-bsd* )
2152 machine=ibmrt opsys=bsd4-3
2154 romp-ibm-aix* )
2155 machine=ibmrt-aix opsys=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2159 m68*-isi-bsd4.2* )
2160 machine=isi-ov opsys=bsd4-2
2162 m68*-isi-bsd4.3* )
2163 machine=isi-ov opsys=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i[3456]86-intsys-sysv* )
2168 machine=is386 opsys=usg5-2-2
2171 ## Prime EXL
2172 i[3456]86-prime-sysv* )
2173 machine=i386 opsys=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i[3456]86-sequent-bsd* )
2178 machine=symmetry opsys=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2183 machine=sequent-ptx opsys=ptx4
2184 NON_GNU_CPP=/lib/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i[3456]86-sequent-ptx* )
2190 machine=sequent-ptx opsys=ptx
2191 NON_GNU_CPP="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i[3456]86-ncr-sysv4.3 )
2196 machine=ncr386 opsys=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i[3456]86-ncr-sysv* )
2202 machine=ncr386 opsys=usg5-4-2
2205 ## Intel Paragon OSF/1
2206 i860-intel-osf1* )
2207 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2210 ## Intel 860
2211 i860-*-sysv4* )
2212 machine=i860 opsys=usg5-4
2213 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc*-*-linux-gnu* )
2219 machine=macppc opsys=gnu-linux
2222 ## Masscomp machines
2223 m68*-masscomp-rtu* )
2224 machine=masscomp opsys=rtu
2227 ## Megatest machines
2228 m68*-megatest-bsd* )
2229 machine=mega68 opsys=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2243 mips-mips-usg* )
2244 machine=mips4
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4* )
2248 machine=mips4 opsys=bsd4-3
2249 NON_GNU_CC="cc -systype bsd43"
2250 NON_GNU_CPP="cc -systype bsd43 -E"
2252 mips-mips-riscos5* )
2253 machine=mips4 opsys=riscos5
2254 NON_GNU_CC="cc -systype bsd43"
2255 NON_GNU_CPP="cc -systype bsd43 -E"
2257 mips-mips-bsd* )
2258 machine=mips opsys=bsd4-3
2260 mips-mips-* )
2261 machine=mips opsys=usg5-2-2
2264 ## NeXT
2265 m68*-next-* | m68k-*-nextstep* )
2266 machine=m68k opsys=nextstep
2269 ## The complete machine from National Semiconductor
2270 ns32k-ns-genix* )
2271 machine=ns32000 opsys=usg5-2
2274 ## NCR machines
2275 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2276 machine=tower32 opsys=usg5-2-2
2278 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2279 machine=tower32v3 opsys=usg5-3
2282 ## NEC EWS4800
2283 mips-nec-sysv4*)
2284 machine=ews4800 opsys=ux4800
2287 ## Nixdorf Targon 31
2288 m68*-nixdorf-sysv* )
2289 machine=targon31 opsys=usg5-2-2
2292 ## Nu (TI or LMI)
2293 m68*-nu-sysv* )
2294 machine=nu opsys=usg5-2
2297 ## Plexus
2298 m68*-plexus-sysv* )
2299 machine=plexus opsys=usg5-2
2302 ## Pyramid machines
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd* )
2306 machine=pyramid opsys=bsd4-2
2309 ## Sequent Balance
2310 ns32k-sequent-bsd4.2* )
2311 machine=sequent opsys=bsd4-2
2313 ns32k-sequent-bsd4.3* )
2314 machine=sequent opsys=bsd4-3
2317 ## Siemens Nixdorf
2318 mips-siemens-sysv* | mips-sni-sysv*)
2319 machine=mips-siemens opsys=usg5-4
2320 NON_GNU_CC=/usr/ccs/bin/cc
2321 NON_GNU_CPP=/usr/ccs/lib/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2326 m68*-sgi-iris3.5* )
2327 machine=irist opsys=iris3-5
2329 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2330 machine=irist opsys=iris3-6
2332 ## Iris 4D
2333 mips-sgi-irix3* )
2334 machine=iris4d opsys=irix3-3
2336 mips-sgi-irix4* )
2337 machine=iris4d opsys=irix4-0
2339 mips-sgi-irix6.5 )
2340 machine=iris4d opsys=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2347 mips-sgi-irix6* )
2348 machine=iris4d opsys=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS=-32
2355 mips-sgi-irix5.[01]* )
2356 machine=iris4d opsys=irix5-0
2358 mips-sgi-irix5* | mips-sgi-irix* )
2359 machine=iris4d opsys=irix5-2
2362 ## SONY machines
2363 m68*-sony-bsd4.2* )
2364 machine=news opsys=bsd4-2
2366 m68*-sony-bsd4.3* )
2367 machine=news opsys=bsd4-3
2369 m68*-sony-newsos3* | m68*-sony-news3*)
2370 machine=news opsys=bsd4-3
2372 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2373 machine=news-risc opsys=bsd4-3
2375 mips-sony-newsos6* )
2376 machine=news-r6 opsys=newsos6
2378 mips-sony-news* )
2379 machine=news-risc opsys=newsos5
2382 ## Stride
2383 m68*-stride-sysv* )
2384 machine=stride opsys=usg5-2
2387 ## Suns
2388 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2389 machine=sparc opsys=gnu-linux
2392 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2393 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2394 | rs6000-*-solaris2*)
2395 case "${canonical}" in
2396 m68*-sunos1* ) machine=sun1 ;;
2397 m68*-sunos2* ) machine=sun2 ;;
2398 m68* ) machine=sun3 ;;
2399 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2400 i[3456]86-*-* ) machine=intel386 ;;
2401 powerpcle* ) machine=powerpcle ;;
2402 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2403 sparc* ) machine=sparc ;;
2404 * ) unported=yes ;;
2405 esac
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2409 *-sunos4.0* ) opsys=sunos4-0 ;;
2410 *-sunos4.1.[3-9]*noshare )
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2413 opsys=sunos413
2414 NON_GNU_CPP=/usr/lib/cpp
2415 NON_GCC_TEST_OPTIONS=-Bstatic
2416 GCC_TEST_OPTIONS=-static
2418 *-sunos4.1.[3-9]* | *-sunos4shr*)
2419 opsys=sunos4shr
2420 NON_GNU_CPP=/usr/lib/cpp
2422 *-sunos4* | *-sunos )
2423 opsys=sunos4-1
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2427 *-sunos5.3* | *-solaris2.3* )
2428 opsys=sol2-3
2429 NON_GNU_CPP=/usr/ccs/lib/cpp
2431 *-sunos5.4* | *-solaris2.4* )
2432 opsys=sol2-4
2433 NON_GNU_CPP=/usr/ccs/lib/cpp
2434 RANLIB="ar -ts"
2436 *-sunos5.5* | *-solaris2.5* )
2437 opsys=sol2-5
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2439 RANLIB="ar -ts"
2441 *-sunos5.6* | *-solaris2.6* )
2442 opsys=sol2-6
2443 NON_GNU_CPP=/usr/ccs/lib/cpp
2444 RANLIB="ar -ts"
2446 *-sunos5* | *-solaris* )
2447 opsys=sol2-6
2448 NON_GNU_CPP=/usr/ccs/lib/cpp
2450 * ) opsys=bsd4-2 ;;
2451 esac
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* | *-sunos5* )
2455 if [ "x$CC" = x/usr/ucb/cc ]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2458 unset CC
2461 *) ;;
2462 esac
2464 sparc-*-nextstep* )
2465 machine=sparc opsys=nextstep
2468 ## Tadpole 68k
2469 m68*-tadpole-sysv* )
2470 machine=tad68k opsys=usg5-3
2473 ## Tahoe machines
2474 tahoe-tahoe-bsd4.2* )
2475 machine=tahoe opsys=bsd4-2
2477 tahoe-tahoe-bsd4.3* )
2478 machine=tahoe opsys=bsd4-3
2481 ## Tandem Integrity S2
2482 mips-tandem-sysv* )
2483 machine=tandem-s2 opsys=usg5-3
2486 ## Tektronix XD88
2487 m88k-tektronix-sysv3* )
2488 machine=tekxd88 opsys=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd* )
2493 machine=ns16000 opsys=bsd4-2
2495 ## Tektronix 4300
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68*-tektronix-bsd* )
2498 machine=tek4300 opsys=bsd4-3
2501 ## Titan P2 or P3
2502 ## We seem to have lost the machine-description file titan.h!
2503 titan-titan-sysv* )
2504 machine=titan opsys=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68*-unisys-uniplus* )
2509 machine=ustation opsystem=unipl5-2
2512 ## Vaxen.
2513 vax-dec-* )
2514 machine=vax
2515 case "${canonical}" in
2516 *-bsd4.1* ) opsys=bsd4-1 ;;
2517 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2518 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2519 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2520 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2521 *-vms* ) opsys=vms ;;
2522 * ) unported=yes
2523 esac
2526 ## Whitechapel MG1
2527 ns16k-whitechapel-* )
2528 machine=mg1
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2533 ## Wicat
2534 m68*-wicat-sysv* )
2535 machine=wicat opsys=usg5-2
2538 ## IA-64
2539 ia64*-*-linux* )
2540 machine=ia64 opsys=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2544 i[3456]86-*-* )
2545 machine=intel386
2546 case "${canonical}" in
2547 *-cygwin ) opsys=cygwin ;;
2548 *-lynxos* ) opsys=lynxos ;;
2549 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2550 *-isc2.2* ) opsys=isc2-2 ;;
2551 *-isc4.0* ) opsys=isc4-0 ;;
2552 *-isc4.* ) opsys=isc4-1
2553 GCC_TEST_OPTIONS=-posix
2554 NON_GCC_TEST_OPTIONS=-Xp
2556 *-isc* ) opsys=isc3-0 ;;
2557 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2558 *-esix* ) opsys=esix ;;
2559 *-xenix* ) opsys=xenix ;;
2560 *-linux-gnu* ) opsys=gnu-linux ;;
2561 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2562 *-sco3.2v5* ) opsys=sco5
2563 NON_GNU_CPP=/lib/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS=" "
2568 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2569 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2570 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2571 *-386bsd* ) opsys=386bsd ;;
2572 *-nextstep* ) opsys=nextstep ;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2574 esac
2577 ## m68k Linux-based GNU system
2578 m68k-*-linux-gnu* )
2579 machine=m68k opsys=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2584 machine=mips opsys=gnu-linux
2587 ## UXP/DS
2588 sparc-fujitsu-sysv4* )
2589 machine=sparc opsys=uxpds
2590 NON_GNU_CPP=/usr/ccs/lib/cpp
2591 RANLIB="ar -ts"
2594 ## UXP/V
2595 f301-fujitsu-uxpv4.1)
2596 machine=f301 opsys=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin* )
2601 machine=powermac opsys=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw/include && test -d /sw/lib; then
2606 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2607 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-*-linux-gnu* )
2614 machine=amdx86-64 opsys=gnu-linux
2618 unported=yes
2620 esac
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2627 ### above.
2628 if test x"${opsys}" = x; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys=gnu ;;
2631 *-bsd4.[01] ) opsys=bsd4-1 ;;
2632 *-bsd4.2 ) opsys=bsd4-2 ;;
2633 *-bsd4.3 ) opsys=bsd4-3 ;;
2634 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2635 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2636 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2637 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2638 *-sysv4.2uw* ) opsys=unixware ;;
2639 *-sysv5uw* ) opsys=unixware ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware ;;
2641 *-sysv4.1* | *-sysvr4.1* )
2642 NON_GNU_CPP=/usr/lib/cpp
2643 opsys=usg5-4 ;;
2644 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2645 if [ x$NON_GNU_CPP = x ]; then
2646 if [ -f /usr/ccs/lib/cpp ]; then
2647 NON_GNU_CPP=/usr/ccs/lib/cpp
2648 else
2649 NON_GNU_CPP=/lib/cpp
2652 opsys=usg5-4-2 ;;
2653 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2655 unported=yes
2657 esac
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile="m/${machine}.h"
2671 opsysfile="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS="$CFLAGS"
2680 case ${with_gcc} in
2681 "yes" ) CC="gcc" GCC=yes ;;
2682 "no" ) : ${CC=cc} ;;
2684 esac
2685 ac_ext=c
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 break 2
2712 done
2713 done
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2721 else
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2728 ac_ct_CC=$CC
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc; ac_word=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2759 else
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2764 CC=$ac_ct_CC
2765 else
2766 CC="$ac_cv_prog_CC"
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}cc; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2801 else
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2808 ac_ct_CC=$CC
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc; ac_word=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2830 done
2831 done
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2839 else
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2844 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc; ac_word=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 ac_prog_rejected=no
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2873 ac_cv_prog_CC="cc"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy $ac_cv_prog_CC
2883 shift
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2888 shift
2889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2906 for ac_prog in cl
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2944 done
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2986 done
2988 CC=$ac_ct_CC
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev/null >&5) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev/null >&5) 2>&5
3011 ac_status=$?
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev/null >&5) 2>&5
3016 ac_status=$?
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.$ac_ext <<_ACEOF
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3028 main ()
3032 return 0;
3034 _ACEOF
3035 ac_clean_files_save=$ac_clean_files
3036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3039 # of exeext.
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3050 # resort.
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3054 ac_cv_exeext=
3055 # b.out is created by i960 compilers.
3056 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3058 test -f "$ac_file" || continue
3059 case $ac_file in
3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3062 conftest.$ac_ext )
3063 # This is the source file.
3065 [ab].out )
3066 # We found the default executable, but exeext='' is most
3067 # certainly right.
3068 break;;
3069 *.* )
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3074 export ac_cv_exeext
3075 break;;
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3108 cross_compiling=no
3109 else
3110 if test "$cross_compiling" = maybe; then
3111 cross_compiling=yes
3112 else
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3127 ac_clean_files=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3145 # `rm'.
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 export ac_cv_exeext
3152 break;;
3153 * ) break;;
3154 esac
3155 done
3156 else
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3184 main ()
3188 return 0;
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203 done
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT=$ac_cv_objext
3220 ac_objext=$OBJEXT
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3234 main ()
3236 #ifndef __GNUC__
3237 choke me
3238 #endif
3241 return 0;
3243 _ACEOF
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_compiler_gnu=yes
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3271 ac_compiler_gnu=no
3273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 CFLAGS="-g"
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3296 main ()
3300 return 0;
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_prog_cc_g=yes
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 ac_cv_prog_cc_g=no
3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3340 CFLAGS="-g -O2"
3341 else
3342 CFLAGS="-g"
3344 else
3345 if test "$GCC" = yes; then
3346 CFLAGS="-O2"
3347 else
3348 CFLAGS=
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 ac_cv_prog_cc_stdc=no
3357 ac_save_CC=$CC
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364 #include <stdarg.h>
3365 #include <stdio.h>
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3372 char **p;
3373 int i;
3375 return p[i];
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3379 char *s;
3380 va_list v;
3381 va_start (v,p);
3382 s = g (p, va_arg (v,int));
3383 va_end (v);
3384 return s;
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3403 main ()
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3407 return 0;
3409 _ACEOF
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3423 ac_status=$?
3424 grep -v '^ *+' conftest.er1 >conftest.err
3425 rm -f conftest.er1
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432 (eval $ac_try) 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc=$ac_arg
3443 break
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3449 rm -f conftest.err conftest.$ac_objext
3450 done
3451 rm -f conftest.$ac_ext conftest.$ac_objext
3452 CC=$ac_save_CC
3456 case "x$ac_cv_prog_cc_stdc" in
3457 x|xno)
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC="$CC $ac_cv_prog_cc_stdc" ;;
3464 esac
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.$ac_ext <<_ACEOF
3471 #ifndef __cplusplus
3472 choke me
3473 #endif
3474 _ACEOF
3475 rm -f conftest.$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487 (eval $ac_try) 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5
3494 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration in \
3498 '' \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3503 'void exit (int);'
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 $ac_declaration
3512 #include <stdlib.h>
3514 main ()
3516 exit (42);
3518 return 0;
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3544 else
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 continue
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 $ac_declaration
3559 main ()
3561 exit (42);
3563 return 0;
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3569 ac_status=$?
3570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 break
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 done
3596 rm -f conftest*
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3618 CPP=
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3625 then
3626 CPP="$NON_GNU_CPP"
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3633 test x$cc_specified != xyes
3634 then
3635 CC="$NON_GNU_CC"
3638 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3639 then
3640 CC="$CC $GCC_TEST_OPTIONS"
3643 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3644 then
3645 CC="$CC $NON_GCC_TEST_OPTIONS"
3648 #### Some other nice autoconf tests.
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3652 LN_S=$as_ln_s
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3656 else
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3670 CPP=
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 # Double quotes because CPP needs to be expanded
3677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3679 ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h. */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3694 #ifdef __STDC__
3695 # include <limits.h>
3696 #else
3697 # include <assert.h>
3698 #endif
3699 Syntax error
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3715 else
3716 ac_cpp_err=yes
3718 if test -z "$ac_cpp_err"; then
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 # Broken: fails on valid input.
3725 continue
3727 rm -f conftest.err conftest.$ac_ext
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3738 _ACEOF
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null; then
3747 if test -s conftest.err; then
3748 ac_cpp_err=$ac_c_preproc_warn_flag
3749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3750 else
3751 ac_cpp_err=
3753 else
3754 ac_cpp_err=yes
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 # Passes both tests.
3764 ac_preproc_ok=:
3765 break
3767 rm -f conftest.err conftest.$ac_ext
3769 done
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then
3773 break
3776 done
3777 ac_cv_prog_CPP=$CPP
3780 CPP=$ac_cv_prog_CPP
3781 else
3782 ac_cv_prog_CPP=$CPP
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3786 ac_preproc_ok=false
3787 for ac_c_preproc_warn_flag in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801 #ifdef __STDC__
3802 # include <limits.h>
3803 #else
3804 # include <assert.h>
3805 #endif
3806 Syntax error
3807 _ACEOF
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null; then
3816 if test -s conftest.err; then
3817 ac_cpp_err=$ac_c_preproc_warn_flag
3818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3819 else
3820 ac_cpp_err=
3822 else
3823 ac_cpp_err=yes
3825 if test -z "$ac_cpp_err"; then
3827 else
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 # Broken: fails on valid input.
3832 continue
3834 rm -f conftest.err conftest.$ac_ext
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null; then
3854 if test -s conftest.err; then
3855 ac_cpp_err=$ac_c_preproc_warn_flag
3856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3857 else
3858 ac_cpp_err=
3860 else
3861 ac_cpp_err=yes
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 # Passes both tests.
3871 ac_preproc_ok=:
3872 break
3874 rm -f conftest.err conftest.$ac_ext
3876 done
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.$ac_ext
3879 if $ac_preproc_ok; then
3881 else
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3901 # AIX /bin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 # Account for people who put trailing slashes in PATH elements.
3920 case $as_dir/ in
3921 ./ | .// | /cC/* | \
3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3923 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3924 /usr/ucb/* ) ;;
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3928 # by default.
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3940 else
3941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942 break 3
3945 done
3946 done
3948 esac
3949 done
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL=$ac_cv_path_install
3955 else
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL=$ac_install_sh
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3974 if test "x$RANLIB" = x; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
4002 RANLIB=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib; ac_word=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4035 done
4036 done
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4045 else
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 RANLIB=$ac_ct_RANLIB
4051 else
4052 RANLIB="$ac_cv_prog_RANLIB"
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 case $INSTALL_INFO in
4064 [\\/]* | ?:[\\/]*)
4065 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4083 esac
4085 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 case $INSTALL_INFO in
4103 [\\/]* | ?:[\\/]*)
4104 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in /usr/sbin
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4118 done
4119 done
4122 esac
4124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4129 else
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 case $INSTALL_INFO in
4142 [\\/]* | ?:[\\/]*)
4143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in /sbin
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4162 esac
4164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4176 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4177 then
4178 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4181 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4182 then
4183 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4187 late_LDFLAGS=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4190 else
4191 LDFLAGS="$LDFLAGS -znocombreloc"
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4197 cat >conftest.$ac_ext <<_ACEOF
4198 main(){return 0;}
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 LDFLAGS=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4242 then ac_cv_prog_egrep='grep -E'
4243 else ac_cv_prog_egrep='egrep'
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP=$ac_cv_prog_egrep
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #ifdef _AIX
4262 #endif
4264 _ACEOF
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev/null 2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h <<\_ACEOF
4270 #define _ALL_SOURCE 1
4271 _ACEOF
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4277 rm -f conftest*
4281 #### Extract some information from the operating system and machine files.
4283 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4284 - which libraries the lib-src programs will want, and
4285 - whether the GNU malloc routines are usable..." >&5
4286 echo "$as_me: checking the machine- and system-dependent files to find out
4287 - which libraries the lib-src programs will want, and
4288 - whether the GNU malloc routines are usable..." >&6;}
4290 ### First figure out CFLAGS (which we use for running the compiler here)
4291 ### and REAL_CFLAGS (which we use for real compilation).
4292 ### The two are the same except on a few systems, where they are made
4293 ### different to work around various lossages. For example,
4294 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4295 ### as implying static linking.
4297 ### If the CFLAGS env var is specified, we use that value
4298 ### instead of the default.
4300 ### It's not important that this name contain the PID; you can't run
4301 ### two configures in the same directory and have anything work
4302 ### anyway.
4303 tempcname="conftest.c"
4305 echo '
4306 #include "'${srcdir}'/src/'${opsysfile}'"
4307 #include "'${srcdir}'/src/'${machfile}'"
4308 #ifndef LIBS_MACHINE
4309 #define LIBS_MACHINE
4310 #endif
4311 #ifndef LIBS_SYSTEM
4312 #define LIBS_SYSTEM
4313 #endif
4314 #ifndef C_SWITCH_SYSTEM
4315 #define C_SWITCH_SYSTEM
4316 #endif
4317 #ifndef C_SWITCH_MACHINE
4318 #define C_SWITCH_MACHINE
4319 #endif
4320 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4321 configure___ c_switch_system=C_SWITCH_SYSTEM
4322 configure___ c_switch_machine=C_SWITCH_MACHINE
4324 #ifndef LIB_X11_LIB
4325 #define LIB_X11_LIB -lX11
4326 #endif
4328 #ifndef LIBX11_MACHINE
4329 #define LIBX11_MACHINE
4330 #endif
4332 #ifndef LIBX11_SYSTEM
4333 #define LIBX11_SYSTEM
4334 #endif
4335 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4337 #ifdef UNEXEC
4338 configure___ unexec=UNEXEC
4339 #else
4340 configure___ unexec=unexec.o
4341 #endif
4343 #ifdef SYSTEM_MALLOC
4344 configure___ system_malloc=yes
4345 #else
4346 configure___ system_malloc=no
4347 #endif
4349 #ifdef USE_MMAP_FOR_BUFFERS
4350 configure___ use_mmap_for_buffers=yes
4351 #else
4352 configure___ use_mmap_for_buffers=no
4353 #endif
4355 #ifndef C_DEBUG_SWITCH
4356 #define C_DEBUG_SWITCH -g
4357 #endif
4359 #ifndef C_OPTIMIZE_SWITCH
4360 #ifdef __GNUC__
4361 #define C_OPTIMIZE_SWITCH -O2
4362 #else
4363 #define C_OPTIMIZE_SWITCH -O
4364 #endif
4365 #endif
4367 #ifndef LD_SWITCH_MACHINE
4368 #define LD_SWITCH_MACHINE
4369 #endif
4371 #ifndef LD_SWITCH_SYSTEM
4372 #define LD_SWITCH_SYSTEM
4373 #endif
4375 #ifndef LD_SWITCH_X_SITE_AUX
4376 #define LD_SWITCH_X_SITE_AUX
4377 #endif
4379 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4380 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4382 #ifdef THIS_IS_CONFIGURE
4384 /* Get the CFLAGS for tests in configure. */
4385 #ifdef __GNUC__
4386 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4387 #else
4388 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4389 #endif
4391 #else /* not THIS_IS_CONFIGURE */
4393 /* Get the CFLAGS for real compilation. */
4394 #ifdef __GNUC__
4395 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4396 #else
4397 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4398 #endif
4400 #endif /* not THIS_IS_CONFIGURE */
4401 ' > ${tempcname}
4403 # The value of CPP is a quoted variable reference, so we need to do this
4404 # to get its actual value...
4405 CPP=`eval "echo $CPP"`
4406 eval `${CPP} -Isrc ${tempcname} \
4407 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4408 if test "x$SPECIFIED_CFLAGS" = x; then
4409 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4410 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4411 else
4412 REAL_CFLAGS="$CFLAGS"
4414 rm ${tempcname}
4416 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4418 ### Make sure subsequent tests use flags consistent with the build flags.
4420 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4421 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4422 else
4423 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4429 cat >>confdefs.h <<\_ACEOF
4430 #define _GNU_SOURCE 1
4431 _ACEOF
4435 # Check whether --enable-largefile or --disable-largefile was given.
4436 if test "${enable_largefile+set}" = set; then
4437 enableval="$enable_largefile"
4440 if test "$enable_largefile" != no; then
4442 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4443 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4444 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 ac_cv_sys_largefile_CC=no
4448 if test "$GCC" != yes; then
4449 ac_save_CC=$CC
4450 while :; do
4451 # IRIX 6.2 and later do not support large files by default,
4452 # so use the C compiler's -n32 option if that helps.
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h. */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4459 #include <sys/types.h>
4460 /* Check that off_t can represent 2**63 - 1 correctly.
4461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4462 since some C++ compilers masquerading as C compilers
4463 incorrectly reject 9223372036854775807. */
4464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4466 && LARGE_OFF_T % 2147483647 == 1)
4467 ? 1 : -1];
4469 main ()
4473 return 0;
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4478 (eval $ac_compile) 2>conftest.er1
4479 ac_status=$?
4480 grep -v '^ *+' conftest.er1 >conftest.err
4481 rm -f conftest.er1
4482 cat conftest.err >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } &&
4485 { ac_try='test -z "$ac_c_werror_flag"
4486 || test ! -s conftest.err'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488 (eval $ac_try) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4498 break
4499 else
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4504 rm -f conftest.err conftest.$ac_objext
4505 CC="$CC -n32"
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 (eval $ac_try) 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_cv_sys_largefile_CC=' -n32'; break
4529 else
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4534 rm -f conftest.err conftest.$ac_objext
4535 break
4536 done
4537 CC=$ac_save_CC
4538 rm -f conftest.$ac_ext
4541 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4542 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4543 if test "$ac_cv_sys_largefile_CC" != no; then
4544 CC=$CC$ac_cv_sys_largefile_CC
4547 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4548 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4549 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 while :; do
4553 ac_cv_sys_file_offset_bits=no
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 #include <sys/types.h>
4561 /* Check that off_t can represent 2**63 - 1 correctly.
4562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4563 since some C++ compilers masquerading as C compilers
4564 incorrectly reject 9223372036854775807. */
4565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4567 && LARGE_OFF_T % 2147483647 == 1)
4568 ? 1 : -1];
4570 main ()
4574 return 0;
4576 _ACEOF
4577 rm -f conftest.$ac_objext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } &&
4586 { ac_try='test -z "$ac_c_werror_flag"
4587 || test ! -s conftest.err'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; } &&
4593 { ac_try='test -s conftest.$ac_objext'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; }; then
4599 break
4600 else
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4606 cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h. */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 #define _FILE_OFFSET_BITS 64
4613 #include <sys/types.h>
4614 /* Check that off_t can represent 2**63 - 1 correctly.
4615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4616 since some C++ compilers masquerading as C compilers
4617 incorrectly reject 9223372036854775807. */
4618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4620 && LARGE_OFF_T % 2147483647 == 1)
4621 ? 1 : -1];
4623 main ()
4627 return 0;
4629 _ACEOF
4630 rm -f conftest.$ac_objext
4631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4632 (eval $ac_compile) 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } &&
4639 { ac_try='test -z "$ac_c_werror_flag"
4640 || test ! -s conftest.err'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; } &&
4646 { ac_try='test -s conftest.$ac_objext'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4652 ac_cv_sys_file_offset_bits=64; break
4653 else
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4659 break
4660 done
4662 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4663 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4664 if test "$ac_cv_sys_file_offset_bits" != no; then
4666 cat >>confdefs.h <<_ACEOF
4667 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4668 _ACEOF
4671 rm -f conftest*
4672 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4673 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4674 if test "${ac_cv_sys_large_files+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 while :; do
4678 ac_cv_sys_large_files=no
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 #include <sys/types.h>
4686 /* Check that off_t can represent 2**63 - 1 correctly.
4687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4688 since some C++ compilers masquerading as C compilers
4689 incorrectly reject 9223372036854775807. */
4690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4692 && LARGE_OFF_T % 2147483647 == 1)
4693 ? 1 : -1];
4695 main ()
4699 return 0;
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704 (eval $ac_compile) 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_c_werror_flag"
4712 || test ! -s conftest.err'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 break
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 #define _LARGE_FILES 1
4738 #include <sys/types.h>
4739 /* Check that off_t can represent 2**63 - 1 correctly.
4740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4741 since some C++ compilers masquerading as C compilers
4742 incorrectly reject 9223372036854775807. */
4743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4745 && LARGE_OFF_T % 2147483647 == 1)
4746 ? 1 : -1];
4748 main ()
4752 return 0;
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_c_werror_flag"
4765 || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest.$ac_objext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 ac_cv_sys_large_files=1; break
4778 else
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4784 break
4785 done
4787 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4788 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4789 if test "$ac_cv_sys_large_files" != no; then
4791 cat >>confdefs.h <<_ACEOF
4792 #define _LARGE_FILES $ac_cv_sys_large_files
4793 _ACEOF
4796 rm -f conftest*
4800 if test "${with_sound}" != "no"; then
4801 # Sound support for GNU/Linux and the free BSDs.
4802 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4804 if test "${ac_cv_header_stdc+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <stdlib.h>
4814 #include <stdarg.h>
4815 #include <string.h>
4816 #include <float.h>
4819 main ()
4823 return 0;
4825 _ACEOF
4826 rm -f conftest.$ac_objext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
4835 { ac_try='test -z "$ac_c_werror_flag"
4836 || test ! -s conftest.err'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; } &&
4842 { ac_try='test -s conftest.$ac_objext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 ac_cv_header_stdc=yes
4849 else
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 ac_cv_header_stdc=no
4855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 if test $ac_cv_header_stdc = yes; then
4858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <string.h>
4867 _ACEOF
4868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4869 $EGREP "memchr" >/dev/null 2>&1; then
4871 else
4872 ac_cv_header_stdc=no
4874 rm -f conftest*
4878 if test $ac_cv_header_stdc = yes; then
4879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4880 cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h. */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4886 #include <stdlib.h>
4888 _ACEOF
4889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4890 $EGREP "free" >/dev/null 2>&1; then
4892 else
4893 ac_cv_header_stdc=no
4895 rm -f conftest*
4899 if test $ac_cv_header_stdc = yes; then
4900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4901 if test "$cross_compiling" = yes; then
4903 else
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #include <ctype.h>
4911 #if ((' ' & 0x0FF) == 0x020)
4912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4914 #else
4915 # define ISLOWER(c) \
4916 (('a' <= (c) && (c) <= 'i') \
4917 || ('j' <= (c) && (c) <= 'r') \
4918 || ('s' <= (c) && (c) <= 'z'))
4919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4920 #endif
4922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924 main ()
4926 int i;
4927 for (i = 0; i < 256; i++)
4928 if (XOR (islower (i), ISLOWER (i))
4929 || toupper (i) != TOUPPER (i))
4930 exit(2);
4931 exit (0);
4933 _ACEOF
4934 rm -f conftest$ac_exeext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4936 (eval $ac_link) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 (eval $ac_try) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4946 else
4947 echo "$as_me: program exited with status $ac_status" >&5
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ( exit $ac_status )
4952 ac_cv_header_stdc=no
4954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4958 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4959 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4960 if test $ac_cv_header_stdc = yes; then
4962 cat >>confdefs.h <<\_ACEOF
4963 #define STDC_HEADERS 1
4964 _ACEOF
4968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4979 inttypes.h stdint.h unistd.h
4981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982 echo "$as_me:$LINENO: checking for $ac_header" >&5
4983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h. */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4993 $ac_includes_default
4995 #include <$ac_header>
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } &&
5006 { ac_try='test -z "$ac_c_werror_flag"
5007 || test ! -s conftest.err'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 (eval $ac_try) 2>&5
5010 ac_status=$?
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; } &&
5013 { ac_try='test -s conftest.$ac_objext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5019 eval "$as_ac_Header=yes"
5020 else
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5024 eval "$as_ac_Header=no"
5026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5031 cat >>confdefs.h <<_ACEOF
5032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5033 _ACEOF
5037 done
5043 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047 echo "$as_me:$LINENO: checking for $ac_header" >&5
5048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5054 else
5055 # Is the header compilable?
5056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 $ac_includes_default
5065 #include <$ac_header>
5066 _ACEOF
5067 rm -f conftest.$ac_objext
5068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5069 (eval $ac_compile) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } &&
5076 { ac_try='test -z "$ac_c_werror_flag"
5077 || test ! -s conftest.err'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_header_compiler=yes
5090 else
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5094 ac_header_compiler=no
5096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5098 echo "${ECHO_T}$ac_header_compiler" >&6
5100 # Is the header present?
5101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <$ac_header>
5110 _ACEOF
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_c_preproc_warn_flag
5121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5122 else
5123 ac_cpp_err=
5125 else
5126 ac_cpp_err=yes
5128 if test -z "$ac_cpp_err"; then
5129 ac_header_preproc=yes
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_header_preproc=no
5136 rm -f conftest.err conftest.$ac_ext
5137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5138 echo "${ECHO_T}$ac_header_preproc" >&6
5140 # So? What about this header?
5141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5142 yes:no: )
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5147 ac_header_preproc=yes
5149 no:yes:* )
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5163 cat <<\_ASBOX
5164 ## ------------------------------------------ ##
5165 ## Report this to the AC_PACKAGE_NAME lists. ##
5166 ## ------------------------------------------ ##
5167 _ASBOX
5169 sed "s/^/$as_me: WARNING: /" >&2
5171 esac
5172 echo "$as_me:$LINENO: checking for $ac_header" >&5
5173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 eval "$as_ac_Header=\$ac_header_preproc"
5179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5184 cat >>confdefs.h <<_ACEOF
5185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5186 _ACEOF
5190 done
5192 # Emulation library used on NetBSD.
5193 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5194 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5195 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198 ac_check_lib_save_LIBS=$LIBS
5199 LIBS="-lossaudio $LIBS"
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5207 /* Override any gcc2 internal prototype to avoid an error. */
5208 #ifdef __cplusplus
5209 extern "C"
5210 #endif
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5213 char _oss_ioctl ();
5215 main ()
5217 _oss_ioctl ();
5219 return 0;
5221 _ACEOF
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_lib_ossaudio__oss_ioctl=yes
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_cv_lib_ossaudio__oss_ioctl=no
5251 rm -f conftest.err conftest.$ac_objext \
5252 conftest$ac_exeext conftest.$ac_ext
5253 LIBS=$ac_check_lib_save_LIBS
5255 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5256 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5257 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5258 LIBSOUND=-lossaudio
5259 else
5260 LIBSOUND=
5289 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5290 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5291 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5292 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5296 echo "$as_me:$LINENO: checking for $ac_header" >&5
5297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5303 else
5304 # Is the header compilable?
5305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5314 #include <$ac_header>
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_c_werror_flag"
5326 || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_header_compiler=yes
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_header_compiler=no
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5347 echo "${ECHO_T}$ac_header_compiler" >&6
5349 # Is the header present?
5350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5353 /* confdefs.h. */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <$ac_header>
5359 _ACEOF
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null; then
5368 if test -s conftest.err; then
5369 ac_cpp_err=$ac_c_preproc_warn_flag
5370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5371 else
5372 ac_cpp_err=
5374 else
5375 ac_cpp_err=yes
5377 if test -z "$ac_cpp_err"; then
5378 ac_header_preproc=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_preproc=no
5385 rm -f conftest.err conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5391 yes:no: )
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5396 ac_header_preproc=yes
5398 no:yes:* )
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5412 cat <<\_ASBOX
5413 ## ------------------------------------------ ##
5414 ## Report this to the AC_PACKAGE_NAME lists. ##
5415 ## ------------------------------------------ ##
5416 _ASBOX
5418 sed "s/^/$as_me: WARNING: /" >&2
5420 esac
5421 echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 eval "$as_ac_Header=\$ac_header_preproc"
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5439 done
5442 for ac_header in term.h
5444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 echo "$as_me:$LINENO: checking for $ac_header" >&5
5446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <$ac_header>
5457 _ACEOF
5458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5460 ac_status=$?
5461 grep -v '^ *+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } >/dev/null; then
5466 if test -s conftest.err; then
5467 ac_cpp_err=$ac_c_preproc_warn_flag
5468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5469 else
5470 ac_cpp_err=
5472 else
5473 ac_cpp_err=yes
5475 if test -z "$ac_cpp_err"; then
5476 eval "$as_ac_Header=yes"
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 eval "$as_ac_Header=no"
5483 rm -f conftest.err conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5488 cat >>confdefs.h <<_ACEOF
5489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5490 _ACEOF
5494 done
5496 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5497 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5498 if test "${ac_cv_header_stdc+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 cat >conftest.$ac_ext <<_ACEOF
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #include <stdlib.h>
5508 #include <stdarg.h>
5509 #include <string.h>
5510 #include <float.h>
5513 main ()
5517 return 0;
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522 (eval $ac_compile) 2>conftest.er1
5523 ac_status=$?
5524 grep -v '^ *+' conftest.er1 >conftest.err
5525 rm -f conftest.er1
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } &&
5529 { ac_try='test -z "$ac_c_werror_flag"
5530 || test ! -s conftest.err'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; } &&
5536 { ac_try='test -s conftest.$ac_objext'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 (eval $ac_try) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; }; then
5542 ac_cv_header_stdc=yes
5543 else
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 ac_cv_header_stdc=no
5549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5551 if test $ac_cv_header_stdc = yes; then
5552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 #include <string.h>
5561 _ACEOF
5562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5563 $EGREP "memchr" >/dev/null 2>&1; then
5565 else
5566 ac_cv_header_stdc=no
5568 rm -f conftest*
5572 if test $ac_cv_header_stdc = yes; then
5573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <stdlib.h>
5582 _ACEOF
5583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584 $EGREP "free" >/dev/null 2>&1; then
5586 else
5587 ac_cv_header_stdc=no
5589 rm -f conftest*
5593 if test $ac_cv_header_stdc = yes; then
5594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5595 if test "$cross_compiling" = yes; then
5597 else
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h. */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <ctype.h>
5605 #if ((' ' & 0x0FF) == 0x020)
5606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5608 #else
5609 # define ISLOWER(c) \
5610 (('a' <= (c) && (c) <= 'i') \
5611 || ('j' <= (c) && (c) <= 'r') \
5612 || ('s' <= (c) && (c) <= 'z'))
5613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5614 #endif
5616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5618 main ()
5620 int i;
5621 for (i = 0; i < 256; i++)
5622 if (XOR (islower (i), ISLOWER (i))
5623 || toupper (i) != TOUPPER (i))
5624 exit(2);
5625 exit (0);
5627 _ACEOF
5628 rm -f conftest$ac_exeext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5640 else
5641 echo "$as_me: program exited with status $ac_status" >&5
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ( exit $ac_status )
5646 ac_cv_header_stdc=no
5648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5653 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5654 if test $ac_cv_header_stdc = yes; then
5656 cat >>confdefs.h <<\_ACEOF
5657 #define STDC_HEADERS 1
5658 _ACEOF
5662 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5663 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5664 if test "${ac_cv_header_time+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h. */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 #include <sys/time.h>
5675 #include <time.h>
5678 main ()
5680 if ((struct tm *) 0)
5681 return 0;
5683 return 0;
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_header_time=yes
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_header_time=no
5715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5717 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5718 echo "${ECHO_T}$ac_cv_header_time" >&6
5719 if test $ac_cv_header_time = yes; then
5721 cat >>confdefs.h <<\_ACEOF
5722 #define TIME_WITH_SYS_TIME 1
5723 _ACEOF
5727 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5728 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5729 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 $ac_includes_default
5740 main ()
5742 #ifndef sys_siglist
5743 char *p = (char *) sys_siglist;
5744 #endif
5747 return 0;
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -z "$ac_c_werror_flag"
5760 || test ! -s conftest.err'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; } &&
5766 { ac_try='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_cv_have_decl_sys_siglist=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 ac_cv_have_decl_sys_siglist=no
5779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5781 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5782 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5783 if test $ac_cv_have_decl_sys_siglist = yes; then
5785 cat >>confdefs.h <<_ACEOF
5786 #define HAVE_DECL_SYS_SIGLIST 1
5787 _ACEOF
5790 else
5791 cat >>confdefs.h <<_ACEOF
5792 #define HAVE_DECL_SYS_SIGLIST 0
5793 _ACEOF
5799 if test $ac_cv_have_decl_sys_siglist != yes; then
5800 # For Tru64, at least:
5801 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5802 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5803 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h. */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 $ac_includes_default
5814 main ()
5816 #ifndef __sys_siglist
5817 char *p = (char *) __sys_siglist;
5818 #endif
5821 return 0;
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag"
5834 || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_have_decl___sys_siglist=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_cv_have_decl___sys_siglist=no
5853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5856 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5857 if test $ac_cv_have_decl___sys_siglist = yes; then
5859 cat >>confdefs.h <<_ACEOF
5860 #define HAVE_DECL___SYS_SIGLIST 1
5861 _ACEOF
5864 else
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE_DECL___SYS_SIGLIST 0
5867 _ACEOF
5873 if test $ac_cv_have_decl___sys_siglist = yes; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define sys_siglist __sys_siglist
5877 _ACEOF
5881 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5882 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5883 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 #include <sys/types.h>
5893 #include <sys/wait.h>
5894 #ifndef WEXITSTATUS
5895 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5896 #endif
5897 #ifndef WIFEXITED
5898 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5899 #endif
5902 main ()
5904 int s;
5905 wait (&s);
5906 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5908 return 0;
5910 _ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_c_werror_flag"
5921 || test ! -s conftest.err'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_header_sys_wait_h=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 ac_cv_header_sys_wait_h=no
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5943 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5944 if test $ac_cv_header_sys_wait_h = yes; then
5946 cat >>confdefs.h <<\_ACEOF
5947 #define HAVE_SYS_WAIT_H 1
5948 _ACEOF
5953 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5954 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5955 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 #ifdef TIME_WITH_SYS_TIME
5965 #include <sys/time.h>
5966 #include <time.h>
5967 #else
5968 #ifdef HAVE_SYS_TIME_H
5969 #include <sys/time.h>
5970 #else
5971 #include <time.h>
5972 #endif
5973 #endif
5974 #ifdef HAVE_UTIME_H
5975 #include <utime.h>
5976 #endif
5978 main ()
5980 static struct utimbuf x; x.actime = x.modtime;
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 emacs_cv_struct_utimbuf=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 emacs_cv_struct_utimbuf=no
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6017 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6018 if test $emacs_cv_struct_utimbuf = yes; then
6020 cat >>confdefs.h <<\_ACEOF
6021 #define HAVE_STRUCT_UTIMBUF 1
6022 _ACEOF
6026 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6027 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6028 if test "${ac_cv_type_signal+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <sys/types.h>
6038 #include <signal.h>
6039 #ifdef signal
6040 # undef signal
6041 #endif
6042 #ifdef __cplusplus
6043 extern "C" void (*signal (int, void (*)(int)))(int);
6044 #else
6045 void (*signal ()) ();
6046 #endif
6049 main ()
6051 int i;
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_type_signal=void
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ac_cv_type_signal=int
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6088 echo "${ECHO_T}$ac_cv_type_signal" >&6
6090 cat >>confdefs.h <<_ACEOF
6091 #define RETSIGTYPE $ac_cv_type_signal
6092 _ACEOF
6096 echo "$as_me:$LINENO: checking for speed_t" >&5
6097 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6098 if test "${emacs_cv_speed_t+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <termios.h>
6109 main ()
6111 speed_t x = 1;
6113 return 0;
6115 _ACEOF
6116 rm -f conftest.$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_c_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 emacs_cv_speed_t=yes
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 emacs_cv_speed_t=no
6145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6148 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6149 if test $emacs_cv_speed_t = yes; then
6151 cat >>confdefs.h <<\_ACEOF
6152 #define HAVE_SPEED_T 1
6153 _ACEOF
6157 echo "$as_me:$LINENO: checking for struct timeval" >&5
6158 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6159 if test "${emacs_cv_struct_timeval+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #ifdef TIME_WITH_SYS_TIME
6169 #include <sys/time.h>
6170 #include <time.h>
6171 #else
6172 #ifdef HAVE_SYS_TIME_H
6173 #include <sys/time.h>
6174 #else
6175 #include <time.h>
6176 #endif
6177 #endif
6179 main ()
6181 static struct timeval x; x.tv_sec = x.tv_usec;
6183 return 0;
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 emacs_cv_struct_timeval=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 emacs_cv_struct_timeval=no
6215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6217 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6218 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6219 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6220 if test $emacs_cv_struct_timeval = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_TIMEVAL 1
6224 _ACEOF
6228 echo "$as_me:$LINENO: checking for struct exception" >&5
6229 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6230 if test "${emacs_cv_struct_exception+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <math.h>
6241 main ()
6243 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6245 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 emacs_cv_struct_exception=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 emacs_cv_struct_exception=no
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6279 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6280 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6281 HAVE_EXCEPTION=$emacs_cv_struct_exception
6282 if test $emacs_cv_struct_exception != yes; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define NO_MATHERR 1
6286 _ACEOF
6291 for ac_header in sys/socket.h
6293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6295 echo "$as_me:$LINENO: checking for $ac_header" >&5
6296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6302 else
6303 # Is the header compilable?
6304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 $ac_includes_default
6313 #include <$ac_header>
6314 _ACEOF
6315 rm -f conftest.$ac_objext
6316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317 (eval $ac_compile) 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -z "$ac_c_werror_flag"
6325 || test ! -s conftest.err'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 (eval $ac_try) 2>&5
6328 ac_status=$?
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; } &&
6331 { ac_try='test -s conftest.$ac_objext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 (eval $ac_try) 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_header_compiler=yes
6338 else
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342 ac_header_compiler=no
6344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6346 echo "${ECHO_T}$ac_header_compiler" >&6
6348 # Is the header present?
6349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <$ac_header>
6358 _ACEOF
6359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } >/dev/null; then
6367 if test -s conftest.err; then
6368 ac_cpp_err=$ac_c_preproc_warn_flag
6369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6370 else
6371 ac_cpp_err=
6373 else
6374 ac_cpp_err=yes
6376 if test -z "$ac_cpp_err"; then
6377 ac_header_preproc=yes
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 ac_header_preproc=no
6384 rm -f conftest.err conftest.$ac_ext
6385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6386 echo "${ECHO_T}$ac_header_preproc" >&6
6388 # So? What about this header?
6389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6390 yes:no: )
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6395 ac_header_preproc=yes
6397 no:yes:* )
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6411 cat <<\_ASBOX
6412 ## ------------------------------------------ ##
6413 ## Report this to the AC_PACKAGE_NAME lists. ##
6414 ## ------------------------------------------ ##
6415 _ASBOX
6417 sed "s/^/$as_me: WARNING: /" >&2
6419 esac
6420 echo "$as_me:$LINENO: checking for $ac_header" >&5
6421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 eval "$as_ac_Header=\$ac_header_preproc"
6427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 _ACEOF
6438 done
6441 for ac_header in net/if.h
6443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 echo "$as_me:$LINENO: checking for $ac_header" >&5
6445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 $ac_includes_default
6456 #if HAVE_SYS_SOCKET_H
6457 #include <sys/socket.h>
6458 #endif
6460 #include <$ac_header>
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464 (eval $ac_compile) 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -z "$ac_c_werror_flag"
6472 || test ! -s conftest.err'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try='test -s conftest.$ac_objext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 eval "$as_ac_Header=yes"
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 eval "$as_ac_Header=no"
6491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 _ACEOF
6502 done
6505 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6506 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6507 if test "${ac_cv_struct_tm+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <sys/types.h>
6517 #include <time.h>
6520 main ()
6522 struct tm *tp; tp->tm_sec;
6524 return 0;
6526 _ACEOF
6527 rm -f conftest.$ac_objext
6528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6529 (eval $ac_compile) 2>conftest.er1
6530 ac_status=$?
6531 grep -v '^ *+' conftest.er1 >conftest.err
6532 rm -f conftest.er1
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try='test -z "$ac_c_werror_flag"
6537 || test ! -s conftest.err'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; } &&
6543 { ac_try='test -s conftest.$ac_objext'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
6549 ac_cv_struct_tm=time.h
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 ac_cv_struct_tm=sys/time.h
6556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6559 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6560 if test $ac_cv_struct_tm = sys/time.h; then
6562 cat >>confdefs.h <<\_ACEOF
6563 #define TM_IN_SYS_TIME 1
6564 _ACEOF
6568 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6569 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6570 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <sys/types.h>
6580 #include <$ac_cv_struct_tm>
6584 main ()
6586 static struct tm ac_aggr;
6587 if (ac_aggr.tm_zone)
6588 return 0;
6590 return 0;
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_cv_member_struct_tm_tm_zone=yes
6616 else
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626 #include <sys/types.h>
6627 #include <$ac_cv_struct_tm>
6631 main ()
6633 static struct tm ac_aggr;
6634 if (sizeof ac_aggr.tm_zone)
6635 return 0;
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_member_struct_tm_tm_zone=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cv_member_struct_tm_tm_zone=no
6669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6674 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6675 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6677 cat >>confdefs.h <<_ACEOF
6678 #define HAVE_STRUCT_TM_TM_ZONE 1
6679 _ACEOF
6684 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_TM_ZONE 1
6688 _ACEOF
6690 else
6691 echo "$as_me:$LINENO: checking for tzname" >&5
6692 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6693 if test "${ac_cv_var_tzname+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <time.h>
6703 #ifndef tzname /* For SGI. */
6704 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6705 #endif
6708 main ()
6710 atoi(*tzname);
6712 return 0;
6714 _ACEOF
6715 rm -f conftest.$ac_objext conftest$ac_exeext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717 (eval $ac_link) 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -z "$ac_c_werror_flag"
6725 || test ! -s conftest.err'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest$ac_exeext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_cv_var_tzname=yes
6738 else
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6742 ac_cv_var_tzname=no
6744 rm -f conftest.err conftest.$ac_objext \
6745 conftest$ac_exeext conftest.$ac_ext
6747 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6748 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6749 if test $ac_cv_var_tzname = yes; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_TZNAME 1
6753 _ACEOF
6758 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6759 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6760 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <time.h>
6772 main ()
6774 static struct tm ac_aggr;
6775 if (ac_aggr.tm_gmtoff)
6776 return 0;
6778 return 0;
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783 (eval $ac_compile) 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try='test -z "$ac_c_werror_flag"
6791 || test ! -s conftest.err'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; } &&
6797 { ac_try='test -s conftest.$ac_objext'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; }; then
6803 ac_cv_member_struct_tm_tm_gmtoff=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <time.h>
6817 main ()
6819 static struct tm ac_aggr;
6820 if (sizeof ac_aggr.tm_gmtoff)
6821 return 0;
6823 return 0;
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_c_werror_flag"
6836 || test ! -s conftest.err'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; } &&
6842 { ac_try='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 ac_cv_member_struct_tm_tm_gmtoff=yes
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6853 ac_cv_member_struct_tm_tm_gmtoff=no
6855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6860 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6861 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6863 cat >>confdefs.h <<\_ACEOF
6864 #define HAVE_TM_GMTOFF 1
6865 _ACEOF
6869 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6870 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6871 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h. */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_includes_default
6881 #if HAVE_SYS_SOCKET_H
6882 #include <sys/socket.h>
6883 #endif
6884 #if HAVE_NET_IF_H
6885 #include <net/if.h>
6886 #endif
6889 main ()
6891 static struct ifreq ac_aggr;
6892 if (ac_aggr.ifr_flags)
6893 return 0;
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>conftest.er1
6901 ac_status=$?
6902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } &&
6907 { ac_try='test -z "$ac_c_werror_flag"
6908 || test ! -s conftest.err'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
6914 { ac_try='test -s conftest.$ac_objext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 ac_cv_member_struct_ifreq_ifr_flags=yes
6921 else
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 $ac_includes_default
6932 #if HAVE_SYS_SOCKET_H
6933 #include <sys/socket.h>
6934 #endif
6935 #if HAVE_NET_IF_H
6936 #include <net/if.h>
6937 #endif
6940 main ()
6942 static struct ifreq ac_aggr;
6943 if (sizeof ac_aggr.ifr_flags)
6944 return 0;
6946 return 0;
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag"
6959 || test ! -s conftest.err'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; } &&
6965 { ac_try='test -s conftest.$ac_objext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_member_struct_ifreq_ifr_flags=yes
6972 else
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_cv_member_struct_ifreq_ifr_flags=no
6978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6983 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6984 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6988 _ACEOF
6992 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6993 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6994 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7004 #if HAVE_SYS_SOCKET_H
7005 #include <sys/socket.h>
7006 #endif
7007 #if HAVE_NET_IF_H
7008 #include <net/if.h>
7009 #endif
7012 main ()
7014 static struct ifreq ac_aggr;
7015 if (ac_aggr.ifr_hwaddr)
7016 return 0;
7018 return 0;
7020 _ACEOF
7021 rm -f conftest.$ac_objext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7023 (eval $ac_compile) 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 (eval $ac_try) 2>&5
7034 ac_status=$?
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest.$ac_objext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7055 #if HAVE_SYS_SOCKET_H
7056 #include <sys/socket.h>
7057 #endif
7058 #if HAVE_NET_IF_H
7059 #include <net/if.h>
7060 #endif
7063 main ()
7065 static struct ifreq ac_aggr;
7066 if (sizeof ac_aggr.ifr_hwaddr)
7067 return 0;
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 (eval $ac_compile) 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -z "$ac_c_werror_flag"
7082 || test ! -s conftest.err'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest.$ac_objext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7106 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7107 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7109 cat >>confdefs.h <<_ACEOF
7110 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7111 _ACEOF
7115 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7116 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7117 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 #if HAVE_SYS_SOCKET_H
7128 #include <sys/socket.h>
7129 #endif
7130 #if HAVE_NET_IF_H
7131 #include <net/if.h>
7132 #endif
7135 main ()
7137 static struct ifreq ac_aggr;
7138 if (ac_aggr.ifr_netmask)
7139 return 0;
7141 return 0;
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -z "$ac_c_werror_flag"
7154 || test ! -s conftest.err'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; } &&
7160 { ac_try='test -s conftest.$ac_objext'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 ac_cv_member_struct_ifreq_ifr_netmask=yes
7167 else
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7178 #if HAVE_SYS_SOCKET_H
7179 #include <sys/socket.h>
7180 #endif
7181 #if HAVE_NET_IF_H
7182 #include <net/if.h>
7183 #endif
7186 main ()
7188 static struct ifreq ac_aggr;
7189 if (sizeof ac_aggr.ifr_netmask)
7190 return 0;
7192 return 0;
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197 (eval $ac_compile) 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try='test -z "$ac_c_werror_flag"
7205 || test ! -s conftest.err'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; } &&
7211 { ac_try='test -s conftest.$ac_objext'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 (eval $ac_try) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7217 ac_cv_member_struct_ifreq_ifr_netmask=yes
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_member_struct_ifreq_ifr_netmask=no
7224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7228 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7229 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7230 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7234 _ACEOF
7238 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7239 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7240 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7250 #if HAVE_SYS_SOCKET_H
7251 #include <sys/socket.h>
7252 #endif
7253 #if HAVE_NET_IF_H
7254 #include <net/if.h>
7255 #endif
7258 main ()
7260 static struct ifreq ac_aggr;
7261 if (ac_aggr.ifr_broadaddr)
7262 return 0;
7264 return 0;
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -z "$ac_c_werror_flag"
7277 || test ! -s conftest.err'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; } &&
7283 { ac_try='test -s conftest.$ac_objext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7290 else
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 $ac_includes_default
7301 #if HAVE_SYS_SOCKET_H
7302 #include <sys/socket.h>
7303 #endif
7304 #if HAVE_NET_IF_H
7305 #include <net/if.h>
7306 #endif
7309 main ()
7311 static struct ifreq ac_aggr;
7312 if (sizeof ac_aggr.ifr_broadaddr)
7313 return 0;
7315 return 0;
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag"
7328 || test ! -s conftest.err'
7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; } &&
7334 { ac_try='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7351 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7352 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7353 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7355 cat >>confdefs.h <<_ACEOF
7356 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7357 _ACEOF
7361 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7362 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7363 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 $ac_includes_default
7373 #if HAVE_SYS_SOCKET_H
7374 #include <sys/socket.h>
7375 #endif
7376 #if HAVE_NET_IF_H
7377 #include <net/if.h>
7378 #endif
7381 main ()
7383 static struct ifreq ac_aggr;
7384 if (ac_aggr.ifr_addr)
7385 return 0;
7387 return 0;
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7392 (eval $ac_compile) 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -z "$ac_c_werror_flag"
7400 || test ! -s conftest.err'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 (eval $ac_try) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; } &&
7406 { ac_try='test -s conftest.$ac_objext'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; }; then
7412 ac_cv_member_struct_ifreq_ifr_addr=yes
7413 else
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7424 #if HAVE_SYS_SOCKET_H
7425 #include <sys/socket.h>
7426 #endif
7427 #if HAVE_NET_IF_H
7428 #include <net/if.h>
7429 #endif
7432 main ()
7434 static struct ifreq ac_aggr;
7435 if (sizeof ac_aggr.ifr_addr)
7436 return 0;
7438 return 0;
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_member_struct_ifreq_ifr_addr=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_cv_member_struct_ifreq_ifr_addr=no
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7475 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7476 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7480 _ACEOF
7487 echo "$as_me:$LINENO: checking for function prototypes" >&5
7488 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7489 if test "$ac_cv_prog_cc_stdc" != no; then
7490 echo "$as_me:$LINENO: result: yes" >&5
7491 echo "${ECHO_T}yes" >&6
7493 cat >>confdefs.h <<\_ACEOF
7494 #define PROTOTYPES 1
7495 _ACEOF
7498 cat >>confdefs.h <<\_ACEOF
7499 #define __PROTOTYPES 1
7500 _ACEOF
7502 else
7503 echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7507 echo "$as_me:$LINENO: checking for working volatile" >&5
7508 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7509 if test "${ac_cv_c_volatile+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7520 main ()
7523 volatile int x;
7524 int * volatile y;
7526 return 0;
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531 (eval $ac_compile) 2>conftest.er1
7532 ac_status=$?
7533 grep -v '^ *+' conftest.er1 >conftest.err
7534 rm -f conftest.er1
7535 cat conftest.err >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -z "$ac_c_werror_flag"
7539 || test ! -s conftest.err'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; } &&
7545 { ac_try='test -s conftest.$ac_objext'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 (eval $ac_try) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; }; then
7551 ac_cv_c_volatile=yes
7552 else
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 ac_cv_c_volatile=no
7558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7560 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7561 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7562 if test $ac_cv_c_volatile = no; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define volatile
7566 _ACEOF
7570 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7571 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7572 if test "${ac_cv_c_const+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7583 main ()
7585 /* FIXME: Include the comments suggested by Paul. */
7586 #ifndef __cplusplus
7587 /* Ultrix mips cc rejects this. */
7588 typedef int charset[2];
7589 const charset x;
7590 /* SunOS 4.1.1 cc rejects this. */
7591 char const *const *ccp;
7592 char **p;
7593 /* NEC SVR4.0.2 mips cc rejects this. */
7594 struct point {int x, y;};
7595 static struct point const zero = {0,0};
7596 /* AIX XL C 1.02.0.0 rejects this.
7597 It does not let you subtract one const X* pointer from another in
7598 an arm of an if-expression whose if-part is not a constant
7599 expression */
7600 const char *g = "string";
7601 ccp = &g + (g ? g-g : 0);
7602 /* HPUX 7.0 cc rejects these. */
7603 ++ccp;
7604 p = (char**) ccp;
7605 ccp = (char const *const *) p;
7606 { /* SCO 3.2v4 cc rejects this. */
7607 char *t;
7608 char const *s = 0 ? (char *) 0 : (char const *) 0;
7610 *t++ = 0;
7612 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7613 int x[] = {25, 17};
7614 const int *foo = &x[0];
7615 ++foo;
7617 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7618 typedef const int *iptr;
7619 iptr p = 0;
7620 ++p;
7622 { /* AIX XL C 1.02.0.0 rejects this saying
7623 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7624 struct s { int j; const int *ap[3]; };
7625 struct s *b; b->j = 5;
7627 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7628 const int foo = 10;
7630 #endif
7633 return 0;
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>conftest.er1
7639 ac_status=$?
7640 grep -v '^ *+' conftest.er1 >conftest.err
7641 rm -f conftest.er1
7642 cat conftest.err >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -z "$ac_c_werror_flag"
7646 || test ! -s conftest.err'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648 (eval $ac_try) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; } &&
7652 { ac_try='test -s conftest.$ac_objext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 ac_cv_c_const=yes
7659 else
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 ac_cv_c_const=no
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7668 echo "${ECHO_T}$ac_cv_c_const" >&6
7669 if test $ac_cv_c_const = no; then
7671 cat >>confdefs.h <<\_ACEOF
7672 #define const
7673 _ACEOF
7677 echo "$as_me:$LINENO: checking for void * support" >&5
7678 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7679 if test "${emacs_cv_void_star+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7690 main ()
7692 void * foo;
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699 (eval $ac_compile) 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -z "$ac_c_werror_flag"
7707 || test ! -s conftest.err'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest.$ac_objext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7719 emacs_cv_void_star=yes
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 emacs_cv_void_star=no
7726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7729 echo "${ECHO_T}$emacs_cv_void_star" >&6
7730 if test $emacs_cv_void_star = yes; then
7731 cat >>confdefs.h <<\_ACEOF
7732 #define POINTER_TYPE void
7733 _ACEOF
7735 else
7736 cat >>confdefs.h <<\_ACEOF
7737 #define POINTER_TYPE char
7738 _ACEOF
7744 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7745 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7746 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7747 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.make <<\_ACEOF
7751 all:
7752 @echo 'ac_maketemp="$(MAKE)"'
7753 _ACEOF
7754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7755 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7756 if test -n "$ac_maketemp"; then
7757 eval ac_cv_prog_make_${ac_make}_set=yes
7758 else
7759 eval ac_cv_prog_make_${ac_make}_set=no
7761 rm -f conftest.make
7763 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7764 echo "$as_me:$LINENO: result: yes" >&5
7765 echo "${ECHO_T}yes" >&6
7766 SET_MAKE=
7767 else
7768 echo "$as_me:$LINENO: result: no" >&5
7769 echo "${ECHO_T}no" >&6
7770 SET_MAKE="MAKE=${MAKE-make}"
7774 echo "$as_me:$LINENO: checking for long file names" >&5
7775 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7776 if test "${ac_cv_sys_long_file_names+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 ac_cv_sys_long_file_names=yes
7780 # Test for long file names in all the places we know might matter:
7781 # . the current directory, where building will happen
7782 # $prefix/lib where we will be installing things
7783 # $exec_prefix/lib likewise
7784 # eval it to expand exec_prefix.
7785 # $TMPDIR if set, where it might want to write temporary files
7786 # if $TMPDIR is not set:
7787 # /tmp where it might want to write temporary files
7788 # /var/tmp likewise
7789 # /usr/tmp likewise
7790 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7791 ac_tmpdirs=$TMPDIR
7792 else
7793 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7795 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7796 test -d $ac_dir || continue
7797 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7798 ac_xdir=$ac_dir/cf$$
7799 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7800 ac_tf1=$ac_xdir/conftest9012345
7801 ac_tf2=$ac_xdir/conftest9012346
7802 (echo 1 >$ac_tf1) 2>/dev/null
7803 (echo 2 >$ac_tf2) 2>/dev/null
7804 ac_val=`cat $ac_tf1 2>/dev/null`
7805 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7806 ac_cv_sys_long_file_names=no
7807 rm -rf $ac_xdir 2>/dev/null
7808 break
7810 rm -rf $ac_xdir 2>/dev/null
7811 done
7813 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7814 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7815 if test $ac_cv_sys_long_file_names = yes; then
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_LONG_FILE_NAMES 1
7819 _ACEOF
7824 #### Choose a window system.
7826 echo "$as_me:$LINENO: checking for X" >&5
7827 echo $ECHO_N "checking for X... $ECHO_C" >&6
7830 # Check whether --with-x or --without-x was given.
7831 if test "${with_x+set}" = set; then
7832 withval="$with_x"
7835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7836 if test "x$with_x" = xno; then
7837 # The user explicitly disabled X.
7838 have_x=disabled
7839 else
7840 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7841 # Both variables are already set.
7842 have_x=yes
7843 else
7844 if test "${ac_cv_have_x+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 # One or both of the vars are not set, and there is no cached value.
7848 ac_x_includes=no ac_x_libraries=no
7849 rm -fr conftest.dir
7850 if mkdir conftest.dir; then
7851 cd conftest.dir
7852 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7853 cat >Imakefile <<'_ACEOF'
7854 acfindx:
7855 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7856 _ACEOF
7857 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7859 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7861 for ac_extension in a so sl; do
7862 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7863 test -f $ac_im_libdir/libX11.$ac_extension; then
7864 ac_im_usrlibdir=$ac_im_libdir; break
7866 done
7867 # Screen out bogus values from the imake configuration. They are
7868 # bogus both because they are the default anyway, and because
7869 # using them would break gcc on systems where it needs fixed includes.
7870 case $ac_im_incroot in
7871 /usr/include) ;;
7872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7873 esac
7874 case $ac_im_usrlibdir in
7875 /usr/lib | /lib) ;;
7876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7877 esac
7879 cd ..
7880 rm -fr conftest.dir
7883 # Standard set of common directories for X headers.
7884 # Check X11 before X11Rn because it is often a symlink to the current release.
7885 ac_x_header_dirs='
7886 /usr/X11/include
7887 /usr/X11R6/include
7888 /usr/X11R5/include
7889 /usr/X11R4/include
7891 /usr/include/X11
7892 /usr/include/X11R6
7893 /usr/include/X11R5
7894 /usr/include/X11R4
7896 /usr/local/X11/include
7897 /usr/local/X11R6/include
7898 /usr/local/X11R5/include
7899 /usr/local/X11R4/include
7901 /usr/local/include/X11
7902 /usr/local/include/X11R6
7903 /usr/local/include/X11R5
7904 /usr/local/include/X11R4
7906 /usr/X386/include
7907 /usr/x386/include
7908 /usr/XFree86/include/X11
7910 /usr/include
7911 /usr/local/include
7912 /usr/unsupported/include
7913 /usr/athena/include
7914 /usr/local/x11r5/include
7915 /usr/lpp/Xamples/include
7917 /usr/openwin/include
7918 /usr/openwin/share/include'
7920 if test "$ac_x_includes" = no; then
7921 # Guess where to find include files, by looking for Intrinsic.h.
7922 # First, try using that file with no special directory specified.
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 #include <X11/Intrinsic.h>
7930 _ACEOF
7931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } >/dev/null; then
7939 if test -s conftest.err; then
7940 ac_cpp_err=$ac_c_preproc_warn_flag
7941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7942 else
7943 ac_cpp_err=
7945 else
7946 ac_cpp_err=yes
7948 if test -z "$ac_cpp_err"; then
7949 # We can compile using X headers with no special include directory.
7950 ac_x_includes=
7951 else
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7955 for ac_dir in $ac_x_header_dirs; do
7956 if test -r "$ac_dir/X11/Intrinsic.h"; then
7957 ac_x_includes=$ac_dir
7958 break
7960 done
7962 rm -f conftest.err conftest.$ac_ext
7963 fi # $ac_x_includes = no
7965 if test "$ac_x_libraries" = no; then
7966 # Check for the libraries.
7967 # See if we find them without any special options.
7968 # Don't add to $LIBS permanently.
7969 ac_save_LIBS=$LIBS
7970 LIBS="-lXt $LIBS"
7971 cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h. */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h. */
7977 #include <X11/Intrinsic.h>
7979 main ()
7981 XtMalloc (0)
7983 return 0;
7985 _ACEOF
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7988 (eval $ac_link) 2>conftest.er1
7989 ac_status=$?
7990 grep -v '^ *+' conftest.er1 >conftest.err
7991 rm -f conftest.er1
7992 cat conftest.err >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); } &&
7995 { ac_try='test -z "$ac_c_werror_flag"
7996 || test ! -s conftest.err'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7998 (eval $ac_try) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; } &&
8002 { ac_try='test -s conftest$ac_exeext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 LIBS=$ac_save_LIBS
8009 # We can link X programs with no special library path.
8010 ac_x_libraries=
8011 else
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8015 LIBS=$ac_save_LIBS
8016 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8018 # Don't even attempt the hair of trying to link an X program!
8019 for ac_extension in a so sl; do
8020 if test -r $ac_dir/libXt.$ac_extension; then
8021 ac_x_libraries=$ac_dir
8022 break 2
8024 done
8025 done
8027 rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 fi # $ac_x_libraries = no
8031 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8032 # Didn't find X anywhere. Cache the known absence of X.
8033 ac_cv_have_x="have_x=no"
8034 else
8035 # Record where we found X for the cache.
8036 ac_cv_have_x="have_x=yes \
8037 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8042 eval "$ac_cv_have_x"
8043 fi # $with_x != no
8045 if test "$have_x" != yes; then
8046 echo "$as_me:$LINENO: result: $have_x" >&5
8047 echo "${ECHO_T}$have_x" >&6
8048 no_x=yes
8049 else
8050 # If each of the values was on the command line, it overrides each guess.
8051 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8052 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8053 # Update the cache value to reflect the command line values.
8054 ac_cv_have_x="have_x=yes \
8055 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8056 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8057 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8060 if test "$no_x" = yes; then
8061 window_system=none
8062 else
8063 window_system=x11
8066 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8067 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8068 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8069 x_default_search_path=""
8070 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8071 x_search_path="\
8072 ${x_library}/X11/%L/%T/%N%C%S:\
8073 ${x_library}/X11/%l/%T/%N%C%S:\
8074 ${x_library}/X11/%T/%N%C%S:\
8075 ${x_library}/X11/%L/%T/%N%S:\
8076 ${x_library}/X11/%l/%T/%N%S:\
8077 ${x_library}/X11/%T/%N%S"
8078 if test x"${x_default_search_path}" = x; then
8079 x_default_search_path=${x_search_path}
8080 else
8081 x_default_search_path="${x_search_path}:${x_default_search_path}"
8083 done
8085 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8086 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8089 if test x"${x_includes}" = x; then
8090 bitmapdir=/usr/include/X11/bitmaps
8091 else
8092 # accumulate include directories that have X11 bitmap subdirectories
8093 bmd_acc="dummyval"
8094 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8095 if test -d "${bmd}/X11/bitmaps"; then
8096 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8098 if test -d "${bmd}/bitmaps"; then
8099 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8101 done
8102 if test ${bmd_acc} != "dummyval"; then
8103 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8107 case "${window_system}" in
8108 x11 )
8109 HAVE_X_WINDOWS=yes
8110 HAVE_X11=yes
8111 case "${with_x_toolkit}" in
8112 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8113 motif ) USE_X_TOOLKIT=MOTIF ;;
8114 gtk ) with_gtk=yes
8115 USE_X_TOOLKIT=none ;;
8116 no ) USE_X_TOOLKIT=none ;;
8117 * ) USE_X_TOOLKIT=maybe ;;
8118 esac
8120 none )
8121 HAVE_X_WINDOWS=no
8122 HAVE_X11=no
8123 USE_X_TOOLKIT=none
8125 esac
8127 ### If we're using X11, we should use the X menu package.
8128 HAVE_MENUS=no
8129 case ${HAVE_X11} in
8130 yes ) HAVE_MENUS=yes ;;
8131 esac
8133 if test "${opsys}" = "hpux9"; then
8134 case "${x_libraries}" in
8135 *X11R4* )
8136 opsysfile="s/hpux9-x11r4.h"
8138 esac
8141 if test "${opsys}" = "hpux9shr"; then
8142 case "${x_libraries}" in
8143 *X11R4* )
8144 opsysfile="s/hpux9shxr4.h"
8146 esac
8149 ### Compute the unexec source name from the object name.
8150 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8152 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8153 # Assume not, until told otherwise.
8154 GNU_MALLOC=yes
8155 doug_lea_malloc=yes
8156 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8157 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8158 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8169 #define malloc_get_state innocuous_malloc_get_state
8171 /* System header to define __stub macros and hopefully few prototypes,
8172 which can conflict with char malloc_get_state (); below.
8173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174 <limits.h> exists even on freestanding compilers. */
8176 #ifdef __STDC__
8177 # include <limits.h>
8178 #else
8179 # include <assert.h>
8180 #endif
8182 #undef malloc_get_state
8184 /* Override any gcc2 internal prototype to avoid an error. */
8185 #ifdef __cplusplus
8186 extern "C"
8188 #endif
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8191 char malloc_get_state ();
8192 /* The GNU C library defines this for functions which it implements
8193 to always fail with ENOSYS. Some functions are actually named
8194 something starting with __ and the normal name is an alias. */
8195 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8196 choke me
8197 #else
8198 char (*f) () = malloc_get_state;
8199 #endif
8200 #ifdef __cplusplus
8202 #endif
8205 main ()
8207 return f != malloc_get_state;
8209 return 0;
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_func_malloc_get_state=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_func_malloc_get_state=no
8241 rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8244 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8245 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8246 if test $ac_cv_func_malloc_get_state = yes; then
8248 else
8249 doug_lea_malloc=no
8252 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8253 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8254 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265 #define malloc_set_state innocuous_malloc_set_state
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char malloc_set_state (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8272 #ifdef __STDC__
8273 # include <limits.h>
8274 #else
8275 # include <assert.h>
8276 #endif
8278 #undef malloc_set_state
8280 /* Override any gcc2 internal prototype to avoid an error. */
8281 #ifdef __cplusplus
8282 extern "C"
8284 #endif
8285 /* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8287 char malloc_set_state ();
8288 /* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8292 choke me
8293 #else
8294 char (*f) () = malloc_set_state;
8295 #endif
8296 #ifdef __cplusplus
8298 #endif
8301 main ()
8303 return f != malloc_set_state;
8305 return 0;
8307 _ACEOF
8308 rm -f conftest.$ac_objext conftest$ac_exeext
8309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8310 (eval $ac_link) 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_func_malloc_set_state=yes
8331 else
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_cv_func_malloc_set_state=no
8337 rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8341 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8342 if test $ac_cv_func_malloc_set_state = yes; then
8344 else
8345 doug_lea_malloc=no
8348 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8349 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8350 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h. */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 extern void (* __after_morecore_hook)();
8361 main ()
8363 __after_morecore_hook = 0
8365 return 0;
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -z "$ac_c_werror_flag"
8378 || test ! -s conftest.err'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380 (eval $ac_try) 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest$ac_exeext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 emacs_cv_var___after_morecore_hook=yes
8391 else
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 emacs_cv_var___after_morecore_hook=no
8397 rm -f conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8400 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8401 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8402 if test $emacs_cv_var___after_morecore_hook = no; then
8403 doug_lea_malloc=no
8405 if test "${system_malloc}" = "yes"; then
8406 GNU_MALLOC=no
8407 GNU_MALLOC_reason="
8408 (The GNU allocators don't work with this system configuration.)"
8410 if test "$doug_lea_malloc" = "yes" ; then
8411 if test "$GNU_MALLOC" = yes ; then
8412 GNU_MALLOC_reason="
8413 (Using Doug Lea's new malloc from the GNU C Library.)"
8416 cat >>confdefs.h <<\_ACEOF
8417 #define DOUG_LEA_MALLOC 1
8418 _ACEOF
8422 if test x"${REL_ALLOC}" = x; then
8423 REL_ALLOC=${GNU_MALLOC}
8429 for ac_header in stdlib.h unistd.h
8431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8433 echo "$as_me:$LINENO: checking for $ac_header" >&5
8434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8440 else
8441 # Is the header compilable?
8442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h. */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 $ac_includes_default
8451 #include <$ac_header>
8452 _ACEOF
8453 rm -f conftest.$ac_objext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8455 (eval $ac_compile) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_header_compiler=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_header_compiler=no
8482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484 echo "${ECHO_T}$ac_header_compiler" >&6
8486 # Is the header present?
8487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <$ac_header>
8496 _ACEOF
8497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } >/dev/null; then
8505 if test -s conftest.err; then
8506 ac_cpp_err=$ac_c_preproc_warn_flag
8507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8508 else
8509 ac_cpp_err=
8511 else
8512 ac_cpp_err=yes
8514 if test -z "$ac_cpp_err"; then
8515 ac_header_preproc=yes
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8520 ac_header_preproc=no
8522 rm -f conftest.err conftest.$ac_ext
8523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8524 echo "${ECHO_T}$ac_header_preproc" >&6
8526 # So? What about this header?
8527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8528 yes:no: )
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8533 ac_header_preproc=yes
8535 no:yes:* )
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8543 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8549 cat <<\_ASBOX
8550 ## ------------------------------------------ ##
8551 ## Report this to the AC_PACKAGE_NAME lists. ##
8552 ## ------------------------------------------ ##
8553 _ASBOX
8555 sed "s/^/$as_me: WARNING: /" >&2
8557 esac
8558 echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 eval "$as_ac_Header=\$ac_header_preproc"
8565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570 cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 _ACEOF
8576 done
8579 for ac_func in getpagesize
8581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8582 echo "$as_me:$LINENO: checking for $ac_func" >&5
8583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584 if eval "test \"\${$as_ac_var+set}\" = set"; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8595 #define $ac_func innocuous_$ac_func
8597 /* System header to define __stub macros and hopefully few prototypes,
8598 which can conflict with char $ac_func (); below.
8599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 <limits.h> exists even on freestanding compilers. */
8602 #ifdef __STDC__
8603 # include <limits.h>
8604 #else
8605 # include <assert.h>
8606 #endif
8608 #undef $ac_func
8610 /* Override any gcc2 internal prototype to avoid an error. */
8611 #ifdef __cplusplus
8612 extern "C"
8614 #endif
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8617 char $ac_func ();
8618 /* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8622 choke me
8623 #else
8624 char (*f) () = $ac_func;
8625 #endif
8626 #ifdef __cplusplus
8628 #endif
8631 main ()
8633 return f != $ac_func;
8635 return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 eval "$as_ac_var=yes"
8661 else
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 eval "$as_ac_var=no"
8667 rm -f conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8672 if test `eval echo '${'$as_ac_var'}'` = yes; then
8673 cat >>confdefs.h <<_ACEOF
8674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8675 _ACEOF
8678 done
8680 echo "$as_me:$LINENO: checking for working mmap" >&5
8681 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8682 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685 if test "$cross_compiling" = yes; then
8686 ac_cv_func_mmap_fixed_mapped=no
8687 else
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 $ac_includes_default
8695 /* malloc might have been renamed as rpl_malloc. */
8696 #undef malloc
8698 /* Thanks to Mike Haertel and Jim Avera for this test.
8699 Here is a matrix of mmap possibilities:
8700 mmap private not fixed
8701 mmap private fixed at somewhere currently unmapped
8702 mmap private fixed at somewhere already mapped
8703 mmap shared not fixed
8704 mmap shared fixed at somewhere currently unmapped
8705 mmap shared fixed at somewhere already mapped
8706 For private mappings, we should verify that changes cannot be read()
8707 back from the file, nor mmap's back from the file at a different
8708 address. (There have been systems where private was not correctly
8709 implemented like the infamous i386 svr4.0, and systems where the
8710 VM page cache was not coherent with the file system buffer cache
8711 like early versions of FreeBSD and possibly contemporary NetBSD.)
8712 For shared mappings, we should conversely verify that changes get
8713 propagated back to all the places they're supposed to be.
8715 Grep wants private fixed already mapped.
8716 The main things grep needs to know about mmap are:
8717 * does it exist and is it safe to write into the mmap'd area
8718 * how to use it (BSD variants) */
8720 #include <fcntl.h>
8721 #include <sys/mman.h>
8723 #if !STDC_HEADERS && !HAVE_STDLIB_H
8724 char *malloc ();
8725 #endif
8727 /* This mess was copied from the GNU getpagesize.h. */
8728 #if !HAVE_GETPAGESIZE
8729 /* Assume that all systems that can run configure have sys/param.h. */
8730 # if !HAVE_SYS_PARAM_H
8731 # define HAVE_SYS_PARAM_H 1
8732 # endif
8734 # ifdef _SC_PAGESIZE
8735 # define getpagesize() sysconf(_SC_PAGESIZE)
8736 # else /* no _SC_PAGESIZE */
8737 # if HAVE_SYS_PARAM_H
8738 # include <sys/param.h>
8739 # ifdef EXEC_PAGESIZE
8740 # define getpagesize() EXEC_PAGESIZE
8741 # else /* no EXEC_PAGESIZE */
8742 # ifdef NBPG
8743 # define getpagesize() NBPG * CLSIZE
8744 # ifndef CLSIZE
8745 # define CLSIZE 1
8746 # endif /* no CLSIZE */
8747 # else /* no NBPG */
8748 # ifdef NBPC
8749 # define getpagesize() NBPC
8750 # else /* no NBPC */
8751 # ifdef PAGESIZE
8752 # define getpagesize() PAGESIZE
8753 # endif /* PAGESIZE */
8754 # endif /* no NBPC */
8755 # endif /* no NBPG */
8756 # endif /* no EXEC_PAGESIZE */
8757 # else /* no HAVE_SYS_PARAM_H */
8758 # define getpagesize() 8192 /* punt totally */
8759 # endif /* no HAVE_SYS_PARAM_H */
8760 # endif /* no _SC_PAGESIZE */
8762 #endif /* no HAVE_GETPAGESIZE */
8765 main ()
8767 char *data, *data2, *data3;
8768 int i, pagesize;
8769 int fd;
8771 pagesize = getpagesize ();
8773 /* First, make a file with some known garbage in it. */
8774 data = (char *) malloc (pagesize);
8775 if (!data)
8776 exit (1);
8777 for (i = 0; i < pagesize; ++i)
8778 *(data + i) = rand ();
8779 umask (0);
8780 fd = creat ("conftest.mmap", 0600);
8781 if (fd < 0)
8782 exit (1);
8783 if (write (fd, data, pagesize) != pagesize)
8784 exit (1);
8785 close (fd);
8787 /* Next, try to mmap the file at a fixed address which already has
8788 something else allocated at it. If we can, also make sure that
8789 we see the same garbage. */
8790 fd = open ("conftest.mmap", O_RDWR);
8791 if (fd < 0)
8792 exit (1);
8793 data2 = (char *) malloc (2 * pagesize);
8794 if (!data2)
8795 exit (1);
8796 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8797 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8798 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8799 exit (1);
8800 for (i = 0; i < pagesize; ++i)
8801 if (*(data + i) != *(data2 + i))
8802 exit (1);
8804 /* Finally, make sure that changes to the mapped area do not
8805 percolate back to the file as seen by read(). (This is a bug on
8806 some variants of i386 svr4.0.) */
8807 for (i = 0; i < pagesize; ++i)
8808 *(data2 + i) = *(data2 + i) + 1;
8809 data3 = (char *) malloc (pagesize);
8810 if (!data3)
8811 exit (1);
8812 if (read (fd, data3, pagesize) != pagesize)
8813 exit (1);
8814 for (i = 0; i < pagesize; ++i)
8815 if (*(data + i) != *(data3 + i))
8816 exit (1);
8817 close (fd);
8818 exit (0);
8820 _ACEOF
8821 rm -f conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_func_mmap_fixed_mapped=yes
8833 else
8834 echo "$as_me: program exited with status $ac_status" >&5
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ( exit $ac_status )
8839 ac_cv_func_mmap_fixed_mapped=no
8841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8844 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8845 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8846 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8848 cat >>confdefs.h <<\_ACEOF
8849 #define HAVE_MMAP 1
8850 _ACEOF
8853 rm -f conftest.mmap
8855 if test $use_mmap_for_buffers = yes; then
8856 REL_ALLOC=no
8859 LIBS="$libsrc_libs $LIBS"
8862 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8863 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8864 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 ac_check_lib_save_LIBS=$LIBS
8868 LIBS="-ldnet $LIBS"
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 /* Override any gcc2 internal prototype to avoid an error. */
8877 #ifdef __cplusplus
8878 extern "C"
8879 #endif
8880 /* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8882 char dnet_ntoa ();
8884 main ()
8886 dnet_ntoa ();
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_dnet_dnet_ntoa=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_cv_lib_dnet_dnet_ntoa=no
8920 rm -f conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8925 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8926 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8927 cat >>confdefs.h <<_ACEOF
8928 #define HAVE_LIBDNET 1
8929 _ACEOF
8931 LIBS="-ldnet $LIBS"
8936 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8937 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8938 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lXbsd $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8952 main ()
8954 main ();
8956 return 0;
8958 _ACEOF
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8961 (eval $ac_link) 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -z "$ac_c_werror_flag"
8969 || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest$ac_exeext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8981 ac_cv_lib_Xbsd_main=yes
8982 else
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_cv_lib_Xbsd_main=no
8988 rm -f conftest.err conftest.$ac_objext \
8989 conftest$ac_exeext conftest.$ac_ext
8990 LIBS=$ac_check_lib_save_LIBS
8992 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8993 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8994 if test $ac_cv_lib_Xbsd_main = yes; then
8995 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9000 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9001 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9002 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 ac_check_lib_save_LIBS=$LIBS
9006 LIBS="-lpthreads $LIBS"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9014 /* Override any gcc2 internal prototype to avoid an error. */
9015 #ifdef __cplusplus
9016 extern "C"
9017 #endif
9018 /* We use char because int might match the return type of a gcc2
9019 builtin and then its argument prototype would still apply. */
9020 char cma_open ();
9022 main ()
9024 cma_open ();
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext conftest$ac_exeext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9031 (eval $ac_link) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest$ac_exeext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_cv_lib_pthreads_cma_open=yes
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 ac_cv_lib_pthreads_cma_open=no
9058 rm -f conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9062 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9063 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9064 if test $ac_cv_lib_pthreads_cma_open = yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define HAVE_LIBPTHREADS 1
9067 _ACEOF
9069 LIBS="-lpthreads $LIBS"
9074 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9075 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9076 if test -d /usr/X386/include; then
9077 HAVE_XFREE386=yes
9078 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9079 else
9080 HAVE_XFREE386=no
9082 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9083 echo "${ECHO_T}$HAVE_XFREE386" >&6
9086 case ${host_os} in
9087 aix*)
9088 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9089 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9090 if test "${gdb_cv_bigtoc+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9094 case $GCC in
9095 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9096 *) gdb_cv_bigtoc=-bbigtoc ;;
9097 esac
9099 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h. */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9108 main ()
9110 int i;
9112 return 0;
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 gdb_cv_bigtoc=
9144 rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9149 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9151 esac
9153 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9154 # used for the tests that follow. We set them back to REAL_CFLAGS and
9155 # REAL_CPPFLAGS later on.
9157 REAL_CPPFLAGS="$CPPFLAGS"
9159 if test "${HAVE_X11}" = "yes"; then
9160 DEFS="$C_SWITCH_X_SITE $DEFS"
9161 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9162 LIBS="$LIBX $LIBS"
9163 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9164 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9166 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9167 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9168 # but it's more convenient here to set LD_RUN_PATH
9169 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9170 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9171 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9172 export LD_RUN_PATH
9175 if test "${opsys}" = "gnu-linux"; then
9176 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9177 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h. */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9186 main ()
9188 XOpenDisplay ("foo");
9190 return 0;
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 xlinux_first_failure=no
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 xlinux_first_failure=yes
9222 rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 if test "${xlinux_first_failure}" = "yes"; then
9225 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9226 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9227 OLD_CPPFLAGS="$CPPFLAGS"
9228 OLD_LIBS="$LIBS"
9229 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9230 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9231 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9232 LIBS="$LIBS -b i486-linuxaout"
9233 cat >conftest.$ac_ext <<_ACEOF
9234 /* confdefs.h. */
9235 _ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9241 main ()
9243 XOpenDisplay ("foo");
9245 return 0;
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9251 ac_status=$?
9252 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 (eval $ac_try) 2>&5
9267 ac_status=$?
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 xlinux_second_failure=no
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 xlinux_second_failure=yes
9277 rm -f conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 if test "${xlinux_second_failure}" = "yes"; then
9280 # If we get the same failure with -b, there is no use adding -b.
9281 # So take it out. This plays safe.
9282 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9283 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9284 CPPFLAGS="$OLD_CPPFLAGS"
9285 LIBS="$OLD_LIBS"
9286 echo "$as_me:$LINENO: result: no" >&5
9287 echo "${ECHO_T}no" >&6
9288 else
9289 echo "$as_me:$LINENO: result: yes" >&5
9290 echo "${ECHO_T}yes" >&6
9292 else
9293 echo "$as_me:$LINENO: result: no" >&5
9294 echo "${ECHO_T}no" >&6
9298 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9299 # header files included from there.
9300 echo "$as_me:$LINENO: checking for Xkb" >&5
9301 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h. */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 #include <X11/Xlib.h>
9309 #include <X11/XKBlib.h>
9311 main ()
9313 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9315 return 0;
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9321 ac_status=$?
9322 grep -v '^ *+' conftest.er1 >conftest.err
9323 rm -f conftest.er1
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 emacs_xkb=yes
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 emacs_xkb=no
9347 rm -f conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9350 echo "${ECHO_T}$emacs_xkb" >&6
9351 if test $emacs_xkb = yes; then
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HAVE_XKBGETKEYBOARD 1
9355 _ACEOF
9363 for ac_func in XrmSetDatabase XScreenResourceString \
9364 XScreenNumberOfScreen XSetWMProtocols
9366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9367 echo "$as_me:$LINENO: checking for $ac_func" >&5
9368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9369 if eval "test \"\${$as_ac_var+set}\" = set"; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9380 #define $ac_func innocuous_$ac_func
9382 /* System header to define __stub macros and hopefully few prototypes,
9383 which can conflict with char $ac_func (); below.
9384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9385 <limits.h> exists even on freestanding compilers. */
9387 #ifdef __STDC__
9388 # include <limits.h>
9389 #else
9390 # include <assert.h>
9391 #endif
9393 #undef $ac_func
9395 /* Override any gcc2 internal prototype to avoid an error. */
9396 #ifdef __cplusplus
9397 extern "C"
9399 #endif
9400 /* We use char because int might match the return type of a gcc2
9401 builtin and then its argument prototype would still apply. */
9402 char $ac_func ();
9403 /* The GNU C library defines this for functions which it implements
9404 to always fail with ENOSYS. Some functions are actually named
9405 something starting with __ and the normal name is an alias. */
9406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9407 choke me
9408 #else
9409 char (*f) () = $ac_func;
9410 #endif
9411 #ifdef __cplusplus
9413 #endif
9416 main ()
9418 return f != $ac_func;
9420 return 0;
9422 _ACEOF
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>conftest.er1
9426 ac_status=$?
9427 grep -v '^ *+' conftest.er1 >conftest.err
9428 rm -f conftest.er1
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
9432 { ac_try='test -z "$ac_c_werror_flag"
9433 || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 eval "$as_ac_var=yes"
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 eval "$as_ac_var=no"
9452 rm -f conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9457 if test `eval echo '${'$as_ac_var'}'` = yes; then
9458 cat >>confdefs.h <<_ACEOF
9459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9460 _ACEOF
9463 done
9467 if test "${window_system}" = "x11"; then
9468 echo "$as_me:$LINENO: checking X11 version 6" >&5
9469 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9470 if test "${emacs_cv_x11_version_6+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 #include <X11/Xlib.h>
9481 main ()
9483 #if XlibSpecificationRelease < 6
9484 fail;
9485 #endif
9488 return 0;
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag"
9501 || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 (eval $ac_try) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 emacs_cv_x11_version_6=yes
9514 else
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 emacs_cv_x11_version_6=no
9520 rm -f conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9524 if test $emacs_cv_x11_version_6 = yes; then
9525 echo "$as_me:$LINENO: result: 6 or newer" >&5
9526 echo "${ECHO_T}6 or newer" >&6
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_X11R6 1
9530 _ACEOF
9532 else
9533 echo "$as_me:$LINENO: result: before 6" >&5
9534 echo "${ECHO_T}before 6" >&6
9538 if test "${window_system}" = "x11"; then
9539 echo "$as_me:$LINENO: checking X11 version 5" >&5
9540 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9541 if test "${emacs_cv_x11_version_5+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544 cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h. */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h. */
9550 #include <X11/Xlib.h>
9552 main ()
9554 #if XlibSpecificationRelease < 5
9555 fail;
9556 #endif
9559 return 0;
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 emacs_cv_x11_version_5=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 emacs_cv_x11_version_5=no
9591 rm -f conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9595 if test $emacs_cv_x11_version_5 = yes; then
9596 echo "$as_me:$LINENO: result: 5 or newer" >&5
9597 echo "${ECHO_T}5 or newer" >&6
9598 HAVE_X11R5=yes
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_X11R5 1
9602 _ACEOF
9604 else
9605 HAVE_X11R5=no
9606 echo "$as_me:$LINENO: result: before 5" >&5
9607 echo "${ECHO_T}before 5" >&6
9613 HAVE_GTK=no
9614 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9615 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9616 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9617 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9618 { (exit 1); exit 1; }; };
9620 GLIB_REQUIRED=2.0.1
9621 GTK_REQUIRED=2.0.1
9622 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9624 if test "X${with_pkg_config_prog}" != X; then
9625 PKG_CONFIG="${with_pkg_config_prog}"
9628 succeeded=no
9630 if test -z "$PKG_CONFIG"; then
9631 # Extract the first word of "pkg-config", so it can be a program name with args.
9632 set dummy pkg-config; ac_word=$2
9633 echo "$as_me:$LINENO: checking for $ac_word" >&5
9634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9635 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638 case $PKG_CONFIG in
9639 [\\/]* | ?:[\\/]*)
9640 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9657 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9659 esac
9661 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9663 if test -n "$PKG_CONFIG"; then
9664 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9665 echo "${ECHO_T}$PKG_CONFIG" >&6
9666 else
9667 echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6
9673 if test "$PKG_CONFIG" = "no" ; then
9674 echo "*** The pkg-config script could not be found. Make sure it is"
9675 echo "*** in your path, or give the full path to pkg-config with"
9676 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9677 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9678 else
9679 PKG_CONFIG_MIN_VERSION=0.9.0
9680 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9681 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9682 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9684 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9685 echo "$as_me:$LINENO: result: yes" >&5
9686 echo "${ECHO_T}yes" >&6
9687 succeeded=yes
9689 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9690 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9691 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9692 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9693 echo "${ECHO_T}$GTK_CFLAGS" >&6
9695 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9696 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9697 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9698 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9699 echo "${ECHO_T}$GTK_LIBS" >&6
9700 else
9701 GTK_CFLAGS=""
9702 GTK_LIBS=""
9703 ## If we have a custom action on failure, don't print errors, but
9704 ## do set a variable so people can do so.
9705 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9706 echo $GTK_PKG_ERRORS
9711 else
9712 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9713 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9717 if test $succeeded = yes; then
9719 else
9720 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9721 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9722 { (exit 1); exit 1; }; }
9727 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9728 CFLAGS="$CFLAGS $GTK_CFLAGS"
9729 LIBS="$GTK_LIBS $LIBS"
9730 HAVE_GTK=yes
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_GTK 1
9734 _ACEOF
9736 USE_X_TOOLKIT=none
9738 with_toolkit_scroll_bars=yes
9740 HAVE_GTK_MULTIDISPLAY=no
9742 for ac_func in gdk_display_open
9744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9745 echo "$as_me:$LINENO: checking for $ac_func" >&5
9746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9747 if eval "test \"\${$as_ac_var+set}\" = set"; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h. */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758 #define $ac_func innocuous_$ac_func
9760 /* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char $ac_func (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9765 #ifdef __STDC__
9766 # include <limits.h>
9767 #else
9768 # include <assert.h>
9769 #endif
9771 #undef $ac_func
9773 /* Override any gcc2 internal prototype to avoid an error. */
9774 #ifdef __cplusplus
9775 extern "C"
9777 #endif
9778 /* We use char because int might match the return type of a gcc2
9779 builtin and then its argument prototype would still apply. */
9780 char $ac_func ();
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9785 choke me
9786 #else
9787 char (*f) () = $ac_func;
9788 #endif
9789 #ifdef __cplusplus
9791 #endif
9794 main ()
9796 return f != $ac_func;
9798 return 0;
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest$ac_exeext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 eval "$as_ac_var=yes"
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 eval "$as_ac_var=no"
9830 rm -f conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9835 if test `eval echo '${'$as_ac_var'}'` = yes; then
9836 cat >>confdefs.h <<_ACEOF
9837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9838 _ACEOF
9839 HAVE_GTK_MULTIDISPLAY=yes
9841 done
9843 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9845 cat >>confdefs.h <<\_ACEOF
9846 #define HAVE_GTK_MULTIDISPLAY 1
9847 _ACEOF
9852 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9853 if test x"${HAVE_X11R5}" = xyes; then
9854 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9855 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9856 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859 cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h. */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9866 #include <X11/Intrinsic.h>
9867 #include <X11/Xaw/Simple.h>
9869 main ()
9873 return 0;
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 emacs_cv_x11_version_5_with_xaw=yes
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9903 emacs_cv_x11_version_5_with_xaw=no
9905 rm -f conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9909 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9910 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9911 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9912 USE_X_TOOLKIT=LUCID
9913 else
9914 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9915 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9916 USE_X_TOOLKIT=none
9918 else
9919 USE_X_TOOLKIT=none
9923 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9925 if test "${USE_X_TOOLKIT}" != "none"; then
9926 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9927 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9928 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 else
9931 cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h. */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9937 #include <X11/Intrinsic.h>
9939 main ()
9941 #if XtSpecificationRelease < 6
9942 fail;
9943 #endif
9946 return 0;
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 emacs_cv_x11_toolkit_version_6=yes
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 emacs_cv_x11_toolkit_version_6=no
9978 rm -f conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9982 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9983 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9984 echo "$as_me:$LINENO: result: 6 or newer" >&5
9985 echo "${ECHO_T}6 or newer" >&6
9987 cat >>confdefs.h <<\_ACEOF
9988 #define HAVE_X11XTR6 1
9989 _ACEOF
9991 else
9992 echo "$as_me:$LINENO: result: before 6" >&5
9993 echo "${ECHO_T}before 6" >&6
9996 OLDLIBS="$LIBS"
9997 if test x$HAVE_X11XTR6 = xyes; then
9998 LIBS="-lXt -lSM -lICE $LIBS"
9999 else
10000 LIBS="-lXt $LIBS"
10003 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10004 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10005 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008 ac_check_lib_save_LIBS=$LIBS
10009 LIBS="-lXmu $LIBS"
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10017 /* Override any gcc2 internal prototype to avoid an error. */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 /* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10023 char XmuConvertStandardSelection ();
10025 main ()
10027 XmuConvertStandardSelection ();
10029 return 0;
10031 _ACEOF
10032 rm -f conftest.$ac_objext conftest$ac_exeext
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag"
10042 || test ! -s conftest.err'
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; } &&
10048 { ac_try='test -s conftest$ac_exeext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10061 rm -f conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10063 LIBS=$ac_check_lib_save_LIBS
10065 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10066 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10067 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10068 cat >>confdefs.h <<_ACEOF
10069 #define HAVE_LIBXMU 1
10070 _ACEOF
10072 LIBS="-lXmu $LIBS"
10076 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10079 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10080 if test "${HAVE_X11}" = "yes"; then
10081 if test "${USE_X_TOOLKIT}" != "none"; then
10083 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10084 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10085 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088 ac_check_lib_save_LIBS=$LIBS
10089 LIBS="-lXext $LIBS"
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 /* Override any gcc2 internal prototype to avoid an error. */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10103 char XShapeQueryExtension ();
10105 main ()
10107 XShapeQueryExtension ();
10109 return 0;
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_lib_Xext_XShapeQueryExtension=yes
10135 else
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139 ac_cv_lib_Xext_XShapeQueryExtension=no
10141 rm -f conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10145 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10146 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10147 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10148 cat >>confdefs.h <<_ACEOF
10149 #define HAVE_LIBXEXT 1
10150 _ACEOF
10152 LIBS="-lXext $LIBS"
10159 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10160 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10161 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10162 if test "${emacs_cv_lesstif+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165 # We put this in CFLAGS temporarily to precede other -I options
10166 # that might be in CFLAGS temporarily.
10167 # We put this in CPPFLAGS where it precedes the other -I options.
10168 OLD_CPPFLAGS=$CPPFLAGS
10169 OLD_CFLAGS=$CFLAGS
10170 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10171 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10180 main ()
10182 int x = 5;
10184 return 0;
10186 _ACEOF
10187 rm -f conftest.$ac_objext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10189 (eval $ac_compile) 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag"
10197 || test ! -s conftest.err'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest.$ac_objext'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }; then
10209 emacs_cv_lesstif=yes
10210 else
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 emacs_cv_lesstif=no
10216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10219 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10220 if test $emacs_cv_lesstif = yes; then
10221 # Make sure this -I option remains in CPPFLAGS after it is set
10222 # back to REAL_CPPFLAGS.
10223 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10224 # have those other -I options anyway. Ultimately, having this
10225 # directory ultimately in CPPFLAGS will be enough.
10226 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10227 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10228 else
10229 CFLAGS=$OLD_CFLAGS
10230 CPPFLAGS=$OLD_CPPFLAGS
10232 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10233 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10234 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <Xm/Xm.h>
10245 main ()
10247 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10248 int x = 5;
10249 #else
10250 Motif version prior to 2.1.
10251 #endif
10253 return 0;
10255 _ACEOF
10256 rm -f conftest.$ac_objext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_c_werror_flag"
10266 || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 emacs_cv_motif_version_2_1=yes
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 emacs_cv_motif_version_2_1=no
10285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10288 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10289 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10290 if test $emacs_cv_motif_version_2_1 = yes; then
10291 HAVE_LIBXP=no
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_MOTIF_2_1 1
10295 _ACEOF
10297 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10298 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10299 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302 ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lXp $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10311 /* Override any gcc2 internal prototype to avoid an error. */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 /* We use char because int might match the return type of a gcc2
10316 builtin and then its argument prototype would still apply. */
10317 char XpCreateContext ();
10319 main ()
10321 XpCreateContext ();
10323 return 0;
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328 (eval $ac_link) 2>conftest.er1
10329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } &&
10335 { ac_try='test -z "$ac_c_werror_flag"
10336 || test ! -s conftest.err'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; } &&
10342 { ac_try='test -s conftest$ac_exeext'
10343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344 (eval $ac_try) 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; }; then
10348 ac_cv_lib_Xp_XpCreateContext=yes
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_lib_Xp_XpCreateContext=no
10355 rm -f conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10359 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10360 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10361 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10362 HAVE_LIBXP=yes
10365 if test ${HAVE_LIBXP} = yes; then
10367 cat >>confdefs.h <<\_ACEOF
10368 #define HAVE_LIBXP 1
10369 _ACEOF
10375 ### Is -lXaw3d available?
10376 HAVE_XAW3D=no
10377 if test "${HAVE_X11}" = "yes"; then
10378 if test "${USE_X_TOOLKIT}" != "none"; then
10379 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10380 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10381 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 #include <X11/Xaw3d/Scrollbar.h>
10391 _ACEOF
10392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10394 ac_status=$?
10395 grep -v '^ *+' conftest.er1 >conftest.err
10396 rm -f conftest.er1
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } >/dev/null; then
10400 if test -s conftest.err; then
10401 ac_cpp_err=$ac_c_preproc_warn_flag
10402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10403 else
10404 ac_cpp_err=
10406 else
10407 ac_cpp_err=yes
10409 if test -z "$ac_cpp_err"; then
10410 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10415 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10417 rm -f conftest.err conftest.$ac_ext
10419 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10420 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10421 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10422 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10423 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10424 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lXaw3d $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any gcc2 internal prototype to avoid an error. */
10437 #ifdef __cplusplus
10438 extern "C"
10439 #endif
10440 /* We use char because int might match the return type of a gcc2
10441 builtin and then its argument prototype would still apply. */
10442 char XawScrollbarSetThumb ();
10444 main ()
10446 XawScrollbarSetThumb ();
10448 return 0;
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453 (eval $ac_link) 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } &&
10460 { ac_try='test -z "$ac_c_werror_flag"
10461 || test ! -s conftest.err'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; } &&
10467 { ac_try='test -s conftest$ac_exeext'
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; }; then
10473 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10474 else
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10478 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10480 rm -f conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LIBS=$ac_check_lib_save_LIBS
10484 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10485 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10486 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10487 HAVE_XAW3D=yes
10493 if test "${HAVE_XAW3D}" = "yes"; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_XAW3D 1
10497 _ACEOF
10505 USE_TOOLKIT_SCROLL_BARS=no
10506 if test "${with_toolkit_scroll_bars}" != "no"; then
10507 if test "${USE_X_TOOLKIT}" != "none"; then
10508 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10509 cat >>confdefs.h <<\_ACEOF
10510 #define USE_TOOLKIT_SCROLL_BARS 1
10511 _ACEOF
10513 HAVE_XAW3D=no
10514 USE_TOOLKIT_SCROLL_BARS=yes
10515 elif test "${HAVE_XAW3D}" = "yes"; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define USE_TOOLKIT_SCROLL_BARS 1
10518 _ACEOF
10520 USE_TOOLKIT_SCROLL_BARS=yes
10522 elif test "${HAVE_GTK}" = "yes"; then
10523 cat >>confdefs.h <<\_ACEOF
10524 #define USE_TOOLKIT_SCROLL_BARS 1
10525 _ACEOF
10527 USE_TOOLKIT_SCROLL_BARS=yes
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10538 #include <X11/Xlib.h>
10539 #include <X11/Xresource.h>
10541 main ()
10543 XIMProc callback;
10545 return 0;
10547 _ACEOF
10548 rm -f conftest.$ac_objext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag"
10558 || test ! -s conftest.err'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } &&
10564 { ac_try='test -s conftest.$ac_objext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 HAVE_XIM=yes
10572 cat >>confdefs.h <<\_ACEOF
10573 #define HAVE_XIM 1
10574 _ACEOF
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 HAVE_XIM=no
10582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10585 if test "${with_xim}" != "no"; then
10587 cat >>confdefs.h <<\_ACEOF
10588 #define USE_XIM 1
10589 _ACEOF
10594 if test "${HAVE_XIM}" != "no"; then
10595 late_CFLAGS=$CFLAGS
10596 if test "$GCC" = yes; then
10597 CFLAGS="$CFLAGS --pedantic-errors"
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10606 #include <X11/Xlib.h>
10607 #include <X11/Xresource.h>
10609 main ()
10611 Display *display;
10612 XrmDatabase db;
10613 char *res_name;
10614 char *res_class;
10615 XIMProc callback;
10616 XPointer *client_data;
10617 #ifndef __GNUC__
10618 /* If we're not using GCC, it's probably not XFree86, and this is
10619 probably right, but we can't use something like --pedantic-errors. */
10620 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10621 char*, XIMProc, XPointer*);
10622 #endif
10623 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10624 client_data);
10626 return 0;
10628 _ACEOF
10629 rm -f conftest.$ac_objext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631 (eval $ac_compile) 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag"
10639 || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 emacs_cv_arg6_star=yes
10652 else
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659 if test "$emacs_cv_arg6_star" = yes; then
10660 cat >>confdefs.h <<\_ACEOF
10661 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10662 _ACEOF
10664 else
10665 cat >>confdefs.h <<\_ACEOF
10666 #define XRegisterIMInstantiateCallback_arg6 XPointer
10667 _ACEOF
10670 CFLAGS=$late_CFLAGS
10673 ### Use -lXpm if available, unless `--with-xpm=no'.
10674 HAVE_XPM=no
10675 if test "${HAVE_X11}" = "yes"; then
10676 if test "${with_xpm}" != "no"; then
10677 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10678 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10679 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10680 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10684 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10685 else
10686 # Is the header compilable?
10687 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10688 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 $ac_includes_default
10696 #include <X11/xpm.h>
10697 _ACEOF
10698 rm -f conftest.$ac_objext
10699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_c_werror_flag"
10708 || test ! -s conftest.err'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_header_compiler=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_header_compiler=no
10727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10729 echo "${ECHO_T}$ac_header_compiler" >&6
10731 # Is the header present?
10732 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10733 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #include <X11/xpm.h>
10741 _ACEOF
10742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } >/dev/null; then
10750 if test -s conftest.err; then
10751 ac_cpp_err=$ac_c_preproc_warn_flag
10752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10753 else
10754 ac_cpp_err=
10756 else
10757 ac_cpp_err=yes
10759 if test -z "$ac_cpp_err"; then
10760 ac_header_preproc=yes
10761 else
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ac_header_preproc=no
10767 rm -f conftest.err conftest.$ac_ext
10768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10769 echo "${ECHO_T}$ac_header_preproc" >&6
10771 # So? What about this header?
10772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10773 yes:no: )
10774 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10775 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10777 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10778 ac_header_preproc=yes
10780 no:yes:* )
10781 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10782 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10783 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10784 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10786 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10788 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10790 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10792 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10794 cat <<\_ASBOX
10795 ## ------------------------------------------ ##
10796 ## Report this to the AC_PACKAGE_NAME lists. ##
10797 ## ------------------------------------------ ##
10798 _ASBOX
10800 sed "s/^/$as_me: WARNING: /" >&2
10802 esac
10803 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10804 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10805 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 ac_cv_header_X11_xpm_h=$ac_header_preproc
10810 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10811 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10814 if test $ac_cv_header_X11_xpm_h = yes; then
10815 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10816 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10817 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-lXpm -lX11 $LIBS"
10822 cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h. */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10829 /* Override any gcc2 internal prototype to avoid an error. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 /* We use char because int might match the return type of a gcc2
10834 builtin and then its argument prototype would still apply. */
10835 char XpmReadFileToPixmap ();
10837 main ()
10839 XpmReadFileToPixmap ();
10841 return 0;
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10846 (eval $ac_link) 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag"
10854 || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest$ac_exeext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10867 else
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10873 rm -f conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_lib_save_LIBS
10877 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10878 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10879 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10880 HAVE_XPM=yes
10886 if test "${HAVE_XPM}" = "yes"; then
10887 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10888 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10889 cat >conftest.$ac_ext <<_ACEOF
10890 /* confdefs.h. */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10895 #include "X11/xpm.h"
10896 #ifndef XpmReturnAllocPixels
10897 no_return_alloc_pixels
10898 #endif
10900 _ACEOF
10901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10902 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10903 HAVE_XPM=no
10904 else
10905 HAVE_XPM=yes
10907 rm -f conftest*
10910 if test "${HAVE_XPM}" = "yes"; then
10911 echo "$as_me:$LINENO: result: yes" >&5
10912 echo "${ECHO_T}yes" >&6
10913 else
10914 echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6
10920 if test "${HAVE_XPM}" = "yes"; then
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_XPM 1
10924 _ACEOF
10929 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10930 HAVE_JPEG=no
10931 if test "${HAVE_X11}" = "yes"; then
10932 if test "${with_jpeg}" != "no"; then
10933 if test "${ac_cv_header_jerror_h+set}" = set; then
10934 echo "$as_me:$LINENO: checking for jerror.h" >&5
10935 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10936 if test "${ac_cv_header_jerror_h+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10940 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10941 else
10942 # Is the header compilable?
10943 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10944 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 $ac_includes_default
10952 #include <jerror.h>
10953 _ACEOF
10954 rm -f conftest.$ac_objext
10955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10956 (eval $ac_compile) 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -z "$ac_c_werror_flag"
10964 || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_header_compiler=yes
10977 else
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_header_compiler=no
10983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10985 echo "${ECHO_T}$ac_header_compiler" >&6
10987 # Is the header present?
10988 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10989 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <jerror.h>
10997 _ACEOF
10998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11000 ac_status=$?
11001 grep -v '^ *+' conftest.er1 >conftest.err
11002 rm -f conftest.er1
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } >/dev/null; then
11006 if test -s conftest.err; then
11007 ac_cpp_err=$ac_c_preproc_warn_flag
11008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11009 else
11010 ac_cpp_err=
11012 else
11013 ac_cpp_err=yes
11015 if test -z "$ac_cpp_err"; then
11016 ac_header_preproc=yes
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 ac_header_preproc=no
11023 rm -f conftest.err conftest.$ac_ext
11024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11025 echo "${ECHO_T}$ac_header_preproc" >&6
11027 # So? What about this header?
11028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11029 yes:no: )
11030 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11031 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11033 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11034 ac_header_preproc=yes
11036 no:yes:* )
11037 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11038 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11040 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11042 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11044 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11046 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11048 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11050 cat <<\_ASBOX
11051 ## ------------------------------------------ ##
11052 ## Report this to the AC_PACKAGE_NAME lists. ##
11053 ## ------------------------------------------ ##
11054 _ASBOX
11056 sed "s/^/$as_me: WARNING: /" >&2
11058 esac
11059 echo "$as_me:$LINENO: checking for jerror.h" >&5
11060 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11061 if test "${ac_cv_header_jerror_h+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 ac_cv_header_jerror_h=$ac_header_preproc
11066 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11067 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11070 if test $ac_cv_header_jerror_h = yes; then
11071 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11072 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11073 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076 ac_check_lib_save_LIBS=$LIBS
11077 LIBS="-ljpeg $LIBS"
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h. */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 /* We use char because int might match the return type of a gcc2
11090 builtin and then its argument prototype would still apply. */
11091 char jpeg_destroy_compress ();
11093 main ()
11095 jpeg_destroy_compress ();
11097 return 0;
11099 _ACEOF
11100 rm -f conftest.$ac_objext conftest$ac_exeext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102 (eval $ac_link) 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -z "$ac_c_werror_flag"
11110 || test ! -s conftest.err'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try='test -s conftest$ac_exeext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11123 else
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11129 rm -f conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_lib_save_LIBS
11133 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11134 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11135 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11136 HAVE_JPEG=yes
11145 if test "${HAVE_JPEG}" = "yes"; then
11146 cat >>confdefs.h <<\_ACEOF
11147 #define HAVE_JPEG 1
11148 _ACEOF
11150 cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h. */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11156 #include <jpeglib.h>
11157 version=JPEG_LIB_VERSION
11159 _ACEOF
11160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11161 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11162 cat >>confdefs.h <<\_ACEOF
11163 #define HAVE_JPEG 1
11164 _ACEOF
11166 else
11167 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11168 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11169 HAVE_JPEG=no
11171 rm -f conftest*
11176 ### Use -lpng if available, unless `--with-png=no'.
11177 HAVE_PNG=no
11178 if test "${HAVE_X11}" = "yes"; then
11179 if test "${with_png}" != "no"; then
11180 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11181 # in /usr/include/libpng.
11184 for ac_header in png.h libpng/png.h
11186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11188 echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11195 else
11196 # Is the header compilable?
11197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 $ac_includes_default
11206 #include <$ac_header>
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11210 (eval $ac_compile) 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest.$ac_objext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_header_compiler=yes
11231 else
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_compiler=no
11237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239 echo "${ECHO_T}$ac_header_compiler" >&6
11241 # Is the header present?
11242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #include <$ac_header>
11251 _ACEOF
11252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } >/dev/null; then
11260 if test -s conftest.err; then
11261 ac_cpp_err=$ac_c_preproc_warn_flag
11262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11263 else
11264 ac_cpp_err=
11266 else
11267 ac_cpp_err=yes
11269 if test -z "$ac_cpp_err"; then
11270 ac_header_preproc=yes
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 ac_header_preproc=no
11277 rm -f conftest.err conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279 echo "${ECHO_T}$ac_header_preproc" >&6
11281 # So? What about this header?
11282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283 yes:no: )
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11288 ac_header_preproc=yes
11290 no:yes:* )
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11304 cat <<\_ASBOX
11305 ## ------------------------------------------ ##
11306 ## Report this to the AC_PACKAGE_NAME lists. ##
11307 ## ------------------------------------------ ##
11308 _ASBOX
11310 sed "s/^/$as_me: WARNING: /" >&2
11312 esac
11313 echo "$as_me:$LINENO: checking for $ac_header" >&5
11314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 eval "$as_ac_Header=\$ac_header_preproc"
11320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11325 cat >>confdefs.h <<_ACEOF
11326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11327 _ACEOF
11331 done
11333 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11334 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11335 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11336 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339 ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-lpng -lz -lm $LIBS"
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11348 /* Override any gcc2 internal prototype to avoid an error. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 /* We use char because int might match the return type of a gcc2
11353 builtin and then its argument prototype would still apply. */
11354 char png_get_channels ();
11356 main ()
11358 png_get_channels ();
11360 return 0;
11362 _ACEOF
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest$ac_exeext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_cv_lib_png_png_get_channels=yes
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11390 ac_cv_lib_png_png_get_channels=no
11392 rm -f conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11396 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11397 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11398 if test $ac_cv_lib_png_png_get_channels = yes; then
11399 HAVE_PNG=yes
11405 if test "${HAVE_PNG}" = "yes"; then
11407 cat >>confdefs.h <<\_ACEOF
11408 #define HAVE_PNG 1
11409 _ACEOF
11414 ### Use -ltiff if available, unless `--with-tiff=no'.
11415 HAVE_TIFF=no
11416 if test "${HAVE_X11}" = "yes"; then
11417 if test "${with_tiff}" != "no"; then
11418 if test "${ac_cv_header_tiffio_h+set}" = set; then
11419 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11420 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11421 if test "${ac_cv_header_tiffio_h+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11425 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11426 else
11427 # Is the header compilable?
11428 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11429 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 $ac_includes_default
11437 #include <tiffio.h>
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441 (eval $ac_compile) 2>conftest.er1
11442 ac_status=$?
11443 grep -v '^ *+' conftest.er1 >conftest.err
11444 rm -f conftest.er1
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -z "$ac_c_werror_flag"
11449 || test ! -s conftest.err'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest.$ac_objext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_header_compiler=yes
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_header_compiler=no
11468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11470 echo "${ECHO_T}$ac_header_compiler" >&6
11472 # Is the header present?
11473 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11474 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11475 cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h. */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 #include <tiffio.h>
11482 _ACEOF
11483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $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 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11494 else
11495 ac_cpp_err=
11497 else
11498 ac_cpp_err=yes
11500 if test -z "$ac_cpp_err"; then
11501 ac_header_preproc=yes
11502 else
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 ac_header_preproc=no
11508 rm -f conftest.err conftest.$ac_ext
11509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11510 echo "${ECHO_T}$ac_header_preproc" >&6
11512 # So? What about this header?
11513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11514 yes:no: )
11515 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11516 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11518 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11519 ac_header_preproc=yes
11521 no:yes:* )
11522 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11523 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11525 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11527 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11529 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11531 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11533 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11535 cat <<\_ASBOX
11536 ## ------------------------------------------ ##
11537 ## Report this to the AC_PACKAGE_NAME lists. ##
11538 ## ------------------------------------------ ##
11539 _ASBOX
11541 sed "s/^/$as_me: WARNING: /" >&2
11543 esac
11544 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11545 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11546 if test "${ac_cv_header_tiffio_h+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 ac_cv_header_tiffio_h=$ac_header_preproc
11551 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11552 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11555 if test $ac_cv_header_tiffio_h = yes; then
11556 tifflibs="-lz -lm"
11557 # At least one tiff package requires the jpeg library.
11558 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11559 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11560 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11561 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-ltiff $tifflibs $LIBS"
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11573 /* Override any gcc2 internal prototype to avoid an error. */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 /* We use char because int might match the return type of a gcc2
11578 builtin and then its argument prototype would still apply. */
11579 char TIFFGetVersion ();
11581 main ()
11583 TIFFGetVersion ();
11585 return 0;
11587 _ACEOF
11588 rm -f conftest.$ac_objext conftest$ac_exeext
11589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11590 (eval $ac_link) 2>conftest.er1
11591 ac_status=$?
11592 grep -v '^ *+' conftest.er1 >conftest.err
11593 rm -f conftest.er1
11594 cat conftest.err >&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try='test -z "$ac_c_werror_flag"
11598 || test ! -s conftest.err'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest$ac_exeext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11607 ac_status=$?
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_lib_tiff_TIFFGetVersion=yes
11611 else
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_cv_lib_tiff_TIFFGetVersion=no
11617 rm -f conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11621 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11622 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11623 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11624 HAVE_TIFF=yes
11632 if test "${HAVE_TIFF}" = "yes"; then
11634 cat >>confdefs.h <<\_ACEOF
11635 #define HAVE_TIFF 1
11636 _ACEOF
11641 ### Use -lgif if available, unless `--with-gif=no'.
11642 HAVE_GIF=no
11643 if test "${HAVE_X11}" = "yes"; then
11644 if test "${with_gif}" != "no"; then
11645 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11646 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11647 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11648 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11652 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11653 else
11654 # Is the header compilable?
11655 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11656 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 #include <gif_lib.h>
11665 _ACEOF
11666 rm -f conftest.$ac_objext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11668 (eval $ac_compile) 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag"
11676 || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_header_compiler=yes
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_header_compiler=no
11695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697 echo "${ECHO_T}$ac_header_compiler" >&6
11699 # Is the header present?
11700 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11701 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11702 cat >conftest.$ac_ext <<_ACEOF
11703 /* confdefs.h. */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 #include <gif_lib.h>
11709 _ACEOF
11710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } >/dev/null; then
11718 if test -s conftest.err; then
11719 ac_cpp_err=$ac_c_preproc_warn_flag
11720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11721 else
11722 ac_cpp_err=
11724 else
11725 ac_cpp_err=yes
11727 if test -z "$ac_cpp_err"; then
11728 ac_header_preproc=yes
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ac_header_preproc=no
11735 rm -f conftest.err conftest.$ac_ext
11736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11737 echo "${ECHO_T}$ac_header_preproc" >&6
11739 # So? What about this header?
11740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11741 yes:no: )
11742 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11743 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11745 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11746 ac_header_preproc=yes
11748 no:yes:* )
11749 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11750 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11752 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11754 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11756 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11758 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11760 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11762 cat <<\_ASBOX
11763 ## ------------------------------------------ ##
11764 ## Report this to the AC_PACKAGE_NAME lists. ##
11765 ## ------------------------------------------ ##
11766 _ASBOX
11768 sed "s/^/$as_me: WARNING: /" >&2
11770 esac
11771 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11772 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11773 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776 ac_cv_header_gif_lib_h=$ac_header_preproc
11778 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11779 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11782 if test $ac_cv_header_gif_lib_h = yes; then
11783 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11784 # Earlier versions can crash Emacs.
11785 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11786 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11787 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790 ac_check_lib_save_LIBS=$LIBS
11791 LIBS="-lungif $LIBS"
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h. */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11799 /* Override any gcc2 internal prototype to avoid an error. */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 /* We use char because int might match the return type of a gcc2
11804 builtin and then its argument prototype would still apply. */
11805 char EGifPutExtensionLast ();
11807 main ()
11809 EGifPutExtensionLast ();
11811 return 0;
11813 _ACEOF
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
11823 { ac_try='test -z "$ac_c_werror_flag"
11824 || test ! -s conftest.err'
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest$ac_exeext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11837 else
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_cv_lib_ungif_EGifPutExtensionLast=no
11843 rm -f conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845 LIBS=$ac_check_lib_save_LIBS
11847 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11848 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11849 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11850 HAVE_GIF=yes
11858 if test "${HAVE_GIF}" = "yes"; then
11860 cat >>confdefs.h <<\_ACEOF
11861 #define HAVE_GIF 1
11862 _ACEOF
11867 ### Use Mac OS X Carbon API to implement GUI.
11868 HAVE_CARBON=no
11869 if test "${with_carbon}" != "no"; then
11870 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11871 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11872 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11873 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11877 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11878 else
11879 # Is the header compilable?
11880 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11881 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11889 #include <Carbon/Carbon.h>
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11893 (eval $ac_compile) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
11900 { ac_try='test -z "$ac_c_werror_flag"
11901 || test ! -s conftest.err'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; } &&
11907 { ac_try='test -s conftest.$ac_objext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 ac_header_compiler=yes
11914 else
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_header_compiler=no
11920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922 echo "${ECHO_T}$ac_header_compiler" >&6
11924 # Is the header present?
11925 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11926 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 #include <Carbon/Carbon.h>
11934 _ACEOF
11935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11937 ac_status=$?
11938 grep -v '^ *+' conftest.er1 >conftest.err
11939 rm -f conftest.er1
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } >/dev/null; then
11943 if test -s conftest.err; then
11944 ac_cpp_err=$ac_c_preproc_warn_flag
11945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11946 else
11947 ac_cpp_err=
11949 else
11950 ac_cpp_err=yes
11952 if test -z "$ac_cpp_err"; then
11953 ac_header_preproc=yes
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 ac_header_preproc=no
11960 rm -f conftest.err conftest.$ac_ext
11961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11962 echo "${ECHO_T}$ac_header_preproc" >&6
11964 # So? What about this header?
11965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11966 yes:no: )
11967 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11968 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11970 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11971 ac_header_preproc=yes
11973 no:yes:* )
11974 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11975 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11976 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11977 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11979 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11981 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11983 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11985 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11987 cat <<\_ASBOX
11988 ## ------------------------------------------ ##
11989 ## Report this to the AC_PACKAGE_NAME lists. ##
11990 ## ------------------------------------------ ##
11991 _ASBOX
11993 sed "s/^/$as_me: WARNING: /" >&2
11995 esac
11996 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11997 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11998 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12003 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12004 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12007 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12008 HAVE_CARBON=yes
12014 if test "${HAVE_CARBON}" = "yes"; then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define HAVE_CARBON 1
12018 _ACEOF
12020 window_system=mac
12021 ## Specify the install directory
12022 carbon_appdir=
12023 if test "${carbon_appdir_x}" != ""; then
12024 case ${carbon_appdir_x} in
12025 y | ye | yes) carbon_appdir=/Applications ;;
12026 * ) carbon_appdir=${carbon_appdir_x} ;;
12027 esac
12029 # We also have mouse menus.
12030 HAVE_MENUS=yes
12033 ### Use session management (-lSM -lICE) if available
12034 HAVE_X_SM=no
12035 if test "${HAVE_X11}" = "yes"; then
12036 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12037 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12038 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12039 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12043 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12044 else
12045 # Is the header compilable?
12046 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12047 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h. */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 $ac_includes_default
12055 #include <X11/SM/SMlib.h>
12056 _ACEOF
12057 rm -f conftest.$ac_objext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12059 (eval $ac_compile) 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag"
12067 || test ! -s conftest.err'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; } &&
12073 { ac_try='test -s conftest.$ac_objext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_header_compiler=yes
12080 else
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084 ac_header_compiler=no
12086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12088 echo "${ECHO_T}$ac_header_compiler" >&6
12090 # Is the header present?
12091 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12092 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 #include <X11/SM/SMlib.h>
12100 _ACEOF
12101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } >/dev/null; then
12109 if test -s conftest.err; then
12110 ac_cpp_err=$ac_c_preproc_warn_flag
12111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12112 else
12113 ac_cpp_err=
12115 else
12116 ac_cpp_err=yes
12118 if test -z "$ac_cpp_err"; then
12119 ac_header_preproc=yes
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_header_preproc=no
12126 rm -f conftest.err conftest.$ac_ext
12127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12128 echo "${ECHO_T}$ac_header_preproc" >&6
12130 # So? What about this header?
12131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12132 yes:no: )
12133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12134 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12136 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12137 ac_header_preproc=yes
12139 no:yes:* )
12140 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12141 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12143 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12145 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12147 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12149 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12150 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12151 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12153 cat <<\_ASBOX
12154 ## ------------------------------------------ ##
12155 ## Report this to the AC_PACKAGE_NAME lists. ##
12156 ## ------------------------------------------ ##
12157 _ASBOX
12159 sed "s/^/$as_me: WARNING: /" >&2
12161 esac
12162 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12163 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12164 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12169 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12170 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12173 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12174 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12175 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12176 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-lSM -lICE $LIBS"
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h. */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12188 /* Override any gcc2 internal prototype to avoid an error. */
12189 #ifdef __cplusplus
12190 extern "C"
12191 #endif
12192 /* We use char because int might match the return type of a gcc2
12193 builtin and then its argument prototype would still apply. */
12194 char SmcOpenConnection ();
12196 main ()
12198 SmcOpenConnection ();
12200 return 0;
12202 _ACEOF
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205 (eval $ac_link) 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } &&
12212 { ac_try='test -z "$ac_c_werror_flag"
12213 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_SM_SmcOpenConnection=yes
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_cv_lib_SM_SmcOpenConnection=no
12232 rm -f conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12236 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12237 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12238 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12239 HAVE_X_SM=yes
12246 if test "${HAVE_X_SM}" = "yes"; then
12248 cat >>confdefs.h <<\_ACEOF
12249 #define HAVE_X_SM 1
12250 _ACEOF
12252 case "$LIBS" in
12253 *-lSM*) ;;
12254 *) LIBS="-lSM -lICE $LIBS" ;;
12255 esac
12259 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12260 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12261 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12262 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 #include <netdb.h>
12273 main ()
12275 return h_errno;
12277 return 0;
12279 _ACEOF
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag"
12290 || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 emacs_cv_netdb_declares_h_errno=yes
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 emacs_cv_netdb_declares_h_errno=no
12309 rm -f conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12313 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12314 if test $emacs_cv_netdb_declares_h_errno = yes; then
12316 cat >>confdefs.h <<\_ACEOF
12317 #define HAVE_H_ERRNO 1
12318 _ACEOF
12322 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12323 # for constant arguments. Useless!
12324 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12325 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12326 if test "${ac_cv_working_alloca_h+set}" = set; then
12327 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 else
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h. */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12335 #include <alloca.h>
12337 main ()
12339 char *p = (char *) alloca (2 * sizeof (int));
12341 return 0;
12343 _ACEOF
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346 (eval $ac_link) 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag"
12354 || test ! -s conftest.err'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest$ac_exeext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_cv_working_alloca_h=yes
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12371 ac_cv_working_alloca_h=no
12373 rm -f conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12376 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12377 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12378 if test $ac_cv_working_alloca_h = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_ALLOCA_H 1
12382 _ACEOF
12386 echo "$as_me:$LINENO: checking for alloca" >&5
12387 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12388 if test "${ac_cv_func_alloca_works+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 else
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h. */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 #ifdef __GNUC__
12398 # define alloca __builtin_alloca
12399 #else
12400 # ifdef _MSC_VER
12401 # include <malloc.h>
12402 # define alloca _alloca
12403 # else
12404 # if HAVE_ALLOCA_H
12405 # include <alloca.h>
12406 # else
12407 # ifdef _AIX
12408 #pragma alloca
12409 # else
12410 # ifndef alloca /* predefined by HP cc +Olibcalls */
12411 char *alloca ();
12412 # endif
12413 # endif
12414 # endif
12415 # endif
12416 #endif
12419 main ()
12421 char *p = (char *) alloca (1);
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_c_werror_flag"
12436 || test ! -s conftest.err'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_func_alloca_works=yes
12449 else
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 ac_cv_func_alloca_works=no
12455 rm -f conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12458 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12459 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12461 if test $ac_cv_func_alloca_works = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define HAVE_ALLOCA 1
12465 _ACEOF
12467 else
12468 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12469 # that cause trouble. Some versions do not even contain alloca or
12470 # contain a buggy version. If you still want to use their alloca,
12471 # use ar to extract alloca.o from them instead of compiling alloca.c.
12473 ALLOCA=alloca.$ac_objext
12475 cat >>confdefs.h <<\_ACEOF
12476 #define C_ALLOCA 1
12477 _ACEOF
12480 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12481 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12482 if test "${ac_cv_os_cray+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h. */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 #if defined(CRAY) && ! defined(CRAY2)
12492 webecray
12493 #else
12494 wenotbecray
12495 #endif
12497 _ACEOF
12498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12499 $EGREP "webecray" >/dev/null 2>&1; then
12500 ac_cv_os_cray=yes
12501 else
12502 ac_cv_os_cray=no
12504 rm -f conftest*
12507 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12508 echo "${ECHO_T}$ac_cv_os_cray" >&6
12509 if test $ac_cv_os_cray = yes; then
12510 for ac_func in _getb67 GETB67 getb67; do
12511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12512 echo "$as_me:$LINENO: checking for $ac_func" >&5
12513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12514 if eval "test \"\${$as_ac_var+set}\" = set"; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517 cat >conftest.$ac_ext <<_ACEOF
12518 /* confdefs.h. */
12519 _ACEOF
12520 cat confdefs.h >>conftest.$ac_ext
12521 cat >>conftest.$ac_ext <<_ACEOF
12522 /* end confdefs.h. */
12523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12525 #define $ac_func innocuous_$ac_func
12527 /* System header to define __stub macros and hopefully few prototypes,
12528 which can conflict with char $ac_func (); below.
12529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12530 <limits.h> exists even on freestanding compilers. */
12532 #ifdef __STDC__
12533 # include <limits.h>
12534 #else
12535 # include <assert.h>
12536 #endif
12538 #undef $ac_func
12540 /* Override any gcc2 internal prototype to avoid an error. */
12541 #ifdef __cplusplus
12542 extern "C"
12544 #endif
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12547 char $ac_func ();
12548 /* The GNU C library defines this for functions which it implements
12549 to always fail with ENOSYS. Some functions are actually named
12550 something starting with __ and the normal name is an alias. */
12551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12552 choke me
12553 #else
12554 char (*f) () = $ac_func;
12555 #endif
12556 #ifdef __cplusplus
12558 #endif
12561 main ()
12563 return f != $ac_func;
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570 (eval $ac_link) 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag"
12578 || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest$ac_exeext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 eval "$as_ac_var=yes"
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 eval "$as_ac_var=no"
12597 rm -f conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12602 if test `eval echo '${'$as_ac_var'}'` = yes; then
12604 cat >>confdefs.h <<_ACEOF
12605 #define CRAY_STACKSEG_END $ac_func
12606 _ACEOF
12608 break
12611 done
12614 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12615 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12616 if test "${ac_cv_c_stack_direction+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619 if test "$cross_compiling" = yes; then
12620 ac_cv_c_stack_direction=0
12621 else
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 find_stack_direction ()
12631 static char *addr = 0;
12632 auto char dummy;
12633 if (addr == 0)
12635 addr = &dummy;
12636 return find_stack_direction ();
12638 else
12639 return (&dummy > addr) ? 1 : -1;
12643 main ()
12645 exit (find_stack_direction () < 0);
12647 _ACEOF
12648 rm -f conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_cv_c_stack_direction=1
12660 else
12661 echo "$as_me: program exited with status $ac_status" >&5
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ( exit $ac_status )
12666 ac_cv_c_stack_direction=-1
12668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12671 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12672 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12674 cat >>confdefs.h <<_ACEOF
12675 #define STACK_DIRECTION $ac_cv_c_stack_direction
12676 _ACEOF
12682 # fmod, logb, and frexp are found in -lm on most systems.
12683 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12685 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12686 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12687 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690 ac_check_lib_save_LIBS=$LIBS
12691 LIBS="-lm $LIBS"
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12699 /* Override any gcc2 internal prototype to avoid an error. */
12700 #ifdef __cplusplus
12701 extern "C"
12702 #endif
12703 /* We use char because int might match the return type of a gcc2
12704 builtin and then its argument prototype would still apply. */
12705 char sqrt ();
12707 main ()
12709 sqrt ();
12711 return 0;
12713 _ACEOF
12714 rm -f conftest.$ac_objext conftest$ac_exeext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -z "$ac_c_werror_flag"
12724 || test ! -s conftest.err'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12727 ac_status=$?
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest$ac_exeext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12736 ac_cv_lib_m_sqrt=yes
12737 else
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ac_cv_lib_m_sqrt=no
12743 rm -f conftest.err conftest.$ac_objext \
12744 conftest$ac_exeext conftest.$ac_ext
12745 LIBS=$ac_check_lib_save_LIBS
12747 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12748 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12749 if test $ac_cv_lib_m_sqrt = yes; then
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_LIBM 1
12752 _ACEOF
12754 LIBS="-lm $LIBS"
12759 # Check for mail-locking functions in a "mail" library. Probably this should
12760 # have the same check as for liblockfile below.
12762 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12763 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12764 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lmail $LIBS"
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h. */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12776 /* Override any gcc2 internal prototype to avoid an error. */
12777 #ifdef __cplusplus
12778 extern "C"
12779 #endif
12780 /* We use char because int might match the return type of a gcc2
12781 builtin and then its argument prototype would still apply. */
12782 char maillock ();
12784 main ()
12786 maillock ();
12788 return 0;
12790 _ACEOF
12791 rm -f conftest.$ac_objext conftest$ac_exeext
12792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12793 (eval $ac_link) 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -z "$ac_c_werror_flag"
12801 || test ! -s conftest.err'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest$ac_exeext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_lib_mail_maillock=yes
12814 else
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_cv_lib_mail_maillock=no
12820 rm -f conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
12822 LIBS=$ac_check_lib_save_LIBS
12824 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12825 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12826 if test $ac_cv_lib_mail_maillock = yes; then
12827 cat >>confdefs.h <<_ACEOF
12828 #define HAVE_LIBMAIL 1
12829 _ACEOF
12831 LIBS="-lmail $LIBS"
12836 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12837 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12838 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-llockfile $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any gcc2 internal prototype to avoid an error. */
12851 #ifdef __cplusplus
12852 extern "C"
12853 #endif
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856 char maillock ();
12858 main ()
12860 maillock ();
12862 return 0;
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12867 (eval $ac_link) 2>conftest.er1
12868 ac_status=$?
12869 grep -v '^ *+' conftest.er1 >conftest.err
12870 rm -f conftest.er1
12871 cat conftest.err >&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -z "$ac_c_werror_flag"
12875 || test ! -s conftest.err'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_lib_lockfile_maillock=yes
12888 else
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12892 ac_cv_lib_lockfile_maillock=no
12894 rm -f conftest.err conftest.$ac_objext \
12895 conftest$ac_exeext conftest.$ac_ext
12896 LIBS=$ac_check_lib_save_LIBS
12898 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12899 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12900 if test $ac_cv_lib_lockfile_maillock = yes; then
12901 cat >>confdefs.h <<_ACEOF
12902 #define HAVE_LIBLOCKFILE 1
12903 _ACEOF
12905 LIBS="-llockfile $LIBS"
12909 # If we have the shared liblockfile, assume we must use it for mail
12910 # locking (e.g. Debian). If we couldn't link against liblockfile
12911 # (no liblockfile.a installed), ensure that we don't need to.
12912 if test "$ac_cv_lib_lockfile_maillock" = no; then
12913 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12914 set dummy liblockfile.so; ac_word=$2
12915 echo "$as_me:$LINENO: checking for $ac_word" >&5
12916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12917 if test "${ac_cv_prog_liblockfile+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920 if test -n "$liblockfile"; then
12921 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12925 for as_dir in $as_dummy
12927 IFS=$as_save_IFS
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12931 ac_cv_prog_liblockfile="yes"
12932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 break 2
12935 done
12936 done
12938 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12941 liblockfile=$ac_cv_prog_liblockfile
12942 if test -n "$liblockfile"; then
12943 echo "$as_me:$LINENO: result: $liblockfile" >&5
12944 echo "${ECHO_T}$liblockfile" >&6
12945 else
12946 echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6
12950 if test $ac_cv_prog_liblockfile = yes; then
12951 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12952 This probably means that movemail could lose mail.
12953 There may be a \`development' package to install containing liblockfile." >&5
12954 echo "$as_me: error: Shared liblockfile found but can't link against it.
12955 This probably means that movemail could lose mail.
12956 There may be a \`development' package to install containing liblockfile." >&2;}
12957 { (exit 1); exit 1; }; }
12958 else :
12962 for ac_func in touchlock
12964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12965 echo "$as_me:$LINENO: checking for $ac_func" >&5
12966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12967 if eval "test \"\${$as_ac_var+set}\" = set"; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970 cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h. */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12978 #define $ac_func innocuous_$ac_func
12980 /* System header to define __stub macros and hopefully few prototypes,
12981 which can conflict with char $ac_func (); below.
12982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12983 <limits.h> exists even on freestanding compilers. */
12985 #ifdef __STDC__
12986 # include <limits.h>
12987 #else
12988 # include <assert.h>
12989 #endif
12991 #undef $ac_func
12993 /* Override any gcc2 internal prototype to avoid an error. */
12994 #ifdef __cplusplus
12995 extern "C"
12997 #endif
12998 /* We use char because int might match the return type of a gcc2
12999 builtin and then its argument prototype would still apply. */
13000 char $ac_func ();
13001 /* The GNU C library defines this for functions which it implements
13002 to always fail with ENOSYS. Some functions are actually named
13003 something starting with __ and the normal name is an alias. */
13004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13005 choke me
13006 #else
13007 char (*f) () = $ac_func;
13008 #endif
13009 #ifdef __cplusplus
13011 #endif
13014 main ()
13016 return f != $ac_func;
13018 return 0;
13020 _ACEOF
13021 rm -f conftest.$ac_objext conftest$ac_exeext
13022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13023 (eval $ac_link) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest$ac_exeext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 eval "$as_ac_var=yes"
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13048 eval "$as_ac_var=no"
13050 rm -f conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13055 if test `eval echo '${'$as_ac_var'}'` = yes; then
13056 cat >>confdefs.h <<_ACEOF
13057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13058 _ACEOF
13061 done
13064 for ac_header in maillock.h
13066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13068 echo "$as_me:$LINENO: checking for $ac_header" >&5
13069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13075 else
13076 # Is the header compilable?
13077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 $ac_includes_default
13086 #include <$ac_header>
13087 _ACEOF
13088 rm -f conftest.$ac_objext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13090 (eval $ac_compile) 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag"
13098 || test ! -s conftest.err'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } &&
13104 { ac_try='test -s conftest.$ac_objext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 ac_header_compiler=yes
13111 else
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_header_compiler=no
13117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119 echo "${ECHO_T}$ac_header_compiler" >&6
13121 # Is the header present?
13122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <$ac_header>
13131 _ACEOF
13132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } >/dev/null; then
13140 if test -s conftest.err; then
13141 ac_cpp_err=$ac_c_preproc_warn_flag
13142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13143 else
13144 ac_cpp_err=
13146 else
13147 ac_cpp_err=yes
13149 if test -z "$ac_cpp_err"; then
13150 ac_header_preproc=yes
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 ac_header_preproc=no
13157 rm -f conftest.err conftest.$ac_ext
13158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13159 echo "${ECHO_T}$ac_header_preproc" >&6
13161 # So? What about this header?
13162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13163 yes:no: )
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13168 ac_header_preproc=yes
13170 no:yes:* )
13171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13184 cat <<\_ASBOX
13185 ## ------------------------------------------ ##
13186 ## Report this to the AC_PACKAGE_NAME lists. ##
13187 ## ------------------------------------------ ##
13188 _ASBOX
13190 sed "s/^/$as_me: WARNING: /" >&2
13192 esac
13193 echo "$as_me:$LINENO: checking for $ac_header" >&5
13194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198 eval "$as_ac_Header=\$ac_header_preproc"
13200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13205 cat >>confdefs.h <<_ACEOF
13206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13207 _ACEOF
13211 done
13281 for ac_func in gethostname getdomainname dup2 \
13282 rename closedir mkdir rmdir sysinfo \
13283 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13284 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13285 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13286 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13287 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13288 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13289 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
13291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13292 echo "$as_me:$LINENO: checking for $ac_func" >&5
13293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13294 if eval "test \"\${$as_ac_var+set}\" = set"; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297 cat >conftest.$ac_ext <<_ACEOF
13298 /* confdefs.h. */
13299 _ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13305 #define $ac_func innocuous_$ac_func
13307 /* System header to define __stub macros and hopefully few prototypes,
13308 which can conflict with char $ac_func (); below.
13309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13310 <limits.h> exists even on freestanding compilers. */
13312 #ifdef __STDC__
13313 # include <limits.h>
13314 #else
13315 # include <assert.h>
13316 #endif
13318 #undef $ac_func
13320 /* Override any gcc2 internal prototype to avoid an error. */
13321 #ifdef __cplusplus
13322 extern "C"
13324 #endif
13325 /* We use char because int might match the return type of a gcc2
13326 builtin and then its argument prototype would still apply. */
13327 char $ac_func ();
13328 /* The GNU C library defines this for functions which it implements
13329 to always fail with ENOSYS. Some functions are actually named
13330 something starting with __ and the normal name is an alias. */
13331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13332 choke me
13333 #else
13334 char (*f) () = $ac_func;
13335 #endif
13336 #ifdef __cplusplus
13338 #endif
13341 main ()
13343 return f != $ac_func;
13345 return 0;
13347 _ACEOF
13348 rm -f conftest.$ac_objext conftest$ac_exeext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13350 (eval $ac_link) 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } &&
13357 { ac_try='test -z "$ac_c_werror_flag"
13358 || test ! -s conftest.err'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest$ac_exeext'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 eval "$as_ac_var=yes"
13371 else
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13375 eval "$as_ac_var=no"
13377 rm -f conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13382 if test `eval echo '${'$as_ac_var'}'` = yes; then
13383 cat >>confdefs.h <<_ACEOF
13384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13385 _ACEOF
13388 done
13392 for ac_header in sys/un.h
13394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13396 echo "$as_me:$LINENO: checking for $ac_header" >&5
13397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13403 else
13404 # Is the header compilable?
13405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13407 cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h. */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13414 #include <$ac_header>
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag"
13426 || test ! -s conftest.err'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest.$ac_objext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_header_compiler=yes
13439 else
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_header_compiler=no
13445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13447 echo "${ECHO_T}$ac_header_compiler" >&6
13449 # Is the header present?
13450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 #include <$ac_header>
13459 _ACEOF
13460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } >/dev/null; then
13468 if test -s conftest.err; then
13469 ac_cpp_err=$ac_c_preproc_warn_flag
13470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13471 else
13472 ac_cpp_err=
13474 else
13475 ac_cpp_err=yes
13477 if test -z "$ac_cpp_err"; then
13478 ac_header_preproc=yes
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_header_preproc=no
13485 rm -f conftest.err conftest.$ac_ext
13486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13487 echo "${ECHO_T}$ac_header_preproc" >&6
13489 # So? What about this header?
13490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13491 yes:no: )
13492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13496 ac_header_preproc=yes
13498 no:yes:* )
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13512 cat <<\_ASBOX
13513 ## ------------------------------------------ ##
13514 ## Report this to the AC_PACKAGE_NAME lists. ##
13515 ## ------------------------------------------ ##
13516 _ASBOX
13518 sed "s/^/$as_me: WARNING: /" >&2
13520 esac
13521 echo "$as_me:$LINENO: checking for $ac_header" >&5
13522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526 eval "$as_ac_Header=\$ac_header_preproc"
13528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13533 cat >>confdefs.h <<_ACEOF
13534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13535 _ACEOF
13539 done
13545 for ac_header in stdlib.h sys/time.h unistd.h
13547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549 echo "$as_me:$LINENO: checking for $ac_header" >&5
13550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556 else
13557 # Is the header compilable?
13558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 $ac_includes_default
13567 #include <$ac_header>
13568 _ACEOF
13569 rm -f conftest.$ac_objext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571 (eval $ac_compile) 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_c_werror_flag"
13579 || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_header_compiler=yes
13592 else
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13596 ac_header_compiler=no
13598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600 echo "${ECHO_T}$ac_header_compiler" >&6
13602 # Is the header present?
13603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 #include <$ac_header>
13612 _ACEOF
13613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } >/dev/null; then
13621 if test -s conftest.err; then
13622 ac_cpp_err=$ac_c_preproc_warn_flag
13623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13624 else
13625 ac_cpp_err=
13627 else
13628 ac_cpp_err=yes
13630 if test -z "$ac_cpp_err"; then
13631 ac_header_preproc=yes
13632 else
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 ac_header_preproc=no
13638 rm -f conftest.err conftest.$ac_ext
13639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13640 echo "${ECHO_T}$ac_header_preproc" >&6
13642 # So? What about this header?
13643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13644 yes:no: )
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13649 ac_header_preproc=yes
13651 no:yes:* )
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13665 cat <<\_ASBOX
13666 ## ------------------------------------------ ##
13667 ## Report this to the AC_PACKAGE_NAME lists. ##
13668 ## ------------------------------------------ ##
13669 _ASBOX
13671 sed "s/^/$as_me: WARNING: /" >&2
13673 esac
13674 echo "$as_me:$LINENO: checking for $ac_header" >&5
13675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 eval "$as_ac_Header=\$ac_header_preproc"
13681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13686 cat >>confdefs.h <<_ACEOF
13687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13688 _ACEOF
13692 done
13695 for ac_func in alarm
13697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13698 echo "$as_me:$LINENO: checking for $ac_func" >&5
13699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13700 if eval "test \"\${$as_ac_var+set}\" = set"; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 else
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h. */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13711 #define $ac_func innocuous_$ac_func
13713 /* System header to define __stub macros and hopefully few prototypes,
13714 which can conflict with char $ac_func (); below.
13715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13716 <limits.h> exists even on freestanding compilers. */
13718 #ifdef __STDC__
13719 # include <limits.h>
13720 #else
13721 # include <assert.h>
13722 #endif
13724 #undef $ac_func
13726 /* Override any gcc2 internal prototype to avoid an error. */
13727 #ifdef __cplusplus
13728 extern "C"
13730 #endif
13731 /* We use char because int might match the return type of a gcc2
13732 builtin and then its argument prototype would still apply. */
13733 char $ac_func ();
13734 /* The GNU C library defines this for functions which it implements
13735 to always fail with ENOSYS. Some functions are actually named
13736 something starting with __ and the normal name is an alias. */
13737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13738 choke me
13739 #else
13740 char (*f) () = $ac_func;
13741 #endif
13742 #ifdef __cplusplus
13744 #endif
13747 main ()
13749 return f != $ac_func;
13751 return 0;
13753 _ACEOF
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>conftest.er1
13757 ac_status=$?
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try='test -z "$ac_c_werror_flag"
13764 || test ! -s conftest.err'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13773 ac_status=$?
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 eval "$as_ac_var=yes"
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 eval "$as_ac_var=no"
13783 rm -f conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13788 if test `eval echo '${'$as_ac_var'}'` = yes; then
13789 cat >>confdefs.h <<_ACEOF
13790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13791 _ACEOF
13794 done
13796 echo "$as_me:$LINENO: checking for working mktime" >&5
13797 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13798 if test "${ac_cv_func_working_mktime+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801 if test "$cross_compiling" = yes; then
13802 ac_cv_func_working_mktime=no
13803 else
13804 cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h. */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13810 /* Test program from Paul Eggert and Tony Leneis. */
13811 #if TIME_WITH_SYS_TIME
13812 # include <sys/time.h>
13813 # include <time.h>
13814 #else
13815 # if HAVE_SYS_TIME_H
13816 # include <sys/time.h>
13817 # else
13818 # include <time.h>
13819 # endif
13820 #endif
13822 #if HAVE_STDLIB_H
13823 # include <stdlib.h>
13824 #endif
13826 #if HAVE_UNISTD_H
13827 # include <unistd.h>
13828 #endif
13830 #if !HAVE_ALARM
13831 # define alarm(X) /* empty */
13832 #endif
13834 /* Work around redefinition to rpl_putenv by other config tests. */
13835 #undef putenv
13837 static time_t time_t_max;
13838 static time_t time_t_min;
13840 /* Values we'll use to set the TZ environment variable. */
13841 static char *tz_strings[] = {
13842 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13843 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13845 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13847 /* Fail if mktime fails to convert a date in the spring-forward gap.
13848 Based on a problem report from Andreas Jaeger. */
13849 static void
13850 spring_forward_gap ()
13852 /* glibc (up to about 1998-10-07) failed this test. */
13853 struct tm tm;
13855 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13856 instead of "TZ=America/Vancouver" in order to detect the bug even
13857 on systems that don't support the Olson extension, or don't have the
13858 full zoneinfo tables installed. */
13859 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13861 tm.tm_year = 98;
13862 tm.tm_mon = 3;
13863 tm.tm_mday = 5;
13864 tm.tm_hour = 2;
13865 tm.tm_min = 0;
13866 tm.tm_sec = 0;
13867 tm.tm_isdst = -1;
13868 if (mktime (&tm) == (time_t)-1)
13869 exit (1);
13872 static void
13873 mktime_test1 (now)
13874 time_t now;
13876 struct tm *lt;
13877 if ((lt = localtime (&now)) && mktime (lt) != now)
13878 exit (1);
13881 static void
13882 mktime_test (now)
13883 time_t now;
13885 mktime_test1 (now);
13886 mktime_test1 ((time_t) (time_t_max - now));
13887 mktime_test1 ((time_t) (time_t_min + now));
13890 static void
13891 irix_6_4_bug ()
13893 /* Based on code from Ariel Faigon. */
13894 struct tm tm;
13895 tm.tm_year = 96;
13896 tm.tm_mon = 3;
13897 tm.tm_mday = 0;
13898 tm.tm_hour = 0;
13899 tm.tm_min = 0;
13900 tm.tm_sec = 0;
13901 tm.tm_isdst = -1;
13902 mktime (&tm);
13903 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13904 exit (1);
13907 static void
13908 bigtime_test (j)
13909 int j;
13911 struct tm tm;
13912 time_t now;
13913 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13914 now = mktime (&tm);
13915 if (now != (time_t) -1)
13917 struct tm *lt = localtime (&now);
13918 if (! (lt
13919 && lt->tm_year == tm.tm_year
13920 && lt->tm_mon == tm.tm_mon
13921 && lt->tm_mday == tm.tm_mday
13922 && lt->tm_hour == tm.tm_hour
13923 && lt->tm_min == tm.tm_min
13924 && lt->tm_sec == tm.tm_sec
13925 && lt->tm_yday == tm.tm_yday
13926 && lt->tm_wday == tm.tm_wday
13927 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13928 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13929 exit (1);
13934 main ()
13936 time_t t, delta;
13937 int i, j;
13939 /* This test makes some buggy mktime implementations loop.
13940 Give up after 60 seconds; a mktime slower than that
13941 isn't worth using anyway. */
13942 alarm (60);
13944 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13945 continue;
13946 time_t_max--;
13947 if ((time_t) -1 < 0)
13948 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13949 continue;
13950 delta = time_t_max / 997; /* a suitable prime number */
13951 for (i = 0; i < N_STRINGS; i++)
13953 if (tz_strings[i])
13954 putenv (tz_strings[i]);
13956 for (t = 0; t <= time_t_max - delta; t += delta)
13957 mktime_test (t);
13958 mktime_test ((time_t) 1);
13959 mktime_test ((time_t) (60 * 60));
13960 mktime_test ((time_t) (60 * 60 * 24));
13962 for (j = 1; 0 < j; j *= 2)
13963 bigtime_test (j);
13964 bigtime_test (j - 1);
13966 irix_6_4_bug ();
13967 spring_forward_gap ();
13968 exit (0);
13970 _ACEOF
13971 rm -f conftest$ac_exeext
13972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13973 (eval $ac_link) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_func_working_mktime=yes
13983 else
13984 echo "$as_me: program exited with status $ac_status" >&5
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ( exit $ac_status )
13989 ac_cv_func_working_mktime=no
13991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13995 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13996 if test $ac_cv_func_working_mktime = no; then
13997 case $LIBOBJS in
13998 "mktime.$ac_objext" | \
13999 *" mktime.$ac_objext" | \
14000 "mktime.$ac_objext "* | \
14001 *" mktime.$ac_objext "* ) ;;
14002 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14003 esac
14007 if test "$ac_cv_func_working_mktime" = no; then
14009 cat >>confdefs.h <<\_ACEOF
14010 #define BROKEN_MKTIME 1
14011 _ACEOF
14015 ac_have_func=no # yes means we've found a way to get the load average.
14017 # Make sure getloadavg.c is where it belongs, at configure-time.
14018 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14019 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14020 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14021 { (exit 1); exit 1; }; }
14023 ac_save_LIBS=$LIBS
14025 # Check for getloadavg, but be sure not to touch the cache variable.
14026 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14027 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14028 if test "${ac_cv_func_getloadavg+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14039 #define getloadavg innocuous_getloadavg
14041 /* System header to define __stub macros and hopefully few prototypes,
14042 which can conflict with char getloadavg (); below.
14043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14044 <limits.h> exists even on freestanding compilers. */
14046 #ifdef __STDC__
14047 # include <limits.h>
14048 #else
14049 # include <assert.h>
14050 #endif
14052 #undef getloadavg
14054 /* Override any gcc2 internal prototype to avoid an error. */
14055 #ifdef __cplusplus
14056 extern "C"
14058 #endif
14059 /* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14061 char getloadavg ();
14062 /* The GNU C library defines this for functions which it implements
14063 to always fail with ENOSYS. Some functions are actually named
14064 something starting with __ and the normal name is an alias. */
14065 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14066 choke me
14067 #else
14068 char (*f) () = getloadavg;
14069 #endif
14070 #ifdef __cplusplus
14072 #endif
14075 main ()
14077 return f != getloadavg;
14079 return 0;
14081 _ACEOF
14082 rm -f conftest.$ac_objext conftest$ac_exeext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084 (eval $ac_link) 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag"
14092 || test ! -s conftest.err'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest$ac_exeext'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_cv_func_getloadavg=yes
14105 else
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14109 ac_cv_func_getloadavg=no
14111 rm -f conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14114 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14115 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14116 if test $ac_cv_func_getloadavg = yes; then
14117 exit 0
14118 else
14119 exit 1
14121 ) && ac_have_func=yes
14123 # On HPUX9, an unprivileged user can get load averages through this function.
14125 for ac_func in pstat_getdynamic
14127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14128 echo "$as_me:$LINENO: checking for $ac_func" >&5
14129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_var+set}\" = set"; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14141 #define $ac_func innocuous_$ac_func
14143 /* System header to define __stub macros and hopefully few prototypes,
14144 which can conflict with char $ac_func (); below.
14145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14146 <limits.h> exists even on freestanding compilers. */
14148 #ifdef __STDC__
14149 # include <limits.h>
14150 #else
14151 # include <assert.h>
14152 #endif
14154 #undef $ac_func
14156 /* Override any gcc2 internal prototype to avoid an error. */
14157 #ifdef __cplusplus
14158 extern "C"
14160 #endif
14161 /* We use char because int might match the return type of a gcc2
14162 builtin and then its argument prototype would still apply. */
14163 char $ac_func ();
14164 /* The GNU C library defines this for functions which it implements
14165 to always fail with ENOSYS. Some functions are actually named
14166 something starting with __ and the normal name is an alias. */
14167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14168 choke me
14169 #else
14170 char (*f) () = $ac_func;
14171 #endif
14172 #ifdef __cplusplus
14174 #endif
14177 main ()
14179 return f != $ac_func;
14181 return 0;
14183 _ACEOF
14184 rm -f conftest.$ac_objext conftest$ac_exeext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186 (eval $ac_link) 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag"
14194 || test ! -s conftest.err'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest$ac_exeext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 eval "$as_ac_var=yes"
14207 else
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 eval "$as_ac_var=no"
14213 rm -f conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
14216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14218 if test `eval echo '${'$as_ac_var'}'` = yes; then
14219 cat >>confdefs.h <<_ACEOF
14220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14221 _ACEOF
14224 done
14227 # Solaris has libkstat which does not require root.
14229 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14230 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14231 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234 ac_check_lib_save_LIBS=$LIBS
14235 LIBS="-lkstat $LIBS"
14236 cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h. */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14243 /* Override any gcc2 internal prototype to avoid an error. */
14244 #ifdef __cplusplus
14245 extern "C"
14246 #endif
14247 /* We use char because int might match the return type of a gcc2
14248 builtin and then its argument prototype would still apply. */
14249 char kstat_open ();
14251 main ()
14253 kstat_open ();
14255 return 0;
14257 _ACEOF
14258 rm -f conftest.$ac_objext conftest$ac_exeext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14260 (eval $ac_link) 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest$ac_exeext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_lib_kstat_kstat_open=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_lib_kstat_kstat_open=no
14287 rm -f conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14291 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14292 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14293 if test $ac_cv_lib_kstat_kstat_open = yes; then
14294 cat >>confdefs.h <<_ACEOF
14295 #define HAVE_LIBKSTAT 1
14296 _ACEOF
14298 LIBS="-lkstat $LIBS"
14302 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14304 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14305 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14306 # to get the right answer into the cache.
14307 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14308 if test $ac_have_func = no; then
14309 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14310 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14311 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314 ac_check_lib_save_LIBS=$LIBS
14315 LIBS="-lelf $LIBS"
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14323 /* Override any gcc2 internal prototype to avoid an error. */
14324 #ifdef __cplusplus
14325 extern "C"
14326 #endif
14327 /* We use char because int might match the return type of a gcc2
14328 builtin and then its argument prototype would still apply. */
14329 char elf_begin ();
14331 main ()
14333 elf_begin ();
14335 return 0;
14337 _ACEOF
14338 rm -f conftest.$ac_objext conftest$ac_exeext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14340 (eval $ac_link) 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_cv_lib_elf_elf_begin=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_cv_lib_elf_elf_begin=no
14367 rm -f conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 LIBS=$ac_check_lib_save_LIBS
14371 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14372 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14373 if test $ac_cv_lib_elf_elf_begin = yes; then
14374 LIBS="-lelf $LIBS"
14378 if test $ac_have_func = no; then
14379 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14380 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14381 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384 ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-lkvm $LIBS"
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14393 /* Override any gcc2 internal prototype to avoid an error. */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 /* We use char because int might match the return type of a gcc2
14398 builtin and then its argument prototype would still apply. */
14399 char kvm_open ();
14401 main ()
14403 kvm_open ();
14405 return 0;
14407 _ACEOF
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14410 (eval $ac_link) 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try='test -z "$ac_c_werror_flag"
14418 || test ! -s conftest.err'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_lib_kvm_kvm_open=yes
14431 else
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14435 ac_cv_lib_kvm_kvm_open=no
14437 rm -f conftest.err conftest.$ac_objext \
14438 conftest$ac_exeext conftest.$ac_ext
14439 LIBS=$ac_check_lib_save_LIBS
14441 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14442 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14443 if test $ac_cv_lib_kvm_kvm_open = yes; then
14444 LIBS="-lkvm $LIBS"
14447 # Check for the 4.4BSD definition of getloadavg.
14448 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14449 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14450 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453 ac_check_lib_save_LIBS=$LIBS
14454 LIBS="-lutil $LIBS"
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14462 /* Override any gcc2 internal prototype to avoid an error. */
14463 #ifdef __cplusplus
14464 extern "C"
14465 #endif
14466 /* We use char because int might match the return type of a gcc2
14467 builtin and then its argument prototype would still apply. */
14468 char getloadavg ();
14470 main ()
14472 getloadavg ();
14474 return 0;
14476 _ACEOF
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_lib_util_getloadavg=yes
14500 else
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_cv_lib_util_getloadavg=no
14506 rm -f conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14508 LIBS=$ac_check_lib_save_LIBS
14510 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14511 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14512 if test $ac_cv_lib_util_getloadavg = yes; then
14513 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14518 if test $ac_have_func = no; then
14519 # There is a commonly available library for RS/6000 AIX.
14520 # Since it is not a standard part of AIX, it might be installed locally.
14521 ac_getloadavg_LIBS=$LIBS
14522 LIBS="-L/usr/local/lib $LIBS"
14523 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14524 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14525 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528 ac_check_lib_save_LIBS=$LIBS
14529 LIBS="-lgetloadavg $LIBS"
14530 cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h. */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14537 /* Override any gcc2 internal prototype to avoid an error. */
14538 #ifdef __cplusplus
14539 extern "C"
14540 #endif
14541 /* We use char because int might match the return type of a gcc2
14542 builtin and then its argument prototype would still apply. */
14543 char getloadavg ();
14545 main ()
14547 getloadavg ();
14549 return 0;
14551 _ACEOF
14552 rm -f conftest.$ac_objext conftest$ac_exeext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554 (eval $ac_link) 2>conftest.er1
14555 ac_status=$?
14556 grep -v '^ *+' conftest.er1 >conftest.err
14557 rm -f conftest.er1
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_lib_getloadavg_getloadavg=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_cv_lib_getloadavg_getloadavg=no
14581 rm -f conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14585 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14586 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14587 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14588 LIBS="-lgetloadavg $LIBS"
14589 else
14590 LIBS=$ac_getloadavg_LIBS
14595 # Make sure it is really in the library, if we think we found it,
14596 # otherwise set up the replacement function.
14598 for ac_func in getloadavg
14600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14601 echo "$as_me:$LINENO: checking for $ac_func" >&5
14602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_var+set}\" = set"; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h. */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14614 #define $ac_func innocuous_$ac_func
14616 /* System header to define __stub macros and hopefully few prototypes,
14617 which can conflict with char $ac_func (); below.
14618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14619 <limits.h> exists even on freestanding compilers. */
14621 #ifdef __STDC__
14622 # include <limits.h>
14623 #else
14624 # include <assert.h>
14625 #endif
14627 #undef $ac_func
14629 /* Override any gcc2 internal prototype to avoid an error. */
14630 #ifdef __cplusplus
14631 extern "C"
14633 #endif
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14636 char $ac_func ();
14637 /* The GNU C library defines this for functions which it implements
14638 to always fail with ENOSYS. Some functions are actually named
14639 something starting with __ and the normal name is an alias. */
14640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14641 choke me
14642 #else
14643 char (*f) () = $ac_func;
14644 #endif
14645 #ifdef __cplusplus
14647 #endif
14650 main ()
14652 return f != $ac_func;
14654 return 0;
14656 _ACEOF
14657 rm -f conftest.$ac_objext conftest$ac_exeext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14659 (eval $ac_link) 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -z "$ac_c_werror_flag"
14667 || test ! -s conftest.err'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; } &&
14673 { ac_try='test -s conftest$ac_exeext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 eval "$as_ac_var=yes"
14680 else
14681 echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 eval "$as_ac_var=no"
14686 rm -f conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14691 if test `eval echo '${'$as_ac_var'}'` = yes; then
14692 cat >>confdefs.h <<_ACEOF
14693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14694 _ACEOF
14696 else
14697 case $LIBOBJS in
14698 "getloadavg.$ac_objext" | \
14699 *" getloadavg.$ac_objext" | \
14700 "getloadavg.$ac_objext "* | \
14701 *" getloadavg.$ac_objext "* ) ;;
14702 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14703 esac
14706 cat >>confdefs.h <<\_ACEOF
14707 #define C_GETLOADAVG 1
14708 _ACEOF
14710 # Figure out what our getloadavg.c needs.
14711 ac_have_func=no
14712 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14713 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14714 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14715 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14719 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14720 else
14721 # Is the header compilable?
14722 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14723 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h. */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 $ac_includes_default
14731 #include <sys/dg_sys_info.h>
14732 _ACEOF
14733 rm -f conftest.$ac_objext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14735 (eval $ac_compile) 2>conftest.er1
14736 ac_status=$?
14737 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_c_werror_flag"
14743 || test ! -s conftest.err'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_header_compiler=yes
14756 else
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_header_compiler=no
14762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14764 echo "${ECHO_T}$ac_header_compiler" >&6
14766 # Is the header present?
14767 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14768 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #include <sys/dg_sys_info.h>
14776 _ACEOF
14777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } >/dev/null; then
14785 if test -s conftest.err; then
14786 ac_cpp_err=$ac_c_preproc_warn_flag
14787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14788 else
14789 ac_cpp_err=
14791 else
14792 ac_cpp_err=yes
14794 if test -z "$ac_cpp_err"; then
14795 ac_header_preproc=yes
14796 else
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_header_preproc=no
14802 rm -f conftest.err conftest.$ac_ext
14803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14804 echo "${ECHO_T}$ac_header_preproc" >&6
14806 # So? What about this header?
14807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14808 yes:no: )
14809 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14810 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14812 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14813 ac_header_preproc=yes
14815 no:yes:* )
14816 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14817 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14819 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14821 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14822 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14823 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14825 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14827 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14829 cat <<\_ASBOX
14830 ## ------------------------------------------ ##
14831 ## Report this to the AC_PACKAGE_NAME lists. ##
14832 ## ------------------------------------------ ##
14833 _ASBOX
14835 sed "s/^/$as_me: WARNING: /" >&2
14837 esac
14838 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14839 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14840 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14845 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14846 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14849 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14850 ac_have_func=yes
14852 cat >>confdefs.h <<\_ACEOF
14853 #define DGUX 1
14854 _ACEOF
14857 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14858 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14859 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-ldgc $LIBS"
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14871 /* Override any gcc2 internal prototype to avoid an error. */
14872 #ifdef __cplusplus
14873 extern "C"
14874 #endif
14875 /* We use char because int might match the return type of a gcc2
14876 builtin and then its argument prototype would still apply. */
14877 char dg_sys_info ();
14879 main ()
14881 dg_sys_info ();
14883 return 0;
14885 _ACEOF
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -z "$ac_c_werror_flag"
14896 || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest$ac_exeext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 ac_cv_lib_dgc_dg_sys_info=yes
14909 else
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 ac_cv_lib_dgc_dg_sys_info=no
14915 rm -f conftest.err conftest.$ac_objext \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14919 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14920 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14921 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_LIBDGC 1
14924 _ACEOF
14926 LIBS="-ldgc $LIBS"
14934 if test "${ac_cv_header_locale_h+set}" = set; then
14935 echo "$as_me:$LINENO: checking for locale.h" >&5
14936 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14937 if test "${ac_cv_header_locale_h+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14941 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14942 else
14943 # Is the header compilable?
14944 echo "$as_me:$LINENO: checking locale.h usability" >&5
14945 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 $ac_includes_default
14953 #include <locale.h>
14954 _ACEOF
14955 rm -f conftest.$ac_objext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957 (eval $ac_compile) 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -z "$ac_c_werror_flag"
14965 || test ! -s conftest.err'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; } &&
14971 { ac_try='test -s conftest.$ac_objext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14977 ac_header_compiler=yes
14978 else
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_header_compiler=no
14984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14986 echo "${ECHO_T}$ac_header_compiler" >&6
14988 # Is the header present?
14989 echo "$as_me:$LINENO: checking locale.h presence" >&5
14990 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <locale.h>
14998 _ACEOF
14999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } >/dev/null; then
15007 if test -s conftest.err; then
15008 ac_cpp_err=$ac_c_preproc_warn_flag
15009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15010 else
15011 ac_cpp_err=
15013 else
15014 ac_cpp_err=yes
15016 if test -z "$ac_cpp_err"; then
15017 ac_header_preproc=yes
15018 else
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_header_preproc=no
15024 rm -f conftest.err conftest.$ac_ext
15025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15026 echo "${ECHO_T}$ac_header_preproc" >&6
15028 # So? What about this header?
15029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15030 yes:no: )
15031 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15032 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15034 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15035 ac_header_preproc=yes
15037 no:yes:* )
15038 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15039 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15041 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15043 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15045 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15047 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15049 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15051 cat <<\_ASBOX
15052 ## ------------------------------------------ ##
15053 ## Report this to the AC_PACKAGE_NAME lists. ##
15054 ## ------------------------------------------ ##
15055 _ASBOX
15057 sed "s/^/$as_me: WARNING: /" >&2
15059 esac
15060 echo "$as_me:$LINENO: checking for locale.h" >&5
15061 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15062 if test "${ac_cv_header_locale_h+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065 ac_cv_header_locale_h=$ac_header_preproc
15067 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15068 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15074 for ac_func in setlocale
15076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15077 echo "$as_me:$LINENO: checking for $ac_func" >&5
15078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15079 if eval "test \"\${$as_ac_var+set}\" = set"; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15090 #define $ac_func innocuous_$ac_func
15092 /* System header to define __stub macros and hopefully few prototypes,
15093 which can conflict with char $ac_func (); below.
15094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15095 <limits.h> exists even on freestanding compilers. */
15097 #ifdef __STDC__
15098 # include <limits.h>
15099 #else
15100 # include <assert.h>
15101 #endif
15103 #undef $ac_func
15105 /* Override any gcc2 internal prototype to avoid an error. */
15106 #ifdef __cplusplus
15107 extern "C"
15109 #endif
15110 /* We use char because int might match the return type of a gcc2
15111 builtin and then its argument prototype would still apply. */
15112 char $ac_func ();
15113 /* The GNU C library defines this for functions which it implements
15114 to always fail with ENOSYS. Some functions are actually named
15115 something starting with __ and the normal name is an alias. */
15116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15117 choke me
15118 #else
15119 char (*f) () = $ac_func;
15120 #endif
15121 #ifdef __cplusplus
15123 #endif
15126 main ()
15128 return f != $ac_func;
15130 return 0;
15132 _ACEOF
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15135 (eval $ac_link) 2>conftest.er1
15136 ac_status=$?
15137 grep -v '^ *+' conftest.er1 >conftest.err
15138 rm -f conftest.er1
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } &&
15142 { ac_try='test -z "$ac_c_werror_flag"
15143 || test ! -s conftest.err'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; } &&
15149 { ac_try='test -s conftest$ac_exeext'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 eval "$as_ac_var=yes"
15156 else
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 eval "$as_ac_var=no"
15162 rm -f conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
15165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15167 if test `eval echo '${'$as_ac_var'}'` = yes; then
15168 cat >>confdefs.h <<_ACEOF
15169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15170 _ACEOF
15173 done
15176 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15177 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15178 # Irix 4.0.5F has the header but not the library.
15179 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15180 ac_have_func=yes
15182 cat >>confdefs.h <<\_ACEOF
15183 #define SVR4 1
15184 _ACEOF
15188 if test $ac_have_func = no; then
15189 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15190 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15191 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15192 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15196 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15197 else
15198 # Is the header compilable?
15199 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15200 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 $ac_includes_default
15208 #include <inq_stats/cpustats.h>
15209 _ACEOF
15210 rm -f conftest.$ac_objext
15211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag"
15220 || test ! -s conftest.err'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_header_compiler=yes
15233 else
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 ac_header_compiler=no
15239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15241 echo "${ECHO_T}$ac_header_compiler" >&6
15243 # Is the header present?
15244 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15245 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <inq_stats/cpustats.h>
15253 _ACEOF
15254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } >/dev/null; then
15262 if test -s conftest.err; then
15263 ac_cpp_err=$ac_c_preproc_warn_flag
15264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15265 else
15266 ac_cpp_err=
15268 else
15269 ac_cpp_err=yes
15271 if test -z "$ac_cpp_err"; then
15272 ac_header_preproc=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15279 rm -f conftest.err conftest.$ac_ext
15280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15281 echo "${ECHO_T}$ac_header_preproc" >&6
15283 # So? What about this header?
15284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15285 yes:no: )
15286 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15287 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15289 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15290 ac_header_preproc=yes
15292 no:yes:* )
15293 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15294 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15296 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15298 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15300 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15302 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15304 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15306 cat <<\_ASBOX
15307 ## ------------------------------------------ ##
15308 ## Report this to the AC_PACKAGE_NAME lists. ##
15309 ## ------------------------------------------ ##
15310 _ASBOX
15312 sed "s/^/$as_me: WARNING: /" >&2
15314 esac
15315 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15316 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15317 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15322 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15323 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15326 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15327 ac_have_func=yes
15329 cat >>confdefs.h <<\_ACEOF
15330 #define UMAX 1
15331 _ACEOF
15334 cat >>confdefs.h <<\_ACEOF
15335 #define UMAX4_3 1
15336 _ACEOF
15343 if test $ac_have_func = no; then
15344 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15345 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15346 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15347 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15351 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15352 else
15353 # Is the header compilable?
15354 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15355 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h. */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 $ac_includes_default
15363 #include <sys/cpustats.h>
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367 (eval $ac_compile) 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_header_compiler=yes
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_header_compiler=no
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15396 echo "${ECHO_T}$ac_header_compiler" >&6
15398 # Is the header present?
15399 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15400 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h. */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #include <sys/cpustats.h>
15408 _ACEOF
15409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } >/dev/null; then
15417 if test -s conftest.err; then
15418 ac_cpp_err=$ac_c_preproc_warn_flag
15419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15420 else
15421 ac_cpp_err=
15423 else
15424 ac_cpp_err=yes
15426 if test -z "$ac_cpp_err"; then
15427 ac_header_preproc=yes
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_header_preproc=no
15434 rm -f conftest.err conftest.$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15436 echo "${ECHO_T}$ac_header_preproc" >&6
15438 # So? What about this header?
15439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15440 yes:no: )
15441 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15442 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15444 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15445 ac_header_preproc=yes
15447 no:yes:* )
15448 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15449 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15451 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15453 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15455 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15457 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15459 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15461 cat <<\_ASBOX
15462 ## ------------------------------------------ ##
15463 ## Report this to the AC_PACKAGE_NAME lists. ##
15464 ## ------------------------------------------ ##
15465 _ASBOX
15467 sed "s/^/$as_me: WARNING: /" >&2
15469 esac
15470 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15471 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15472 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15478 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15481 if test $ac_cv_header_sys_cpustats_h = yes; then
15482 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15483 #define UMAX 1
15484 _ACEOF
15491 if test $ac_have_func = no; then
15493 for ac_header in mach/mach.h
15495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15497 echo "$as_me:$LINENO: checking for $ac_header" >&5
15498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15504 else
15505 # Is the header compilable?
15506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 $ac_includes_default
15515 #include <$ac_header>
15516 _ACEOF
15517 rm -f conftest.$ac_objext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15519 (eval $ac_compile) 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -z "$ac_c_werror_flag"
15527 || test ! -s conftest.err'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try='test -s conftest.$ac_objext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_header_compiler=yes
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_header_compiler=no
15546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15548 echo "${ECHO_T}$ac_header_compiler" >&6
15550 # Is the header present?
15551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 #include <$ac_header>
15560 _ACEOF
15561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } >/dev/null; then
15569 if test -s conftest.err; then
15570 ac_cpp_err=$ac_c_preproc_warn_flag
15571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15572 else
15573 ac_cpp_err=
15575 else
15576 ac_cpp_err=yes
15578 if test -z "$ac_cpp_err"; then
15579 ac_header_preproc=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_header_preproc=no
15586 rm -f conftest.err conftest.$ac_ext
15587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15588 echo "${ECHO_T}$ac_header_preproc" >&6
15590 # So? What about this header?
15591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 yes:no: )
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15597 ac_header_preproc=yes
15599 no:yes:* )
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15613 cat <<\_ASBOX
15614 ## ------------------------------------------ ##
15615 ## Report this to the AC_PACKAGE_NAME lists. ##
15616 ## ------------------------------------------ ##
15617 _ASBOX
15619 sed "s/^/$as_me: WARNING: /" >&2
15621 esac
15622 echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627 eval "$as_ac_Header=\$ac_header_preproc"
15629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15634 cat >>confdefs.h <<_ACEOF
15635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15636 _ACEOF
15640 done
15645 for ac_header in nlist.h
15647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15649 echo "$as_me:$LINENO: checking for $ac_header" >&5
15650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15656 else
15657 # Is the header compilable?
15658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h. */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 $ac_includes_default
15667 #include <$ac_header>
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15671 (eval $ac_compile) 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag"
15679 || test ! -s conftest.err'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; } &&
15685 { ac_try='test -s conftest.$ac_objext'
15686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15688 ac_status=$?
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15691 ac_header_compiler=yes
15692 else
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 ac_header_compiler=no
15698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15700 echo "${ECHO_T}$ac_header_compiler" >&6
15702 # Is the header present?
15703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h. */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 #include <$ac_header>
15712 _ACEOF
15713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15715 ac_status=$?
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } >/dev/null; then
15721 if test -s conftest.err; then
15722 ac_cpp_err=$ac_c_preproc_warn_flag
15723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15724 else
15725 ac_cpp_err=
15727 else
15728 ac_cpp_err=yes
15730 if test -z "$ac_cpp_err"; then
15731 ac_header_preproc=yes
15732 else
15733 echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15736 ac_header_preproc=no
15738 rm -f conftest.err conftest.$ac_ext
15739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15740 echo "${ECHO_T}$ac_header_preproc" >&6
15742 # So? What about this header?
15743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15744 yes:no: )
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15749 ac_header_preproc=yes
15751 no:yes:* )
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15765 cat <<\_ASBOX
15766 ## ------------------------------------------ ##
15767 ## Report this to the AC_PACKAGE_NAME lists. ##
15768 ## ------------------------------------------ ##
15769 _ASBOX
15771 sed "s/^/$as_me: WARNING: /" >&2
15773 esac
15774 echo "$as_me:$LINENO: checking for $ac_header" >&5
15775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 else
15779 eval "$as_ac_Header=\$ac_header_preproc"
15781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15786 cat >>confdefs.h <<_ACEOF
15787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15788 _ACEOF
15789 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15790 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15791 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <nlist.h>
15803 main ()
15805 static struct nlist ac_aggr;
15806 if (ac_aggr.n_un.n_name)
15807 return 0;
15809 return 0;
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_cv_member_struct_nlist_n_un_n_name=yes
15835 else
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #include <nlist.h>
15848 main ()
15850 static struct nlist ac_aggr;
15851 if (sizeof ac_aggr.n_un.n_name)
15852 return 0;
15854 return 0;
15856 _ACEOF
15857 rm -f conftest.$ac_objext
15858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 (eval $ac_compile) 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } &&
15866 { ac_try='test -z "$ac_c_werror_flag"
15867 || test ! -s conftest.err'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; } &&
15873 { ac_try='test -s conftest.$ac_objext'
15874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_cv_member_struct_nlist_n_un_n_name=yes
15880 else
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_cv_member_struct_nlist_n_un_n_name=no
15886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15890 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15891 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15892 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15894 cat >>confdefs.h <<_ACEOF
15895 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15896 _ACEOF
15899 cat >>confdefs.h <<\_ACEOF
15900 #define NLIST_NAME_UNION 1
15901 _ACEOF
15908 done
15911 done
15914 # Some definitions of getloadavg require that the program be installed setgid.
15915 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15916 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15917 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15927 #ifdef LDAV_PRIVILEGED
15928 Yowza Am I SETGID yet
15929 #endif
15930 _ACEOF
15931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15932 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15933 ac_cv_func_getloadavg_setgid=yes
15934 else
15935 ac_cv_func_getloadavg_setgid=no
15937 rm -f conftest*
15940 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15941 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15942 if test $ac_cv_func_getloadavg_setgid = yes; then
15943 NEED_SETGID=true
15945 cat >>confdefs.h <<\_ACEOF
15946 #define GETLOADAVG_PRIVILEGED 1
15947 _ACEOF
15949 else
15950 NEED_SETGID=false
15953 if test $ac_cv_func_getloadavg_setgid = yes; then
15954 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15955 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15956 if test "${ac_cv_group_kmem+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15960 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15961 # If we got an error (system does not support symlinks), try without -L.
15962 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15963 ac_cv_group_kmem=`echo $ac_ls_output \
15964 | sed -ne 's/[ ][ ]*/ /g;
15965 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15966 / /s/.* //;p;'`
15969 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15970 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15971 KMEM_GROUP=$ac_cv_group_kmem
15973 if test "x$ac_save_LIBS" = x; then
15974 GETLOADAVG_LIBS=$LIBS
15975 else
15976 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15978 LIBS=$ac_save_LIBS
15982 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15983 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15984 if test "${ac_cv_sys_largefile_source+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987 while :; do
15988 ac_cv_sys_largefile_source=no
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 #include <stdio.h>
15997 main ()
15999 return !fseeko;
16001 return 0;
16003 _ACEOF
16004 rm -f conftest.$ac_objext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006 (eval $ac_compile) 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 break
16027 else
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #define _LARGEFILE_SOURCE 1
16040 #include <stdio.h>
16042 main ()
16044 return !fseeko;
16046 return 0;
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>conftest.er1
16052 ac_status=$?
16053 grep -v '^ *+' conftest.er1 >conftest.err
16054 rm -f conftest.er1
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
16058 { ac_try='test -z "$ac_c_werror_flag"
16059 || test ! -s conftest.err'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; } &&
16065 { ac_try='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_cv_sys_largefile_source=1; break
16072 else
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16078 break
16079 done
16081 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16082 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16083 if test "$ac_cv_sys_largefile_source" != no; then
16085 cat >>confdefs.h <<_ACEOF
16086 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16087 _ACEOF
16090 rm -f conftest*
16092 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16093 # in glibc 2.1.3, but that breaks too many other things.
16094 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16095 echo "$as_me:$LINENO: checking for fseeko" >&5
16096 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16097 if test "${ac_cv_func_fseeko+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16099 else
16100 cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h. */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #include <stdio.h>
16108 main ()
16110 return fseeko && fseeko (stdin, 0, 0);
16112 return 0;
16114 _ACEOF
16115 rm -f conftest.$ac_objext conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117 (eval $ac_link) 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest$ac_exeext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_func_fseeko=yes
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_cv_func_fseeko=no
16144 rm -f conftest.err conftest.$ac_objext \
16145 conftest$ac_exeext conftest.$ac_ext
16147 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16148 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16149 if test $ac_cv_func_fseeko = yes; then
16151 cat >>confdefs.h <<\_ACEOF
16152 #define HAVE_FSEEKO 1
16153 _ACEOF
16158 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16159 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16160 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163 # Use it with a single arg.
16164 cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h. */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 $ac_includes_default
16172 main ()
16174 getpgrp (0);
16176 return 0;
16178 _ACEOF
16179 rm -f conftest.$ac_objext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16181 (eval $ac_compile) 2>conftest.er1
16182 ac_status=$?
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -f conftest.er1
16185 cat conftest.err >&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
16188 { ac_try='test -z "$ac_c_werror_flag"
16189 || test ! -s conftest.err'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest.$ac_objext'
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_func_getpgrp_void=no
16202 else
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_cv_func_getpgrp_void=yes
16208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16211 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16212 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16213 if test $ac_cv_func_getpgrp_void = yes; then
16215 cat >>confdefs.h <<\_ACEOF
16216 #define GETPGRP_VOID 1
16217 _ACEOF
16223 for ac_func in strftime
16225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16226 echo "$as_me:$LINENO: checking for $ac_func" >&5
16227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16228 if eval "test \"\${$as_ac_var+set}\" = set"; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16230 else
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h. */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16239 #define $ac_func innocuous_$ac_func
16241 /* System header to define __stub macros and hopefully few prototypes,
16242 which can conflict with char $ac_func (); below.
16243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16244 <limits.h> exists even on freestanding compilers. */
16246 #ifdef __STDC__
16247 # include <limits.h>
16248 #else
16249 # include <assert.h>
16250 #endif
16252 #undef $ac_func
16254 /* Override any gcc2 internal prototype to avoid an error. */
16255 #ifdef __cplusplus
16256 extern "C"
16258 #endif
16259 /* We use char because int might match the return type of a gcc2
16260 builtin and then its argument prototype would still apply. */
16261 char $ac_func ();
16262 /* The GNU C library defines this for functions which it implements
16263 to always fail with ENOSYS. Some functions are actually named
16264 something starting with __ and the normal name is an alias. */
16265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16266 choke me
16267 #else
16268 char (*f) () = $ac_func;
16269 #endif
16270 #ifdef __cplusplus
16272 #endif
16275 main ()
16277 return f != $ac_func;
16279 return 0;
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284 (eval $ac_link) 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest$ac_exeext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 eval "$as_ac_var=yes"
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 eval "$as_ac_var=no"
16311 rm -f conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16316 if test `eval echo '${'$as_ac_var'}'` = yes; then
16317 cat >>confdefs.h <<_ACEOF
16318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16319 _ACEOF
16321 else
16322 # strftime is in -lintl on SCO UNIX.
16323 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16324 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16325 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328 ac_check_lib_save_LIBS=$LIBS
16329 LIBS="-lintl $LIBS"
16330 cat >conftest.$ac_ext <<_ACEOF
16331 /* confdefs.h. */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16337 /* Override any gcc2 internal prototype to avoid an error. */
16338 #ifdef __cplusplus
16339 extern "C"
16340 #endif
16341 /* We use char because int might match the return type of a gcc2
16342 builtin and then its argument prototype would still apply. */
16343 char strftime ();
16345 main ()
16347 strftime ();
16349 return 0;
16351 _ACEOF
16352 rm -f conftest.$ac_objext conftest$ac_exeext
16353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354 (eval $ac_link) 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -z "$ac_c_werror_flag"
16362 || test ! -s conftest.err'
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; } &&
16368 { ac_try='test -s conftest$ac_exeext'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 ac_cv_lib_intl_strftime=yes
16375 else
16376 echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16379 ac_cv_lib_intl_strftime=no
16381 rm -f conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16385 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16386 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16387 if test $ac_cv_lib_intl_strftime = yes; then
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE_STRFTIME 1
16390 _ACEOF
16392 LIBS="-lintl $LIBS"
16396 done
16399 # UNIX98 PTYs.
16401 for ac_func in grantpt
16403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16404 echo "$as_me:$LINENO: checking for $ac_func" >&5
16405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16406 if eval "test \"\${$as_ac_var+set}\" = set"; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16417 #define $ac_func innocuous_$ac_func
16419 /* System header to define __stub macros and hopefully few prototypes,
16420 which can conflict with char $ac_func (); below.
16421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16422 <limits.h> exists even on freestanding compilers. */
16424 #ifdef __STDC__
16425 # include <limits.h>
16426 #else
16427 # include <assert.h>
16428 #endif
16430 #undef $ac_func
16432 /* Override any gcc2 internal prototype to avoid an error. */
16433 #ifdef __cplusplus
16434 extern "C"
16436 #endif
16437 /* We use char because int might match the return type of a gcc2
16438 builtin and then its argument prototype would still apply. */
16439 char $ac_func ();
16440 /* The GNU C library defines this for functions which it implements
16441 to always fail with ENOSYS. Some functions are actually named
16442 something starting with __ and the normal name is an alias. */
16443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16444 choke me
16445 #else
16446 char (*f) () = $ac_func;
16447 #endif
16448 #ifdef __cplusplus
16450 #endif
16453 main ()
16455 return f != $ac_func;
16457 return 0;
16459 _ACEOF
16460 rm -f conftest.$ac_objext conftest$ac_exeext
16461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16462 (eval $ac_link) 2>conftest.er1
16463 ac_status=$?
16464 grep -v '^ *+' conftest.er1 >conftest.err
16465 rm -f conftest.er1
16466 cat conftest.err >&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } &&
16469 { ac_try='test -z "$ac_c_werror_flag"
16470 || test ! -s conftest.err'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16473 ac_status=$?
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; } &&
16476 { ac_try='test -s conftest$ac_exeext'
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 eval "$as_ac_var=yes"
16483 else
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 eval "$as_ac_var=no"
16489 rm -f conftest.err conftest.$ac_objext \
16490 conftest$ac_exeext conftest.$ac_ext
16492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16494 if test `eval echo '${'$as_ac_var'}'` = yes; then
16495 cat >>confdefs.h <<_ACEOF
16496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16497 _ACEOF
16500 done
16503 # PTY-related GNU extensions.
16505 for ac_func in getpt
16507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16508 echo "$as_me:$LINENO: checking for $ac_func" >&5
16509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16510 if eval "test \"\${$as_ac_var+set}\" = set"; then
16511 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 else
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h. */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h. */
16519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16521 #define $ac_func innocuous_$ac_func
16523 /* System header to define __stub macros and hopefully few prototypes,
16524 which can conflict with char $ac_func (); below.
16525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16526 <limits.h> exists even on freestanding compilers. */
16528 #ifdef __STDC__
16529 # include <limits.h>
16530 #else
16531 # include <assert.h>
16532 #endif
16534 #undef $ac_func
16536 /* Override any gcc2 internal prototype to avoid an error. */
16537 #ifdef __cplusplus
16538 extern "C"
16540 #endif
16541 /* We use char because int might match the return type of a gcc2
16542 builtin and then its argument prototype would still apply. */
16543 char $ac_func ();
16544 /* The GNU C library defines this for functions which it implements
16545 to always fail with ENOSYS. Some functions are actually named
16546 something starting with __ and the normal name is an alias. */
16547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16548 choke me
16549 #else
16550 char (*f) () = $ac_func;
16551 #endif
16552 #ifdef __cplusplus
16554 #endif
16557 main ()
16559 return f != $ac_func;
16561 return 0;
16563 _ACEOF
16564 rm -f conftest.$ac_objext conftest$ac_exeext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566 (eval $ac_link) 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag"
16574 || test ! -s conftest.err'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest$ac_exeext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 eval "$as_ac_var=yes"
16587 else
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 eval "$as_ac_var=no"
16593 rm -f conftest.err conftest.$ac_objext \
16594 conftest$ac_exeext conftest.$ac_ext
16596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16598 if test `eval echo '${'$as_ac_var'}'` = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16601 _ACEOF
16604 done
16607 # Check this now, so that we will NOT find the above functions in ncurses.
16608 # That is because we have not set up to link ncurses in lib-src.
16609 # It's better to believe a function is not available
16610 # than to expect to find it in ncurses.
16612 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16613 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16614 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617 ac_check_lib_save_LIBS=$LIBS
16618 LIBS="-lncurses $LIBS"
16619 cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h. */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16626 /* Override any gcc2 internal prototype to avoid an error. */
16627 #ifdef __cplusplus
16628 extern "C"
16629 #endif
16630 /* We use char because int might match the return type of a gcc2
16631 builtin and then its argument prototype would still apply. */
16632 char tparm ();
16634 main ()
16636 tparm ();
16638 return 0;
16640 _ACEOF
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643 (eval $ac_link) 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag"
16651 || test ! -s conftest.err'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest$ac_exeext'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_cv_lib_ncurses_tparm=yes
16664 else
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_cv_lib_ncurses_tparm=no
16670 rm -f conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16674 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16675 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16676 if test $ac_cv_lib_ncurses_tparm = yes; then
16677 cat >>confdefs.h <<_ACEOF
16678 #define HAVE_LIBNCURSES 1
16679 _ACEOF
16681 LIBS="-lncurses $LIBS"
16686 # Do we need the Hesiod library to provide the support routines?
16687 if test "$with_hesiod" = yes ; then
16688 # Don't set $LIBS here -- see comments above.
16689 resolv=no
16690 echo "$as_me:$LINENO: checking for res_send" >&5
16691 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16692 if test "${ac_cv_func_res_send+set}" = set; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 else
16695 cat >conftest.$ac_ext <<_ACEOF
16696 /* confdefs.h. */
16697 _ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16703 #define res_send innocuous_res_send
16705 /* System header to define __stub macros and hopefully few prototypes,
16706 which can conflict with char res_send (); below.
16707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16708 <limits.h> exists even on freestanding compilers. */
16710 #ifdef __STDC__
16711 # include <limits.h>
16712 #else
16713 # include <assert.h>
16714 #endif
16716 #undef res_send
16718 /* Override any gcc2 internal prototype to avoid an error. */
16719 #ifdef __cplusplus
16720 extern "C"
16722 #endif
16723 /* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16725 char res_send ();
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined (__stub_res_send) || defined (__stub___res_send)
16730 choke me
16731 #else
16732 char (*f) () = res_send;
16733 #endif
16734 #ifdef __cplusplus
16736 #endif
16739 main ()
16741 return f != res_send;
16743 return 0;
16745 _ACEOF
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16748 (eval $ac_link) 2>conftest.er1
16749 ac_status=$?
16750 grep -v '^ *+' conftest.er1 >conftest.err
16751 rm -f conftest.er1
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag"
16756 || test ! -s conftest.err'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest$ac_exeext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_cv_func_res_send=yes
16769 else
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_cv_func_res_send=no
16775 rm -f conftest.err conftest.$ac_objext \
16776 conftest$ac_exeext conftest.$ac_ext
16778 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16779 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16780 if test $ac_cv_func_res_send = yes; then
16782 else
16783 echo "$as_me:$LINENO: checking for __res_send" >&5
16784 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16785 if test "${ac_cv_func___res_send+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16796 #define __res_send innocuous___res_send
16798 /* System header to define __stub macros and hopefully few prototypes,
16799 which can conflict with char __res_send (); below.
16800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16801 <limits.h> exists even on freestanding compilers. */
16803 #ifdef __STDC__
16804 # include <limits.h>
16805 #else
16806 # include <assert.h>
16807 #endif
16809 #undef __res_send
16811 /* Override any gcc2 internal prototype to avoid an error. */
16812 #ifdef __cplusplus
16813 extern "C"
16815 #endif
16816 /* We use char because int might match the return type of a gcc2
16817 builtin and then its argument prototype would still apply. */
16818 char __res_send ();
16819 /* The GNU C library defines this for functions which it implements
16820 to always fail with ENOSYS. Some functions are actually named
16821 something starting with __ and the normal name is an alias. */
16822 #if defined (__stub___res_send) || defined (__stub_____res_send)
16823 choke me
16824 #else
16825 char (*f) () = __res_send;
16826 #endif
16827 #ifdef __cplusplus
16829 #endif
16832 main ()
16834 return f != __res_send;
16836 return 0;
16838 _ACEOF
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16841 (eval $ac_link) 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag"
16849 || test ! -s conftest.err'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; } &&
16855 { ac_try='test -s conftest$ac_exeext'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; }; then
16861 ac_cv_func___res_send=yes
16862 else
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16866 ac_cv_func___res_send=no
16868 rm -f conftest.err conftest.$ac_objext \
16869 conftest$ac_exeext conftest.$ac_ext
16871 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16872 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16873 if test $ac_cv_func___res_send = yes; then
16875 else
16876 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16877 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16878 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881 ac_check_lib_save_LIBS=$LIBS
16882 LIBS="-lresolv $LIBS"
16883 cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h. */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16890 /* Override any gcc2 internal prototype to avoid an error. */
16891 #ifdef __cplusplus
16892 extern "C"
16893 #endif
16894 /* We use char because int might match the return type of a gcc2
16895 builtin and then its argument prototype would still apply. */
16896 char res_send ();
16898 main ()
16900 res_send ();
16902 return 0;
16904 _ACEOF
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907 (eval $ac_link) 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_c_werror_flag"
16915 || test ! -s conftest.err'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_lib_resolv_res_send=yes
16928 else
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_cv_lib_resolv_res_send=no
16934 rm -f conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16939 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16940 if test $ac_cv_lib_resolv_res_send = yes; then
16941 resolv=yes
16942 else
16943 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16944 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16945 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 ac_check_lib_save_LIBS=$LIBS
16949 LIBS="-lresolv $LIBS"
16950 cat >conftest.$ac_ext <<_ACEOF
16951 /* confdefs.h. */
16952 _ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h. */
16957 /* Override any gcc2 internal prototype to avoid an error. */
16958 #ifdef __cplusplus
16959 extern "C"
16960 #endif
16961 /* We use char because int might match the return type of a gcc2
16962 builtin and then its argument prototype would still apply. */
16963 char __res_send ();
16965 main ()
16967 __res_send ();
16969 return 0;
16971 _ACEOF
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16974 (eval $ac_link) 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -z "$ac_c_werror_flag"
16982 || test ! -s conftest.err'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16985 ac_status=$?
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; } &&
16988 { ac_try='test -s conftest$ac_exeext'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; }; then
16994 ac_cv_lib_resolv___res_send=yes
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_cv_lib_resolv___res_send=no
17001 rm -f conftest.err conftest.$ac_objext \
17002 conftest$ac_exeext conftest.$ac_ext
17003 LIBS=$ac_check_lib_save_LIBS
17005 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17006 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17007 if test $ac_cv_lib_resolv___res_send = yes; then
17008 resolv=yes
17017 if test "$resolv" = yes ; then
17018 RESOLVLIB=-lresolv
17020 cat >>confdefs.h <<\_ACEOF
17021 #define HAVE_LIBRESOLV 1
17022 _ACEOF
17024 else
17025 RESOLVLIB=
17027 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17028 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17029 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17040 #define hes_getmailhost innocuous_hes_getmailhost
17042 /* System header to define __stub macros and hopefully few prototypes,
17043 which can conflict with char hes_getmailhost (); below.
17044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17045 <limits.h> exists even on freestanding compilers. */
17047 #ifdef __STDC__
17048 # include <limits.h>
17049 #else
17050 # include <assert.h>
17051 #endif
17053 #undef hes_getmailhost
17055 /* Override any gcc2 internal prototype to avoid an error. */
17056 #ifdef __cplusplus
17057 extern "C"
17059 #endif
17060 /* We use char because int might match the return type of a gcc2
17061 builtin and then its argument prototype would still apply. */
17062 char hes_getmailhost ();
17063 /* The GNU C library defines this for functions which it implements
17064 to always fail with ENOSYS. Some functions are actually named
17065 something starting with __ and the normal name is an alias. */
17066 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17067 choke me
17068 #else
17069 char (*f) () = hes_getmailhost;
17070 #endif
17071 #ifdef __cplusplus
17073 #endif
17076 main ()
17078 return f != hes_getmailhost;
17080 return 0;
17082 _ACEOF
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17085 (eval $ac_link) 2>conftest.er1
17086 ac_status=$?
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
17092 { ac_try='test -z "$ac_c_werror_flag"
17093 || test ! -s conftest.err'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest$ac_exeext'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_func_hes_getmailhost=yes
17106 else
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 ac_cv_func_hes_getmailhost=no
17112 rm -f conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17115 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17116 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17117 if test $ac_cv_func_hes_getmailhost = yes; then
17119 else
17120 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17121 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17122 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125 ac_check_lib_save_LIBS=$LIBS
17126 LIBS="-lhesiod $RESOLVLIB $LIBS"
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17134 /* Override any gcc2 internal prototype to avoid an error. */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 /* We use char because int might match the return type of a gcc2
17139 builtin and then its argument prototype would still apply. */
17140 char hes_getmailhost ();
17142 main ()
17144 hes_getmailhost ();
17146 return 0;
17148 _ACEOF
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_lib_hesiod_hes_getmailhost=yes
17172 else
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17176 ac_cv_lib_hesiod_hes_getmailhost=no
17178 rm -f conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180 LIBS=$ac_check_lib_save_LIBS
17182 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17183 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17184 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17186 cat >>confdefs.h <<\_ACEOF
17187 #define HAVE_LIBHESIOD 1
17188 _ACEOF
17190 else
17198 # These tell us which Kerberos-related libraries to use.
17199 if test "${with_kerberos+set}" = set; then
17201 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17202 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17203 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206 ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-lcom_err $LIBS"
17208 cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h. */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any gcc2 internal prototype to avoid an error. */
17216 #ifdef __cplusplus
17217 extern "C"
17218 #endif
17219 /* We use char because int might match the return type of a gcc2
17220 builtin and then its argument prototype would still apply. */
17221 char com_err ();
17223 main ()
17225 com_err ();
17227 return 0;
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 (eval $ac_link) 2>conftest.er1
17233 ac_status=$?
17234 grep -v '^ *+' conftest.er1 >conftest.err
17235 rm -f conftest.er1
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -z "$ac_c_werror_flag"
17240 || test ! -s conftest.err'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_cv_lib_com_err_com_err=yes
17253 else
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_cv_lib_com_err_com_err=no
17259 rm -f conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext conftest.$ac_ext
17261 LIBS=$ac_check_lib_save_LIBS
17263 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17264 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17265 if test $ac_cv_lib_com_err_com_err = yes; then
17266 cat >>confdefs.h <<_ACEOF
17267 #define HAVE_LIBCOM_ERR 1
17268 _ACEOF
17270 LIBS="-lcom_err $LIBS"
17275 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17276 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17277 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280 ac_check_lib_save_LIBS=$LIBS
17281 LIBS="-lk5crypto $LIBS"
17282 cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h. */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17289 /* Override any gcc2 internal prototype to avoid an error. */
17290 #ifdef __cplusplus
17291 extern "C"
17292 #endif
17293 /* We use char because int might match the return type of a gcc2
17294 builtin and then its argument prototype would still apply. */
17295 char mit_des_cbc_encrypt ();
17297 main ()
17299 mit_des_cbc_encrypt ();
17301 return 0;
17303 _ACEOF
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17306 (eval $ac_link) 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag"
17314 || test ! -s conftest.err'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest$ac_exeext'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
17326 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17327 else
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17333 rm -f conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
17335 LIBS=$ac_check_lib_save_LIBS
17337 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17338 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17339 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17340 cat >>confdefs.h <<_ACEOF
17341 #define HAVE_LIBK5CRYPTO 1
17342 _ACEOF
17344 LIBS="-lk5crypto $LIBS"
17349 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17350 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17351 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 else
17354 ac_check_lib_save_LIBS=$LIBS
17355 LIBS="-lcrypto $LIBS"
17356 cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h. */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17363 /* Override any gcc2 internal prototype to avoid an error. */
17364 #ifdef __cplusplus
17365 extern "C"
17366 #endif
17367 /* We use char because int might match the return type of a gcc2
17368 builtin and then its argument prototype would still apply. */
17369 char mit_des_cbc_encrypt ();
17371 main ()
17373 mit_des_cbc_encrypt ();
17375 return 0;
17377 _ACEOF
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17380 (eval $ac_link) 2>conftest.er1
17381 ac_status=$?
17382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag"
17388 || test ! -s conftest.err'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest$ac_exeext'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17401 else
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17407 rm -f conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17409 LIBS=$ac_check_lib_save_LIBS
17411 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17412 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17413 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17414 cat >>confdefs.h <<_ACEOF
17415 #define HAVE_LIBCRYPTO 1
17416 _ACEOF
17418 LIBS="-lcrypto $LIBS"
17423 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17424 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17425 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428 ac_check_lib_save_LIBS=$LIBS
17429 LIBS="-lkrb5 $LIBS"
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h. */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17437 /* Override any gcc2 internal prototype to avoid an error. */
17438 #ifdef __cplusplus
17439 extern "C"
17440 #endif
17441 /* We use char because int might match the return type of a gcc2
17442 builtin and then its argument prototype would still apply. */
17443 char krb5_init_context ();
17445 main ()
17447 krb5_init_context ();
17449 return 0;
17451 _ACEOF
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454 (eval $ac_link) 2>conftest.er1
17455 ac_status=$?
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag"
17462 || test ! -s conftest.err'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest$ac_exeext'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_cv_lib_krb5_krb5_init_context=yes
17475 else
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_cv_lib_krb5_krb5_init_context=no
17481 rm -f conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17485 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17486 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17487 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17488 cat >>confdefs.h <<_ACEOF
17489 #define HAVE_LIBKRB5 1
17490 _ACEOF
17492 LIBS="-lkrb5 $LIBS"
17496 if test "${with_kerberos5+set}" != set; then
17498 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17499 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17500 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503 ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-ldes425 $LIBS"
17505 cat >conftest.$ac_ext <<_ACEOF
17506 /* confdefs.h. */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17512 /* Override any gcc2 internal prototype to avoid an error. */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 /* We use char because int might match the return type of a gcc2
17517 builtin and then its argument prototype would still apply. */
17518 char des_cbc_encrypt ();
17520 main ()
17522 des_cbc_encrypt ();
17524 return 0;
17526 _ACEOF
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>conftest.er1
17530 ac_status=$?
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag"
17537 || test ! -s conftest.err'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 ac_cv_lib_des425_des_cbc_encrypt=yes
17550 else
17551 echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_cv_lib_des425_des_cbc_encrypt=no
17556 rm -f conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17558 LIBS=$ac_check_lib_save_LIBS
17560 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17561 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17562 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17563 cat >>confdefs.h <<_ACEOF
17564 #define HAVE_LIBDES425 1
17565 _ACEOF
17567 LIBS="-ldes425 $LIBS"
17569 else
17571 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17572 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17573 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576 ac_check_lib_save_LIBS=$LIBS
17577 LIBS="-ldes $LIBS"
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17585 /* Override any gcc2 internal prototype to avoid an error. */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 /* We use char because int might match the return type of a gcc2
17590 builtin and then its argument prototype would still apply. */
17591 char des_cbc_encrypt ();
17593 main ()
17595 des_cbc_encrypt ();
17597 return 0;
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_lib_des_des_cbc_encrypt=yes
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_cv_lib_des_des_cbc_encrypt=no
17629 rm -f conftest.err conftest.$ac_objext \
17630 conftest$ac_exeext conftest.$ac_ext
17631 LIBS=$ac_check_lib_save_LIBS
17633 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17634 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17635 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17636 cat >>confdefs.h <<_ACEOF
17637 #define HAVE_LIBDES 1
17638 _ACEOF
17640 LIBS="-ldes $LIBS"
17647 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17648 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17649 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652 ac_check_lib_save_LIBS=$LIBS
17653 LIBS="-lkrb4 $LIBS"
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17661 /* Override any gcc2 internal prototype to avoid an error. */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 /* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17667 char krb_get_cred ();
17669 main ()
17671 krb_get_cred ();
17673 return 0;
17675 _ACEOF
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678 (eval $ac_link) 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag"
17686 || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest$ac_exeext'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 ac_cv_lib_krb4_krb_get_cred=yes
17699 else
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ac_cv_lib_krb4_krb_get_cred=no
17705 rm -f conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
17707 LIBS=$ac_check_lib_save_LIBS
17709 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17710 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17711 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17712 cat >>confdefs.h <<_ACEOF
17713 #define HAVE_LIBKRB4 1
17714 _ACEOF
17716 LIBS="-lkrb4 $LIBS"
17718 else
17720 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17721 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17722 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725 ac_check_lib_save_LIBS=$LIBS
17726 LIBS="-lkrb $LIBS"
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17734 /* Override any gcc2 internal prototype to avoid an error. */
17735 #ifdef __cplusplus
17736 extern "C"
17737 #endif
17738 /* We use char because int might match the return type of a gcc2
17739 builtin and then its argument prototype would still apply. */
17740 char krb_get_cred ();
17742 main ()
17744 krb_get_cred ();
17746 return 0;
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag"
17759 || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_krb_krb_get_cred=yes
17772 else
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_cv_lib_krb_krb_get_cred=no
17778 rm -f conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 LIBS=$ac_check_lib_save_LIBS
17782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17783 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17784 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17785 cat >>confdefs.h <<_ACEOF
17786 #define HAVE_LIBKRB 1
17787 _ACEOF
17789 LIBS="-lkrb $LIBS"
17797 if test "${with_kerberos5+set}" = set; then
17799 for ac_header in krb5.h
17801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17803 echo "$as_me:$LINENO: checking for $ac_header" >&5
17804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17810 else
17811 # Is the header compilable?
17812 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 $ac_includes_default
17821 #include <$ac_header>
17822 _ACEOF
17823 rm -f conftest.$ac_objext
17824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17825 (eval $ac_compile) 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } &&
17832 { ac_try='test -z "$ac_c_werror_flag"
17833 || test ! -s conftest.err'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17836 ac_status=$?
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; } &&
17839 { ac_try='test -s conftest.$ac_objext'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; }; then
17845 ac_header_compiler=yes
17846 else
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ac_header_compiler=no
17852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17854 echo "${ECHO_T}$ac_header_compiler" >&6
17856 # Is the header present?
17857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h. */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 #include <$ac_header>
17866 _ACEOF
17867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } >/dev/null; then
17875 if test -s conftest.err; then
17876 ac_cpp_err=$ac_c_preproc_warn_flag
17877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17878 else
17879 ac_cpp_err=
17881 else
17882 ac_cpp_err=yes
17884 if test -z "$ac_cpp_err"; then
17885 ac_header_preproc=yes
17886 else
17887 echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17890 ac_header_preproc=no
17892 rm -f conftest.err conftest.$ac_ext
17893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17894 echo "${ECHO_T}$ac_header_preproc" >&6
17896 # So? What about this header?
17897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17898 yes:no: )
17899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17903 ac_header_preproc=yes
17905 no:yes:* )
17906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17919 cat <<\_ASBOX
17920 ## ------------------------------------------ ##
17921 ## Report this to the AC_PACKAGE_NAME lists. ##
17922 ## ------------------------------------------ ##
17923 _ASBOX
17925 sed "s/^/$as_me: WARNING: /" >&2
17927 esac
17928 echo "$as_me:$LINENO: checking for $ac_header" >&5
17929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933 eval "$as_ac_Header=\$ac_header_preproc"
17935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17940 cat >>confdefs.h <<_ACEOF
17941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17942 _ACEOF
17946 done
17948 else
17950 for ac_header in des.h
17952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17954 echo "$as_me:$LINENO: checking for $ac_header" >&5
17955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17961 else
17962 # Is the header compilable?
17963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 #include <$ac_header>
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest.$ac_objext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 ac_header_compiler=yes
17997 else
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 ac_header_compiler=no
18003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18005 echo "${ECHO_T}$ac_header_compiler" >&6
18007 # Is the header present?
18008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18010 cat >conftest.$ac_ext <<_ACEOF
18011 /* confdefs.h. */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 #include <$ac_header>
18017 _ACEOF
18018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18020 ac_status=$?
18021 grep -v '^ *+' conftest.er1 >conftest.err
18022 rm -f conftest.er1
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } >/dev/null; then
18026 if test -s conftest.err; then
18027 ac_cpp_err=$ac_c_preproc_warn_flag
18028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18029 else
18030 ac_cpp_err=
18032 else
18033 ac_cpp_err=yes
18035 if test -z "$ac_cpp_err"; then
18036 ac_header_preproc=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_header_preproc=no
18043 rm -f conftest.err conftest.$ac_ext
18044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18045 echo "${ECHO_T}$ac_header_preproc" >&6
18047 # So? What about this header?
18048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18049 yes:no: )
18050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18054 ac_header_preproc=yes
18056 no:yes:* )
18057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18070 cat <<\_ASBOX
18071 ## ------------------------------------------ ##
18072 ## Report this to the AC_PACKAGE_NAME lists. ##
18073 ## ------------------------------------------ ##
18074 _ASBOX
18076 sed "s/^/$as_me: WARNING: /" >&2
18078 esac
18079 echo "$as_me:$LINENO: checking for $ac_header" >&5
18080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084 eval "$as_ac_Header=\$ac_header_preproc"
18086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18091 cat >>confdefs.h <<_ACEOF
18092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18093 _ACEOF
18095 else
18097 for ac_header in kerberosIV/des.h
18099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18101 echo "$as_me:$LINENO: checking for $ac_header" >&5
18102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18108 else
18109 # Is the header compilable?
18110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18112 cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h. */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 $ac_includes_default
18119 #include <$ac_header>
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>conftest.er1
18124 ac_status=$?
18125 grep -v '^ *+' conftest.er1 >conftest.err
18126 rm -f conftest.er1
18127 cat conftest.err >&5
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -z "$ac_c_werror_flag"
18131 || test ! -s conftest.err'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18134 ac_status=$?
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; } &&
18137 { ac_try='test -s conftest.$ac_objext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_header_compiler=yes
18144 else
18145 echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 ac_header_compiler=no
18150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18152 echo "${ECHO_T}$ac_header_compiler" >&6
18154 # Is the header present?
18155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18157 cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h. */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18163 #include <$ac_header>
18164 _ACEOF
18165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18167 ac_status=$?
18168 grep -v '^ *+' conftest.er1 >conftest.err
18169 rm -f conftest.er1
18170 cat conftest.err >&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } >/dev/null; then
18173 if test -s conftest.err; then
18174 ac_cpp_err=$ac_c_preproc_warn_flag
18175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18176 else
18177 ac_cpp_err=
18179 else
18180 ac_cpp_err=yes
18182 if test -z "$ac_cpp_err"; then
18183 ac_header_preproc=yes
18184 else
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 ac_header_preproc=no
18190 rm -f conftest.err conftest.$ac_ext
18191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18192 echo "${ECHO_T}$ac_header_preproc" >&6
18194 # So? What about this header?
18195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18196 yes:no: )
18197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18201 ac_header_preproc=yes
18203 no:yes:* )
18204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18217 cat <<\_ASBOX
18218 ## ------------------------------------------ ##
18219 ## Report this to the AC_PACKAGE_NAME lists. ##
18220 ## ------------------------------------------ ##
18221 _ASBOX
18223 sed "s/^/$as_me: WARNING: /" >&2
18225 esac
18226 echo "$as_me:$LINENO: checking for $ac_header" >&5
18227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 else
18231 eval "$as_ac_Header=\$ac_header_preproc"
18233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18240 _ACEOF
18242 else
18244 for ac_header in kerberos/des.h
18246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18248 echo "$as_me:$LINENO: checking for $ac_header" >&5
18249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18255 else
18256 # Is the header compilable?
18257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 $ac_includes_default
18266 #include <$ac_header>
18267 _ACEOF
18268 rm -f conftest.$ac_objext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 ac_header_compiler=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_compiler=no
18297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18299 echo "${ECHO_T}$ac_header_compiler" >&6
18301 # Is the header present?
18302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h. */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <$ac_header>
18311 _ACEOF
18312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18314 ac_status=$?
18315 grep -v '^ *+' conftest.er1 >conftest.err
18316 rm -f conftest.er1
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } >/dev/null; then
18320 if test -s conftest.err; then
18321 ac_cpp_err=$ac_c_preproc_warn_flag
18322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18323 else
18324 ac_cpp_err=
18326 else
18327 ac_cpp_err=yes
18329 if test -z "$ac_cpp_err"; then
18330 ac_header_preproc=yes
18331 else
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 ac_header_preproc=no
18337 rm -f conftest.err conftest.$ac_ext
18338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18339 echo "${ECHO_T}$ac_header_preproc" >&6
18341 # So? What about this header?
18342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18343 yes:no: )
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18348 ac_header_preproc=yes
18350 no:yes:* )
18351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18364 cat <<\_ASBOX
18365 ## ------------------------------------------ ##
18366 ## Report this to the AC_PACKAGE_NAME lists. ##
18367 ## ------------------------------------------ ##
18368 _ASBOX
18370 sed "s/^/$as_me: WARNING: /" >&2
18372 esac
18373 echo "$as_me:$LINENO: checking for $ac_header" >&5
18374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378 eval "$as_ac_Header=\$ac_header_preproc"
18380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18385 cat >>confdefs.h <<_ACEOF
18386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18387 _ACEOF
18391 done
18395 done
18399 done
18402 for ac_header in krb.h
18404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18406 echo "$as_me:$LINENO: checking for $ac_header" >&5
18407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18413 else
18414 # Is the header compilable?
18415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 $ac_includes_default
18424 #include <$ac_header>
18425 _ACEOF
18426 rm -f conftest.$ac_objext
18427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18428 (eval $ac_compile) 2>conftest.er1
18429 ac_status=$?
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
18435 { ac_try='test -z "$ac_c_werror_flag"
18436 || test ! -s conftest.err'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; } &&
18442 { ac_try='test -s conftest.$ac_objext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_header_compiler=yes
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 ac_header_compiler=no
18455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18457 echo "${ECHO_T}$ac_header_compiler" >&6
18459 # Is the header present?
18460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18462 cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h. */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 #include <$ac_header>
18469 _ACEOF
18470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18472 ac_status=$?
18473 grep -v '^ *+' conftest.er1 >conftest.err
18474 rm -f conftest.er1
18475 cat conftest.err >&5
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); } >/dev/null; then
18478 if test -s conftest.err; then
18479 ac_cpp_err=$ac_c_preproc_warn_flag
18480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18481 else
18482 ac_cpp_err=
18484 else
18485 ac_cpp_err=yes
18487 if test -z "$ac_cpp_err"; then
18488 ac_header_preproc=yes
18489 else
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_header_preproc=no
18495 rm -f conftest.err conftest.$ac_ext
18496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18497 echo "${ECHO_T}$ac_header_preproc" >&6
18499 # So? What about this header?
18500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18501 yes:no: )
18502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18506 ac_header_preproc=yes
18508 no:yes:* )
18509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18522 cat <<\_ASBOX
18523 ## ------------------------------------------ ##
18524 ## Report this to the AC_PACKAGE_NAME lists. ##
18525 ## ------------------------------------------ ##
18526 _ASBOX
18528 sed "s/^/$as_me: WARNING: /" >&2
18530 esac
18531 echo "$as_me:$LINENO: checking for $ac_header" >&5
18532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18535 else
18536 eval "$as_ac_Header=\$ac_header_preproc"
18538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18543 cat >>confdefs.h <<_ACEOF
18544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18545 _ACEOF
18547 else
18549 for ac_header in kerberosIV/krb.h
18551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18553 echo "$as_me:$LINENO: checking for $ac_header" >&5
18554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18560 else
18561 # Is the header compilable?
18562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 $ac_includes_default
18571 #include <$ac_header>
18572 _ACEOF
18573 rm -f conftest.$ac_objext
18574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18575 (eval $ac_compile) 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } &&
18582 { ac_try='test -z "$ac_c_werror_flag"
18583 || test ! -s conftest.err'
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest.$ac_objext'
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; }; then
18595 ac_header_compiler=yes
18596 else
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.$ac_ext >&5
18600 ac_header_compiler=no
18602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18604 echo "${ECHO_T}$ac_header_compiler" >&6
18606 # Is the header present?
18607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18609 cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h. */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 #include <$ac_header>
18616 _ACEOF
18617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } >/dev/null; then
18625 if test -s conftest.err; then
18626 ac_cpp_err=$ac_c_preproc_warn_flag
18627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18628 else
18629 ac_cpp_err=
18631 else
18632 ac_cpp_err=yes
18634 if test -z "$ac_cpp_err"; then
18635 ac_header_preproc=yes
18636 else
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18640 ac_header_preproc=no
18642 rm -f conftest.err conftest.$ac_ext
18643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18644 echo "${ECHO_T}$ac_header_preproc" >&6
18646 # So? What about this header?
18647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18648 yes:no: )
18649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18653 ac_header_preproc=yes
18655 no:yes:* )
18656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18669 cat <<\_ASBOX
18670 ## ------------------------------------------ ##
18671 ## Report this to the AC_PACKAGE_NAME lists. ##
18672 ## ------------------------------------------ ##
18673 _ASBOX
18675 sed "s/^/$as_me: WARNING: /" >&2
18677 esac
18678 echo "$as_me:$LINENO: checking for $ac_header" >&5
18679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18682 else
18683 eval "$as_ac_Header=\$ac_header_preproc"
18685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18690 cat >>confdefs.h <<_ACEOF
18691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18692 _ACEOF
18694 else
18696 for ac_header in kerberos/krb.h
18698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18700 echo "$as_me:$LINENO: checking for $ac_header" >&5
18701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18707 else
18708 # Is the header compilable?
18709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h. */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 $ac_includes_default
18718 #include <$ac_header>
18719 _ACEOF
18720 rm -f conftest.$ac_objext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722 (eval $ac_compile) 2>conftest.er1
18723 ac_status=$?
18724 grep -v '^ *+' conftest.er1 >conftest.err
18725 rm -f conftest.er1
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -z "$ac_c_werror_flag"
18730 || test ! -s conftest.err'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest.$ac_objext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 ac_header_compiler=yes
18743 else
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 ac_header_compiler=no
18749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18751 echo "${ECHO_T}$ac_header_compiler" >&6
18753 # Is the header present?
18754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 #include <$ac_header>
18763 _ACEOF
18764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } >/dev/null; then
18772 if test -s conftest.err; then
18773 ac_cpp_err=$ac_c_preproc_warn_flag
18774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18775 else
18776 ac_cpp_err=
18778 else
18779 ac_cpp_err=yes
18781 if test -z "$ac_cpp_err"; then
18782 ac_header_preproc=yes
18783 else
18784 echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18787 ac_header_preproc=no
18789 rm -f conftest.err conftest.$ac_ext
18790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18791 echo "${ECHO_T}$ac_header_preproc" >&6
18793 # So? What about this header?
18794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18795 yes:no: )
18796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18800 ac_header_preproc=yes
18802 no:yes:* )
18803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18816 cat <<\_ASBOX
18817 ## ------------------------------------------ ##
18818 ## Report this to the AC_PACKAGE_NAME lists. ##
18819 ## ------------------------------------------ ##
18820 _ASBOX
18822 sed "s/^/$as_me: WARNING: /" >&2
18824 esac
18825 echo "$as_me:$LINENO: checking for $ac_header" >&5
18826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 else
18830 eval "$as_ac_Header=\$ac_header_preproc"
18832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18837 cat >>confdefs.h <<_ACEOF
18838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18839 _ACEOF
18843 done
18847 done
18851 done
18855 for ac_header in com_err.h
18857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18859 echo "$as_me:$LINENO: checking for $ac_header" >&5
18860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18866 else
18867 # Is the header compilable?
18868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h. */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 $ac_includes_default
18877 #include <$ac_header>
18878 _ACEOF
18879 rm -f conftest.$ac_objext
18880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18881 (eval $ac_compile) 2>conftest.er1
18882 ac_status=$?
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try='test -z "$ac_c_werror_flag"
18889 || test ! -s conftest.err'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } &&
18895 { ac_try='test -s conftest.$ac_objext'
18896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 ac_header_compiler=yes
18902 else
18903 echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18906 ac_header_compiler=no
18908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18910 echo "${ECHO_T}$ac_header_compiler" >&6
18912 # Is the header present?
18913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18915 cat >conftest.$ac_ext <<_ACEOF
18916 /* confdefs.h. */
18917 _ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 #include <$ac_header>
18922 _ACEOF
18923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } >/dev/null; then
18931 if test -s conftest.err; then
18932 ac_cpp_err=$ac_c_preproc_warn_flag
18933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18934 else
18935 ac_cpp_err=
18937 else
18938 ac_cpp_err=yes
18940 if test -z "$ac_cpp_err"; then
18941 ac_header_preproc=yes
18942 else
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18946 ac_header_preproc=no
18948 rm -f conftest.err conftest.$ac_ext
18949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18950 echo "${ECHO_T}$ac_header_preproc" >&6
18952 # So? What about this header?
18953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18954 yes:no: )
18955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18959 ac_header_preproc=yes
18961 no:yes:* )
18962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18975 cat <<\_ASBOX
18976 ## ------------------------------------------ ##
18977 ## Report this to the AC_PACKAGE_NAME lists. ##
18978 ## ------------------------------------------ ##
18979 _ASBOX
18981 sed "s/^/$as_me: WARNING: /" >&2
18983 esac
18984 echo "$as_me:$LINENO: checking for $ac_header" >&5
18985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988 else
18989 eval "$as_ac_Header=\$ac_header_preproc"
18991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18996 cat >>confdefs.h <<_ACEOF
18997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18998 _ACEOF
19002 done
19006 # Solaris requires -lintl if you want strerror (which calls dgettext)
19007 # to return localized messages.
19009 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19010 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19011 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 ac_check_lib_save_LIBS=$LIBS
19015 LIBS="-lintl $LIBS"
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h. */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19023 /* Override any gcc2 internal prototype to avoid an error. */
19024 #ifdef __cplusplus
19025 extern "C"
19026 #endif
19027 /* We use char because int might match the return type of a gcc2
19028 builtin and then its argument prototype would still apply. */
19029 char dgettext ();
19031 main ()
19033 dgettext ();
19035 return 0;
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040 (eval $ac_link) 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag"
19048 || test ! -s conftest.err'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; } &&
19054 { ac_try='test -s conftest$ac_exeext'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_cv_lib_intl_dgettext=yes
19061 else
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_cv_lib_intl_dgettext=no
19067 rm -f conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19069 LIBS=$ac_check_lib_save_LIBS
19071 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19072 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19073 if test $ac_cv_lib_intl_dgettext = yes; then
19074 cat >>confdefs.h <<_ACEOF
19075 #define HAVE_LIBINTL 1
19076 _ACEOF
19078 LIBS="-lintl $LIBS"
19083 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19084 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19085 if test "${emacs_cv_localtime_cache+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 else
19088 if test x$ac_cv_func_tzset = xyes; then
19089 if test "$cross_compiling" = yes; then
19090 # If we have tzset, assume the worst when cross-compiling.
19091 emacs_cv_localtime_cache=yes
19092 else
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h. */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <time.h>
19100 extern char **environ;
19101 unset_TZ ()
19103 char **from, **to;
19104 for (to = from = environ; (*to = *from); from++)
19105 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19106 to++;
19108 char TZ_GMT0[] = "TZ=GMT0";
19109 char TZ_PST8[] = "TZ=PST8";
19110 main()
19112 time_t now = time ((time_t *) 0);
19113 int hour_GMT0, hour_unset;
19114 if (putenv (TZ_GMT0) != 0)
19115 exit (1);
19116 hour_GMT0 = localtime (&now)->tm_hour;
19117 unset_TZ ();
19118 hour_unset = localtime (&now)->tm_hour;
19119 if (putenv (TZ_PST8) != 0)
19120 exit (1);
19121 if (localtime (&now)->tm_hour == hour_GMT0)
19122 exit (1);
19123 unset_TZ ();
19124 if (localtime (&now)->tm_hour != hour_unset)
19125 exit (1);
19126 exit (0);
19128 _ACEOF
19129 rm -f conftest$ac_exeext
19130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19131 (eval $ac_link) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 emacs_cv_localtime_cache=no
19141 else
19142 echo "$as_me: program exited with status $ac_status" >&5
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ( exit $ac_status )
19147 emacs_cv_localtime_cache=yes
19149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19151 else
19152 # If we lack tzset, report that localtime does not cache TZ,
19153 # since we can't invalidate the cache if we don't have tzset.
19154 emacs_cv_localtime_cache=no
19157 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19158 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19159 if test $emacs_cv_localtime_cache = yes; then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define LOCALTIME_CACHE 1
19163 _ACEOF
19167 if test "x$HAVE_TIMEVAL" = xyes; then
19169 for ac_func in gettimeofday
19171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19172 echo "$as_me:$LINENO: checking for $ac_func" >&5
19173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19174 if eval "test \"\${$as_ac_var+set}\" = set"; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h. */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19185 #define $ac_func innocuous_$ac_func
19187 /* System header to define __stub macros and hopefully few prototypes,
19188 which can conflict with char $ac_func (); below.
19189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19190 <limits.h> exists even on freestanding compilers. */
19192 #ifdef __STDC__
19193 # include <limits.h>
19194 #else
19195 # include <assert.h>
19196 #endif
19198 #undef $ac_func
19200 /* Override any gcc2 internal prototype to avoid an error. */
19201 #ifdef __cplusplus
19202 extern "C"
19204 #endif
19205 /* We use char because int might match the return type of a gcc2
19206 builtin and then its argument prototype would still apply. */
19207 char $ac_func ();
19208 /* The GNU C library defines this for functions which it implements
19209 to always fail with ENOSYS. Some functions are actually named
19210 something starting with __ and the normal name is an alias. */
19211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19212 choke me
19213 #else
19214 char (*f) () = $ac_func;
19215 #endif
19216 #ifdef __cplusplus
19218 #endif
19221 main ()
19223 return f != $ac_func;
19225 return 0;
19227 _ACEOF
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19230 (eval $ac_link) 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag"
19238 || test ! -s conftest.err'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest$ac_exeext'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 eval "$as_ac_var=yes"
19251 else
19252 echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19255 eval "$as_ac_var=no"
19257 rm -f conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19262 if test `eval echo '${'$as_ac_var'}'` = yes; then
19263 cat >>confdefs.h <<_ACEOF
19264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19265 _ACEOF
19268 done
19270 if test $ac_cv_func_gettimeofday = yes; then
19271 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19272 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19273 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h. */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19283 #ifdef TIME_WITH_SYS_TIME
19284 #include <sys/time.h>
19285 #include <time.h>
19286 #else
19287 #ifdef HAVE_SYS_TIME_H
19288 #include <sys/time.h>
19289 #else
19290 #include <time.h>
19291 #endif
19292 #endif
19294 main ()
19296 struct timeval time;
19297 gettimeofday (&time, 0);
19299 return 0;
19301 _ACEOF
19302 rm -f conftest.$ac_objext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19304 (eval $ac_compile) 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest.$ac_objext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 emacs_cv_gettimeofday_two_arguments=yes
19325 else
19326 echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19329 emacs_cv_gettimeofday_two_arguments=no
19331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19333 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19334 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19335 if test $emacs_cv_gettimeofday_two_arguments = no; then
19337 cat >>confdefs.h <<\_ACEOF
19338 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19339 _ACEOF
19345 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19346 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19347 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19348 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351 cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h. */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19357 #include <sys/types.h>
19358 #include <$ac_cv_struct_tm>
19362 main ()
19364 static struct tm ac_aggr;
19365 if (ac_aggr.tm_zone)
19366 return 0;
19368 return 0;
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373 (eval $ac_compile) 2>conftest.er1
19374 ac_status=$?
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_member_struct_tm_tm_zone=yes
19394 else
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h. */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 #include <sys/types.h>
19405 #include <$ac_cv_struct_tm>
19409 main ()
19411 static struct tm ac_aggr;
19412 if (sizeof ac_aggr.tm_zone)
19413 return 0;
19415 return 0;
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19420 (eval $ac_compile) 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag"
19428 || test ! -s conftest.err'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_cv_member_struct_tm_tm_zone=yes
19441 else
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_member_struct_tm_tm_zone=no
19447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19452 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19453 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19455 cat >>confdefs.h <<_ACEOF
19456 #define HAVE_STRUCT_TM_TM_ZONE 1
19457 _ACEOF
19462 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19464 cat >>confdefs.h <<\_ACEOF
19465 #define HAVE_TM_ZONE 1
19466 _ACEOF
19468 else
19469 echo "$as_me:$LINENO: checking for tzname" >&5
19470 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19471 if test "${ac_cv_var_tzname+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h. */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 #include <time.h>
19481 #ifndef tzname /* For SGI. */
19482 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19483 #endif
19486 main ()
19488 atoi(*tzname);
19490 return 0;
19492 _ACEOF
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag"
19503 || test ! -s conftest.err'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest$ac_exeext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_cv_var_tzname=yes
19516 else
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 ac_cv_var_tzname=no
19522 rm -f conftest.err conftest.$ac_objext \
19523 conftest$ac_exeext conftest.$ac_ext
19525 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19526 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19527 if test $ac_cv_var_tzname = yes; then
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_TZNAME 1
19531 _ACEOF
19537 if test "$ac_cv_func_gettimeofday" = yes; then
19538 echo "$as_me:$LINENO: checking for struct timezone" >&5
19539 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19540 if test "${emacs_cv_struct_timezone+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543 cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h. */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19549 #include <sys/time.h>
19551 main ()
19553 struct timezone tz;
19555 return 0;
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560 (eval $ac_compile) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_c_werror_flag"
19568 || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 if test "$cross_compiling" = yes; then
19581 emacs_cv_struct_timezone=yes
19582 else
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h. */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19590 #ifdef TIME_WITH_SYS_TIME
19591 #include <sys/time.h>
19592 #include <time.h>
19593 #else
19594 #ifdef HAVE_SYS_TIME_H
19595 #include <sys/time.h>
19596 #else
19597 #include <time.h>
19598 #endif
19599 #endif
19600 main () {
19601 struct timeval time;
19602 struct timezone dummy;
19603 exit (gettimeofday (&time, &dummy));
19605 _ACEOF
19606 rm -f conftest$ac_exeext
19607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19608 (eval $ac_link) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 emacs_cv_struct_timezone=yes
19618 else
19619 echo "$as_me: program exited with status $ac_status" >&5
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ( exit $ac_status )
19624 emacs_cv_struct_timezone=no
19626 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19628 else
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 emacs_cv_struct_timezone=no
19634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19636 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19637 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19640 ok_so_far=yes
19641 echo "$as_me:$LINENO: checking for socket" >&5
19642 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19643 if test "${ac_cv_func_socket+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19654 #define socket innocuous_socket
19656 /* System header to define __stub macros and hopefully few prototypes,
19657 which can conflict with char socket (); below.
19658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659 <limits.h> exists even on freestanding compilers. */
19661 #ifdef __STDC__
19662 # include <limits.h>
19663 #else
19664 # include <assert.h>
19665 #endif
19667 #undef socket
19669 /* Override any gcc2 internal prototype to avoid an error. */
19670 #ifdef __cplusplus
19671 extern "C"
19673 #endif
19674 /* We use char because int might match the return type of a gcc2
19675 builtin and then its argument prototype would still apply. */
19676 char socket ();
19677 /* The GNU C library defines this for functions which it implements
19678 to always fail with ENOSYS. Some functions are actually named
19679 something starting with __ and the normal name is an alias. */
19680 #if defined (__stub_socket) || defined (__stub___socket)
19681 choke me
19682 #else
19683 char (*f) () = socket;
19684 #endif
19685 #ifdef __cplusplus
19687 #endif
19690 main ()
19692 return f != socket;
19694 return 0;
19696 _ACEOF
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699 (eval $ac_link) 2>conftest.er1
19700 ac_status=$?
19701 grep -v '^ *+' conftest.er1 >conftest.err
19702 rm -f conftest.er1
19703 cat conftest.err >&5
19704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705 (exit $ac_status); } &&
19706 { ac_try='test -z "$ac_c_werror_flag"
19707 || test ! -s conftest.err'
19708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709 (eval $ac_try) 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest$ac_exeext'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19716 ac_status=$?
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19719 ac_cv_func_socket=yes
19720 else
19721 echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19724 ac_cv_func_socket=no
19726 rm -f conftest.err conftest.$ac_objext \
19727 conftest$ac_exeext conftest.$ac_ext
19729 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19730 echo "${ECHO_T}$ac_cv_func_socket" >&6
19731 if test $ac_cv_func_socket = yes; then
19733 else
19734 ok_so_far=no
19737 if test $ok_so_far = yes; then
19738 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19739 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19740 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19741 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19745 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19746 else
19747 # Is the header compilable?
19748 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19749 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h. */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 $ac_includes_default
19757 #include <netinet/in.h>
19758 _ACEOF
19759 rm -f conftest.$ac_objext
19760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19761 (eval $ac_compile) 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag"
19769 || test ! -s conftest.err'
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_header_compiler=yes
19782 else
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_header_compiler=no
19788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19790 echo "${ECHO_T}$ac_header_compiler" >&6
19792 # Is the header present?
19793 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19794 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19796 /* confdefs.h. */
19797 _ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 #include <netinet/in.h>
19802 _ACEOF
19803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null; then
19811 if test -s conftest.err; then
19812 ac_cpp_err=$ac_c_preproc_warn_flag
19813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19814 else
19815 ac_cpp_err=
19817 else
19818 ac_cpp_err=yes
19820 if test -z "$ac_cpp_err"; then
19821 ac_header_preproc=yes
19822 else
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_header_preproc=no
19828 rm -f conftest.err conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19830 echo "${ECHO_T}$ac_header_preproc" >&6
19832 # So? What about this header?
19833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19834 yes:no: )
19835 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19836 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19838 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19839 ac_header_preproc=yes
19841 no:yes:* )
19842 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19843 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19844 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19845 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19847 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19849 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19851 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19853 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19855 cat <<\_ASBOX
19856 ## ------------------------------------------ ##
19857 ## Report this to the AC_PACKAGE_NAME lists. ##
19858 ## ------------------------------------------ ##
19859 _ASBOX
19861 sed "s/^/$as_me: WARNING: /" >&2
19863 esac
19864 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19865 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19866 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869 ac_cv_header_netinet_in_h=$ac_header_preproc
19871 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19872 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19875 if test $ac_cv_header_netinet_in_h = yes; then
19877 else
19878 ok_so_far=no
19883 if test $ok_so_far = yes; then
19884 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19885 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19886 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19887 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19890 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19891 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19892 else
19893 # Is the header compilable?
19894 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19895 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 $ac_includes_default
19903 #include <arpa/inet.h>
19904 _ACEOF
19905 rm -f conftest.$ac_objext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19907 (eval $ac_compile) 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try='test -z "$ac_c_werror_flag"
19915 || test ! -s conftest.err'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest.$ac_objext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_header_compiler=yes
19928 else
19929 echo "$as_me: failed program was:" >&5
19930 sed 's/^/| /' conftest.$ac_ext >&5
19932 ac_header_compiler=no
19934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19936 echo "${ECHO_T}$ac_header_compiler" >&6
19938 # Is the header present?
19939 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19940 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h. */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <arpa/inet.h>
19948 _ACEOF
19949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19951 ac_status=$?
19952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } >/dev/null; then
19957 if test -s conftest.err; then
19958 ac_cpp_err=$ac_c_preproc_warn_flag
19959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19960 else
19961 ac_cpp_err=
19963 else
19964 ac_cpp_err=yes
19966 if test -z "$ac_cpp_err"; then
19967 ac_header_preproc=yes
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ac_header_preproc=no
19974 rm -f conftest.err conftest.$ac_ext
19975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19976 echo "${ECHO_T}$ac_header_preproc" >&6
19978 # So? What about this header?
19979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19980 yes:no: )
19981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19982 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19984 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19985 ac_header_preproc=yes
19987 no:yes:* )
19988 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19989 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19991 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19993 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19995 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19997 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19999 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20001 cat <<\_ASBOX
20002 ## ------------------------------------------ ##
20003 ## Report this to the AC_PACKAGE_NAME lists. ##
20004 ## ------------------------------------------ ##
20005 _ASBOX
20007 sed "s/^/$as_me: WARNING: /" >&2
20009 esac
20010 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20011 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015 ac_cv_header_arpa_inet_h=$ac_header_preproc
20017 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20018 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20021 if test $ac_cv_header_arpa_inet_h = yes; then
20023 else
20024 ok_so_far=no
20029 if test $ok_so_far = yes; then
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_INET_SOCKETS 1
20033 _ACEOF
20038 for ac_header in sys/ioctl.h
20040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20042 echo "$as_me:$LINENO: checking for $ac_header" >&5
20043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20049 else
20050 # Is the header compilable?
20051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 $ac_includes_default
20060 #include <$ac_header>
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
20071 { ac_try='test -z "$ac_c_werror_flag"
20072 || test ! -s conftest.err'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; } &&
20078 { ac_try='test -s conftest.$ac_objext'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; }; then
20084 ac_header_compiler=yes
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20089 ac_header_compiler=no
20091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20093 echo "${ECHO_T}$ac_header_compiler" >&6
20095 # Is the header present?
20096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 #include <$ac_header>
20105 _ACEOF
20106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20108 ac_status=$?
20109 grep -v '^ *+' conftest.er1 >conftest.err
20110 rm -f conftest.er1
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } >/dev/null; then
20114 if test -s conftest.err; then
20115 ac_cpp_err=$ac_c_preproc_warn_flag
20116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20117 else
20118 ac_cpp_err=
20120 else
20121 ac_cpp_err=yes
20123 if test -z "$ac_cpp_err"; then
20124 ac_header_preproc=yes
20125 else
20126 echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129 ac_header_preproc=no
20131 rm -f conftest.err conftest.$ac_ext
20132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20133 echo "${ECHO_T}$ac_header_preproc" >&6
20135 # So? What about this header?
20136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20137 yes:no: )
20138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20142 ac_header_preproc=yes
20144 no:yes:* )
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20158 cat <<\_ASBOX
20159 ## ------------------------------------------ ##
20160 ## Report this to the AC_PACKAGE_NAME lists. ##
20161 ## ------------------------------------------ ##
20162 _ASBOX
20164 sed "s/^/$as_me: WARNING: /" >&2
20166 esac
20167 echo "$as_me:$LINENO: checking for $ac_header" >&5
20168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172 eval "$as_ac_Header=\$ac_header_preproc"
20174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20179 cat >>confdefs.h <<_ACEOF
20180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20181 _ACEOF
20185 done
20188 if test -f /usr/lpp/X11/bin/smt.exp; then
20190 cat >>confdefs.h <<\_ACEOF
20191 #define HAVE_AIX_SMT_EXP 1
20192 _ACEOF
20196 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20197 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20198 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20199 echo "$as_me:$LINENO: result: yes" >&5
20200 echo "${ECHO_T}yes" >&6
20202 cat >>confdefs.h <<\_ACEOF
20203 #define HAVE_DEV_PTMX 1
20204 _ACEOF
20206 else
20207 echo "$as_me:$LINENO: result: no" >&5
20208 echo "${ECHO_T}no" >&6
20211 echo "$as_me:$LINENO: checking for pid_t" >&5
20212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20213 if test "${ac_cv_type_pid_t+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216 cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h. */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 $ac_includes_default
20224 main ()
20226 if ((pid_t *) 0)
20227 return 0;
20228 if (sizeof (pid_t))
20229 return 0;
20231 return 0;
20233 _ACEOF
20234 rm -f conftest.$ac_objext
20235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20236 (eval $ac_compile) 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
20243 { ac_try='test -z "$ac_c_werror_flag"
20244 || test ! -s conftest.err'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; } &&
20250 { ac_try='test -s conftest.$ac_objext'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_cv_type_pid_t=yes
20257 else
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_cv_type_pid_t=no
20263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20265 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20267 if test $ac_cv_type_pid_t = yes; then
20269 else
20271 cat >>confdefs.h <<_ACEOF
20272 #define pid_t int
20273 _ACEOF
20279 for ac_header in unistd.h vfork.h
20281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20283 echo "$as_me:$LINENO: checking for $ac_header" >&5
20284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20290 else
20291 # Is the header compilable?
20292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 $ac_includes_default
20301 #include <$ac_header>
20302 _ACEOF
20303 rm -f conftest.$ac_objext
20304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20305 (eval $ac_compile) 2>conftest.er1
20306 ac_status=$?
20307 grep -v '^ *+' conftest.er1 >conftest.err
20308 rm -f conftest.er1
20309 cat conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } &&
20312 { ac_try='test -z "$ac_c_werror_flag"
20313 || test ! -s conftest.err'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest.$ac_objext'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_header_compiler=yes
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_header_compiler=no
20332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20334 echo "${ECHO_T}$ac_header_compiler" >&6
20336 # Is the header present?
20337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20339 cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h. */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20345 #include <$ac_header>
20346 _ACEOF
20347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } >/dev/null; then
20355 if test -s conftest.err; then
20356 ac_cpp_err=$ac_c_preproc_warn_flag
20357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20358 else
20359 ac_cpp_err=
20361 else
20362 ac_cpp_err=yes
20364 if test -z "$ac_cpp_err"; then
20365 ac_header_preproc=yes
20366 else
20367 echo "$as_me: failed program was:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20370 ac_header_preproc=no
20372 rm -f conftest.err conftest.$ac_ext
20373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20374 echo "${ECHO_T}$ac_header_preproc" >&6
20376 # So? What about this header?
20377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20378 yes:no: )
20379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20383 ac_header_preproc=yes
20385 no:yes:* )
20386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20399 cat <<\_ASBOX
20400 ## ------------------------------------------ ##
20401 ## Report this to the AC_PACKAGE_NAME lists. ##
20402 ## ------------------------------------------ ##
20403 _ASBOX
20405 sed "s/^/$as_me: WARNING: /" >&2
20407 esac
20408 echo "$as_me:$LINENO: checking for $ac_header" >&5
20409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413 eval "$as_ac_Header=\$ac_header_preproc"
20415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20420 cat >>confdefs.h <<_ACEOF
20421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20422 _ACEOF
20426 done
20430 for ac_func in fork vfork
20432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20433 echo "$as_me:$LINENO: checking for $ac_func" >&5
20434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20435 if eval "test \"\${$as_ac_var+set}\" = set"; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438 cat >conftest.$ac_ext <<_ACEOF
20439 /* confdefs.h. */
20440 _ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20446 #define $ac_func innocuous_$ac_func
20448 /* System header to define __stub macros and hopefully few prototypes,
20449 which can conflict with char $ac_func (); below.
20450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20451 <limits.h> exists even on freestanding compilers. */
20453 #ifdef __STDC__
20454 # include <limits.h>
20455 #else
20456 # include <assert.h>
20457 #endif
20459 #undef $ac_func
20461 /* Override any gcc2 internal prototype to avoid an error. */
20462 #ifdef __cplusplus
20463 extern "C"
20465 #endif
20466 /* We use char because int might match the return type of a gcc2
20467 builtin and then its argument prototype would still apply. */
20468 char $ac_func ();
20469 /* The GNU C library defines this for functions which it implements
20470 to always fail with ENOSYS. Some functions are actually named
20471 something starting with __ and the normal name is an alias. */
20472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20473 choke me
20474 #else
20475 char (*f) () = $ac_func;
20476 #endif
20477 #ifdef __cplusplus
20479 #endif
20482 main ()
20484 return f != $ac_func;
20486 return 0;
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20491 (eval $ac_link) 2>conftest.er1
20492 ac_status=$?
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_c_werror_flag"
20499 || test ! -s conftest.err'
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } &&
20505 { ac_try='test -s conftest$ac_exeext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 eval "$as_ac_var=yes"
20512 else
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 eval "$as_ac_var=no"
20518 rm -f conftest.err conftest.$ac_objext \
20519 conftest$ac_exeext conftest.$ac_ext
20521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20523 if test `eval echo '${'$as_ac_var'}'` = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20526 _ACEOF
20529 done
20531 if test "x$ac_cv_func_fork" = xyes; then
20532 echo "$as_me:$LINENO: checking for working fork" >&5
20533 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20534 if test "${ac_cv_func_fork_works+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537 if test "$cross_compiling" = yes; then
20538 ac_cv_func_fork_works=cross
20539 else
20540 cat >conftest.$ac_ext <<_ACEOF
20541 /* By Ruediger Kuhlmann. */
20542 #include <sys/types.h>
20543 #if HAVE_UNISTD_H
20544 # include <unistd.h>
20545 #endif
20546 /* Some systems only have a dummy stub for fork() */
20547 int main ()
20549 if (fork() < 0)
20550 exit (1);
20551 exit (0);
20553 _ACEOF
20554 rm -f conftest$ac_exeext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20556 (eval $ac_link) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; }; then
20565 ac_cv_func_fork_works=yes
20566 else
20567 echo "$as_me: program exited with status $ac_status" >&5
20568 echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ( exit $ac_status )
20572 ac_cv_func_fork_works=no
20574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20577 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20578 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20580 else
20581 ac_cv_func_fork_works=$ac_cv_func_fork
20583 if test "x$ac_cv_func_fork_works" = xcross; then
20584 case $host in
20585 *-*-amigaos* | *-*-msdosdjgpp*)
20586 # Override, as these systems have only a dummy fork() stub
20587 ac_cv_func_fork_works=no
20590 ac_cv_func_fork_works=yes
20592 esac
20593 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20594 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20596 ac_cv_func_vfork_works=$ac_cv_func_vfork
20597 if test "x$ac_cv_func_vfork" = xyes; then
20598 echo "$as_me:$LINENO: checking for working vfork" >&5
20599 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20600 if test "${ac_cv_func_vfork_works+set}" = set; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603 if test "$cross_compiling" = yes; then
20604 ac_cv_func_vfork_works=cross
20605 else
20606 cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h. */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 /* Thanks to Paul Eggert for this test. */
20613 #include <stdio.h>
20614 #include <stdlib.h>
20615 #include <sys/types.h>
20616 #include <sys/stat.h>
20617 #include <sys/wait.h>
20618 #if HAVE_UNISTD_H
20619 # include <unistd.h>
20620 #endif
20621 #if HAVE_VFORK_H
20622 # include <vfork.h>
20623 #endif
20624 /* On some sparc systems, changes by the child to local and incoming
20625 argument registers are propagated back to the parent. The compiler
20626 is told about this with #include <vfork.h>, but some compilers
20627 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20628 static variable whose address is put into a register that is
20629 clobbered by the vfork. */
20630 static void
20631 #ifdef __cplusplus
20632 sparc_address_test (int arg)
20633 # else
20634 sparc_address_test (arg) int arg;
20635 #endif
20637 static pid_t child;
20638 if (!child) {
20639 child = vfork ();
20640 if (child < 0) {
20641 perror ("vfork");
20642 _exit(2);
20644 if (!child) {
20645 arg = getpid();
20646 write(-1, "", 0);
20647 _exit (arg);
20653 main ()
20655 pid_t parent = getpid ();
20656 pid_t child;
20658 sparc_address_test (0);
20660 child = vfork ();
20662 if (child == 0) {
20663 /* Here is another test for sparc vfork register problems. This
20664 test uses lots of local variables, at least as many local
20665 variables as main has allocated so far including compiler
20666 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20667 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20668 reuse the register of parent for one of the local variables,
20669 since it will think that parent can't possibly be used any more
20670 in this routine. Assigning to the local variable will thus
20671 munge parent in the parent process. */
20672 pid_t
20673 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20674 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20675 /* Convince the compiler that p..p7 are live; otherwise, it might
20676 use the same hardware register for all 8 local variables. */
20677 if (p != p1 || p != p2 || p != p3 || p != p4
20678 || p != p5 || p != p6 || p != p7)
20679 _exit(1);
20681 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20682 from child file descriptors. If the child closes a descriptor
20683 before it execs or exits, this munges the parent's descriptor
20684 as well. Test for this by closing stdout in the child. */
20685 _exit(close(fileno(stdout)) != 0);
20686 } else {
20687 int status;
20688 struct stat st;
20690 while (wait(&status) != child)
20692 exit(
20693 /* Was there some problem with vforking? */
20694 child < 0
20696 /* Did the child fail? (This shouldn't happen.) */
20697 || status
20699 /* Did the vfork/compiler bug occur? */
20700 || parent != getpid()
20702 /* Did the file descriptor bug occur? */
20703 || fstat(fileno(stdout), &st) != 0
20707 _ACEOF
20708 rm -f conftest$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710 (eval $ac_link) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_cv_func_vfork_works=yes
20720 else
20721 echo "$as_me: program exited with status $ac_status" >&5
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ( exit $ac_status )
20726 ac_cv_func_vfork_works=no
20728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20731 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20732 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20735 if test "x$ac_cv_func_fork_works" = xcross; then
20736 ac_cv_func_vfork_works=$ac_cv_func_vfork
20737 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20738 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20741 if test "x$ac_cv_func_vfork_works" = xyes; then
20743 cat >>confdefs.h <<\_ACEOF
20744 #define HAVE_WORKING_VFORK 1
20745 _ACEOF
20747 else
20749 cat >>confdefs.h <<\_ACEOF
20750 #define vfork fork
20751 _ACEOF
20754 if test "x$ac_cv_func_fork_works" = xyes; then
20756 cat >>confdefs.h <<\_ACEOF
20757 #define HAVE_WORKING_FORK 1
20758 _ACEOF
20763 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20764 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20765 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768 cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h. */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 #include <langinfo.h>
20776 main ()
20778 char* cs = nl_langinfo(CODESET);
20780 return 0;
20782 _ACEOF
20783 rm -f conftest.$ac_objext conftest$ac_exeext
20784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>conftest.er1
20786 ac_status=$?
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try='test -z "$ac_c_werror_flag"
20793 || test ! -s conftest.err'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest$ac_exeext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 emacs_cv_langinfo_codeset=yes
20806 else
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20810 emacs_cv_langinfo_codeset=no
20812 rm -f conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20817 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20818 if test $emacs_cv_langinfo_codeset = yes; then
20820 cat >>confdefs.h <<\_ACEOF
20821 #define HAVE_LANGINFO_CODESET 1
20822 _ACEOF
20826 echo "$as_me:$LINENO: checking for size_t" >&5
20827 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20828 if test "${ac_cv_type_size_t+set}" = set; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20830 else
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h. */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 $ac_includes_default
20839 main ()
20841 if ((size_t *) 0)
20842 return 0;
20843 if (sizeof (size_t))
20844 return 0;
20846 return 0;
20848 _ACEOF
20849 rm -f conftest.$ac_objext
20850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20851 (eval $ac_compile) 2>conftest.er1
20852 ac_status=$?
20853 grep -v '^ *+' conftest.er1 >conftest.err
20854 rm -f conftest.er1
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } &&
20858 { ac_try='test -z "$ac_c_werror_flag"
20859 || test ! -s conftest.err'
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; } &&
20865 { ac_try='test -s conftest.$ac_objext'
20866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867 (eval $ac_try) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; }; then
20871 ac_cv_type_size_t=yes
20872 else
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20876 ac_cv_type_size_t=no
20878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20880 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20881 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20882 if test $ac_cv_type_size_t = yes; then
20884 cat >>confdefs.h <<_ACEOF
20885 #define HAVE_SIZE_T 1
20886 _ACEOF
20892 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20893 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20894 if test "${ac_cv_type_mbstate_t+set}" = set; then
20895 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 else
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h. */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 $ac_includes_default
20904 # include <wchar.h>
20906 main ()
20908 mbstate_t x; return sizeof x;
20910 return 0;
20912 _ACEOF
20913 rm -f conftest.$ac_objext
20914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20915 (eval $ac_compile) 2>conftest.er1
20916 ac_status=$?
20917 grep -v '^ *+' conftest.er1 >conftest.err
20918 rm -f conftest.er1
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
20922 { ac_try='test -z "$ac_c_werror_flag"
20923 || test ! -s conftest.err'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest.$ac_objext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ac_cv_type_mbstate_t=yes
20936 else
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_type_mbstate_t=no
20942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20944 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20945 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20946 if test $ac_cv_type_mbstate_t = yes; then
20948 cat >>confdefs.h <<\_ACEOF
20949 #define HAVE_MBSTATE_T 1
20950 _ACEOF
20952 else
20954 cat >>confdefs.h <<\_ACEOF
20955 #define mbstate_t int
20956 _ACEOF
20960 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20961 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20962 if test "${emacs_cv_c_restrict+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 void fred (int *restrict x);
20973 main ()
20977 return 0;
20979 _ACEOF
20980 rm -f conftest.$ac_objext
20981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20982 (eval $ac_compile) 2>conftest.er1
20983 ac_status=$?
20984 grep -v '^ *+' conftest.er1 >conftest.err
20985 rm -f conftest.er1
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_c_werror_flag"
20990 || test ! -s conftest.err'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; } &&
20996 { ac_try='test -s conftest.$ac_objext'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; }; then
21002 emacs_cv_c_restrict=yes
21003 else
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 cat >conftest.$ac_ext <<_ACEOF
21008 /* confdefs.h. */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h. */
21013 void fred (int *__restrict x);
21015 main ()
21019 return 0;
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024 (eval $ac_compile) 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
21031 { ac_try='test -z "$ac_c_werror_flag"
21032 || test ! -s conftest.err'
21033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034 (eval $ac_try) 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); }; } &&
21038 { ac_try='test -s conftest.$ac_objext'
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; }; then
21044 emacs_cv_c_restrict=__restrict
21045 else
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 emacs_cv_c_restrict=no
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21055 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21056 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21057 case "$emacs_cv_c_restrict" in
21058 yes) emacs_restrict=restrict;;
21059 no) emacs_restrict="";;
21060 *) emacs_restrict="$emacs_cv_c_restrict";;
21061 esac
21062 if test "$emacs_restrict" != __restrict; then
21064 cat >>confdefs.h <<_ACEOF
21065 #define __restrict $emacs_restrict
21066 _ACEOF
21070 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21071 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21072 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h. */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 void fred (int x[__restrict]);
21083 main ()
21087 return 0;
21089 _ACEOF
21090 rm -f conftest.$ac_objext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21092 (eval $ac_compile) 2>conftest.er1
21093 ac_status=$?
21094 grep -v '^ *+' conftest.er1 >conftest.err
21095 rm -f conftest.er1
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
21099 { ac_try='test -z "$ac_c_werror_flag"
21100 || test ! -s conftest.err'
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest.$ac_objext'
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 emacs_cv_c_restrict_arr=yes
21113 else
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 emacs_cv_c_restrict_arr=no
21119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21121 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21122 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21123 if test "$emacs_cv_c_restrict_arr" = yes; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define __restrict_arr __restrict
21127 _ACEOF
21133 # Set up the CFLAGS for real compilation, so we can substitute it.
21134 CFLAGS="$REAL_CFLAGS"
21135 CPPFLAGS="$REAL_CPPFLAGS"
21137 #### Find out which version of Emacs this is.
21138 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21139 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21140 if test x"${version}" = x; then
21141 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21142 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21143 { (exit 1); exit 1; }; }
21146 ### Specify what sort of things we'll be editing into Makefile and config.h.
21147 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21183 cat >>confdefs.h <<_ACEOF
21184 #define EMACS_CONFIGURATION "${canonical}"
21185 _ACEOF
21188 cat >>confdefs.h <<_ACEOF
21189 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21190 _ACEOF
21193 cat >>confdefs.h <<_ACEOF
21194 #define config_machfile "${machfile}"
21195 _ACEOF
21198 cat >>confdefs.h <<_ACEOF
21199 #define config_opsysfile "${opsysfile}"
21200 _ACEOF
21203 cat >>confdefs.h <<_ACEOF
21204 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21205 _ACEOF
21208 cat >>confdefs.h <<_ACEOF
21209 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21210 _ACEOF
21213 cat >>confdefs.h <<_ACEOF
21214 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21215 _ACEOF
21218 cat >>confdefs.h <<_ACEOF
21219 #define UNEXEC_SRC ${UNEXEC_SRC}
21220 _ACEOF
21223 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21225 cat >>confdefs.h <<\_ACEOF
21226 #define HAVE_X_WINDOWS 1
21227 _ACEOF
21230 if test "${USE_X_TOOLKIT}" != "none" ; then
21232 cat >>confdefs.h <<\_ACEOF
21233 #define USE_X_TOOLKIT 1
21234 _ACEOF
21237 if test "${HAVE_X11}" = "yes" ; then
21239 cat >>confdefs.h <<\_ACEOF
21240 #define HAVE_X11 1
21241 _ACEOF
21244 if test "${HAVE_XFREE386}" = "yes" ; then
21246 cat >>confdefs.h <<\_ACEOF
21247 #define HAVE_XFREE386 1
21248 _ACEOF
21251 if test "${HAVE_MENUS}" = "yes" ; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_MENUS 1
21255 _ACEOF
21258 if test "${GNU_MALLOC}" = "yes" ; then
21260 cat >>confdefs.h <<\_ACEOF
21261 #define GNU_MALLOC 1
21262 _ACEOF
21265 if test "${REL_ALLOC}" = "yes" ; then
21267 cat >>confdefs.h <<\_ACEOF
21268 #define REL_ALLOC 1
21269 _ACEOF
21277 #### Report on what we decided to do.
21278 #### Report GTK as a toolkit, even if it doesn't use Xt.
21279 #### It makes printing result more understandable as using GTK sets
21280 #### toolkit_scroll_bars to yes by default.
21281 if test "${HAVE_GTK}" = "yes"; then
21282 USE_X_TOOLKIT=GTK
21285 echo "
21286 Configured for \`${canonical}'.
21288 Where should the build process find the source code? ${srcdir}
21289 What operating system and machine description files should Emacs use?
21290 \`${opsysfile}' and \`${machfile}'
21291 What compiler should emacs be built with? ${CC} ${CFLAGS}
21292 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21293 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21294 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21295 What window system should Emacs use? ${window_system}
21296 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21298 if test -n "${x_includes}"; then
21299 echo " Where do we find X Windows header files? ${x_includes}"
21300 else
21301 echo " Where do we find X Windows header files? Standard dirs"
21303 if test -n "${x_libraries}"; then
21304 echo " Where do we find X Windows libraries? ${x_libraries}"
21305 else
21306 echo " Where do we find X Windows libraries? Standard dirs"
21309 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21310 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21311 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21312 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21313 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21314 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21315 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21316 echo
21318 # Remove any trailing slashes in these variables.
21319 test "${prefix}" != NONE &&
21320 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21321 test "${exec_prefix}" != NONE &&
21322 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21324 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21325 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21326 ## from Makefile.c can correctly provide the arg `-traditional' to the
21327 ## C preprocessor.
21329 cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h. */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h. */
21335 yes..yes
21336 _ACEOF
21337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21338 $EGREP "yes..yes" >/dev/null 2>&1; then
21339 CPP_NEED_TRADITIONAL=no
21340 else
21341 CPP_NEED_TRADITIONAL=yes
21343 rm -f conftest*
21346 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"
21347 ac_config_commands="$ac_config_commands default"
21348 cat >confcache <<\_ACEOF
21349 # This file is a shell script that caches the results of configure
21350 # tests run on this system so they can be shared between configure
21351 # scripts and configure runs, see configure's option --config-cache.
21352 # It is not useful on other systems. If it contains results you don't
21353 # want to keep, you may remove or edit it.
21355 # config.status only pays attention to the cache file if you give it
21356 # the --recheck option to rerun configure.
21358 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21360 # following values.
21362 _ACEOF
21364 # The following way of writing the cache mishandles newlines in values,
21365 # but we know of no workaround that is simple, portable, and efficient.
21366 # So, don't put newlines in cache variables' values.
21367 # Ultrix sh set writes to stderr and can't be redirected directly,
21368 # and sets the high bit in the cache file unless we assign to the vars.
21370 (set) 2>&1 |
21371 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21372 *ac_space=\ *)
21373 # `set' does not quote correctly, so add quotes (double-quote
21374 # substitution turns \\\\ into \\, and sed turns \\ into \).
21375 sed -n \
21376 "s/'/'\\\\''/g;
21377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21380 # `set' quotes correctly as required by POSIX, so do not add quotes.
21381 sed -n \
21382 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21384 esac;
21386 sed '
21387 t clear
21388 : clear
21389 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21390 t end
21391 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21392 : end' >>confcache
21393 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21394 if test -w $cache_file; then
21395 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21396 cat confcache >$cache_file
21397 else
21398 echo "not updating unwritable cache $cache_file"
21401 rm -f confcache
21403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21404 # Let make expand exec_prefix.
21405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21409 # trailing colons and then remove the whole line if VPATH becomes empty
21410 # (actually we leave an empty line to preserve line numbers).
21411 if test "x$srcdir" = x.; then
21412 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21413 s/:*\$(srcdir):*/:/;
21414 s/:*\${srcdir}:*/:/;
21415 s/:*@srcdir@:*/:/;
21416 s/^\([^=]*=[ ]*\):*/\1/;
21417 s/:*$//;
21418 s/^[^=]*=[ ]*$//;
21422 DEFS=-DHAVE_CONFIG_H
21424 ac_libobjs=
21425 ac_ltlibobjs=
21426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21427 # 1. Remove the extension, and $U if already installed.
21428 ac_i=`echo "$ac_i" |
21429 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21430 # 2. Add them.
21431 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21432 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21433 done
21434 LIBOBJS=$ac_libobjs
21436 LTLIBOBJS=$ac_ltlibobjs
21440 : ${CONFIG_STATUS=./config.status}
21441 ac_clean_files_save=$ac_clean_files
21442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21443 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21444 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21445 cat >$CONFIG_STATUS <<_ACEOF
21446 #! $SHELL
21447 # Generated by $as_me.
21448 # Run this file to recreate the current configuration.
21449 # Compiler output produced by configure, useful for debugging
21450 # configure, is in config.log if it exists.
21452 debug=false
21453 ac_cs_recheck=false
21454 ac_cs_silent=false
21455 SHELL=\${CONFIG_SHELL-$SHELL}
21456 _ACEOF
21458 cat >>$CONFIG_STATUS <<\_ACEOF
21459 ## --------------------- ##
21460 ## M4sh Initialization. ##
21461 ## --------------------- ##
21463 # Be Bourne compatible
21464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21465 emulate sh
21466 NULLCMD=:
21467 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21468 # is contrary to our usage. Disable this feature.
21469 alias -g '${1+"$@"}'='"$@"'
21470 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21471 set -o posix
21473 DUALCASE=1; export DUALCASE # for MKS sh
21475 # Support unset when possible.
21476 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21477 as_unset=unset
21478 else
21479 as_unset=false
21483 # Work around bugs in pre-3.0 UWIN ksh.
21484 $as_unset ENV MAIL MAILPATH
21485 PS1='$ '
21486 PS2='> '
21487 PS4='+ '
21489 # NLS nuisances.
21490 for as_var in \
21491 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21492 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21493 LC_TELEPHONE LC_TIME
21495 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21496 eval $as_var=C; export $as_var
21497 else
21498 $as_unset $as_var
21500 done
21502 # Required to use basename.
21503 if expr a : '\(a\)' >/dev/null 2>&1; then
21504 as_expr=expr
21505 else
21506 as_expr=false
21509 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21510 as_basename=basename
21511 else
21512 as_basename=false
21516 # Name of the executable.
21517 as_me=`$as_basename "$0" ||
21518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21519 X"$0" : 'X\(//\)$' \| \
21520 X"$0" : 'X\(/\)$' \| \
21521 . : '\(.\)' 2>/dev/null ||
21522 echo X/"$0" |
21523 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21524 /^X\/\(\/\/\)$/{ s//\1/; q; }
21525 /^X\/\(\/\).*/{ s//\1/; q; }
21526 s/.*/./; q'`
21529 # PATH needs CR, and LINENO needs CR and PATH.
21530 # Avoid depending upon Character Ranges.
21531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21534 as_cr_digits='0123456789'
21535 as_cr_alnum=$as_cr_Letters$as_cr_digits
21537 # The user is always right.
21538 if test "${PATH_SEPARATOR+set}" != set; then
21539 echo "#! /bin/sh" >conf$$.sh
21540 echo "exit 0" >>conf$$.sh
21541 chmod +x conf$$.sh
21542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21543 PATH_SEPARATOR=';'
21544 else
21545 PATH_SEPARATOR=:
21547 rm -f conf$$.sh
21551 as_lineno_1=$LINENO
21552 as_lineno_2=$LINENO
21553 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21554 test "x$as_lineno_1" != "x$as_lineno_2" &&
21555 test "x$as_lineno_3" = "x$as_lineno_2" || {
21556 # Find who we are. Look in the path if we contain no path at all
21557 # relative or not.
21558 case $0 in
21559 *[\\/]* ) as_myself=$0 ;;
21560 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21561 for as_dir in $PATH
21563 IFS=$as_save_IFS
21564 test -z "$as_dir" && as_dir=.
21565 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21566 done
21569 esac
21570 # We did not find ourselves, most probably we were run as `sh COMMAND'
21571 # in which case we are not to be found in the path.
21572 if test "x$as_myself" = x; then
21573 as_myself=$0
21575 if test ! -f "$as_myself"; then
21576 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21577 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21578 { (exit 1); exit 1; }; }
21580 case $CONFIG_SHELL in
21582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21583 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21585 IFS=$as_save_IFS
21586 test -z "$as_dir" && as_dir=.
21587 for as_base in sh bash ksh sh5; do
21588 case $as_dir in
21590 if ("$as_dir/$as_base" -c '
21591 as_lineno_1=$LINENO
21592 as_lineno_2=$LINENO
21593 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21594 test "x$as_lineno_1" != "x$as_lineno_2" &&
21595 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21596 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21597 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21598 CONFIG_SHELL=$as_dir/$as_base
21599 export CONFIG_SHELL
21600 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21601 fi;;
21602 esac
21603 done
21604 done
21606 esac
21608 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21609 # uniformly replaced by the line number. The first 'sed' inserts a
21610 # line-number line before each line; the second 'sed' does the real
21611 # work. The second script uses 'N' to pair each line-number line
21612 # with the numbered line, and appends trailing '-' during
21613 # substitution so that $LINENO is not a special case at line end.
21614 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21615 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21616 sed '=' <$as_myself |
21617 sed '
21619 s,$,-,
21620 : loop
21621 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21622 t loop
21623 s,-$,,
21624 s,^['$as_cr_digits']*\n,,
21625 ' >$as_me.lineno &&
21626 chmod +x $as_me.lineno ||
21627 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21628 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21629 { (exit 1); exit 1; }; }
21631 # Don't try to exec as it changes $[0], causing all sort of problems
21632 # (the dirname of $[0] is not the place where we might find the
21633 # original and so on. Autoconf is especially sensible to this).
21634 . ./$as_me.lineno
21635 # Exit status is that of the last command.
21636 exit
21640 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21641 *c*,-n*) ECHO_N= ECHO_C='
21642 ' ECHO_T=' ' ;;
21643 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21644 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21645 esac
21647 if expr a : '\(a\)' >/dev/null 2>&1; then
21648 as_expr=expr
21649 else
21650 as_expr=false
21653 rm -f conf$$ conf$$.exe conf$$.file
21654 echo >conf$$.file
21655 if ln -s conf$$.file conf$$ 2>/dev/null; then
21656 # We could just check for DJGPP; but this test a) works b) is more generic
21657 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21658 if test -f conf$$.exe; then
21659 # Don't use ln at all; we don't have any links
21660 as_ln_s='cp -p'
21661 else
21662 as_ln_s='ln -s'
21664 elif ln conf$$.file conf$$ 2>/dev/null; then
21665 as_ln_s=ln
21666 else
21667 as_ln_s='cp -p'
21669 rm -f conf$$ conf$$.exe conf$$.file
21671 if mkdir -p . 2>/dev/null; then
21672 as_mkdir_p=:
21673 else
21674 test -d ./-p && rmdir ./-p
21675 as_mkdir_p=false
21678 as_executable_p="test -f"
21680 # Sed expression to map a string onto a valid CPP name.
21681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21683 # Sed expression to map a string onto a valid variable name.
21684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21687 # IFS
21688 # We need space, tab and new line, in precisely that order.
21689 as_nl='
21691 IFS=" $as_nl"
21693 # CDPATH.
21694 $as_unset CDPATH
21696 exec 6>&1
21698 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21699 # report actual input values of CONFIG_FILES etc. instead of their
21700 # values after options handling. Logging --version etc. is OK.
21701 exec 5>>config.log
21703 echo
21704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21705 ## Running $as_me. ##
21706 _ASBOX
21707 } >&5
21708 cat >&5 <<_CSEOF
21710 This file was extended by $as_me, which was
21711 generated by GNU Autoconf 2.59. Invocation command line was
21713 CONFIG_FILES = $CONFIG_FILES
21714 CONFIG_HEADERS = $CONFIG_HEADERS
21715 CONFIG_LINKS = $CONFIG_LINKS
21716 CONFIG_COMMANDS = $CONFIG_COMMANDS
21717 $ $0 $@
21719 _CSEOF
21720 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21721 echo >&5
21722 _ACEOF
21724 # Files that config.status was made for.
21725 if test -n "$ac_config_files"; then
21726 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21729 if test -n "$ac_config_headers"; then
21730 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21733 if test -n "$ac_config_links"; then
21734 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21737 if test -n "$ac_config_commands"; then
21738 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21741 cat >>$CONFIG_STATUS <<\_ACEOF
21743 ac_cs_usage="\
21744 \`$as_me' instantiates files from templates according to the
21745 current configuration.
21747 Usage: $0 [OPTIONS] [FILE]...
21749 -h, --help print this help, then exit
21750 -V, --version print version number, then exit
21751 -q, --quiet do not print progress messages
21752 -d, --debug don't remove temporary files
21753 --recheck update $as_me by reconfiguring in the same conditions
21754 --file=FILE[:TEMPLATE]
21755 instantiate the configuration file FILE
21756 --header=FILE[:TEMPLATE]
21757 instantiate the configuration header FILE
21759 Configuration files:
21760 $config_files
21762 Configuration headers:
21763 $config_headers
21765 Configuration commands:
21766 $config_commands
21768 Report bugs to <bug-autoconf@gnu.org>."
21769 _ACEOF
21771 cat >>$CONFIG_STATUS <<_ACEOF
21772 ac_cs_version="\\
21773 config.status
21774 configured by $0, generated by GNU Autoconf 2.59,
21775 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21777 Copyright (C) 2003 Free Software Foundation, Inc.
21778 This config.status script is free software; the Free Software Foundation
21779 gives unlimited permission to copy, distribute and modify it."
21780 srcdir=$srcdir
21781 INSTALL="$INSTALL"
21782 _ACEOF
21784 cat >>$CONFIG_STATUS <<\_ACEOF
21785 # If no file are specified by the user, then we need to provide default
21786 # value. By we need to know if files were specified by the user.
21787 ac_need_defaults=:
21788 while test $# != 0
21790 case $1 in
21791 --*=*)
21792 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21793 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21794 ac_shift=:
21797 ac_option=$1
21798 ac_optarg=$2
21799 ac_shift=shift
21801 *) # This is not an option, so the user has probably given explicit
21802 # arguments.
21803 ac_option=$1
21804 ac_need_defaults=false;;
21805 esac
21807 case $ac_option in
21808 # Handling of the options.
21809 _ACEOF
21810 cat >>$CONFIG_STATUS <<\_ACEOF
21811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21812 ac_cs_recheck=: ;;
21813 --version | --vers* | -V )
21814 echo "$ac_cs_version"; exit 0 ;;
21815 --he | --h)
21816 # Conflict between --help and --header
21817 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21818 Try \`$0 --help' for more information." >&5
21819 echo "$as_me: error: ambiguous option: $1
21820 Try \`$0 --help' for more information." >&2;}
21821 { (exit 1); exit 1; }; };;
21822 --help | --hel | -h )
21823 echo "$ac_cs_usage"; exit 0 ;;
21824 --debug | --d* | -d )
21825 debug=: ;;
21826 --file | --fil | --fi | --f )
21827 $ac_shift
21828 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21829 ac_need_defaults=false;;
21830 --header | --heade | --head | --hea )
21831 $ac_shift
21832 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21833 ac_need_defaults=false;;
21834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21836 ac_cs_silent=: ;;
21838 # This is an error.
21839 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21840 Try \`$0 --help' for more information." >&5
21841 echo "$as_me: error: unrecognized option: $1
21842 Try \`$0 --help' for more information." >&2;}
21843 { (exit 1); exit 1; }; } ;;
21845 *) ac_config_targets="$ac_config_targets $1" ;;
21847 esac
21848 shift
21849 done
21851 ac_configure_extra_args=
21853 if $ac_cs_silent; then
21854 exec 6>/dev/null
21855 ac_configure_extra_args="$ac_configure_extra_args --silent"
21858 _ACEOF
21859 cat >>$CONFIG_STATUS <<_ACEOF
21860 if \$ac_cs_recheck; then
21861 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21862 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21865 _ACEOF
21867 cat >>$CONFIG_STATUS <<_ACEOF
21869 # INIT-COMMANDS section.
21872 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21874 _ACEOF
21878 cat >>$CONFIG_STATUS <<\_ACEOF
21879 for ac_config_target in $ac_config_targets
21881 case "$ac_config_target" in
21882 # Handling of arguments.
21883 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21884 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21885 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21886 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21887 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21888 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21889 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21890 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21891 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21892 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21893 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21894 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21895 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21896 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21897 { (exit 1); exit 1; }; };;
21898 esac
21899 done
21901 # If the user did not use the arguments to specify the items to instantiate,
21902 # then the envvar interface is used. Set only those that are not.
21903 # We use the long form for the default assignment because of an extremely
21904 # bizarre bug on SunOS 4.1.3.
21905 if $ac_need_defaults; then
21906 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21907 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21908 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21911 # Have a temporary directory for convenience. Make it in the build tree
21912 # simply because there is no reason to put it here, and in addition,
21913 # creating and moving files from /tmp can sometimes cause problems.
21914 # Create a temporary directory, and hook for its removal unless debugging.
21915 $debug ||
21917 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21918 trap '{ (exit 1); exit 1; }' 1 2 13 15
21921 # Create a (secure) tmp directory for tmp files.
21924 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21925 test -n "$tmp" && test -d "$tmp"
21926 } ||
21928 tmp=./confstat$$-$RANDOM
21929 (umask 077 && mkdir $tmp)
21930 } ||
21932 echo "$me: cannot create a temporary directory in ." >&2
21933 { (exit 1); exit 1; }
21936 _ACEOF
21938 cat >>$CONFIG_STATUS <<_ACEOF
21941 # CONFIG_FILES section.
21944 # No need to generate the scripts if there are no CONFIG_FILES.
21945 # This happens for instance when ./config.status config.h
21946 if test -n "\$CONFIG_FILES"; then
21947 # Protect against being on the right side of a sed subst in config.status.
21948 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21949 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21950 s,@SHELL@,$SHELL,;t t
21951 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21952 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21953 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21954 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21955 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21956 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21957 s,@exec_prefix@,$exec_prefix,;t t
21958 s,@prefix@,$prefix,;t t
21959 s,@program_transform_name@,$program_transform_name,;t t
21960 s,@bindir@,$bindir,;t t
21961 s,@sbindir@,$sbindir,;t t
21962 s,@libexecdir@,$libexecdir,;t t
21963 s,@datadir@,$datadir,;t t
21964 s,@sysconfdir@,$sysconfdir,;t t
21965 s,@sharedstatedir@,$sharedstatedir,;t t
21966 s,@localstatedir@,$localstatedir,;t t
21967 s,@libdir@,$libdir,;t t
21968 s,@includedir@,$includedir,;t t
21969 s,@oldincludedir@,$oldincludedir,;t t
21970 s,@infodir@,$infodir,;t t
21971 s,@mandir@,$mandir,;t t
21972 s,@build_alias@,$build_alias,;t t
21973 s,@host_alias@,$host_alias,;t t
21974 s,@target_alias@,$target_alias,;t t
21975 s,@DEFS@,$DEFS,;t t
21976 s,@ECHO_C@,$ECHO_C,;t t
21977 s,@ECHO_N@,$ECHO_N,;t t
21978 s,@ECHO_T@,$ECHO_T,;t t
21979 s,@LIBS@,$LIBS,;t t
21980 s,@MAINT@,$MAINT,;t t
21981 s,@build@,$build,;t t
21982 s,@build_cpu@,$build_cpu,;t t
21983 s,@build_vendor@,$build_vendor,;t t
21984 s,@build_os@,$build_os,;t t
21985 s,@host@,$host,;t t
21986 s,@host_cpu@,$host_cpu,;t t
21987 s,@host_vendor@,$host_vendor,;t t
21988 s,@host_os@,$host_os,;t t
21989 s,@CC@,$CC,;t t
21990 s,@CFLAGS@,$CFLAGS,;t t
21991 s,@LDFLAGS@,$LDFLAGS,;t t
21992 s,@CPPFLAGS@,$CPPFLAGS,;t t
21993 s,@ac_ct_CC@,$ac_ct_CC,;t t
21994 s,@EXEEXT@,$EXEEXT,;t t
21995 s,@OBJEXT@,$OBJEXT,;t t
21996 s,@LN_S@,$LN_S,;t t
21997 s,@CPP@,$CPP,;t t
21998 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21999 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22000 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22001 s,@RANLIB@,$RANLIB,;t t
22002 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22003 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22004 s,@EGREP@,$EGREP,;t t
22005 s,@LIBSOUND@,$LIBSOUND,;t t
22006 s,@SET_MAKE@,$SET_MAKE,;t t
22007 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22008 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22009 s,@GTK_LIBS@,$GTK_LIBS,;t t
22010 s,@ALLOCA@,$ALLOCA,;t t
22011 s,@liblockfile@,$liblockfile,;t t
22012 s,@LIBOBJS@,$LIBOBJS,;t t
22013 s,@NEED_SETGID@,$NEED_SETGID,;t t
22014 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22015 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22016 s,@version@,$version,;t t
22017 s,@configuration@,$configuration,;t t
22018 s,@canonical@,$canonical,;t t
22019 s,@srcdir@,$srcdir,;t t
22020 s,@lispdir@,$lispdir,;t t
22021 s,@locallisppath@,$locallisppath,;t t
22022 s,@lisppath@,$lisppath,;t t
22023 s,@x_default_search_path@,$x_default_search_path,;t t
22024 s,@etcdir@,$etcdir,;t t
22025 s,@archlibdir@,$archlibdir,;t t
22026 s,@docdir@,$docdir,;t t
22027 s,@bitmapdir@,$bitmapdir,;t t
22028 s,@gamedir@,$gamedir,;t t
22029 s,@gameuser@,$gameuser,;t t
22030 s,@c_switch_system@,$c_switch_system,;t t
22031 s,@c_switch_machine@,$c_switch_machine,;t t
22032 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22033 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22034 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22035 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22036 s,@machfile@,$machfile,;t t
22037 s,@opsysfile@,$opsysfile,;t t
22038 s,@carbon_appdir@,$carbon_appdir,;t t
22039 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22040 CEOF
22042 _ACEOF
22044 cat >>$CONFIG_STATUS <<\_ACEOF
22045 # Split the substitutions into bite-sized pieces for seds with
22046 # small command number limits, like on Digital OSF/1 and HP-UX.
22047 ac_max_sed_lines=48
22048 ac_sed_frag=1 # Number of current file.
22049 ac_beg=1 # First line for current file.
22050 ac_end=$ac_max_sed_lines # Line after last line for current file.
22051 ac_more_lines=:
22052 ac_sed_cmds=
22053 while $ac_more_lines; do
22054 if test $ac_beg -gt 1; then
22055 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22056 else
22057 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22059 if test ! -s $tmp/subs.frag; then
22060 ac_more_lines=false
22061 else
22062 # The purpose of the label and of the branching condition is to
22063 # speed up the sed processing (if there are no `@' at all, there
22064 # is no need to browse any of the substitutions).
22065 # These are the two extra sed commands mentioned above.
22066 (echo ':t
22067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22068 if test -z "$ac_sed_cmds"; then
22069 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22070 else
22071 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22073 ac_sed_frag=`expr $ac_sed_frag + 1`
22074 ac_beg=$ac_end
22075 ac_end=`expr $ac_end + $ac_max_sed_lines`
22077 done
22078 if test -z "$ac_sed_cmds"; then
22079 ac_sed_cmds=cat
22081 fi # test -n "$CONFIG_FILES"
22083 _ACEOF
22084 cat >>$CONFIG_STATUS <<\_ACEOF
22085 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22087 case $ac_file in
22088 - | *:- | *:-:* ) # input from stdin
22089 cat >$tmp/stdin
22090 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22092 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22094 * ) ac_file_in=$ac_file.in ;;
22095 esac
22097 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22098 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22100 X"$ac_file" : 'X\(//\)[^/]' \| \
22101 X"$ac_file" : 'X\(//\)$' \| \
22102 X"$ac_file" : 'X\(/\)' \| \
22103 . : '\(.\)' 2>/dev/null ||
22104 echo X"$ac_file" |
22105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22107 /^X\(\/\/\)$/{ s//\1/; q; }
22108 /^X\(\/\).*/{ s//\1/; q; }
22109 s/.*/./; q'`
22110 { if $as_mkdir_p; then
22111 mkdir -p "$ac_dir"
22112 else
22113 as_dir="$ac_dir"
22114 as_dirs=
22115 while test ! -d "$as_dir"; do
22116 as_dirs="$as_dir $as_dirs"
22117 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22119 X"$as_dir" : 'X\(//\)[^/]' \| \
22120 X"$as_dir" : 'X\(//\)$' \| \
22121 X"$as_dir" : 'X\(/\)' \| \
22122 . : '\(.\)' 2>/dev/null ||
22123 echo X"$as_dir" |
22124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22126 /^X\(\/\/\)$/{ s//\1/; q; }
22127 /^X\(\/\).*/{ s//\1/; q; }
22128 s/.*/./; q'`
22129 done
22130 test ! -n "$as_dirs" || mkdir $as_dirs
22131 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22132 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22133 { (exit 1); exit 1; }; }; }
22135 ac_builddir=.
22137 if test "$ac_dir" != .; then
22138 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22139 # A "../" for each directory in $ac_dir_suffix.
22140 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22141 else
22142 ac_dir_suffix= ac_top_builddir=
22145 case $srcdir in
22146 .) # No --srcdir option. We are building in place.
22147 ac_srcdir=.
22148 if test -z "$ac_top_builddir"; then
22149 ac_top_srcdir=.
22150 else
22151 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22152 fi ;;
22153 [\\/]* | ?:[\\/]* ) # Absolute path.
22154 ac_srcdir=$srcdir$ac_dir_suffix;
22155 ac_top_srcdir=$srcdir ;;
22156 *) # Relative path.
22157 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22158 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22159 esac
22161 # Do not use `cd foo && pwd` to compute absolute paths, because
22162 # the directories may not exist.
22163 case `pwd` in
22164 .) ac_abs_builddir="$ac_dir";;
22166 case "$ac_dir" in
22167 .) ac_abs_builddir=`pwd`;;
22168 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22169 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22170 esac;;
22171 esac
22172 case $ac_abs_builddir in
22173 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22175 case ${ac_top_builddir}. in
22176 .) ac_abs_top_builddir=$ac_abs_builddir;;
22177 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22178 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22179 esac;;
22180 esac
22181 case $ac_abs_builddir in
22182 .) ac_abs_srcdir=$ac_srcdir;;
22184 case $ac_srcdir in
22185 .) ac_abs_srcdir=$ac_abs_builddir;;
22186 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22187 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22188 esac;;
22189 esac
22190 case $ac_abs_builddir in
22191 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22193 case $ac_top_srcdir in
22194 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22195 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22196 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22197 esac;;
22198 esac
22201 case $INSTALL in
22202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22203 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22204 esac
22206 if test x"$ac_file" != x-; then
22207 { echo "$as_me:$LINENO: creating $ac_file" >&5
22208 echo "$as_me: creating $ac_file" >&6;}
22209 rm -f "$ac_file"
22211 # Let's still pretend it is `configure' which instantiates (i.e., don't
22212 # use $as_me), people would be surprised to read:
22213 # /* config.h. Generated by config.status. */
22214 if test x"$ac_file" = x-; then
22215 configure_input=
22216 else
22217 configure_input="$ac_file. "
22219 configure_input=$configure_input"Generated from `echo $ac_file_in |
22220 sed 's,.*/,,'` by configure."
22222 # First look for the input files in the build tree, otherwise in the
22223 # src tree.
22224 ac_file_inputs=`IFS=:
22225 for f in $ac_file_in; do
22226 case $f in
22227 -) echo $tmp/stdin ;;
22228 [\\/$]*)
22229 # Absolute (can't be DOS-style, as IFS=:)
22230 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22231 echo "$as_me: error: cannot find input file: $f" >&2;}
22232 { (exit 1); exit 1; }; }
22233 echo "$f";;
22234 *) # Relative
22235 if test -f "$f"; then
22236 # Build tree
22237 echo "$f"
22238 elif test -f "$srcdir/$f"; then
22239 # Source tree
22240 echo "$srcdir/$f"
22241 else
22242 # /dev/null tree
22243 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22244 echo "$as_me: error: cannot find input file: $f" >&2;}
22245 { (exit 1); exit 1; }; }
22246 fi;;
22247 esac
22248 done` || { (exit 1); exit 1; }
22249 _ACEOF
22250 cat >>$CONFIG_STATUS <<_ACEOF
22251 sed "$ac_vpsub
22252 $extrasub
22253 _ACEOF
22254 cat >>$CONFIG_STATUS <<\_ACEOF
22256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22257 s,@configure_input@,$configure_input,;t t
22258 s,@srcdir@,$ac_srcdir,;t t
22259 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22260 s,@top_srcdir@,$ac_top_srcdir,;t t
22261 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22262 s,@builddir@,$ac_builddir,;t t
22263 s,@abs_builddir@,$ac_abs_builddir,;t t
22264 s,@top_builddir@,$ac_top_builddir,;t t
22265 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22266 s,@INSTALL@,$ac_INSTALL,;t t
22267 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22268 rm -f $tmp/stdin
22269 if test x"$ac_file" != x-; then
22270 mv $tmp/out $ac_file
22271 else
22272 cat $tmp/out
22273 rm -f $tmp/out
22276 done
22277 _ACEOF
22278 cat >>$CONFIG_STATUS <<\_ACEOF
22281 # CONFIG_HEADER section.
22284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22287 # ac_d sets the value in "#define NAME VALUE" lines.
22288 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22289 ac_dB='[ ].*$,\1#\2'
22290 ac_dC=' '
22291 ac_dD=',;t'
22292 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22293 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22294 ac_uB='$,\1#\2define\3'
22295 ac_uC=' '
22296 ac_uD=',;t'
22298 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22299 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22300 case $ac_file in
22301 - | *:- | *:-:* ) # input from stdin
22302 cat >$tmp/stdin
22303 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22304 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22305 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22307 * ) ac_file_in=$ac_file.in ;;
22308 esac
22310 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22311 echo "$as_me: creating $ac_file" >&6;}
22313 # First look for the input files in the build tree, otherwise in the
22314 # src tree.
22315 ac_file_inputs=`IFS=:
22316 for f in $ac_file_in; do
22317 case $f in
22318 -) echo $tmp/stdin ;;
22319 [\\/$]*)
22320 # Absolute (can't be DOS-style, as IFS=:)
22321 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22322 echo "$as_me: error: cannot find input file: $f" >&2;}
22323 { (exit 1); exit 1; }; }
22324 # Do quote $f, to prevent DOS paths from being IFS'd.
22325 echo "$f";;
22326 *) # Relative
22327 if test -f "$f"; then
22328 # Build tree
22329 echo "$f"
22330 elif test -f "$srcdir/$f"; then
22331 # Source tree
22332 echo "$srcdir/$f"
22333 else
22334 # /dev/null tree
22335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22336 echo "$as_me: error: cannot find input file: $f" >&2;}
22337 { (exit 1); exit 1; }; }
22338 fi;;
22339 esac
22340 done` || { (exit 1); exit 1; }
22341 # Remove the trailing spaces.
22342 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22344 _ACEOF
22346 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22347 # `conftest.undefs', that substitutes the proper values into
22348 # config.h.in to produce config.h. The first handles `#define'
22349 # templates, and the second `#undef' templates.
22350 # And first: Protect against being on the right side of a sed subst in
22351 # config.status. Protect against being in an unquoted here document
22352 # in config.status.
22353 rm -f conftest.defines conftest.undefs
22354 # Using a here document instead of a string reduces the quoting nightmare.
22355 # Putting comments in sed scripts is not portable.
22357 # `end' is used to avoid that the second main sed command (meant for
22358 # 0-ary CPP macros) applies to n-ary macro definitions.
22359 # See the Autoconf documentation for `clear'.
22360 cat >confdef2sed.sed <<\_ACEOF
22361 s/[\\&,]/\\&/g
22362 s,[\\$`],\\&,g
22363 t clear
22364 : clear
22365 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22366 t end
22367 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22368 : end
22369 _ACEOF
22370 # If some macros were called several times there might be several times
22371 # the same #defines, which is useless. Nevertheless, we may not want to
22372 # sort them, since we want the *last* AC-DEFINE to be honored.
22373 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22374 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22375 rm -f confdef2sed.sed
22377 # This sed command replaces #undef with comments. This is necessary, for
22378 # example, in the case of _POSIX_SOURCE, which is predefined and required
22379 # on some systems where configure will not decide to define it.
22380 cat >>conftest.undefs <<\_ACEOF
22381 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22382 _ACEOF
22384 # Break up conftest.defines because some shells have a limit on the size
22385 # of here documents, and old seds have small limits too (100 cmds).
22386 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22387 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22388 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22389 echo ' :' >>$CONFIG_STATUS
22390 rm -f conftest.tail
22391 while grep . conftest.defines >/dev/null
22393 # Write a limited-size here document to $tmp/defines.sed.
22394 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22395 # Speed up: don't consider the non `#define' lines.
22396 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22397 # Work around the forget-to-reset-the-flag bug.
22398 echo 't clr' >>$CONFIG_STATUS
22399 echo ': clr' >>$CONFIG_STATUS
22400 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22401 echo 'CEOF
22402 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22403 rm -f $tmp/in
22404 mv $tmp/out $tmp/in
22405 ' >>$CONFIG_STATUS
22406 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22407 rm -f conftest.defines
22408 mv conftest.tail conftest.defines
22409 done
22410 rm -f conftest.defines
22411 echo ' fi # grep' >>$CONFIG_STATUS
22412 echo >>$CONFIG_STATUS
22414 # Break up conftest.undefs because some shells have a limit on the size
22415 # of here documents, and old seds have small limits too (100 cmds).
22416 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22417 rm -f conftest.tail
22418 while grep . conftest.undefs >/dev/null
22420 # Write a limited-size here document to $tmp/undefs.sed.
22421 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22422 # Speed up: don't consider the non `#undef'
22423 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22424 # Work around the forget-to-reset-the-flag bug.
22425 echo 't clr' >>$CONFIG_STATUS
22426 echo ': clr' >>$CONFIG_STATUS
22427 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22428 echo 'CEOF
22429 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22430 rm -f $tmp/in
22431 mv $tmp/out $tmp/in
22432 ' >>$CONFIG_STATUS
22433 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22434 rm -f conftest.undefs
22435 mv conftest.tail conftest.undefs
22436 done
22437 rm -f conftest.undefs
22439 cat >>$CONFIG_STATUS <<\_ACEOF
22440 # Let's still pretend it is `configure' which instantiates (i.e., don't
22441 # use $as_me), people would be surprised to read:
22442 # /* config.h. Generated by config.status. */
22443 if test x"$ac_file" = x-; then
22444 echo "/* Generated by configure. */" >$tmp/config.h
22445 else
22446 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22448 cat $tmp/in >>$tmp/config.h
22449 rm -f $tmp/in
22450 if test x"$ac_file" != x-; then
22451 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22452 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22453 echo "$as_me: $ac_file is unchanged" >&6;}
22454 else
22455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22457 X"$ac_file" : 'X\(//\)[^/]' \| \
22458 X"$ac_file" : 'X\(//\)$' \| \
22459 X"$ac_file" : 'X\(/\)' \| \
22460 . : '\(.\)' 2>/dev/null ||
22461 echo X"$ac_file" |
22462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22464 /^X\(\/\/\)$/{ s//\1/; q; }
22465 /^X\(\/\).*/{ s//\1/; q; }
22466 s/.*/./; q'`
22467 { if $as_mkdir_p; then
22468 mkdir -p "$ac_dir"
22469 else
22470 as_dir="$ac_dir"
22471 as_dirs=
22472 while test ! -d "$as_dir"; do
22473 as_dirs="$as_dir $as_dirs"
22474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22476 X"$as_dir" : 'X\(//\)[^/]' \| \
22477 X"$as_dir" : 'X\(//\)$' \| \
22478 X"$as_dir" : 'X\(/\)' \| \
22479 . : '\(.\)' 2>/dev/null ||
22480 echo X"$as_dir" |
22481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22483 /^X\(\/\/\)$/{ s//\1/; q; }
22484 /^X\(\/\).*/{ s//\1/; q; }
22485 s/.*/./; q'`
22486 done
22487 test ! -n "$as_dirs" || mkdir $as_dirs
22488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22490 { (exit 1); exit 1; }; }; }
22492 rm -f $ac_file
22493 mv $tmp/config.h $ac_file
22495 else
22496 cat $tmp/config.h
22497 rm -f $tmp/config.h
22499 done
22500 _ACEOF
22501 cat >>$CONFIG_STATUS <<\_ACEOF
22504 # CONFIG_COMMANDS section.
22506 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22507 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22508 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22509 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22510 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22511 X"$ac_dest" : 'X\(//\)[^/]' \| \
22512 X"$ac_dest" : 'X\(//\)$' \| \
22513 X"$ac_dest" : 'X\(/\)' \| \
22514 . : '\(.\)' 2>/dev/null ||
22515 echo X"$ac_dest" |
22516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22518 /^X\(\/\/\)$/{ s//\1/; q; }
22519 /^X\(\/\).*/{ s//\1/; q; }
22520 s/.*/./; q'`
22521 { if $as_mkdir_p; then
22522 mkdir -p "$ac_dir"
22523 else
22524 as_dir="$ac_dir"
22525 as_dirs=
22526 while test ! -d "$as_dir"; do
22527 as_dirs="$as_dir $as_dirs"
22528 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22530 X"$as_dir" : 'X\(//\)[^/]' \| \
22531 X"$as_dir" : 'X\(//\)$' \| \
22532 X"$as_dir" : 'X\(/\)' \| \
22533 . : '\(.\)' 2>/dev/null ||
22534 echo X"$as_dir" |
22535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22537 /^X\(\/\/\)$/{ s//\1/; q; }
22538 /^X\(\/\).*/{ s//\1/; q; }
22539 s/.*/./; q'`
22540 done
22541 test ! -n "$as_dirs" || mkdir $as_dirs
22542 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22544 { (exit 1); exit 1; }; }; }
22546 ac_builddir=.
22548 if test "$ac_dir" != .; then
22549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22550 # A "../" for each directory in $ac_dir_suffix.
22551 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22552 else
22553 ac_dir_suffix= ac_top_builddir=
22556 case $srcdir in
22557 .) # No --srcdir option. We are building in place.
22558 ac_srcdir=.
22559 if test -z "$ac_top_builddir"; then
22560 ac_top_srcdir=.
22561 else
22562 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22563 fi ;;
22564 [\\/]* | ?:[\\/]* ) # Absolute path.
22565 ac_srcdir=$srcdir$ac_dir_suffix;
22566 ac_top_srcdir=$srcdir ;;
22567 *) # Relative path.
22568 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22569 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22570 esac
22572 # Do not use `cd foo && pwd` to compute absolute paths, because
22573 # the directories may not exist.
22574 case `pwd` in
22575 .) ac_abs_builddir="$ac_dir";;
22577 case "$ac_dir" in
22578 .) ac_abs_builddir=`pwd`;;
22579 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22580 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22581 esac;;
22582 esac
22583 case $ac_abs_builddir in
22584 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22586 case ${ac_top_builddir}. in
22587 .) ac_abs_top_builddir=$ac_abs_builddir;;
22588 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22589 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22590 esac;;
22591 esac
22592 case $ac_abs_builddir in
22593 .) ac_abs_srcdir=$ac_srcdir;;
22595 case $ac_srcdir in
22596 .) ac_abs_srcdir=$ac_abs_builddir;;
22597 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22598 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22599 esac;;
22600 esac
22601 case $ac_abs_builddir in
22602 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22604 case $ac_top_srcdir in
22605 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22606 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22607 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22608 esac;;
22609 esac
22612 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22613 echo "$as_me: executing $ac_dest commands" >&6;}
22614 case $ac_dest in
22615 default )
22617 ### Make the necessary directories, if they don't exist.
22618 for dir in etc lisp ; do
22619 test -d ${dir} || mkdir ${dir}
22620 done
22622 # Build src/Makefile from ${srcdir}/src/Makefile.c
22623 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22624 # This must be done after src/config.h is built, since we rely on that file.
22626 # Now get this: Some word that is part of the ${srcdir} directory name
22627 # or the ${configuration} value might, just might, happen to be an
22628 # identifier like `sun4' or `i386' or something, and be predefined by
22629 # the C preprocessor to some helpful value like 1, or maybe the empty
22630 # string. Needless to say consequent macro substitutions are less
22631 # than conducive to the makefile finding the correct directory.
22632 undefs="`echo $top_srcdir $configuration $canonical |
22633 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22634 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22637 echo creating src/epaths.h
22638 ${MAKE-make} epaths-force
22640 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22641 # `..' to `. .' unless invoked with -traditional
22643 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22644 CPPFLAGS="$CPPFLAGS -traditional"
22647 echo creating lib-src/Makefile
22648 ( cd lib-src
22649 rm -f junk.c junk1.c junk2.c
22650 sed -e '/start of cpp stuff/q' \
22651 < Makefile.c > junk1.c
22652 sed -e '1,/start of cpp stuff/d'\
22653 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22654 < Makefile.c > junk.c
22655 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22656 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22657 cat junk1.c junk2.c > Makefile.new
22658 rm -f junk.c junk1.c junk2.c
22659 chmod 444 Makefile.new
22660 mv -f Makefile.new Makefile
22663 echo creating src/Makefile
22664 ( cd src
22665 rm -f junk.c junk1.c junk2.c
22666 sed -e '/start of cpp stuff/q' \
22667 < Makefile.c > junk1.c
22668 sed -e '1,/start of cpp stuff/d'\
22669 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22670 < Makefile.c > junk.c
22671 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22672 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22673 cat junk1.c junk2.c > Makefile.new
22674 rm -f junk.c junk1.c junk2.c
22675 chmod 444 Makefile.new
22676 mv -f Makefile.new Makefile
22679 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22680 echo creating src/.gdbinit
22681 echo source $srcdir/src/.gdbinit > src/.gdbinit
22684 # This is how we know whether to re-run configure in certain cases.
22685 touch src/config.stamp
22688 esac
22689 done
22690 _ACEOF
22692 cat >>$CONFIG_STATUS <<\_ACEOF
22694 { (exit 0); exit 0; }
22695 _ACEOF
22696 chmod +x $CONFIG_STATUS
22697 ac_clean_files=$ac_clean_files_save
22700 # configure is writing to config.log, and then calls config.status.
22701 # config.status does its own redirection, appending to config.log.
22702 # Unfortunately, on DOS this fails, as config.log is still kept open
22703 # by configure, so config.status won't be able to write to it; its
22704 # output is simply discarded. So we exec the FD to /dev/null,
22705 # effectively closing config.log, so it can be properly (re)opened and
22706 # appended to by config.status. When coming back to configure, we
22707 # need to make the FD available again.
22708 if test "$no_create" != yes; then
22709 ac_cs_success=:
22710 ac_config_status_args=
22711 test "$silent" = yes &&
22712 ac_config_status_args="$ac_config_status_args --quiet"
22713 exec 5>/dev/null
22714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22715 exec 5>>config.log
22716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22717 # would make configure fail if this is the last instruction.
22718 $ac_cs_success || { (exit 1); exit 1; }