Add some entries missing from 2002-11-16.
[emacs.git] / configure
blob3e2bb4f6869603749bfca959104bd0b3c0ea7d3a
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;}
1577 extrasub='/^VPATH[ ]*=/c\
1578 vpath %.c $(srcdir)\
1579 vpath %.h $(srcdir)\
1580 vpath %.y $(srcdir)\
1581 vpath %.l $(srcdir)\
1582 vpath %.s $(srcdir)\
1583 vpath %.in $(srcdir)\
1584 vpath %.texi $(srcdir)'
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1592 ac_aux_dir=
1593 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594 if test -f $ac_dir/install-sh; then
1595 ac_aux_dir=$ac_dir
1596 ac_install_sh="$ac_aux_dir/install-sh -c"
1597 break
1598 elif test -f $ac_dir/install.sh; then
1599 ac_aux_dir=$ac_dir
1600 ac_install_sh="$ac_aux_dir/install.sh -c"
1601 break
1602 elif test -f $ac_dir/shtool; then
1603 ac_aux_dir=$ac_dir
1604 ac_install_sh="$ac_aux_dir/shtool install -c"
1605 break
1607 done
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 ac_cv_build_alias=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1643 build=$ac_cv_build
1644 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654 ac_cv_host_alias=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1665 host=$ac_cv_host
1666 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671 canonical=$host
1672 configuration=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine='' opsys='' unported=no
1700 case "${canonical}" in
1702 ## FreeBSD ports
1703 *-*-freebsd* )
1704 opsys=freebsd
1705 case "${canonical}" in
1706 alpha*-*-freebsd*) machine=alpha ;;
1707 i[3456]86-*-freebsd*) machine=intel386 ;;
1708 esac
1711 ## NetBSD ports
1712 *-*-netbsd* )
1713 opsys=netbsd
1714 if test -f /usr/lib/crti.o; then
1716 cat >>confdefs.h <<\_ACEOF
1717 #define HAVE_CRTIN
1718 _ACEOF
1722 case "${canonical}" in
1723 alpha*-*-netbsd*) machine=alpha ;;
1724 i[3456]86-*-netbsd*) machine=intel386 ;;
1725 m68k-*-netbsd*)
1726 # This is somewhat bogus.
1727 machine=hp9000s300 ;;
1728 powerpc-apple-netbsd*) machine=macppc ;;
1729 mips-*-netbsd*) machine=pmax ;;
1730 mipsel-*-netbsd*) machine=pmax ;;
1731 mipseb-*-netbsd*) machine=pmax ;;
1732 ns32k-*-netbsd*) machine=ns32000 ;;
1733 powerpc-*-netbsd*) machine=macppc ;;
1734 sparc*-*-netbsd*) machine=sparc ;;
1735 vax-*-netbsd*) machine=vax ;;
1736 arm-*-netbsd*) machine=arm ;;
1737 esac
1740 ## OpenBSD ports
1741 *-*-openbsd* )
1742 opsys=openbsd
1743 case "${canonical}" in
1744 alpha*-*-openbsd*) machine=alpha ;;
1745 i386-*-openbsd*) machine=intel386 ;;
1746 m68k-*-openbsd*) machine=hp9000s300 ;;
1747 mipsel-*-openbsd*) machine=pmax ;;
1748 ns32k-*-openbsd*) machine=ns32000 ;;
1749 sparc-*-openbsd*) machine=sparc ;;
1750 vax-*-openbsd*) machine=vax ;;
1751 esac
1754 ## Acorn RISCiX:
1755 arm-acorn-riscix1.1* )
1756 machine=acorn opsys=riscix1-1
1758 arm-acorn-riscix1.2* | arm-acorn-riscix )
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine=acorn opsys=riscix12
1764 ## BSDI ports
1765 *-*-bsdi* )
1766 opsys=bsdi
1767 case "${canonical}" in
1768 i[345]86-*-bsdi*) machine=intel386 ;;
1769 sparc-*-bsdi*) machine=sparc ;;
1770 powerpc-*-bsdi*) machine=macppc ;;
1771 esac
1772 case "${canonical}" in
1773 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1774 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1775 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1776 *-*-bsdi3* ) opsys=bsdos3 ;;
1777 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1778 esac
1781 ## Alliant machines
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1787 fx80-alliant-* )
1788 machine=alliant4 opsys=bsd4-2
1790 i860-alliant-* )
1791 machine=alliant-2800 opsys=bsd4-3
1794 ## Alpha (DEC) machines.
1795 alpha*-dec-osf* )
1796 machine=alpha opsys=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1799 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP=/usr/bin/cpp
1805 case "${canonical}" in
1806 alpha*-dec-osf[5-9]*)
1807 opsys=osf5-0 ;;
1808 esac
1811 alpha*-*-linux-gnu* )
1812 machine=alpha opsys=gnu-linux
1815 arm*-*-linux-gnu* )
1816 machine=arm opsys=gnu-linux
1819 ppc-*-linux | \
1820 powerpc-*-linux* )
1821 machine=macppc opsys=gnu-linux
1824 ## Altos 3068
1825 m68*-altos-sysv* )
1826 machine=altos opsys=usg5-2
1829 ## Amdahl UTS
1830 580-amdahl-sysv* )
1831 machine=amdahl opsys=usg5-2-2
1834 ## Apollo, Domain/OS
1835 m68*-apollo-* )
1836 machine=apollo opsys=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1840 we32k-att-sysv* )
1841 machine=att3b opsys=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1845 m68*-att-sysv* )
1846 machine=7300 opsys=usg5-2-2
1849 ## Bull dpx20
1850 rs6000-bull-bosx* )
1851 machine=ibmrs6000 opsys=aix3-2
1854 ## Bull dpx2
1855 m68*-bull-sysv3* )
1856 machine=dpx2 opsys=usg5-3
1859 ## Bull sps7
1860 m68*-bull-sysv2* )
1861 machine=sps7 opsys=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1866 ## Celerity
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd* )
1871 machine=celerity opsys=bsd4-2
1874 ## Clipper
1875 ## What operating systems does this chip run that Emacs has been
1876 ## tested on?
1877 clipper-* )
1878 machine=clipper
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1883 ## Compaq Nonstop
1884 mips-compaq-nonstopux* )
1885 machine=nonstopux opsys=nonstopux
1888 ## Convex
1889 *-convex-bsd* | *-convex-convexos* )
1890 machine=convex opsys=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP="cc -E -P"
1895 ## Cubix QBx/386
1896 i[3456]86-cubix-sysv* )
1897 machine=intel386 opsys=usg5-3
1900 ## Cydra 5
1901 cydra*-cydrome-sysv* )
1902 machine=cydra5 opsys=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1912 machine=aviion opsys=dgux4
1914 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine=aviion opsys=dgux5-4-3
1919 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1920 machine=aviion opsys=dgux5-4r2
1922 m88k-dg-dgux* )
1923 machine=aviion opsys=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i[345]86-dg-dguxR4* )
1930 machine=aviion-intel opsys=dgux4
1933 ## DECstations
1934 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1935 machine=pmax opsys=bsd4-2
1937 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1938 machine=pmax opsys=bsd4-3
1940 mips-dec-ultrix* )
1941 machine=pmax opsys=ultrix4-3
1943 mips-dec-osf* )
1944 machine=pmax opsys=osf1
1946 mips-dec-mach_bsd4.3* )
1947 machine=pmax opsys=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv* | m68000-motorola-sysv* )
1952 machine=delta opsys=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1954 then
1955 if test -s /etc/167config
1956 then CC="gnucc -m68040"
1957 else CC="gnucc -m68881"
1959 else
1960 if test -z "`type gcc | grep 'not found'`"
1961 then CC=gcc
1962 else CC=cc
1966 m88k-motorola-sysv4* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine=delta88k opsys=usg5-4-2
1973 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1974 machine=delta88k opsys=usg5-3
1977 ## Dual machines
1978 m68*-dual-sysv* )
1979 machine=dual opsys=usg5-2
1981 m68*-dual-uniplus* )
1982 machine=dual opsys=unipl5-2
1985 ## Elxsi 6400
1986 elxsi-elxsi-sysv* )
1987 machine=elxsi opsys=usg5-2
1990 ## Encore machines
1991 ns16k-encore-bsd* )
1992 machine=ns16000 opsys=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
1999 pn-gould-bsd4.2* )
2000 machine=gould opsys=bsd4-2
2002 pn-gould-bsd4.3* )
2003 machine=gould opsys=bsd4-3
2005 np1-gould-bsd* )
2006 machine=gould-np1 opsys=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2011 m88k-harris-cxux* )
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2015 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2016 esac
2017 NON_GNU_CPP="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2020 m68k-harris-cxux* )
2021 machine=nh3000 opsys=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix )
2025 machine=nh6000 opsys=powerunix
2026 NON_GNU_CPP="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1-hitachi-hiuxmpp* )
2030 machine=sr2k opsys=hiuxmpp
2032 hppa1.1-hitachi-hiuxwe2* )
2033 machine=sr2k opsys=hiuxwe2
2035 ## Honeywell XPS100
2036 xps*-honeywell-sysv* )
2037 machine=xps100 opsys=usg5-2
2040 ## HP 9000 series 200 or 300
2041 m68*-hp-bsd* )
2042 machine=hp9000s300 opsys=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2045 m68*-hp-hpux* )
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2050 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2051 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2052 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2053 *) machine=hp9000s300 opsys=hpux ;;
2054 esac
2057 ## HP 9000 series 700 and 800, running HP/UX
2058 hppa*-hp-hpux7* )
2059 machine=hp800 opsys=hpux
2061 hppa*-hp-hpux8* )
2062 machine=hp800 opsys=hpux8
2064 hppa*-hp-hpux9shr* )
2065 machine=hp800 opsys=hpux9shr
2067 hppa*-hp-hpux9* )
2068 machine=hp800 opsys=hpux9
2070 hppa*-hp-hpux10.2* )
2071 machine=hp800 opsys=hpux10-20
2073 hppa*-hp-hpux10* )
2074 machine=hp800 opsys=hpux10
2076 hppa*-hp-hpux1[1-9]* )
2077 machine=hp800 opsys=hpux11
2080 hppa*-*-linux-gnu* )
2081 machine=hp800 opsys=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2085 hppa*-hp-hpux* )
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2091 *.08.* ) machine=hp800 opsys=hpux8 ;;
2092 *.09.* ) machine=hp800 opsys=hpux9 ;;
2093 *) machine=hp800 opsys=hpux10 ;;
2094 esac
2096 hppa*-*-nextstep* )
2097 machine=hp800 opsys=nextstep
2100 ## Orion machines
2101 orion-orion-bsd* )
2102 machine=orion opsys=bsd4-2
2104 clipper-orion-bsd* )
2105 machine=orion105 opsys=bsd4-2
2108 ## IBM machines
2109 i[3456]86-ibm-aix1.1* )
2110 machine=ibmps2-aix opsys=usg5-2-2
2112 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2113 machine=ibmps2-aix opsys=usg5-3
2115 i370-ibm-aix*)
2116 machine=ibm370aix opsys=usg5-3
2118 s390-*-linux-gnu* )
2119 machine=ibms390 opsys=gnu-linux
2121 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2122 machine=ibmrs6000 opsys=aix3-1
2124 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2125 machine=ibmrs6000 opsys=aix3-2-5
2127 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2128 machine=ibmrs6000 opsys=aix4-1
2130 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2131 machine=ibmrs6000 opsys=aix4-2
2133 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2134 machine=ibmrs6000 opsys=aix4-2
2136 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2137 machine=ibmrs6000 opsys=aix4
2139 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2140 machine=ibmrs6000 opsys=aix4-1
2142 rs6000-ibm-aix* | powerpc-ibm-aix* )
2143 machine=ibmrs6000 opsys=aix3-2
2145 romp-ibm-bsd4.3* )
2146 machine=ibmrt opsys=bsd4-3
2148 romp-ibm-bsd4.2* )
2149 machine=ibmrt opsys=bsd4-2
2151 romp-ibm-aos4.3* )
2152 machine=ibmrt opsys=bsd4-3
2154 romp-ibm-aos4.2* )
2155 machine=ibmrt opsys=bsd4-2
2157 romp-ibm-aos* )
2158 machine=ibmrt opsys=bsd4-3
2160 romp-ibm-bsd* )
2161 machine=ibmrt opsys=bsd4-3
2163 romp-ibm-aix* )
2164 machine=ibmrt-aix opsys=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2168 m68*-isi-bsd4.2* )
2169 machine=isi-ov opsys=bsd4-2
2171 m68*-isi-bsd4.3* )
2172 machine=isi-ov opsys=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i[3456]86-intsys-sysv* )
2177 machine=is386 opsys=usg5-2-2
2180 ## Prime EXL
2181 i[3456]86-prime-sysv* )
2182 machine=i386 opsys=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i[3456]86-sequent-bsd* )
2187 machine=symmetry opsys=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2192 machine=sequent-ptx opsys=ptx4
2193 NON_GNU_CPP=/lib/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i[3456]86-sequent-ptx* )
2199 machine=sequent-ptx opsys=ptx
2200 NON_GNU_CPP="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i[3456]86-ncr-sysv4.3 )
2205 machine=ncr386 opsys=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i[3456]86-ncr-sysv* )
2211 machine=ncr386 opsys=usg5-4-2
2214 ## Intel Paragon OSF/1
2215 i860-intel-osf1* )
2216 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2219 ## Intel 860
2220 i860-*-sysv4* )
2221 machine=i860 opsys=usg5-4
2222 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc*-*-linux-gnu* )
2228 machine=macppc opsys=gnu-linux
2231 ## Masscomp machines
2232 m68*-masscomp-rtu* )
2233 machine=masscomp opsys=rtu
2236 ## Megatest machines
2237 m68*-megatest-bsd* )
2238 machine=mega68 opsys=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2252 mips-mips-usg* )
2253 machine=mips4
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4* )
2257 machine=mips4 opsys=bsd4-3
2258 NON_GNU_CC="cc -systype bsd43"
2259 NON_GNU_CPP="cc -systype bsd43 -E"
2261 mips-mips-riscos5* )
2262 machine=mips4 opsys=riscos5
2263 NON_GNU_CC="cc -systype bsd43"
2264 NON_GNU_CPP="cc -systype bsd43 -E"
2266 mips-mips-bsd* )
2267 machine=mips opsys=bsd4-3
2269 mips-mips-* )
2270 machine=mips opsys=usg5-2-2
2273 ## NeXT
2274 m68*-next-* | m68k-*-nextstep* )
2275 machine=m68k opsys=nextstep
2278 ## The complete machine from National Semiconductor
2279 ns32k-ns-genix* )
2280 machine=ns32000 opsys=usg5-2
2283 ## NCR machines
2284 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2285 machine=tower32 opsys=usg5-2-2
2287 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2288 machine=tower32v3 opsys=usg5-3
2291 ## NEC EWS4800
2292 mips-nec-sysv4*)
2293 machine=ews4800 opsys=ux4800
2296 ## Nixdorf Targon 31
2297 m68*-nixdorf-sysv* )
2298 machine=targon31 opsys=usg5-2-2
2301 ## Nu (TI or LMI)
2302 m68*-nu-sysv* )
2303 machine=nu opsys=usg5-2
2306 ## Plexus
2307 m68*-plexus-sysv* )
2308 machine=plexus opsys=usg5-2
2311 ## Pyramid machines
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd* )
2315 machine=pyramid opsys=bsd4-2
2318 ## Sequent Balance
2319 ns32k-sequent-bsd4.2* )
2320 machine=sequent opsys=bsd4-2
2322 ns32k-sequent-bsd4.3* )
2323 machine=sequent opsys=bsd4-3
2326 ## Siemens Nixdorf
2327 mips-siemens-sysv* | mips-sni-sysv*)
2328 machine=mips-siemens opsys=usg5-4
2329 NON_GNU_CC=/usr/ccs/bin/cc
2330 NON_GNU_CPP=/usr/ccs/lib/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2335 m68*-sgi-iris3.5* )
2336 machine=irist opsys=iris3-5
2338 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2339 machine=irist opsys=iris3-6
2341 ## Iris 4D
2342 mips-sgi-irix3* )
2343 machine=iris4d opsys=irix3-3
2345 mips-sgi-irix4* )
2346 machine=iris4d opsys=irix4-0
2348 mips-sgi-irix6.5 )
2349 machine=iris4d opsys=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2356 mips-sgi-irix6* )
2357 machine=iris4d opsys=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS=-32
2364 mips-sgi-irix5.[01]* )
2365 machine=iris4d opsys=irix5-0
2367 mips-sgi-irix5* | mips-sgi-irix* )
2368 machine=iris4d opsys=irix5-2
2371 ## SONY machines
2372 m68*-sony-bsd4.2* )
2373 machine=news opsys=bsd4-2
2375 m68*-sony-bsd4.3* )
2376 machine=news opsys=bsd4-3
2378 m68*-sony-newsos3* | m68*-sony-news3*)
2379 machine=news opsys=bsd4-3
2381 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2382 machine=news-risc opsys=bsd4-3
2384 mips-sony-newsos6* )
2385 machine=news-r6 opsys=newsos6
2387 mips-sony-news* )
2388 machine=news-risc opsys=newsos5
2391 ## Stride
2392 m68*-stride-sysv* )
2393 machine=stride opsys=usg5-2
2396 ## Suns
2397 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2398 machine=sparc opsys=gnu-linux
2401 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2402 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2403 | rs6000-*-solaris2*)
2404 case "${canonical}" in
2405 m68*-sunos1* ) machine=sun1 ;;
2406 m68*-sunos2* ) machine=sun2 ;;
2407 m68* ) machine=sun3 ;;
2408 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2409 i[3456]86-*-* ) machine=intel386 ;;
2410 powerpcle* ) machine=powerpcle ;;
2411 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2412 sparc* ) machine=sparc ;;
2413 * ) unported=yes ;;
2414 esac
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2418 *-sunos4.0* ) opsys=sunos4-0 ;;
2419 *-sunos4.1.[3-9]*noshare )
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2422 opsys=sunos413
2423 NON_GNU_CPP=/usr/lib/cpp
2424 NON_GCC_TEST_OPTIONS=-Bstatic
2425 GCC_TEST_OPTIONS=-static
2427 *-sunos4.1.[3-9]* | *-sunos4shr*)
2428 opsys=sunos4shr
2429 NON_GNU_CPP=/usr/lib/cpp
2431 *-sunos4* | *-sunos )
2432 opsys=sunos4-1
2433 NON_GCC_TEST_OPTIONS=-Bstatic
2434 GCC_TEST_OPTIONS=-static
2436 *-sunos5.3* | *-solaris2.3* )
2437 opsys=sol2-3
2438 NON_GNU_CPP=/usr/ccs/lib/cpp
2440 *-sunos5.4* | *-solaris2.4* )
2441 opsys=sol2-4
2442 NON_GNU_CPP=/usr/ccs/lib/cpp
2443 RANLIB="ar -ts"
2445 *-sunos5.5* | *-solaris2.5* )
2446 opsys=sol2-5
2447 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 RANLIB="ar -ts"
2450 *-sunos5.6* | *-solaris2.6* )
2451 opsys=sol2-6
2452 NON_GNU_CPP=/usr/ccs/lib/cpp
2453 RANLIB="ar -ts"
2455 *-sunos5* | *-solaris* )
2456 opsys=sol2-6
2457 NON_GNU_CPP=/usr/ccs/lib/cpp
2459 * ) opsys=bsd4-2 ;;
2460 esac
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* | *-sunos5* )
2464 if [ "x$CC" = x/usr/ucb/cc ]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2467 unset CC
2470 *) ;;
2471 esac
2473 sparc-*-nextstep* )
2474 machine=sparc opsys=nextstep
2477 ## Tadpole 68k
2478 m68*-tadpole-sysv* )
2479 machine=tad68k opsys=usg5-3
2482 ## Tahoe machines
2483 tahoe-tahoe-bsd4.2* )
2484 machine=tahoe opsys=bsd4-2
2486 tahoe-tahoe-bsd4.3* )
2487 machine=tahoe opsys=bsd4-3
2490 ## Tandem Integrity S2
2491 mips-tandem-sysv* )
2492 machine=tandem-s2 opsys=usg5-3
2495 ## Tektronix XD88
2496 m88k-tektronix-sysv3* )
2497 machine=tekxd88 opsys=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd* )
2502 machine=ns16000 opsys=bsd4-2
2504 ## Tektronix 4300
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68*-tektronix-bsd* )
2507 machine=tek4300 opsys=bsd4-3
2510 ## Titan P2 or P3
2511 ## We seem to have lost the machine-description file titan.h!
2512 titan-titan-sysv* )
2513 machine=titan opsys=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68*-unisys-uniplus* )
2518 machine=ustation opsystem=unipl5-2
2521 ## Vaxen.
2522 vax-dec-* )
2523 machine=vax
2524 case "${canonical}" in
2525 *-bsd4.1* ) opsys=bsd4-1 ;;
2526 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2527 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2528 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2529 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2530 *-vms* ) opsys=vms ;;
2531 * ) unported=yes
2532 esac
2535 ## Whitechapel MG1
2536 ns16k-whitechapel-* )
2537 machine=mg1
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2542 ## Wicat
2543 m68*-wicat-sysv* )
2544 machine=wicat opsys=usg5-2
2547 ## IA-64
2548 ia64*-*-linux* )
2549 machine=ia64 opsys=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2553 i[3456]86-*-* )
2554 machine=intel386
2555 case "${canonical}" in
2556 *-cygwin ) opsys=cygwin ;;
2557 *-lynxos* ) opsys=lynxos ;;
2558 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2559 *-isc2.2* ) opsys=isc2-2 ;;
2560 *-isc4.0* ) opsys=isc4-0 ;;
2561 *-isc4.* ) opsys=isc4-1
2562 GCC_TEST_OPTIONS=-posix
2563 NON_GCC_TEST_OPTIONS=-Xp
2565 *-isc* ) opsys=isc3-0 ;;
2566 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2567 *-esix* ) opsys=esix ;;
2568 *-xenix* ) opsys=xenix ;;
2569 *-linux-gnu* ) opsys=gnu-linux ;;
2570 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2571 *-sco3.2v5* ) opsys=sco5
2572 NON_GNU_CPP=/lib/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS=" "
2577 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2578 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2579 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2580 *-386bsd* ) opsys=386bsd ;;
2581 *-nextstep* ) opsys=nextstep ;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2583 esac
2586 ## m68k Linux-based GNU system
2587 m68k-*-linux-gnu* )
2588 machine=m68k opsys=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2593 machine=mips opsys=gnu-linux
2596 ## UXP/DS
2597 sparc-fujitsu-sysv4* )
2598 machine=sparc opsys=uxpds
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2600 RANLIB="ar -ts"
2603 ## UXP/V
2604 f301-fujitsu-uxpv4.1)
2605 machine=f301 opsys=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin* )
2610 machine=powermac opsys=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP="${CC-cc} -E -no-cpp-precomp"
2613 # Use fink packages if available.
2614 if test -d /sw/include && test -d /sw/lib; then
2615 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2616 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-*-linux-gnu* )
2623 machine=amdx86-64 opsys=gnu-linux
2627 unported=yes
2629 esac
2631 ### If the code above didn't choose an operating system, just choose
2632 ### an operating system based on the configuration name. You really
2633 ### only want to use this when you have no idea what the right
2634 ### operating system is; if you know what operating systems a machine
2635 ### runs, it's cleaner to make it explicit in the case statement
2636 ### above.
2637 if test x"${opsys}" = x; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys=gnu ;;
2640 *-bsd4.[01] ) opsys=bsd4-1 ;;
2641 *-bsd4.2 ) opsys=bsd4-2 ;;
2642 *-bsd4.3 ) opsys=bsd4-3 ;;
2643 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2644 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2645 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2646 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2647 *-sysv4.2uw* ) opsys=unixware ;;
2648 *-sysv5uw* ) opsys=unixware ;;
2649 *-sysv5OpenUNIX* ) opsys=unixware ;;
2650 *-sysv4.1* | *-sysvr4.1* )
2651 NON_GNU_CPP=/usr/lib/cpp
2652 opsys=usg5-4 ;;
2653 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2654 if [ x$NON_GNU_CPP = x ]; then
2655 if [ -f /usr/ccs/lib/cpp ]; then
2656 NON_GNU_CPP=/usr/ccs/lib/cpp
2657 else
2658 NON_GNU_CPP=/lib/cpp
2661 opsys=usg5-4-2 ;;
2662 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2664 unported=yes
2666 esac
2671 if test $unported = yes; then
2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2673 Check \`etc/MACHINES' for recognized configuration names." >&5
2674 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
2679 machfile="m/${machine}.h"
2680 opsysfile="s/${opsys}.h"
2683 #### Choose a compiler.
2684 test -n "$CC" && cc_specified=yes
2686 # Save the value of CFLAGS that the user specified.
2687 SPECIFIED_CFLAGS="$CFLAGS"
2689 case ${with_gcc} in
2690 "yes" ) CC="gcc" GCC=yes ;;
2691 "no" ) : ${CC=cc} ;;
2693 esac
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2721 done
2722 done
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2730 else
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2736 if test -z "$ac_cv_prog_CC"; then
2737 ac_ct_CC=$CC
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc; ac_word=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6
2768 else
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2773 CC=$ac_ct_CC
2774 else
2775 CC="$ac_cv_prog_CC"
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2810 else
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc; ac_word=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2839 done
2840 done
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847 echo "${ECHO_T}$ac_ct_CC" >&6
2848 else
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2853 CC=$ac_ct_CC
2854 else
2855 CC="$ac_cv_prog_CC"
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 ac_prog_rejected=no
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected=yes
2880 continue
2882 ac_cv_prog_CC="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy $ac_cv_prog_CC
2892 shift
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2897 shift
2898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905 echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6
2907 else
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2915 for ac_prog in cl
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2947 else
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2952 test -n "$CC" && break
2953 done
2955 if test -z "$CC"; then
2956 ac_ct_CC=$CC
2957 for ac_prog in cl
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2989 else
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 test -n "$ac_ct_CC" && break
2995 done
2997 CC=$ac_ct_CC
3003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3009 # Provide some information about the compiler.
3010 echo "$as_me:$LINENO:" \
3011 "checking for C compiler version" >&5
3012 ac_compiler=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3014 (eval $ac_compiler --version </dev/null >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3019 (eval $ac_compiler -v </dev/null >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3024 (eval $ac_compiler -V </dev/null >&5) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3037 main ()
3041 return 0;
3043 _ACEOF
3044 ac_clean_files_save=$ac_clean_files
3045 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3048 # of exeext.
3049 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3053 (eval $ac_link_default) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3059 # resort.
3061 # Be careful to initialize this variable, since it used to be cached.
3062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3063 ac_cv_exeext=
3064 # b.out is created by i960 compilers.
3065 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3067 test -f "$ac_file" || continue
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3071 conftest.$ac_ext )
3072 # This is the source file.
3074 [ab].out )
3075 # We found the default executable, but exeext='' is most
3076 # certainly right.
3077 break;;
3078 *.* )
3079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3083 export ac_cv_exeext
3084 break;;
3086 break;;
3087 esac
3088 done
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3100 ac_exeext=$ac_cv_exeext
3101 echo "$as_me:$LINENO: result: $ac_file" >&5
3102 echo "${ECHO_T}$ac_file" >&6
3104 # Check the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try='./$ac_file'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3117 cross_compiling=no
3118 else
3119 if test "$cross_compiling" = maybe; then
3120 cross_compiling=yes
3121 else
3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3136 ac_clean_files=$ac_clean_files_save
3137 # Check the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3142 echo "${ECHO_T}$cross_compiling" >&6
3144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3154 # `rm'.
3155 for ac_file in conftest.exe conftest conftest.*; do
3156 test -f "$ac_file" || continue
3157 case $ac_file in
3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 export ac_cv_exeext
3161 break;;
3162 * ) break;;
3163 esac
3164 done
3165 else
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest$ac_cv_exeext
3174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 break;;
3211 esac
3212 done
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 echo "${ECHO_T}$ac_cv_objext" >&6
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3243 main ()
3245 #ifndef __GNUC__
3246 choke me
3247 #endif
3250 return 0;
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_compiler_gnu=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_compiler_gnu=no
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288 GCC=`test $ac_compiler_gnu = yes && echo yes`
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 CFLAGS="-g"
3292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3305 main ()
3309 return 0;
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_prog_cc_g=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_cv_prog_cc_g=no
3341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3349 CFLAGS="-g -O2"
3350 else
3351 CFLAGS="-g"
3353 else
3354 if test "$GCC" = yes; then
3355 CFLAGS="-O2"
3356 else
3357 CFLAGS=
3360 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 ac_cv_prog_cc_stdc=no
3366 ac_save_CC=$CC
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3381 char **p;
3382 int i;
3384 return p[i];
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3412 main ()
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 return 0;
3418 _ACEOF
3419 # Don't try gcc -ansi; that turns off useful extensions and
3420 # breaks some systems' header files.
3421 # AIX -qlanglvl=ansi
3422 # Ultrix and OSF/1 -std1
3423 # HP-UX 10.20 and later -Ae
3424 # HP-UX older versions -Aa -D_HPUX_SOURCE
3425 # SVR4 -Xc -D__EXTENSIONS__
3426 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 CC="$ac_save_CC $ac_arg"
3429 rm -f conftest.$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc=$ac_arg
3452 break
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3458 rm -f conftest.err conftest.$ac_objext
3459 done
3460 rm -f conftest.$ac_ext conftest.$ac_objext
3461 CC=$ac_save_CC
3465 case "x$ac_cv_prog_cc_stdc" in
3466 x|xno)
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468 echo "${ECHO_T}none needed" >&6 ;;
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC="$CC $ac_cv_prog_cc_stdc" ;;
3473 esac
3475 # Some people use a C++ compiler to compile C. Since we use `exit',
3476 # in C++ we need to declare it. In case someone uses the same compiler
3477 # for both compiling C and C++ we need to have the C++ compiler decide
3478 # the declaration of exit, since it's the most demanding environment.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #ifndef __cplusplus
3481 choke me
3482 #endif
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 (eval $ac_try) 2>&5
3497 ac_status=$?
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 for ac_declaration in \
3507 '' \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3512 'void exit (int);'
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 $ac_declaration
3521 #include <stdlib.h>
3523 main ()
3525 exit (42);
3527 return 0;
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 continue
3559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566 $ac_declaration
3568 main ()
3570 exit (42);
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 break
3598 else
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 done
3605 rm -f conftest*
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3627 CPP=
3630 #### Some systems specify a CPP to use unless we are using GCC.
3631 #### Now that we know whether we are using GCC, we can decide whether
3632 #### to use that one.
3633 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3634 then
3635 CPP="$NON_GNU_CPP"
3638 #### Some systems specify a CC to use unless we are using GCC.
3639 #### Now that we know whether we are using GCC, we can decide whether
3640 #### to use that one.
3641 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3642 test x$cc_specified != xyes
3643 then
3644 CC="$NON_GNU_CC"
3647 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3648 then
3649 CC="$CC $GCC_TEST_OPTIONS"
3652 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3653 then
3654 CC="$CC $NON_GCC_TEST_OPTIONS"
3657 #### Some other nice autoconf tests.
3659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3661 LN_S=$as_ln_s
3662 if test "$LN_S" = "ln -s"; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3667 echo "${ECHO_T}no, using $LN_S" >&6
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3676 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3677 # On Suns, sometimes $CPP names a directory.
3678 if test -n "$CPP" && test -d "$CPP"; then
3679 CPP=
3681 if test -z "$CPP"; then
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 else
3685 # Double quotes because CPP needs to be expanded
3686 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3688 ac_preproc_ok=false
3689 for ac_c_preproc_warn_flag in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #ifdef __STDC__
3704 # include <limits.h>
3705 #else
3706 # include <assert.h>
3707 #endif
3708 Syntax error
3709 _ACEOF
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3712 ac_status=$?
3713 grep -v '^ *+' conftest.er1 >conftest.err
3714 rm -f conftest.er1
3715 cat conftest.err >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev/null; then
3718 if test -s conftest.err; then
3719 ac_cpp_err=$ac_c_preproc_warn_flag
3720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3721 else
3722 ac_cpp_err=
3724 else
3725 ac_cpp_err=yes
3727 if test -z "$ac_cpp_err"; then
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 # Broken: fails on valid input.
3734 continue
3736 rm -f conftest.err conftest.$ac_ext
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3747 _ACEOF
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev/null; then
3756 if test -s conftest.err; then
3757 ac_cpp_err=$ac_c_preproc_warn_flag
3758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3759 else
3760 ac_cpp_err=
3762 else
3763 ac_cpp_err=yes
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3767 continue
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3772 # Passes both tests.
3773 ac_preproc_ok=:
3774 break
3776 rm -f conftest.err conftest.$ac_ext
3778 done
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then
3782 break
3785 done
3786 ac_cv_prog_CPP=$CPP
3789 CPP=$ac_cv_prog_CPP
3790 else
3791 ac_cv_prog_CPP=$CPP
3793 echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6
3795 ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3810 #ifdef __STDC__
3811 # include <limits.h>
3812 #else
3813 # include <assert.h>
3814 #endif
3815 Syntax error
3816 _ACEOF
3817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } >/dev/null; then
3825 if test -s conftest.err; then
3826 ac_cpp_err=$ac_c_preproc_warn_flag
3827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3828 else
3829 ac_cpp_err=
3831 else
3832 ac_cpp_err=yes
3834 if test -z "$ac_cpp_err"; then
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Broken: fails on valid input.
3841 continue
3843 rm -f conftest.err conftest.$ac_ext
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev/null; then
3863 if test -s conftest.err; then
3864 ac_cpp_err=$ac_c_preproc_warn_flag
3865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3866 else
3867 ac_cpp_err=
3869 else
3870 ac_cpp_err=yes
3872 if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3874 continue
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Passes both tests.
3880 ac_preproc_ok=:
3881 break
3883 rm -f conftest.err conftest.$ac_ext
3885 done
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then
3890 else
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&5
3893 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&2;}
3895 { (exit 1); exit 1; }; }
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 # Find a good install program. We prefer a C program (faster),
3905 # so one script is as good as another. But avoid the broken or
3906 # incompatible versions:
3907 # SysV /etc/install, /usr/sbin/install
3908 # SunOS /usr/etc/install
3909 # IRIX /sbin/install
3910 # AIX /bin/install
3911 # AmigaOS /C/install, which installs bootblocks on floppy discs
3912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3915 # OS/2's system install, which has a completely different semantic
3916 # ./install, which can be erroneously created by make from ./install.sh.
3917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3919 if test -z "$INSTALL"; then
3920 if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 # Account for people who put trailing slashes in PATH elements.
3929 case $as_dir/ in
3930 ./ | .// | /cC/* | \
3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3933 /usr/ucb/* ) ;;
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3949 else
3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3951 break 3
3954 done
3955 done
3957 esac
3958 done
3962 if test "${ac_cv_path_install+set}" = set; then
3963 INSTALL=$ac_cv_path_install
3964 else
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
3969 INSTALL=$ac_install_sh
3972 echo "$as_me:$LINENO: result: $INSTALL" >&5
3973 echo "${ECHO_T}$INSTALL" >&6
3975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976 # It thinks the first close brace ends the variable substitution.
3977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3981 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3983 if test "x$RANLIB" = x; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 break 2
4006 done
4007 done
4011 RANLIB=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
4014 echo "${ECHO_T}$RANLIB" >&6
4015 else
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024 set dummy ranlib; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4050 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4051 if test -n "$ac_ct_RANLIB"; then
4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4053 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 RANLIB=$ac_ct_RANLIB
4060 else
4061 RANLIB="$ac_cv_prog_RANLIB"
4065 # Extract the first word of "install-info", so it can be a program name with args.
4066 set dummy install-info; ac_word=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 case $INSTALL_INFO in
4073 [\\/]* | ?:[\\/]*)
4074 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4092 esac
4094 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4096 if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098 echo "${ECHO_T}$INSTALL_INFO" >&6
4099 else
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4104 # Extract the first word of "install-info", so it can be a program name with args.
4105 set dummy install-info; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 case $INSTALL_INFO in
4112 [\\/]* | ?:[\\/]*)
4113 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in /usr/sbin
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4127 done
4128 done
4131 esac
4133 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4135 if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137 echo "${ECHO_T}$INSTALL_INFO" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "install-info", so it can be a program name with args.
4144 set dummy install-info; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 case $INSTALL_INFO in
4151 [\\/]* | ?:[\\/]*)
4152 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in /sbin
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4171 esac
4173 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4175 if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177 echo "${ECHO_T}$INSTALL_INFO" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4185 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4186 then
4187 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4190 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4191 then
4192 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4196 late_LDFLAGS=$LDFLAGS
4197 if test $GCC = yes; then
4198 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4199 else
4200 LDFLAGS="$LDFLAGS -znocombreloc"
4203 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4204 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4206 cat >conftest.$ac_ext <<_ACEOF
4207 main(){return 0;}
4208 _ACEOF
4209 rm -f conftest.$ac_objext conftest$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 (eval $ac_try) 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 LDFLAGS=$late_LDFLAGS
4238 echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4241 rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4245 echo "$as_me:$LINENO: checking for egrep" >&5
4246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247 if test "${ac_cv_prog_egrep+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4251 then ac_cv_prog_egrep='grep -E'
4252 else ac_cv_prog_egrep='egrep'
4255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP=$ac_cv_prog_egrep
4261 echo "$as_me:$LINENO: checking for AIX" >&5
4262 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #ifdef _AIX
4271 #endif
4273 _ACEOF
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "yes" >/dev/null 2>&1; then
4276 echo "$as_me:$LINENO: result: yes" >&5
4277 echo "${ECHO_T}yes" >&6
4278 cat >>confdefs.h <<\_ACEOF
4279 #define _ALL_SOURCE 1
4280 _ACEOF
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4286 rm -f conftest*
4290 #### Extract some information from the operating system and machine files.
4292 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4293 - which libraries the lib-src programs will want, and
4294 - whether the GNU malloc routines are usable..." >&5
4295 echo "$as_me: checking the machine- and system-dependent files to find out
4296 - which libraries the lib-src programs will want, and
4297 - whether the GNU malloc routines are usable..." >&6;}
4299 ### First figure out CFLAGS (which we use for running the compiler here)
4300 ### and REAL_CFLAGS (which we use for real compilation).
4301 ### The two are the same except on a few systems, where they are made
4302 ### different to work around various lossages. For example,
4303 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4304 ### as implying static linking.
4306 ### If the CFLAGS env var is specified, we use that value
4307 ### instead of the default.
4309 ### It's not important that this name contain the PID; you can't run
4310 ### two configures in the same directory and have anything work
4311 ### anyway.
4312 tempcname="conftest.c"
4314 echo '
4315 #include "'${srcdir}'/src/'${opsysfile}'"
4316 #include "'${srcdir}'/src/'${machfile}'"
4317 #ifndef LIBS_MACHINE
4318 #define LIBS_MACHINE
4319 #endif
4320 #ifndef LIBS_SYSTEM
4321 #define LIBS_SYSTEM
4322 #endif
4323 #ifndef C_SWITCH_SYSTEM
4324 #define C_SWITCH_SYSTEM
4325 #endif
4326 #ifndef C_SWITCH_MACHINE
4327 #define C_SWITCH_MACHINE
4328 #endif
4329 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4330 configure___ c_switch_system=C_SWITCH_SYSTEM
4331 configure___ c_switch_machine=C_SWITCH_MACHINE
4333 #ifndef LIB_X11_LIB
4334 #define LIB_X11_LIB -lX11
4335 #endif
4337 #ifndef LIBX11_MACHINE
4338 #define LIBX11_MACHINE
4339 #endif
4341 #ifndef LIBX11_SYSTEM
4342 #define LIBX11_SYSTEM
4343 #endif
4344 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4346 #ifdef UNEXEC
4347 configure___ unexec=UNEXEC
4348 #else
4349 configure___ unexec=unexec.o
4350 #endif
4352 #ifdef SYSTEM_MALLOC
4353 configure___ system_malloc=yes
4354 #else
4355 configure___ system_malloc=no
4356 #endif
4358 #ifdef USE_MMAP_FOR_BUFFERS
4359 configure___ use_mmap_for_buffers=yes
4360 #else
4361 configure___ use_mmap_for_buffers=no
4362 #endif
4364 #ifndef C_DEBUG_SWITCH
4365 #define C_DEBUG_SWITCH -g
4366 #endif
4368 #ifndef C_OPTIMIZE_SWITCH
4369 #ifdef __GNUC__
4370 #define C_OPTIMIZE_SWITCH -O2
4371 #else
4372 #define C_OPTIMIZE_SWITCH -O
4373 #endif
4374 #endif
4376 #ifndef LD_SWITCH_MACHINE
4377 #define LD_SWITCH_MACHINE
4378 #endif
4380 #ifndef LD_SWITCH_SYSTEM
4381 #define LD_SWITCH_SYSTEM
4382 #endif
4384 #ifndef LD_SWITCH_X_SITE_AUX
4385 #define LD_SWITCH_X_SITE_AUX
4386 #endif
4388 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4389 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4391 #ifdef THIS_IS_CONFIGURE
4393 /* Get the CFLAGS for tests in configure. */
4394 #ifdef __GNUC__
4395 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4396 #else
4397 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4398 #endif
4400 #else /* not THIS_IS_CONFIGURE */
4402 /* Get the CFLAGS for real compilation. */
4403 #ifdef __GNUC__
4404 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4405 #else
4406 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4407 #endif
4409 #endif /* not THIS_IS_CONFIGURE */
4410 ' > ${tempcname}
4412 # The value of CPP is a quoted variable reference, so we need to do this
4413 # to get its actual value...
4414 CPP=`eval "echo $CPP"`
4415 eval `${CPP} -Isrc ${tempcname} \
4416 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4417 if test "x$SPECIFIED_CFLAGS" = x; then
4418 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4419 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4420 else
4421 REAL_CFLAGS="$CFLAGS"
4423 rm ${tempcname}
4425 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4427 ### Make sure subsequent tests use flags consistent with the build flags.
4429 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4430 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4431 else
4432 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4438 cat >>confdefs.h <<\_ACEOF
4439 #define _GNU_SOURCE 1
4440 _ACEOF
4444 # Check whether --enable-largefile or --disable-largefile was given.
4445 if test "${enable_largefile+set}" = set; then
4446 enableval="$enable_largefile"
4449 if test "$enable_largefile" != no; then
4451 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4452 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4453 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 ac_cv_sys_largefile_CC=no
4457 if test "$GCC" != yes; then
4458 ac_save_CC=$CC
4459 while :; do
4460 # IRIX 6.2 and later do not support large files by default,
4461 # so use the C compiler's -n32 option if that helps.
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <sys/types.h>
4469 /* Check that off_t can represent 2**63 - 1 correctly.
4470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4471 since some C++ compilers masquerading as C compilers
4472 incorrectly reject 9223372036854775807. */
4473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4475 && LARGE_OFF_T % 2147483647 == 1)
4476 ? 1 : -1];
4478 main ()
4482 return 0;
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -z "$ac_c_werror_flag"
4495 || test ! -s conftest.err'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 (eval $ac_try) 2>&5
4498 ac_status=$?
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; } &&
4501 { ac_try='test -s conftest.$ac_objext'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4507 break
4508 else
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4513 rm -f conftest.err conftest.$ac_objext
4514 CC="$CC -n32"
4515 rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag"
4525 || test ! -s conftest.err'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 (eval $ac_try) 2>&5
4534 ac_status=$?
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_sys_largefile_CC=' -n32'; break
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4543 rm -f conftest.err conftest.$ac_objext
4544 break
4545 done
4546 CC=$ac_save_CC
4547 rm -f conftest.$ac_ext
4550 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4551 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4552 if test "$ac_cv_sys_largefile_CC" != no; then
4553 CC=$CC$ac_cv_sys_largefile_CC
4556 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4557 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4558 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561 while :; do
4562 ac_cv_sys_file_offset_bits=no
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 /* Check that off_t can represent 2**63 - 1 correctly.
4571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4572 since some C++ compilers masquerading as C compilers
4573 incorrectly reject 9223372036854775807. */
4574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4576 && LARGE_OFF_T % 2147483647 == 1)
4577 ? 1 : -1];
4579 main ()
4583 return 0;
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 break
4609 else
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 #define _FILE_OFFSET_BITS 64
4622 #include <sys/types.h>
4623 /* Check that off_t can represent 2**63 - 1 correctly.
4624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4625 since some C++ compilers masquerading as C compilers
4626 incorrectly reject 9223372036854775807. */
4627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4629 && LARGE_OFF_T % 2147483647 == 1)
4630 ? 1 : -1];
4632 main ()
4636 return 0;
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_sys_file_offset_bits=64; break
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4668 break
4669 done
4671 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4672 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4673 if test "$ac_cv_sys_file_offset_bits" != no; then
4675 cat >>confdefs.h <<_ACEOF
4676 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4677 _ACEOF
4680 rm -f conftest*
4681 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4682 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4683 if test "${ac_cv_sys_large_files+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686 while :; do
4687 ac_cv_sys_large_files=no
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694 #include <sys/types.h>
4695 /* Check that off_t can represent 2**63 - 1 correctly.
4696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4697 since some C++ compilers masquerading as C compilers
4698 incorrectly reject 9223372036854775807. */
4699 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4701 && LARGE_OFF_T % 2147483647 == 1)
4702 ? 1 : -1];
4704 main ()
4708 return 0;
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -z "$ac_c_werror_flag"
4721 || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 break
4734 else
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #define _LARGE_FILES 1
4747 #include <sys/types.h>
4748 /* Check that off_t can represent 2**63 - 1 correctly.
4749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4750 since some C++ compilers masquerading as C compilers
4751 incorrectly reject 9223372036854775807. */
4752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4754 && LARGE_OFF_T % 2147483647 == 1)
4755 ? 1 : -1];
4757 main ()
4761 return 0;
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_cv_sys_large_files=1; break
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793 break
4794 done
4796 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4797 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4798 if test "$ac_cv_sys_large_files" != no; then
4800 cat >>confdefs.h <<_ACEOF
4801 #define _LARGE_FILES $ac_cv_sys_large_files
4802 _ACEOF
4805 rm -f conftest*
4809 if test "${with_sound}" != "no"; then
4810 # Sound support for GNU/Linux and the free BSDs.
4811 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4813 if test "${ac_cv_header_stdc+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <stdlib.h>
4823 #include <stdarg.h>
4824 #include <string.h>
4825 #include <float.h>
4828 main ()
4832 return 0;
4834 _ACEOF
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 ac_cv_header_stdc=yes
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 ac_cv_header_stdc=no
4864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4866 if test $ac_cv_header_stdc = yes; then
4867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <string.h>
4876 _ACEOF
4877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4878 $EGREP "memchr" >/dev/null 2>&1; then
4880 else
4881 ac_cv_header_stdc=no
4883 rm -f conftest*
4887 if test $ac_cv_header_stdc = yes; then
4888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 #include <stdlib.h>
4897 _ACEOF
4898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4899 $EGREP "free" >/dev/null 2>&1; then
4901 else
4902 ac_cv_header_stdc=no
4904 rm -f conftest*
4908 if test $ac_cv_header_stdc = yes; then
4909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4910 if test "$cross_compiling" = yes; then
4912 else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <ctype.h>
4920 #if ((' ' & 0x0FF) == 0x020)
4921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4923 #else
4924 # define ISLOWER(c) \
4925 (('a' <= (c) && (c) <= 'i') \
4926 || ('j' <= (c) && (c) <= 'r') \
4927 || ('s' <= (c) && (c) <= 'z'))
4928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4929 #endif
4931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4933 main ()
4935 int i;
4936 for (i = 0; i < 256; i++)
4937 if (XOR (islower (i), ISLOWER (i))
4938 || toupper (i) != TOUPPER (i))
4939 exit(2);
4940 exit (0);
4942 _ACEOF
4943 rm -f conftest$ac_exeext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4945 (eval $ac_link) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4955 else
4956 echo "$as_me: program exited with status $ac_status" >&5
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 ( exit $ac_status )
4961 ac_cv_header_stdc=no
4963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4967 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4968 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4969 if test $ac_cv_header_stdc = yes; then
4971 cat >>confdefs.h <<\_ACEOF
4972 #define STDC_HEADERS 1
4973 _ACEOF
4977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4987 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4988 inttypes.h stdint.h unistd.h
4990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991 echo "$as_me:$LINENO: checking for $ac_header" >&5
4992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h. */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5004 #include <$ac_header>
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 eval "$as_ac_Header=yes"
5029 else
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5033 eval "$as_ac_Header=no"
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5040 cat >>confdefs.h <<_ACEOF
5041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 _ACEOF
5046 done
5052 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5056 echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063 else
5064 # Is the header compilable?
5065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5073 $ac_includes_default
5074 #include <$ac_header>
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -z "$ac_c_werror_flag"
5086 || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_header_compiler=yes
5099 else
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 ac_header_compiler=no
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107 echo "${ECHO_T}$ac_header_compiler" >&6
5109 # Is the header present?
5110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5112 cat >conftest.$ac_ext <<_ACEOF
5113 /* confdefs.h. */
5114 _ACEOF
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <$ac_header>
5119 _ACEOF
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_c_preproc_warn_flag
5130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5131 else
5132 ac_cpp_err=
5134 else
5135 ac_cpp_err=yes
5137 if test -z "$ac_cpp_err"; then
5138 ac_header_preproc=yes
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 ac_header_preproc=no
5145 rm -f conftest.err conftest.$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5147 echo "${ECHO_T}$ac_header_preproc" >&6
5149 # So? What about this header?
5150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5151 yes:no: )
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5156 ac_header_preproc=yes
5158 no:yes:* )
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5172 cat <<\_ASBOX
5173 ## ------------------------------------------ ##
5174 ## Report this to the AC_PACKAGE_NAME lists. ##
5175 ## ------------------------------------------ ##
5176 _ASBOX
5178 sed "s/^/$as_me: WARNING: /" >&2
5180 esac
5181 echo "$as_me:$LINENO: checking for $ac_header" >&5
5182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 else
5186 eval "$as_ac_Header=\$ac_header_preproc"
5188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 _ACEOF
5199 done
5201 # Emulation library used on NetBSD.
5202 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5203 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5204 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 ac_check_lib_save_LIBS=$LIBS
5208 LIBS="-lossaudio $LIBS"
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5216 /* Override any gcc2 internal prototype to avoid an error. */
5217 #ifdef __cplusplus
5218 extern "C"
5219 #endif
5220 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */
5222 char _oss_ioctl ();
5224 main ()
5226 _oss_ioctl ();
5228 return 0;
5230 _ACEOF
5231 rm -f conftest.$ac_objext conftest$ac_exeext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5233 (eval $ac_link) 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try='test -s conftest$ac_exeext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
5253 ac_cv_lib_ossaudio__oss_ioctl=yes
5254 else
5255 echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 ac_cv_lib_ossaudio__oss_ioctl=no
5260 rm -f conftest.err conftest.$ac_objext \
5261 conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5264 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5265 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5266 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5267 LIBSOUND=-lossaudio
5268 else
5269 LIBSOUND=
5298 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5299 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5300 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5301 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5305 echo "$as_me:$LINENO: checking for $ac_header" >&5
5306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5312 else
5313 # Is the header compilable?
5314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5323 #include <$ac_header>
5324 _ACEOF
5325 rm -f conftest.$ac_objext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327 (eval $ac_compile) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest.$ac_objext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_header_compiler=yes
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_header_compiler=no
5354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5356 echo "${ECHO_T}$ac_header_compiler" >&6
5358 # Is the header present?
5359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5361 cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <$ac_header>
5368 _ACEOF
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
5379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5380 else
5381 ac_cpp_err=
5383 else
5384 ac_cpp_err=yes
5386 if test -z "$ac_cpp_err"; then
5387 ac_header_preproc=yes
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5392 ac_header_preproc=no
5394 rm -f conftest.err conftest.$ac_ext
5395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5396 echo "${ECHO_T}$ac_header_preproc" >&6
5398 # So? What about this header?
5399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5400 yes:no: )
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5405 ac_header_preproc=yes
5407 no:yes:* )
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5421 cat <<\_ASBOX
5422 ## ------------------------------------------ ##
5423 ## Report this to the AC_PACKAGE_NAME lists. ##
5424 ## ------------------------------------------ ##
5425 _ASBOX
5427 sed "s/^/$as_me: WARNING: /" >&2
5429 esac
5430 echo "$as_me:$LINENO: checking for $ac_header" >&5
5431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 eval "$as_ac_Header=\$ac_header_preproc"
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442 cat >>confdefs.h <<_ACEOF
5443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5444 _ACEOF
5448 done
5451 for ac_header in term.h
5453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5454 echo "$as_me:$LINENO: checking for $ac_header" >&5
5455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <$ac_header>
5466 _ACEOF
5467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } >/dev/null; then
5475 if test -s conftest.err; then
5476 ac_cpp_err=$ac_c_preproc_warn_flag
5477 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5478 else
5479 ac_cpp_err=
5481 else
5482 ac_cpp_err=yes
5484 if test -z "$ac_cpp_err"; then
5485 eval "$as_ac_Header=yes"
5486 else
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5490 eval "$as_ac_Header=no"
5492 rm -f conftest.err conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5497 cat >>confdefs.h <<_ACEOF
5498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5499 _ACEOF
5503 done
5505 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5507 if test "${ac_cv_header_stdc+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <stdlib.h>
5517 #include <stdarg.h>
5518 #include <string.h>
5519 #include <float.h>
5522 main ()
5526 return 0;
5528 _ACEOF
5529 rm -f conftest.$ac_objext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>conftest.er1
5532 ac_status=$?
5533 grep -v '^ *+' conftest.er1 >conftest.err
5534 rm -f conftest.er1
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 (eval $ac_try) 2>&5
5542 ac_status=$?
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 (eval $ac_try) 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_header_stdc=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 ac_cv_header_stdc=no
5558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5560 if test $ac_cv_header_stdc = yes; then
5561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5562 cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <string.h>
5570 _ACEOF
5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5572 $EGREP "memchr" >/dev/null 2>&1; then
5574 else
5575 ac_cv_header_stdc=no
5577 rm -f conftest*
5581 if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <stdlib.h>
5591 _ACEOF
5592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5593 $EGREP "free" >/dev/null 2>&1; then
5595 else
5596 ac_cv_header_stdc=no
5598 rm -f conftest*
5602 if test $ac_cv_header_stdc = yes; then
5603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5604 if test "$cross_compiling" = yes; then
5606 else
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 #include <ctype.h>
5614 #if ((' ' & 0x0FF) == 0x020)
5615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5617 #else
5618 # define ISLOWER(c) \
5619 (('a' <= (c) && (c) <= 'i') \
5620 || ('j' <= (c) && (c) <= 'r') \
5621 || ('s' <= (c) && (c) <= 'z'))
5622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5623 #endif
5625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5627 main ()
5629 int i;
5630 for (i = 0; i < 256; i++)
5631 if (XOR (islower (i), ISLOWER (i))
5632 || toupper (i) != TOUPPER (i))
5633 exit(2);
5634 exit (0);
5636 _ACEOF
5637 rm -f conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 (eval $ac_try) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; }; then
5649 else
5650 echo "$as_me: program exited with status $ac_status" >&5
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 ( exit $ac_status )
5655 ac_cv_header_stdc=no
5657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5661 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5662 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5663 if test $ac_cv_header_stdc = yes; then
5665 cat >>confdefs.h <<\_ACEOF
5666 #define STDC_HEADERS 1
5667 _ACEOF
5671 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5672 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5673 if test "${ac_cv_header_time+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 #include <sys/types.h>
5683 #include <sys/time.h>
5684 #include <time.h>
5687 main ()
5689 if ((struct tm *) 0)
5690 return 0;
5692 return 0;
5694 _ACEOF
5695 rm -f conftest.$ac_objext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -z "$ac_c_werror_flag"
5705 || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_header_time=yes
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 ac_cv_header_time=no
5724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5727 echo "${ECHO_T}$ac_cv_header_time" >&6
5728 if test $ac_cv_header_time = yes; then
5730 cat >>confdefs.h <<\_ACEOF
5731 #define TIME_WITH_SYS_TIME 1
5732 _ACEOF
5736 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5737 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5738 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741 cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h. */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 $ac_includes_default
5749 main ()
5751 #ifndef sys_siglist
5752 char *p = (char *) sys_siglist;
5753 #endif
5756 return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_have_decl_sys_siglist=yes
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 ac_cv_have_decl_sys_siglist=no
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5791 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5792 if test $ac_cv_have_decl_sys_siglist = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define HAVE_DECL_SYS_SIGLIST 1
5796 _ACEOF
5799 else
5800 cat >>confdefs.h <<_ACEOF
5801 #define HAVE_DECL_SYS_SIGLIST 0
5802 _ACEOF
5808 if test $ac_cv_have_decl_sys_siglist != yes; then
5809 # For Tru64, at least:
5810 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5811 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5812 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5823 main ()
5825 #ifndef __sys_siglist
5826 char *p = (char *) __sys_siglist;
5827 #endif
5830 return 0;
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -z "$ac_c_werror_flag"
5843 || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try='test -s conftest.$ac_objext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5855 ac_cv_have_decl___sys_siglist=yes
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_cv_have_decl___sys_siglist=no
5862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5864 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5865 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5866 if test $ac_cv_have_decl___sys_siglist = yes; then
5868 cat >>confdefs.h <<_ACEOF
5869 #define HAVE_DECL___SYS_SIGLIST 1
5870 _ACEOF
5873 else
5874 cat >>confdefs.h <<_ACEOF
5875 #define HAVE_DECL___SYS_SIGLIST 0
5876 _ACEOF
5882 if test $ac_cv_have_decl___sys_siglist = yes; then
5884 cat >>confdefs.h <<\_ACEOF
5885 #define sys_siglist __sys_siglist
5886 _ACEOF
5890 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5891 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5892 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <sys/types.h>
5902 #include <sys/wait.h>
5903 #ifndef WEXITSTATUS
5904 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5905 #endif
5906 #ifndef WIFEXITED
5907 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5908 #endif
5911 main ()
5913 int s;
5914 wait (&s);
5915 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5917 return 0;
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag"
5930 || test ! -s conftest.err'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; } &&
5936 { ac_try='test -s conftest.$ac_objext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_header_sys_wait_h=yes
5943 else
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5947 ac_cv_header_sys_wait_h=no
5949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5952 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5953 if test $ac_cv_header_sys_wait_h = yes; then
5955 cat >>confdefs.h <<\_ACEOF
5956 #define HAVE_SYS_WAIT_H 1
5957 _ACEOF
5962 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5963 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5964 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #ifdef TIME_WITH_SYS_TIME
5974 #include <sys/time.h>
5975 #include <time.h>
5976 #else
5977 #ifdef HAVE_SYS_TIME_H
5978 #include <sys/time.h>
5979 #else
5980 #include <time.h>
5981 #endif
5982 #endif
5983 #ifdef HAVE_UTIME_H
5984 #include <utime.h>
5985 #endif
5987 main ()
5989 static struct utimbuf x; x.actime = x.modtime;
5991 return 0;
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5996 (eval $ac_compile) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag"
6004 || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 emacs_cv_struct_utimbuf=yes
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 emacs_cv_struct_utimbuf=no
6023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6026 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6027 if test $emacs_cv_struct_utimbuf = yes; then
6029 cat >>confdefs.h <<\_ACEOF
6030 #define HAVE_STRUCT_UTIMBUF 1
6031 _ACEOF
6035 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6036 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6037 if test "${ac_cv_type_signal+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <sys/types.h>
6047 #include <signal.h>
6048 #ifdef signal
6049 # undef signal
6050 #endif
6051 #ifdef __cplusplus
6052 extern "C" void (*signal (int, void (*)(int)))(int);
6053 #else
6054 void (*signal ()) ();
6055 #endif
6058 main ()
6060 int i;
6062 return 0;
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_type_signal=void
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_type_signal=int
6094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6097 echo "${ECHO_T}$ac_cv_type_signal" >&6
6099 cat >>confdefs.h <<_ACEOF
6100 #define RETSIGTYPE $ac_cv_type_signal
6101 _ACEOF
6105 echo "$as_me:$LINENO: checking for speed_t" >&5
6106 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6107 if test "${emacs_cv_speed_t+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #include <termios.h>
6118 main ()
6120 speed_t x = 1;
6122 return 0;
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127 (eval $ac_compile) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag"
6135 || test ! -s conftest.err'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest.$ac_objext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 emacs_cv_speed_t=yes
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 emacs_cv_speed_t=no
6154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6156 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6157 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6158 if test $emacs_cv_speed_t = yes; then
6160 cat >>confdefs.h <<\_ACEOF
6161 #define HAVE_SPEED_T 1
6162 _ACEOF
6166 echo "$as_me:$LINENO: checking for struct timeval" >&5
6167 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6168 if test "${emacs_cv_struct_timeval+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 #ifdef TIME_WITH_SYS_TIME
6178 #include <sys/time.h>
6179 #include <time.h>
6180 #else
6181 #ifdef HAVE_SYS_TIME_H
6182 #include <sys/time.h>
6183 #else
6184 #include <time.h>
6185 #endif
6186 #endif
6188 main ()
6190 static struct timeval x; x.tv_sec = x.tv_usec;
6192 return 0;
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 emacs_cv_struct_timeval=yes
6218 else
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 emacs_cv_struct_timeval=no
6224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6226 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6227 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6228 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6229 if test $emacs_cv_struct_timeval = yes; then
6231 cat >>confdefs.h <<\_ACEOF
6232 #define HAVE_TIMEVAL 1
6233 _ACEOF
6237 echo "$as_me:$LINENO: checking for struct exception" >&5
6238 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6239 if test "${emacs_cv_struct_exception+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <math.h>
6250 main ()
6252 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6254 return 0;
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 emacs_cv_struct_exception=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 emacs_cv_struct_exception=no
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6289 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6290 HAVE_EXCEPTION=$emacs_cv_struct_exception
6291 if test $emacs_cv_struct_exception != yes; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define NO_MATHERR 1
6295 _ACEOF
6300 for ac_header in sys/socket.h
6302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6304 echo "$as_me:$LINENO: checking for $ac_header" >&5
6305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6311 else
6312 # Is the header compilable?
6313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 $ac_includes_default
6322 #include <$ac_header>
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326 (eval $ac_compile) 2>conftest.er1
6327 ac_status=$?
6328 grep -v '^ *+' conftest.er1 >conftest.err
6329 rm -f conftest.er1
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_c_werror_flag"
6334 || test ! -s conftest.err'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; } &&
6340 { ac_try='test -s conftest.$ac_objext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_header_compiler=yes
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 ac_header_compiler=no
6353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6355 echo "${ECHO_T}$ac_header_compiler" >&6
6357 # Is the header present?
6358 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <$ac_header>
6367 _ACEOF
6368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } >/dev/null; then
6376 if test -s conftest.err; then
6377 ac_cpp_err=$ac_c_preproc_warn_flag
6378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6379 else
6380 ac_cpp_err=
6382 else
6383 ac_cpp_err=yes
6385 if test -z "$ac_cpp_err"; then
6386 ac_header_preproc=yes
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 ac_header_preproc=no
6393 rm -f conftest.err conftest.$ac_ext
6394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6395 echo "${ECHO_T}$ac_header_preproc" >&6
6397 # So? What about this header?
6398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6399 yes:no: )
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6404 ac_header_preproc=yes
6406 no:yes:* )
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6420 cat <<\_ASBOX
6421 ## ------------------------------------------ ##
6422 ## Report this to the AC_PACKAGE_NAME lists. ##
6423 ## ------------------------------------------ ##
6424 _ASBOX
6426 sed "s/^/$as_me: WARNING: /" >&2
6428 esac
6429 echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 eval "$as_ac_Header=\$ac_header_preproc"
6436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6441 cat >>confdefs.h <<_ACEOF
6442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443 _ACEOF
6447 done
6450 for ac_header in net/if.h
6452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6453 echo "$as_me:$LINENO: checking for $ac_header" >&5
6454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 $ac_includes_default
6465 #if HAVE_SYS_SOCKET_H
6466 #include <sys/socket.h>
6467 #endif
6469 #include <$ac_header>
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473 (eval $ac_compile) 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } &&
6480 { ac_try='test -z "$ac_c_werror_flag"
6481 || test ! -s conftest.err'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; } &&
6487 { ac_try='test -s conftest.$ac_objext'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 (eval $ac_try) 2>&5
6490 ac_status=$?
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; }; then
6493 eval "$as_ac_Header=yes"
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 eval "$as_ac_Header=no"
6500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6511 done
6514 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6515 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6516 if test "${ac_cv_struct_tm+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519 cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h. */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 #include <sys/types.h>
6526 #include <time.h>
6529 main ()
6531 struct tm *tp; tp->tm_sec;
6533 return 0;
6535 _ACEOF
6536 rm -f conftest.$ac_objext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6538 (eval $ac_compile) 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -z "$ac_c_werror_flag"
6546 || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest.$ac_objext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_struct_tm=time.h
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cv_struct_tm=sys/time.h
6565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6567 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6568 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6569 if test $ac_cv_struct_tm = sys/time.h; then
6571 cat >>confdefs.h <<\_ACEOF
6572 #define TM_IN_SYS_TIME 1
6573 _ACEOF
6577 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6578 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6579 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 #include <sys/types.h>
6589 #include <$ac_cv_struct_tm>
6593 main ()
6595 static struct tm ac_aggr;
6596 if (ac_aggr.tm_zone)
6597 return 0;
6599 return 0;
6601 _ACEOF
6602 rm -f conftest.$ac_objext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6604 (eval $ac_compile) 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } &&
6611 { ac_try='test -z "$ac_c_werror_flag"
6612 || test ! -s conftest.err'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_cv_member_struct_tm_tm_zone=yes
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <sys/types.h>
6636 #include <$ac_cv_struct_tm>
6640 main ()
6642 static struct tm ac_aggr;
6643 if (sizeof ac_aggr.tm_zone)
6644 return 0;
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } &&
6658 { ac_try='test -z "$ac_c_werror_flag"
6659 || test ! -s conftest.err'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; } &&
6665 { ac_try='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_member_struct_tm_tm_zone=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_cv_member_struct_tm_tm_zone=no
6678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6682 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6683 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6684 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6686 cat >>confdefs.h <<_ACEOF
6687 #define HAVE_STRUCT_TM_TM_ZONE 1
6688 _ACEOF
6693 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define HAVE_TM_ZONE 1
6697 _ACEOF
6699 else
6700 echo "$as_me:$LINENO: checking for tzname" >&5
6701 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6702 if test "${ac_cv_var_tzname+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 #include <time.h>
6712 #ifndef tzname /* For SGI. */
6713 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6714 #endif
6717 main ()
6719 atoi(*tzname);
6721 return 0;
6723 _ACEOF
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag"
6734 || test ! -s conftest.err'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 ac_cv_var_tzname=yes
6747 else
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6751 ac_cv_var_tzname=no
6753 rm -f conftest.err conftest.$ac_objext \
6754 conftest$ac_exeext conftest.$ac_ext
6756 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6757 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6758 if test $ac_cv_var_tzname = yes; then
6760 cat >>confdefs.h <<\_ACEOF
6761 #define HAVE_TZNAME 1
6762 _ACEOF
6767 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6768 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6769 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h. */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 #include <time.h>
6781 main ()
6783 static struct tm ac_aggr;
6784 if (ac_aggr.tm_gmtoff)
6785 return 0;
6787 return 0;
6789 _ACEOF
6790 rm -f conftest.$ac_objext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792 (eval $ac_compile) 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 (eval $ac_try) 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_member_struct_tm_tm_gmtoff=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 cat >conftest.$ac_ext <<_ACEOF
6818 /* confdefs.h. */
6819 _ACEOF
6820 cat confdefs.h >>conftest.$ac_ext
6821 cat >>conftest.$ac_ext <<_ACEOF
6822 /* end confdefs.h. */
6823 #include <time.h>
6826 main ()
6828 static struct tm ac_aggr;
6829 if (sizeof ac_aggr.tm_gmtoff)
6830 return 0;
6832 return 0;
6834 _ACEOF
6835 rm -f conftest.$ac_objext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6837 (eval $ac_compile) 2>conftest.er1
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -z "$ac_c_werror_flag"
6845 || test ! -s conftest.err'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 (eval $ac_try) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; } &&
6851 { ac_try='test -s conftest.$ac_objext'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 (eval $ac_try) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 ac_cv_member_struct_tm_tm_gmtoff=yes
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6862 ac_cv_member_struct_tm_tm_gmtoff=no
6864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6868 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6869 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6870 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6872 cat >>confdefs.h <<\_ACEOF
6873 #define HAVE_TM_GMTOFF 1
6874 _ACEOF
6878 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6879 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6880 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 $ac_includes_default
6890 #if HAVE_SYS_SOCKET_H
6891 #include <sys/socket.h>
6892 #endif
6893 #if HAVE_NET_IF_H
6894 #include <net/if.h>
6895 #endif
6898 main ()
6900 static struct ifreq ac_aggr;
6901 if (ac_aggr.ifr_flags)
6902 return 0;
6904 return 0;
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>conftest.er1
6910 ac_status=$?
6911 grep -v '^ *+' conftest.er1 >conftest.err
6912 rm -f conftest.er1
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } &&
6916 { ac_try='test -z "$ac_c_werror_flag"
6917 || test ! -s conftest.err'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 (eval $ac_try) 2>&5
6926 ac_status=$?
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6929 ac_cv_member_struct_ifreq_ifr_flags=yes
6930 else
6931 echo "$as_me: failed program was:" >&5
6932 sed 's/^/| /' conftest.$ac_ext >&5
6934 cat >conftest.$ac_ext <<_ACEOF
6935 /* confdefs.h. */
6936 _ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6941 #if HAVE_SYS_SOCKET_H
6942 #include <sys/socket.h>
6943 #endif
6944 #if HAVE_NET_IF_H
6945 #include <net/if.h>
6946 #endif
6949 main ()
6951 static struct ifreq ac_aggr;
6952 if (sizeof ac_aggr.ifr_flags)
6953 return 0;
6955 return 0;
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960 (eval $ac_compile) 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_member_struct_ifreq_ifr_flags=yes
6981 else
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6985 ac_cv_member_struct_ifreq_ifr_flags=no
6987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6992 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6993 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6995 cat >>confdefs.h <<_ACEOF
6996 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6997 _ACEOF
7001 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7002 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7003 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7013 #if HAVE_SYS_SOCKET_H
7014 #include <sys/socket.h>
7015 #endif
7016 #if HAVE_NET_IF_H
7017 #include <net/if.h>
7018 #endif
7021 main ()
7023 static struct ifreq ac_aggr;
7024 if (ac_aggr.ifr_hwaddr)
7025 return 0;
7027 return 0;
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032 (eval $ac_compile) 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try='test -s conftest.$ac_objext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7053 else
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.$ac_ext >&5
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 #if HAVE_SYS_SOCKET_H
7065 #include <sys/socket.h>
7066 #endif
7067 #if HAVE_NET_IF_H
7068 #include <net/if.h>
7069 #endif
7072 main ()
7074 static struct ifreq ac_aggr;
7075 if (sizeof ac_aggr.ifr_hwaddr)
7076 return 0;
7078 return 0;
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083 (eval $ac_compile) 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -z "$ac_c_werror_flag"
7091 || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7115 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7116 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7118 cat >>confdefs.h <<_ACEOF
7119 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7120 _ACEOF
7124 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7125 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7126 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7136 #if HAVE_SYS_SOCKET_H
7137 #include <sys/socket.h>
7138 #endif
7139 #if HAVE_NET_IF_H
7140 #include <net/if.h>
7141 #endif
7144 main ()
7146 static struct ifreq ac_aggr;
7147 if (ac_aggr.ifr_netmask)
7148 return 0;
7150 return 0;
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7155 (eval $ac_compile) 2>conftest.er1
7156 ac_status=$?
7157 grep -v '^ *+' conftest.er1 >conftest.err
7158 rm -f conftest.er1
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } &&
7162 { ac_try='test -z "$ac_c_werror_flag"
7163 || test ! -s conftest.err'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; } &&
7169 { ac_try='test -s conftest.$ac_objext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 (eval $ac_try) 2>&5
7172 ac_status=$?
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7175 ac_cv_member_struct_ifreq_ifr_netmask=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h. */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 #if HAVE_SYS_SOCKET_H
7188 #include <sys/socket.h>
7189 #endif
7190 #if HAVE_NET_IF_H
7191 #include <net/if.h>
7192 #endif
7195 main ()
7197 static struct ifreq ac_aggr;
7198 if (sizeof ac_aggr.ifr_netmask)
7199 return 0;
7201 return 0;
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest.$ac_objext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_member_struct_ifreq_ifr_netmask=yes
7227 else
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7231 ac_cv_member_struct_ifreq_ifr_netmask=no
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7238 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7239 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7241 cat >>confdefs.h <<_ACEOF
7242 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7243 _ACEOF
7247 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7248 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7249 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 $ac_includes_default
7259 #if HAVE_SYS_SOCKET_H
7260 #include <sys/socket.h>
7261 #endif
7262 #if HAVE_NET_IF_H
7263 #include <net/if.h>
7264 #endif
7267 main ()
7269 static struct ifreq ac_aggr;
7270 if (ac_aggr.ifr_broadaddr)
7271 return 0;
7273 return 0;
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278 (eval $ac_compile) 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest.$ac_objext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h. */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #if HAVE_SYS_SOCKET_H
7311 #include <sys/socket.h>
7312 #endif
7313 #if HAVE_NET_IF_H
7314 #include <net/if.h>
7315 #endif
7318 main ()
7320 static struct ifreq ac_aggr;
7321 if (sizeof ac_aggr.ifr_broadaddr)
7322 return 0;
7324 return 0;
7326 _ACEOF
7327 rm -f conftest.$ac_objext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7329 (eval $ac_compile) 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest.$ac_objext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 (eval $ac_try) 2>&5
7346 ac_status=$?
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7350 else
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7361 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7362 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7364 cat >>confdefs.h <<_ACEOF
7365 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7366 _ACEOF
7370 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7371 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7372 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 $ac_includes_default
7382 #if HAVE_SYS_SOCKET_H
7383 #include <sys/socket.h>
7384 #endif
7385 #if HAVE_NET_IF_H
7386 #include <net/if.h>
7387 #endif
7390 main ()
7392 static struct ifreq ac_aggr;
7393 if (ac_aggr.ifr_addr)
7394 return 0;
7396 return 0;
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7401 (eval $ac_compile) 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -z "$ac_c_werror_flag"
7409 || test ! -s conftest.err'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; } &&
7415 { ac_try='test -s conftest.$ac_objext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 ac_cv_member_struct_ifreq_ifr_addr=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 $ac_includes_default
7433 #if HAVE_SYS_SOCKET_H
7434 #include <sys/socket.h>
7435 #endif
7436 #if HAVE_NET_IF_H
7437 #include <net/if.h>
7438 #endif
7441 main ()
7443 static struct ifreq ac_aggr;
7444 if (sizeof ac_aggr.ifr_addr)
7445 return 0;
7447 return 0;
7449 _ACEOF
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } &&
7459 { ac_try='test -z "$ac_c_werror_flag"
7460 || test ! -s conftest.err'
7461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 (eval $ac_try) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_cv_member_struct_ifreq_ifr_addr=yes
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_cv_member_struct_ifreq_ifr_addr=no
7479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7483 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7484 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7485 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7487 cat >>confdefs.h <<_ACEOF
7488 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7489 _ACEOF
7496 echo "$as_me:$LINENO: checking for function prototypes" >&5
7497 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7498 if test "$ac_cv_prog_cc_stdc" != no; then
7499 echo "$as_me:$LINENO: result: yes" >&5
7500 echo "${ECHO_T}yes" >&6
7502 cat >>confdefs.h <<\_ACEOF
7503 #define PROTOTYPES 1
7504 _ACEOF
7507 cat >>confdefs.h <<\_ACEOF
7508 #define __PROTOTYPES 1
7509 _ACEOF
7511 else
7512 echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6
7516 echo "$as_me:$LINENO: checking for working volatile" >&5
7517 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7518 if test "${ac_cv_c_volatile+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7529 main ()
7532 volatile int x;
7533 int * volatile y;
7535 return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_c_volatile=yes
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_cv_c_volatile=no
7567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7569 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7570 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7571 if test $ac_cv_c_volatile = no; then
7573 cat >>confdefs.h <<\_ACEOF
7574 #define volatile
7575 _ACEOF
7579 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7580 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7581 if test "${ac_cv_c_const+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7592 main ()
7594 /* FIXME: Include the comments suggested by Paul. */
7595 #ifndef __cplusplus
7596 /* Ultrix mips cc rejects this. */
7597 typedef int charset[2];
7598 const charset x;
7599 /* SunOS 4.1.1 cc rejects this. */
7600 char const *const *ccp;
7601 char **p;
7602 /* NEC SVR4.0.2 mips cc rejects this. */
7603 struct point {int x, y;};
7604 static struct point const zero = {0,0};
7605 /* AIX XL C 1.02.0.0 rejects this.
7606 It does not let you subtract one const X* pointer from another in
7607 an arm of an if-expression whose if-part is not a constant
7608 expression */
7609 const char *g = "string";
7610 ccp = &g + (g ? g-g : 0);
7611 /* HPUX 7.0 cc rejects these. */
7612 ++ccp;
7613 p = (char**) ccp;
7614 ccp = (char const *const *) p;
7615 { /* SCO 3.2v4 cc rejects this. */
7616 char *t;
7617 char const *s = 0 ? (char *) 0 : (char const *) 0;
7619 *t++ = 0;
7621 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7622 int x[] = {25, 17};
7623 const int *foo = &x[0];
7624 ++foo;
7626 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7627 typedef const int *iptr;
7628 iptr p = 0;
7629 ++p;
7631 { /* AIX XL C 1.02.0.0 rejects this saying
7632 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7633 struct s { int j; const int *ap[3]; };
7634 struct s *b; b->j = 5;
7636 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7637 const int foo = 10;
7639 #endif
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -z "$ac_c_werror_flag"
7655 || test ! -s conftest.err'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_cv_c_const=yes
7668 else
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7672 ac_cv_c_const=no
7674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7677 echo "${ECHO_T}$ac_cv_c_const" >&6
7678 if test $ac_cv_c_const = no; then
7680 cat >>confdefs.h <<\_ACEOF
7681 #define const
7682 _ACEOF
7686 echo "$as_me:$LINENO: checking for void * support" >&5
7687 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7688 if test "${emacs_cv_void_star+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h. */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7699 main ()
7701 void * foo;
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 emacs_cv_void_star=yes
7729 else
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7733 emacs_cv_void_star=no
7735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7738 echo "${ECHO_T}$emacs_cv_void_star" >&6
7739 if test $emacs_cv_void_star = yes; then
7740 cat >>confdefs.h <<\_ACEOF
7741 #define POINTER_TYPE void
7742 _ACEOF
7744 else
7745 cat >>confdefs.h <<\_ACEOF
7746 #define POINTER_TYPE char
7747 _ACEOF
7753 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7754 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7756 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759 cat >conftest.make <<\_ACEOF
7760 all:
7761 @echo 'ac_maketemp="$(MAKE)"'
7762 _ACEOF
7763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7764 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7765 if test -n "$ac_maketemp"; then
7766 eval ac_cv_prog_make_${ac_make}_set=yes
7767 else
7768 eval ac_cv_prog_make_${ac_make}_set=no
7770 rm -f conftest.make
7772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7773 echo "$as_me:$LINENO: result: yes" >&5
7774 echo "${ECHO_T}yes" >&6
7775 SET_MAKE=
7776 else
7777 echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7779 SET_MAKE="MAKE=${MAKE-make}"
7783 echo "$as_me:$LINENO: checking for long file names" >&5
7784 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7785 if test "${ac_cv_sys_long_file_names+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 ac_cv_sys_long_file_names=yes
7789 # Test for long file names in all the places we know might matter:
7790 # . the current directory, where building will happen
7791 # $prefix/lib where we will be installing things
7792 # $exec_prefix/lib likewise
7793 # eval it to expand exec_prefix.
7794 # $TMPDIR if set, where it might want to write temporary files
7795 # if $TMPDIR is not set:
7796 # /tmp where it might want to write temporary files
7797 # /var/tmp likewise
7798 # /usr/tmp likewise
7799 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7800 ac_tmpdirs=$TMPDIR
7801 else
7802 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7804 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7805 test -d $ac_dir || continue
7806 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7807 ac_xdir=$ac_dir/cf$$
7808 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7809 ac_tf1=$ac_xdir/conftest9012345
7810 ac_tf2=$ac_xdir/conftest9012346
7811 (echo 1 >$ac_tf1) 2>/dev/null
7812 (echo 2 >$ac_tf2) 2>/dev/null
7813 ac_val=`cat $ac_tf1 2>/dev/null`
7814 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7815 ac_cv_sys_long_file_names=no
7816 rm -rf $ac_xdir 2>/dev/null
7817 break
7819 rm -rf $ac_xdir 2>/dev/null
7820 done
7822 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7823 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7824 if test $ac_cv_sys_long_file_names = yes; then
7826 cat >>confdefs.h <<\_ACEOF
7827 #define HAVE_LONG_FILE_NAMES 1
7828 _ACEOF
7833 #### Choose a window system.
7835 echo "$as_me:$LINENO: checking for X" >&5
7836 echo $ECHO_N "checking for X... $ECHO_C" >&6
7839 # Check whether --with-x or --without-x was given.
7840 if test "${with_x+set}" = set; then
7841 withval="$with_x"
7844 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7845 if test "x$with_x" = xno; then
7846 # The user explicitly disabled X.
7847 have_x=disabled
7848 else
7849 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7850 # Both variables are already set.
7851 have_x=yes
7852 else
7853 if test "${ac_cv_have_x+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 # One or both of the vars are not set, and there is no cached value.
7857 ac_x_includes=no ac_x_libraries=no
7858 rm -fr conftest.dir
7859 if mkdir conftest.dir; then
7860 cd conftest.dir
7861 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7862 cat >Imakefile <<'_ACEOF'
7863 acfindx:
7864 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7865 _ACEOF
7866 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7868 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7869 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7870 for ac_extension in a so sl; do
7871 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7872 test -f $ac_im_libdir/libX11.$ac_extension; then
7873 ac_im_usrlibdir=$ac_im_libdir; break
7875 done
7876 # Screen out bogus values from the imake configuration. They are
7877 # bogus both because they are the default anyway, and because
7878 # using them would break gcc on systems where it needs fixed includes.
7879 case $ac_im_incroot in
7880 /usr/include) ;;
7881 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7882 esac
7883 case $ac_im_usrlibdir in
7884 /usr/lib | /lib) ;;
7885 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7886 esac
7888 cd ..
7889 rm -fr conftest.dir
7892 # Standard set of common directories for X headers.
7893 # Check X11 before X11Rn because it is often a symlink to the current release.
7894 ac_x_header_dirs='
7895 /usr/X11/include
7896 /usr/X11R6/include
7897 /usr/X11R5/include
7898 /usr/X11R4/include
7900 /usr/include/X11
7901 /usr/include/X11R6
7902 /usr/include/X11R5
7903 /usr/include/X11R4
7905 /usr/local/X11/include
7906 /usr/local/X11R6/include
7907 /usr/local/X11R5/include
7908 /usr/local/X11R4/include
7910 /usr/local/include/X11
7911 /usr/local/include/X11R6
7912 /usr/local/include/X11R5
7913 /usr/local/include/X11R4
7915 /usr/X386/include
7916 /usr/x386/include
7917 /usr/XFree86/include/X11
7919 /usr/include
7920 /usr/local/include
7921 /usr/unsupported/include
7922 /usr/athena/include
7923 /usr/local/x11r5/include
7924 /usr/lpp/Xamples/include
7926 /usr/openwin/include
7927 /usr/openwin/share/include'
7929 if test "$ac_x_includes" = no; then
7930 # Guess where to find include files, by looking for Intrinsic.h.
7931 # First, try using that file with no special directory specified.
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 #include <X11/Intrinsic.h>
7939 _ACEOF
7940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } >/dev/null; then
7948 if test -s conftest.err; then
7949 ac_cpp_err=$ac_c_preproc_warn_flag
7950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7951 else
7952 ac_cpp_err=
7954 else
7955 ac_cpp_err=yes
7957 if test -z "$ac_cpp_err"; then
7958 # We can compile using X headers with no special include directory.
7959 ac_x_includes=
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 for ac_dir in $ac_x_header_dirs; do
7965 if test -r "$ac_dir/X11/Intrinsic.h"; then
7966 ac_x_includes=$ac_dir
7967 break
7969 done
7971 rm -f conftest.err conftest.$ac_ext
7972 fi # $ac_x_includes = no
7974 if test "$ac_x_libraries" = no; then
7975 # Check for the libraries.
7976 # See if we find them without any special options.
7977 # Don't add to $LIBS permanently.
7978 ac_save_LIBS=$LIBS
7979 LIBS="-lXt $LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <X11/Intrinsic.h>
7988 main ()
7990 XtMalloc (0)
7992 return 0;
7994 _ACEOF
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
8004 { ac_try='test -z "$ac_c_werror_flag"
8005 || test ! -s conftest.err'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 LIBS=$ac_save_LIBS
8018 # We can link X programs with no special library path.
8019 ac_x_libraries=
8020 else
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 LIBS=$ac_save_LIBS
8025 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8027 # Don't even attempt the hair of trying to link an X program!
8028 for ac_extension in a so sl; do
8029 if test -r $ac_dir/libXt.$ac_extension; then
8030 ac_x_libraries=$ac_dir
8031 break 2
8033 done
8034 done
8036 rm -f conftest.err conftest.$ac_objext \
8037 conftest$ac_exeext conftest.$ac_ext
8038 fi # $ac_x_libraries = no
8040 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8041 # Didn't find X anywhere. Cache the known absence of X.
8042 ac_cv_have_x="have_x=no"
8043 else
8044 # Record where we found X for the cache.
8045 ac_cv_have_x="have_x=yes \
8046 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8051 eval "$ac_cv_have_x"
8052 fi # $with_x != no
8054 if test "$have_x" != yes; then
8055 echo "$as_me:$LINENO: result: $have_x" >&5
8056 echo "${ECHO_T}$have_x" >&6
8057 no_x=yes
8058 else
8059 # If each of the values was on the command line, it overrides each guess.
8060 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8061 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8062 # Update the cache value to reflect the command line values.
8063 ac_cv_have_x="have_x=yes \
8064 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8065 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8066 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8069 if test "$no_x" = yes; then
8070 window_system=none
8071 else
8072 window_system=x11
8075 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8076 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8077 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8078 x_default_search_path=""
8079 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8080 x_search_path="\
8081 ${x_library}/X11/%L/%T/%N%C%S:\
8082 ${x_library}/X11/%l/%T/%N%C%S:\
8083 ${x_library}/X11/%T/%N%C%S:\
8084 ${x_library}/X11/%L/%T/%N%S:\
8085 ${x_library}/X11/%l/%T/%N%S:\
8086 ${x_library}/X11/%T/%N%S"
8087 if test x"${x_default_search_path}" = x; then
8088 x_default_search_path=${x_search_path}
8089 else
8090 x_default_search_path="${x_search_path}:${x_default_search_path}"
8092 done
8094 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8095 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8098 if test x"${x_includes}" = x; then
8099 bitmapdir=/usr/include/X11/bitmaps
8100 else
8101 # accumulate include directories that have X11 bitmap subdirectories
8102 bmd_acc="dummyval"
8103 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8104 if test -d "${bmd}/X11/bitmaps"; then
8105 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8107 if test -d "${bmd}/bitmaps"; then
8108 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8110 done
8111 if test ${bmd_acc} != "dummyval"; then
8112 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8116 case "${window_system}" in
8117 x11 )
8118 HAVE_X_WINDOWS=yes
8119 HAVE_X11=yes
8120 case "${with_x_toolkit}" in
8121 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8122 motif ) USE_X_TOOLKIT=MOTIF ;;
8123 gtk ) with_gtk=yes
8124 USE_X_TOOLKIT=none ;;
8125 no ) USE_X_TOOLKIT=none ;;
8126 * ) USE_X_TOOLKIT=maybe ;;
8127 esac
8129 none )
8130 HAVE_X_WINDOWS=no
8131 HAVE_X11=no
8132 USE_X_TOOLKIT=none
8134 esac
8136 ### If we're using X11, we should use the X menu package.
8137 HAVE_MENUS=no
8138 case ${HAVE_X11} in
8139 yes ) HAVE_MENUS=yes ;;
8140 esac
8142 if test "${opsys}" = "hpux9"; then
8143 case "${x_libraries}" in
8144 *X11R4* )
8145 opsysfile="s/hpux9-x11r4.h"
8147 esac
8150 if test "${opsys}" = "hpux9shr"; then
8151 case "${x_libraries}" in
8152 *X11R4* )
8153 opsysfile="s/hpux9shxr4.h"
8155 esac
8158 ### Compute the unexec source name from the object name.
8159 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8161 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8162 # Assume not, until told otherwise.
8163 GNU_MALLOC=yes
8164 doug_lea_malloc=yes
8165 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8166 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8167 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8178 #define malloc_get_state innocuous_malloc_get_state
8180 /* System header to define __stub macros and hopefully few prototypes,
8181 which can conflict with char malloc_get_state (); below.
8182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8183 <limits.h> exists even on freestanding compilers. */
8185 #ifdef __STDC__
8186 # include <limits.h>
8187 #else
8188 # include <assert.h>
8189 #endif
8191 #undef malloc_get_state
8193 /* Override any gcc2 internal prototype to avoid an error. */
8194 #ifdef __cplusplus
8195 extern "C"
8197 #endif
8198 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8200 char malloc_get_state ();
8201 /* The GNU C library defines this for functions which it implements
8202 to always fail with ENOSYS. Some functions are actually named
8203 something starting with __ and the normal name is an alias. */
8204 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8205 choke me
8206 #else
8207 char (*f) () = malloc_get_state;
8208 #endif
8209 #ifdef __cplusplus
8211 #endif
8214 main ()
8216 return f != malloc_get_state;
8218 return 0;
8220 _ACEOF
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223 (eval $ac_link) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest$ac_exeext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 ac_cv_func_malloc_get_state=yes
8244 else
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_cv_func_malloc_get_state=no
8250 rm -f conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8253 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8254 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8255 if test $ac_cv_func_malloc_get_state = yes; then
8257 else
8258 doug_lea_malloc=no
8261 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8262 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8263 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266 cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8274 #define malloc_set_state innocuous_malloc_set_state
8276 /* System header to define __stub macros and hopefully few prototypes,
8277 which can conflict with char malloc_set_state (); below.
8278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279 <limits.h> exists even on freestanding compilers. */
8281 #ifdef __STDC__
8282 # include <limits.h>
8283 #else
8284 # include <assert.h>
8285 #endif
8287 #undef malloc_set_state
8289 /* Override any gcc2 internal prototype to avoid an error. */
8290 #ifdef __cplusplus
8291 extern "C"
8293 #endif
8294 /* We use char because int might match the return type of a gcc2
8295 builtin and then its argument prototype would still apply. */
8296 char malloc_set_state ();
8297 /* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8301 choke me
8302 #else
8303 char (*f) () = malloc_set_state;
8304 #endif
8305 #ifdef __cplusplus
8307 #endif
8310 main ()
8312 return f != malloc_set_state;
8314 return 0;
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_func_malloc_set_state=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_func_malloc_set_state=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8350 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8351 if test $ac_cv_func_malloc_set_state = yes; then
8353 else
8354 doug_lea_malloc=no
8357 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8358 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8359 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362 cat >conftest.$ac_ext <<_ACEOF
8363 /* confdefs.h. */
8364 _ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 extern void (* __after_morecore_hook)();
8370 main ()
8372 __after_morecore_hook = 0
8374 return 0;
8376 _ACEOF
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8379 (eval $ac_link) 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_c_werror_flag"
8387 || test ! -s conftest.err'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; } &&
8393 { ac_try='test -s conftest$ac_exeext'
8394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 (eval $ac_try) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
8399 emacs_cv_var___after_morecore_hook=yes
8400 else
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8404 emacs_cv_var___after_morecore_hook=no
8406 rm -f conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext conftest.$ac_ext
8409 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8410 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8411 if test $emacs_cv_var___after_morecore_hook = no; then
8412 doug_lea_malloc=no
8414 if test "${system_malloc}" = "yes"; then
8415 GNU_MALLOC=no
8416 GNU_MALLOC_reason="
8417 (The GNU allocators don't work with this system configuration.)"
8419 if test "$doug_lea_malloc" = "yes" ; then
8420 if test "$GNU_MALLOC" = yes ; then
8421 GNU_MALLOC_reason="
8422 (Using Doug Lea's new malloc from the GNU C Library.)"
8425 cat >>confdefs.h <<\_ACEOF
8426 #define DOUG_LEA_MALLOC 1
8427 _ACEOF
8431 if test x"${REL_ALLOC}" = x; then
8432 REL_ALLOC=${GNU_MALLOC}
8438 for ac_header in stdlib.h unistd.h
8440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8442 echo "$as_me:$LINENO: checking for $ac_header" >&5
8443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8449 else
8450 # Is the header compilable?
8451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8453 cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h. */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 #include <$ac_header>
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest.$ac_objext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_header_compiler=yes
8485 else
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8489 ac_header_compiler=no
8491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8493 echo "${ECHO_T}$ac_header_compiler" >&6
8495 # Is the header present?
8496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h. */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 #include <$ac_header>
8505 _ACEOF
8506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } >/dev/null; then
8514 if test -s conftest.err; then
8515 ac_cpp_err=$ac_c_preproc_warn_flag
8516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8517 else
8518 ac_cpp_err=
8520 else
8521 ac_cpp_err=yes
8523 if test -z "$ac_cpp_err"; then
8524 ac_header_preproc=yes
8525 else
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 ac_header_preproc=no
8531 rm -f conftest.err conftest.$ac_ext
8532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8533 echo "${ECHO_T}$ac_header_preproc" >&6
8535 # So? What about this header?
8536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8537 yes:no: )
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8542 ac_header_preproc=yes
8544 no:yes:* )
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8558 cat <<\_ASBOX
8559 ## ------------------------------------------ ##
8560 ## Report this to the AC_PACKAGE_NAME lists. ##
8561 ## ------------------------------------------ ##
8562 _ASBOX
8564 sed "s/^/$as_me: WARNING: /" >&2
8566 esac
8567 echo "$as_me:$LINENO: checking for $ac_header" >&5
8568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 eval "$as_ac_Header=\$ac_header_preproc"
8574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8579 cat >>confdefs.h <<_ACEOF
8580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8581 _ACEOF
8585 done
8588 for ac_func in getpagesize
8590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8591 echo "$as_me:$LINENO: checking for $ac_func" >&5
8592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_var+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h. */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8604 #define $ac_func innocuous_$ac_func
8606 /* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char $ac_func (); below.
8608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609 <limits.h> exists even on freestanding compilers. */
8611 #ifdef __STDC__
8612 # include <limits.h>
8613 #else
8614 # include <assert.h>
8615 #endif
8617 #undef $ac_func
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 #ifdef __cplusplus
8621 extern "C"
8623 #endif
8624 /* We use char because int might match the return type of a gcc2
8625 builtin and then its argument prototype would still apply. */
8626 char $ac_func ();
8627 /* The GNU C library defines this for functions which it implements
8628 to always fail with ENOSYS. Some functions are actually named
8629 something starting with __ and the normal name is an alias. */
8630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8631 choke me
8632 #else
8633 char (*f) () = $ac_func;
8634 #endif
8635 #ifdef __cplusplus
8637 #endif
8640 main ()
8642 return f != $ac_func;
8644 return 0;
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 eval "$as_ac_var=yes"
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 eval "$as_ac_var=no"
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8681 if test `eval echo '${'$as_ac_var'}'` = yes; then
8682 cat >>confdefs.h <<_ACEOF
8683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8684 _ACEOF
8687 done
8689 echo "$as_me:$LINENO: checking for working mmap" >&5
8690 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8691 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694 if test "$cross_compiling" = yes; then
8695 ac_cv_func_mmap_fixed_mapped=no
8696 else
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 /* malloc might have been renamed as rpl_malloc. */
8705 #undef malloc
8707 /* Thanks to Mike Haertel and Jim Avera for this test.
8708 Here is a matrix of mmap possibilities:
8709 mmap private not fixed
8710 mmap private fixed at somewhere currently unmapped
8711 mmap private fixed at somewhere already mapped
8712 mmap shared not fixed
8713 mmap shared fixed at somewhere currently unmapped
8714 mmap shared fixed at somewhere already mapped
8715 For private mappings, we should verify that changes cannot be read()
8716 back from the file, nor mmap's back from the file at a different
8717 address. (There have been systems where private was not correctly
8718 implemented like the infamous i386 svr4.0, and systems where the
8719 VM page cache was not coherent with the file system buffer cache
8720 like early versions of FreeBSD and possibly contemporary NetBSD.)
8721 For shared mappings, we should conversely verify that changes get
8722 propagated back to all the places they're supposed to be.
8724 Grep wants private fixed already mapped.
8725 The main things grep needs to know about mmap are:
8726 * does it exist and is it safe to write into the mmap'd area
8727 * how to use it (BSD variants) */
8729 #include <fcntl.h>
8730 #include <sys/mman.h>
8732 #if !STDC_HEADERS && !HAVE_STDLIB_H
8733 char *malloc ();
8734 #endif
8736 /* This mess was copied from the GNU getpagesize.h. */
8737 #if !HAVE_GETPAGESIZE
8738 /* Assume that all systems that can run configure have sys/param.h. */
8739 # if !HAVE_SYS_PARAM_H
8740 # define HAVE_SYS_PARAM_H 1
8741 # endif
8743 # ifdef _SC_PAGESIZE
8744 # define getpagesize() sysconf(_SC_PAGESIZE)
8745 # else /* no _SC_PAGESIZE */
8746 # if HAVE_SYS_PARAM_H
8747 # include <sys/param.h>
8748 # ifdef EXEC_PAGESIZE
8749 # define getpagesize() EXEC_PAGESIZE
8750 # else /* no EXEC_PAGESIZE */
8751 # ifdef NBPG
8752 # define getpagesize() NBPG * CLSIZE
8753 # ifndef CLSIZE
8754 # define CLSIZE 1
8755 # endif /* no CLSIZE */
8756 # else /* no NBPG */
8757 # ifdef NBPC
8758 # define getpagesize() NBPC
8759 # else /* no NBPC */
8760 # ifdef PAGESIZE
8761 # define getpagesize() PAGESIZE
8762 # endif /* PAGESIZE */
8763 # endif /* no NBPC */
8764 # endif /* no NBPG */
8765 # endif /* no EXEC_PAGESIZE */
8766 # else /* no HAVE_SYS_PARAM_H */
8767 # define getpagesize() 8192 /* punt totally */
8768 # endif /* no HAVE_SYS_PARAM_H */
8769 # endif /* no _SC_PAGESIZE */
8771 #endif /* no HAVE_GETPAGESIZE */
8774 main ()
8776 char *data, *data2, *data3;
8777 int i, pagesize;
8778 int fd;
8780 pagesize = getpagesize ();
8782 /* First, make a file with some known garbage in it. */
8783 data = (char *) malloc (pagesize);
8784 if (!data)
8785 exit (1);
8786 for (i = 0; i < pagesize; ++i)
8787 *(data + i) = rand ();
8788 umask (0);
8789 fd = creat ("conftest.mmap", 0600);
8790 if (fd < 0)
8791 exit (1);
8792 if (write (fd, data, pagesize) != pagesize)
8793 exit (1);
8794 close (fd);
8796 /* Next, try to mmap the file at a fixed address which already has
8797 something else allocated at it. If we can, also make sure that
8798 we see the same garbage. */
8799 fd = open ("conftest.mmap", O_RDWR);
8800 if (fd < 0)
8801 exit (1);
8802 data2 = (char *) malloc (2 * pagesize);
8803 if (!data2)
8804 exit (1);
8805 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8806 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8807 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8808 exit (1);
8809 for (i = 0; i < pagesize; ++i)
8810 if (*(data + i) != *(data2 + i))
8811 exit (1);
8813 /* Finally, make sure that changes to the mapped area do not
8814 percolate back to the file as seen by read(). (This is a bug on
8815 some variants of i386 svr4.0.) */
8816 for (i = 0; i < pagesize; ++i)
8817 *(data2 + i) = *(data2 + i) + 1;
8818 data3 = (char *) malloc (pagesize);
8819 if (!data3)
8820 exit (1);
8821 if (read (fd, data3, pagesize) != pagesize)
8822 exit (1);
8823 for (i = 0; i < pagesize; ++i)
8824 if (*(data + i) != *(data3 + i))
8825 exit (1);
8826 close (fd);
8827 exit (0);
8829 _ACEOF
8830 rm -f conftest$ac_exeext
8831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832 (eval $ac_link) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_func_mmap_fixed_mapped=yes
8842 else
8843 echo "$as_me: program exited with status $ac_status" >&5
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8847 ( exit $ac_status )
8848 ac_cv_func_mmap_fixed_mapped=no
8850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8854 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8855 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8857 cat >>confdefs.h <<\_ACEOF
8858 #define HAVE_MMAP 1
8859 _ACEOF
8862 rm -f conftest.mmap
8864 if test $use_mmap_for_buffers = yes; then
8865 REL_ALLOC=no
8868 LIBS="$libsrc_libs $LIBS"
8871 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8872 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 ac_check_lib_save_LIBS=$LIBS
8877 LIBS="-ldnet $LIBS"
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8885 /* Override any gcc2 internal prototype to avoid an error. */
8886 #ifdef __cplusplus
8887 extern "C"
8888 #endif
8889 /* We use char because int might match the return type of a gcc2
8890 builtin and then its argument prototype would still apply. */
8891 char dnet_ntoa ();
8893 main ()
8895 dnet_ntoa ();
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902 (eval $ac_link) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_lib_dnet_dnet_ntoa=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_cv_lib_dnet_dnet_ntoa=no
8929 rm -f conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8934 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8935 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_LIBDNET 1
8938 _ACEOF
8940 LIBS="-ldnet $LIBS"
8945 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8946 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8947 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950 ac_check_lib_save_LIBS=$LIBS
8951 LIBS="-lXbsd $LIBS"
8952 cat >conftest.$ac_ext <<_ACEOF
8953 /* confdefs.h. */
8954 _ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8961 main ()
8963 main ();
8965 return 0;
8967 _ACEOF
8968 rm -f conftest.$ac_objext conftest$ac_exeext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970 (eval $ac_link) 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -z "$ac_c_werror_flag"
8978 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest$ac_exeext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_lib_Xbsd_main=yes
8991 else
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_lib_Xbsd_main=no
8997 rm -f conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 LIBS=$ac_check_lib_save_LIBS
9001 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9002 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9003 if test $ac_cv_lib_Xbsd_main = yes; then
9004 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9009 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9010 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9011 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014 ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-lpthreads $LIBS"
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any gcc2 internal prototype to avoid an error. */
9024 #ifdef __cplusplus
9025 extern "C"
9026 #endif
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029 char cma_open ();
9031 main ()
9033 cma_open ();
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -z "$ac_c_werror_flag"
9048 || test ! -s conftest.err'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest$ac_exeext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 ac_cv_lib_pthreads_cma_open=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_lib_pthreads_cma_open=no
9067 rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
9069 LIBS=$ac_check_lib_save_LIBS
9071 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9072 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9073 if test $ac_cv_lib_pthreads_cma_open = yes; then
9074 cat >>confdefs.h <<_ACEOF
9075 #define HAVE_LIBPTHREADS 1
9076 _ACEOF
9078 LIBS="-lpthreads $LIBS"
9083 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9084 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9085 if test -d /usr/X386/include; then
9086 HAVE_XFREE386=yes
9087 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9088 else
9089 HAVE_XFREE386=no
9091 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9092 echo "${ECHO_T}$HAVE_XFREE386" >&6
9095 case ${host_os} in
9096 aix*)
9097 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9098 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9099 if test "${gdb_cv_bigtoc+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 else
9103 case $GCC in
9104 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9105 *) gdb_cv_bigtoc=-bbigtoc ;;
9106 esac
9108 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9109 cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h. */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9117 main ()
9119 int i;
9121 return 0;
9123 _ACEOF
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126 (eval $ac_link) 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag"
9134 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 gdb_cv_bigtoc=
9153 rm -f conftest.err conftest.$ac_objext \
9154 conftest$ac_exeext conftest.$ac_ext
9157 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9158 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9160 esac
9162 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9163 # used for the tests that follow. We set them back to REAL_CFLAGS and
9164 # REAL_CPPFLAGS later on.
9166 REAL_CPPFLAGS="$CPPFLAGS"
9168 if test "${HAVE_X11}" = "yes"; then
9169 DEFS="$C_SWITCH_X_SITE $DEFS"
9170 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9171 LIBS="$LIBX $LIBS"
9172 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9173 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9175 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9176 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9177 # but it's more convenient here to set LD_RUN_PATH
9178 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9179 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9180 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9181 export LD_RUN_PATH
9184 if test "${opsys}" = "gnu-linux"; then
9185 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9186 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h. */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9195 main ()
9197 XOpenDisplay ("foo");
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204 (eval $ac_link) 2>conftest.er1
9205 ac_status=$?
9206 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1
9208 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } &&
9211 { ac_try='test -z "$ac_c_werror_flag"
9212 || test ! -s conftest.err'
9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 (eval $ac_try) 2>&5
9215 ac_status=$?
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; } &&
9218 { ac_try='test -s conftest$ac_exeext'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 xlinux_first_failure=no
9225 else
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 xlinux_first_failure=yes
9231 rm -f conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 if test "${xlinux_first_failure}" = "yes"; then
9234 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9235 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9236 OLD_CPPFLAGS="$CPPFLAGS"
9237 OLD_LIBS="$LIBS"
9238 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9239 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9240 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9241 LIBS="$LIBS -b i486-linuxaout"
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h. */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9250 main ()
9252 XOpenDisplay ("foo");
9254 return 0;
9256 _ACEOF
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -z "$ac_c_werror_flag"
9267 || test ! -s conftest.err'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; } &&
9273 { ac_try='test -s conftest$ac_exeext'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 xlinux_second_failure=no
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9284 xlinux_second_failure=yes
9286 rm -f conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288 if test "${xlinux_second_failure}" = "yes"; then
9289 # If we get the same failure with -b, there is no use adding -b.
9290 # So take it out. This plays safe.
9291 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9292 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9293 CPPFLAGS="$OLD_CPPFLAGS"
9294 LIBS="$OLD_LIBS"
9295 echo "$as_me:$LINENO: result: no" >&5
9296 echo "${ECHO_T}no" >&6
9297 else
9298 echo "$as_me:$LINENO: result: yes" >&5
9299 echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303 echo "${ECHO_T}no" >&6
9307 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9308 # header files included from there.
9309 echo "$as_me:$LINENO: checking for Xkb" >&5
9310 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9311 cat >conftest.$ac_ext <<_ACEOF
9312 /* confdefs.h. */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9317 #include <X11/Xlib.h>
9318 #include <X11/XKBlib.h>
9320 main ()
9322 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9324 return 0;
9326 _ACEOF
9327 rm -f conftest.$ac_objext conftest$ac_exeext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9329 (eval $ac_link) 2>conftest.er1
9330 ac_status=$?
9331 grep -v '^ *+' conftest.er1 >conftest.err
9332 rm -f conftest.er1
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -z "$ac_c_werror_flag"
9337 || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest$ac_exeext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345 (eval $ac_try) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 emacs_xkb=yes
9350 else
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 emacs_xkb=no
9356 rm -f conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext conftest.$ac_ext
9358 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9359 echo "${ECHO_T}$emacs_xkb" >&6
9360 if test $emacs_xkb = yes; then
9362 cat >>confdefs.h <<\_ACEOF
9363 #define HAVE_XKBGETKEYBOARD 1
9364 _ACEOF
9372 for ac_func in XrmSetDatabase XScreenResourceString \
9373 XScreenNumberOfScreen XSetWMProtocols
9375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9376 echo "$as_me:$LINENO: checking for $ac_func" >&5
9377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9378 if eval "test \"\${$as_ac_var+set}\" = set"; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 else
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9389 #define $ac_func innocuous_$ac_func
9391 /* System header to define __stub macros and hopefully few prototypes,
9392 which can conflict with char $ac_func (); below.
9393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9394 <limits.h> exists even on freestanding compilers. */
9396 #ifdef __STDC__
9397 # include <limits.h>
9398 #else
9399 # include <assert.h>
9400 #endif
9402 #undef $ac_func
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 #ifdef __cplusplus
9406 extern "C"
9408 #endif
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char $ac_func ();
9412 /* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9416 choke me
9417 #else
9418 char (*f) () = $ac_func;
9419 #endif
9420 #ifdef __cplusplus
9422 #endif
9425 main ()
9427 return f != $ac_func;
9429 return 0;
9431 _ACEOF
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest$ac_exeext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 eval "$as_ac_var=yes"
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 eval "$as_ac_var=no"
9461 rm -f conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9466 if test `eval echo '${'$as_ac_var'}'` = yes; then
9467 cat >>confdefs.h <<_ACEOF
9468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9469 _ACEOF
9472 done
9476 if test "${window_system}" = "x11"; then
9477 echo "$as_me:$LINENO: checking X11 version 6" >&5
9478 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9479 if test "${emacs_cv_x11_version_6+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 #include <X11/Xlib.h>
9490 main ()
9492 #if XlibSpecificationRelease < 6
9493 fail;
9494 #endif
9497 return 0;
9499 _ACEOF
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9502 (eval $ac_link) 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 emacs_cv_x11_version_6=yes
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 emacs_cv_x11_version_6=no
9529 rm -f conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9533 if test $emacs_cv_x11_version_6 = yes; then
9534 echo "$as_me:$LINENO: result: 6 or newer" >&5
9535 echo "${ECHO_T}6 or newer" >&6
9537 cat >>confdefs.h <<\_ACEOF
9538 #define HAVE_X11R6 1
9539 _ACEOF
9541 else
9542 echo "$as_me:$LINENO: result: before 6" >&5
9543 echo "${ECHO_T}before 6" >&6
9547 if test "${window_system}" = "x11"; then
9548 echo "$as_me:$LINENO: checking X11 version 5" >&5
9549 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9550 if test "${emacs_cv_x11_version_5+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 #include <X11/Xlib.h>
9561 main ()
9563 #if XlibSpecificationRelease < 5
9564 fail;
9565 #endif
9568 return 0;
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 emacs_cv_x11_version_5=yes
9594 else
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 emacs_cv_x11_version_5=no
9600 rm -f conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9604 if test $emacs_cv_x11_version_5 = yes; then
9605 echo "$as_me:$LINENO: result: 5 or newer" >&5
9606 echo "${ECHO_T}5 or newer" >&6
9607 HAVE_X11R5=yes
9609 cat >>confdefs.h <<\_ACEOF
9610 #define HAVE_X11R5 1
9611 _ACEOF
9613 else
9614 HAVE_X11R5=no
9615 echo "$as_me:$LINENO: result: before 5" >&5
9616 echo "${ECHO_T}before 5" >&6
9622 HAVE_GTK=no
9623 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9624 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9625 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9626 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9627 { (exit 1); exit 1; }; };
9629 GLIB_REQUIRED=2.0.1
9630 GTK_REQUIRED=2.0.1
9631 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9633 if test "X${with_pkg_config_prog}" != X; then
9634 PKG_CONFIG="${with_pkg_config_prog}"
9637 succeeded=no
9639 if test -z "$PKG_CONFIG"; then
9640 # Extract the first word of "pkg-config", so it can be a program name with args.
9641 set dummy pkg-config; ac_word=$2
9642 echo "$as_me:$LINENO: checking for $ac_word" >&5
9643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9644 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 else
9647 case $PKG_CONFIG in
9648 [\\/]* | ?:[\\/]*)
9649 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 for as_dir in $PATH
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 break 2
9663 done
9664 done
9666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9668 esac
9670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9672 if test -n "$PKG_CONFIG"; then
9673 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9674 echo "${ECHO_T}$PKG_CONFIG" >&6
9675 else
9676 echo "$as_me:$LINENO: result: no" >&5
9677 echo "${ECHO_T}no" >&6
9682 if test "$PKG_CONFIG" = "no" ; then
9683 echo "*** The pkg-config script could not be found. Make sure it is"
9684 echo "*** in your path, or give the full path to pkg-config with"
9685 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9686 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9687 else
9688 PKG_CONFIG_MIN_VERSION=0.9.0
9689 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9690 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9691 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9693 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9694 echo "$as_me:$LINENO: result: yes" >&5
9695 echo "${ECHO_T}yes" >&6
9696 succeeded=yes
9698 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9699 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9700 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9701 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9702 echo "${ECHO_T}$GTK_CFLAGS" >&6
9704 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9705 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9706 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9707 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9708 echo "${ECHO_T}$GTK_LIBS" >&6
9709 else
9710 GTK_CFLAGS=""
9711 GTK_LIBS=""
9712 ## If we have a custom action on failure, don't print errors, but
9713 ## do set a variable so people can do so.
9714 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9715 echo $GTK_PKG_ERRORS
9720 else
9721 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9722 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9726 if test $succeeded = yes; then
9728 else
9729 { { 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
9730 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;}
9731 { (exit 1); exit 1; }; }
9736 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9737 CFLAGS="$CFLAGS $GTK_CFLAGS"
9738 LIBS="$GTK_LIBS $LIBS"
9739 HAVE_GTK=yes
9741 cat >>confdefs.h <<\_ACEOF
9742 #define HAVE_GTK 1
9743 _ACEOF
9745 USE_X_TOOLKIT=none
9747 with_toolkit_scroll_bars=yes
9749 HAVE_GTK_MULTIDISPLAY=no
9751 for ac_func in gdk_display_open
9753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754 echo "$as_me:$LINENO: checking for $ac_func" >&5
9755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9756 if eval "test \"\${$as_ac_var+set}\" = set"; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9767 #define $ac_func innocuous_$ac_func
9769 /* System header to define __stub macros and hopefully few prototypes,
9770 which can conflict with char $ac_func (); below.
9771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9772 <limits.h> exists even on freestanding compilers. */
9774 #ifdef __STDC__
9775 # include <limits.h>
9776 #else
9777 # include <assert.h>
9778 #endif
9780 #undef $ac_func
9782 /* Override any gcc2 internal prototype to avoid an error. */
9783 #ifdef __cplusplus
9784 extern "C"
9786 #endif
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9789 char $ac_func ();
9790 /* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
9793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9794 choke me
9795 #else
9796 char (*f) () = $ac_func;
9797 #endif
9798 #ifdef __cplusplus
9800 #endif
9803 main ()
9805 return f != $ac_func;
9807 return 0;
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 eval "$as_ac_var=yes"
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 eval "$as_ac_var=no"
9839 rm -f conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9844 if test `eval echo '${'$as_ac_var'}'` = yes; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9847 _ACEOF
9848 HAVE_GTK_MULTIDISPLAY=yes
9850 done
9852 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_GTK_MULTIDISPLAY 1
9856 _ACEOF
9861 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9862 if test x"${HAVE_X11R5}" = xyes; then
9863 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9864 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9865 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9875 #include <X11/Intrinsic.h>
9876 #include <X11/Xaw/Simple.h>
9878 main ()
9882 return 0;
9884 _ACEOF
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887 (eval $ac_link) 2>conftest.er1
9888 ac_status=$?
9889 grep -v '^ *+' conftest.er1 >conftest.err
9890 rm -f conftest.er1
9891 cat conftest.err >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); } &&
9894 { ac_try='test -z "$ac_c_werror_flag"
9895 || test ! -s conftest.err'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; } &&
9901 { ac_try='test -s conftest$ac_exeext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 (eval $ac_try) 2>&5
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 emacs_cv_x11_version_5_with_xaw=yes
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 emacs_cv_x11_version_5_with_xaw=no
9914 rm -f conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9918 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9919 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9920 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9921 USE_X_TOOLKIT=LUCID
9922 else
9923 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9924 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9925 USE_X_TOOLKIT=none
9927 else
9928 USE_X_TOOLKIT=none
9932 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9934 if test "${USE_X_TOOLKIT}" != "none"; then
9935 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9936 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9937 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 #include <X11/Intrinsic.h>
9948 main ()
9950 #if XtSpecificationRelease < 6
9951 fail;
9952 #endif
9955 return 0;
9957 _ACEOF
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960 (eval $ac_link) 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 emacs_cv_x11_toolkit_version_6=yes
9981 else
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9985 emacs_cv_x11_toolkit_version_6=no
9987 rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9991 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9992 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9993 echo "$as_me:$LINENO: result: 6 or newer" >&5
9994 echo "${ECHO_T}6 or newer" >&6
9996 cat >>confdefs.h <<\_ACEOF
9997 #define HAVE_X11XTR6 1
9998 _ACEOF
10000 else
10001 echo "$as_me:$LINENO: result: before 6" >&5
10002 echo "${ECHO_T}before 6" >&6
10005 OLDLIBS="$LIBS"
10006 if test x$HAVE_X11XTR6 = xyes; then
10007 LIBS="-lXt -lSM -lICE $LIBS"
10008 else
10009 LIBS="-lXt $LIBS"
10012 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10013 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10014 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017 ac_check_lib_save_LIBS=$LIBS
10018 LIBS="-lXmu $LIBS"
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10026 /* Override any gcc2 internal prototype to avoid an error. */
10027 #ifdef __cplusplus
10028 extern "C"
10029 #endif
10030 /* We use char because int might match the return type of a gcc2
10031 builtin and then its argument prototype would still apply. */
10032 char XmuConvertStandardSelection ();
10034 main ()
10036 XmuConvertStandardSelection ();
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10043 (eval $ac_link) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest$ac_exeext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10070 rm -f conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10074 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10075 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10076 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10077 cat >>confdefs.h <<_ACEOF
10078 #define HAVE_LIBXMU 1
10079 _ACEOF
10081 LIBS="-lXmu $LIBS"
10085 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10088 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10089 if test "${HAVE_X11}" = "yes"; then
10090 if test "${USE_X_TOOLKIT}" != "none"; then
10092 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10093 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10094 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 ac_check_lib_save_LIBS=$LIBS
10098 LIBS="-lXext $LIBS"
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10106 /* Override any gcc2 internal prototype to avoid an error. */
10107 #ifdef __cplusplus
10108 extern "C"
10109 #endif
10110 /* We use char because int might match the return type of a gcc2
10111 builtin and then its argument prototype would still apply. */
10112 char XShapeQueryExtension ();
10114 main ()
10116 XShapeQueryExtension ();
10118 return 0;
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10123 (eval $ac_link) 2>conftest.er1
10124 ac_status=$?
10125 grep -v '^ *+' conftest.er1 >conftest.err
10126 rm -f conftest.er1
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_cv_lib_Xext_XShapeQueryExtension=yes
10144 else
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_cv_lib_Xext_XShapeQueryExtension=no
10150 rm -f conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10152 LIBS=$ac_check_lib_save_LIBS
10154 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10155 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10156 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10157 cat >>confdefs.h <<_ACEOF
10158 #define HAVE_LIBXEXT 1
10159 _ACEOF
10161 LIBS="-lXext $LIBS"
10168 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10169 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10170 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10171 if test "${emacs_cv_lesstif+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 # We put this in CFLAGS temporarily to precede other -I options
10175 # that might be in CFLAGS temporarily.
10176 # We put this in CPPFLAGS where it precedes the other -I options.
10177 OLD_CPPFLAGS=$CPPFLAGS
10178 OLD_CFLAGS=$CFLAGS
10179 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10180 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10189 main ()
10191 int x = 5;
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag"
10206 || test ! -s conftest.err'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest.$ac_objext'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; }; then
10218 emacs_cv_lesstif=yes
10219 else
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10223 emacs_cv_lesstif=no
10225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10227 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10228 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10229 if test $emacs_cv_lesstif = yes; then
10230 # Make sure this -I option remains in CPPFLAGS after it is set
10231 # back to REAL_CPPFLAGS.
10232 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10233 # have those other -I options anyway. Ultimately, having this
10234 # directory ultimately in CPPFLAGS will be enough.
10235 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10236 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10237 else
10238 CFLAGS=$OLD_CFLAGS
10239 CPPFLAGS=$OLD_CPPFLAGS
10241 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10242 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10243 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <Xm/Xm.h>
10254 main ()
10256 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10257 int x = 5;
10258 #else
10259 Motif version prior to 2.1.
10260 #endif
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest.$ac_objext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 emacs_cv_motif_version_2_1=yes
10288 else
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 emacs_cv_motif_version_2_1=no
10294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10296 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10297 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10298 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10299 if test $emacs_cv_motif_version_2_1 = yes; then
10300 HAVE_LIBXP=no
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_MOTIF_2_1 1
10304 _ACEOF
10306 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10307 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10308 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311 ac_check_lib_save_LIBS=$LIBS
10312 LIBS="-lXp $LIBS"
10313 cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h. */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10320 /* Override any gcc2 internal prototype to avoid an error. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 /* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */
10326 char XpCreateContext ();
10328 main ()
10330 XpCreateContext ();
10332 return 0;
10334 _ACEOF
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try='test -s conftest$ac_exeext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_cv_lib_Xp_XpCreateContext=yes
10358 else
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 ac_cv_lib_Xp_XpCreateContext=no
10364 rm -f conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
10366 LIBS=$ac_check_lib_save_LIBS
10368 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10369 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10370 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10371 HAVE_LIBXP=yes
10374 if test ${HAVE_LIBXP} = yes; then
10376 cat >>confdefs.h <<\_ACEOF
10377 #define HAVE_LIBXP 1
10378 _ACEOF
10384 ### Is -lXaw3d available?
10385 HAVE_XAW3D=no
10386 if test "${HAVE_X11}" = "yes"; then
10387 if test "${USE_X_TOOLKIT}" != "none"; then
10388 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10389 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10390 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393 cat >conftest.$ac_ext <<_ACEOF
10394 /* confdefs.h. */
10395 _ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <X11/Xaw3d/Scrollbar.h>
10400 _ACEOF
10401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } >/dev/null; then
10409 if test -s conftest.err; then
10410 ac_cpp_err=$ac_c_preproc_warn_flag
10411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10412 else
10413 ac_cpp_err=
10415 else
10416 ac_cpp_err=yes
10418 if test -z "$ac_cpp_err"; then
10419 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10420 else
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10426 rm -f conftest.err conftest.$ac_ext
10428 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10429 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10430 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10431 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10432 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10433 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436 ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-lXaw3d $LIBS"
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h. */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10445 /* Override any gcc2 internal prototype to avoid an error. */
10446 #ifdef __cplusplus
10447 extern "C"
10448 #endif
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451 char XawScrollbarSetThumb ();
10453 main ()
10455 XawScrollbarSetThumb ();
10457 return 0;
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10483 else
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10487 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LIBS=$ac_check_lib_save_LIBS
10493 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10494 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10495 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10496 HAVE_XAW3D=yes
10502 if test "${HAVE_XAW3D}" = "yes"; then
10504 cat >>confdefs.h <<\_ACEOF
10505 #define HAVE_XAW3D 1
10506 _ACEOF
10514 USE_TOOLKIT_SCROLL_BARS=no
10515 if test "${with_toolkit_scroll_bars}" != "no"; then
10516 if test "${USE_X_TOOLKIT}" != "none"; then
10517 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10518 cat >>confdefs.h <<\_ACEOF
10519 #define USE_TOOLKIT_SCROLL_BARS 1
10520 _ACEOF
10522 HAVE_XAW3D=no
10523 USE_TOOLKIT_SCROLL_BARS=yes
10524 elif test "${HAVE_XAW3D}" = "yes"; then
10525 cat >>confdefs.h <<\_ACEOF
10526 #define USE_TOOLKIT_SCROLL_BARS 1
10527 _ACEOF
10529 USE_TOOLKIT_SCROLL_BARS=yes
10531 elif test "${HAVE_GTK}" = "yes"; then
10532 cat >>confdefs.h <<\_ACEOF
10533 #define USE_TOOLKIT_SCROLL_BARS 1
10534 _ACEOF
10536 USE_TOOLKIT_SCROLL_BARS=yes
10540 cat >conftest.$ac_ext <<_ACEOF
10541 /* confdefs.h. */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10547 #include <X11/Xlib.h>
10548 #include <X11/Xresource.h>
10550 main ()
10552 XIMProc callback;
10554 return 0;
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559 (eval $ac_compile) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 HAVE_XIM=yes
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_XIM 1
10583 _ACEOF
10585 else
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 HAVE_XIM=no
10591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594 if test "${with_xim}" != "no"; then
10596 cat >>confdefs.h <<\_ACEOF
10597 #define USE_XIM 1
10598 _ACEOF
10603 if test "${HAVE_XIM}" != "no"; then
10604 late_CFLAGS=$CFLAGS
10605 if test "$GCC" = yes; then
10606 CFLAGS="$CFLAGS --pedantic-errors"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10615 #include <X11/Xlib.h>
10616 #include <X11/Xresource.h>
10618 main ()
10620 Display *display;
10621 XrmDatabase db;
10622 char *res_name;
10623 char *res_class;
10624 XIMProc callback;
10625 XPointer *client_data;
10626 #ifndef __GNUC__
10627 /* If we're not using GCC, it's probably not XFree86, and this is
10628 probably right, but we can't use something like --pedantic-errors. */
10629 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10630 char*, XIMProc, XPointer*);
10631 #endif
10632 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10633 client_data);
10635 return 0;
10637 _ACEOF
10638 rm -f conftest.$ac_objext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640 (eval $ac_compile) 2>conftest.er1
10641 ac_status=$?
10642 grep -v '^ *+' conftest.er1 >conftest.err
10643 rm -f conftest.er1
10644 cat conftest.err >&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -z "$ac_c_werror_flag"
10648 || test ! -s conftest.err'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; } &&
10654 { ac_try='test -s conftest.$ac_objext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 emacs_cv_arg6_star=yes
10661 else
10662 echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10668 if test "$emacs_cv_arg6_star" = yes; then
10669 cat >>confdefs.h <<\_ACEOF
10670 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10671 _ACEOF
10673 else
10674 cat >>confdefs.h <<\_ACEOF
10675 #define XRegisterIMInstantiateCallback_arg6 XPointer
10676 _ACEOF
10679 CFLAGS=$late_CFLAGS
10682 ### Use -lXpm if available, unless `--with-xpm=no'.
10683 HAVE_XPM=no
10684 if test "${HAVE_X11}" = "yes"; then
10685 if test "${with_xpm}" != "no"; then
10686 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10687 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10688 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10689 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10693 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10694 else
10695 # Is the header compilable?
10696 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10697 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 $ac_includes_default
10705 #include <X11/xpm.h>
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag"
10717 || test ! -s conftest.err'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10726 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_header_compiler=yes
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10734 ac_header_compiler=no
10736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10738 echo "${ECHO_T}$ac_header_compiler" >&6
10740 # Is the header present?
10741 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10742 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 #include <X11/xpm.h>
10750 _ACEOF
10751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } >/dev/null; then
10759 if test -s conftest.err; then
10760 ac_cpp_err=$ac_c_preproc_warn_flag
10761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10762 else
10763 ac_cpp_err=
10765 else
10766 ac_cpp_err=yes
10768 if test -z "$ac_cpp_err"; then
10769 ac_header_preproc=yes
10770 else
10771 echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 ac_header_preproc=no
10776 rm -f conftest.err conftest.$ac_ext
10777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10778 echo "${ECHO_T}$ac_header_preproc" >&6
10780 # So? What about this header?
10781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10782 yes:no: )
10783 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10784 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10786 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10787 ac_header_preproc=yes
10789 no:yes:* )
10790 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10791 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10792 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10793 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10794 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10795 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10797 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10801 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10803 cat <<\_ASBOX
10804 ## ------------------------------------------ ##
10805 ## Report this to the AC_PACKAGE_NAME lists. ##
10806 ## ------------------------------------------ ##
10807 _ASBOX
10809 sed "s/^/$as_me: WARNING: /" >&2
10811 esac
10812 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10813 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10814 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817 ac_cv_header_X11_xpm_h=$ac_header_preproc
10819 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10820 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10823 if test $ac_cv_header_X11_xpm_h = yes; then
10824 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10825 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10826 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829 ac_check_lib_save_LIBS=$LIBS
10830 LIBS="-lXpm -lX11 $LIBS"
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10838 /* Override any gcc2 internal prototype to avoid an error. */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 /* We use char because int might match the return type of a gcc2
10843 builtin and then its argument prototype would still apply. */
10844 char XpmReadFileToPixmap ();
10846 main ()
10848 XpmReadFileToPixmap ();
10850 return 0;
10852 _ACEOF
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10855 (eval $ac_link) 2>conftest.er1
10856 ac_status=$?
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -f conftest.er1
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag"
10863 || test ! -s conftest.err'
10864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865 (eval $ac_try) 2>&5
10866 ac_status=$?
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest$ac_exeext'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10876 else
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10882 rm -f conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_lib_save_LIBS
10886 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10887 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10888 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10889 HAVE_XPM=yes
10895 if test "${HAVE_XPM}" = "yes"; then
10896 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10897 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h. */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include "X11/xpm.h"
10905 #ifndef XpmReturnAllocPixels
10906 no_return_alloc_pixels
10907 #endif
10909 _ACEOF
10910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10911 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10912 HAVE_XPM=no
10913 else
10914 HAVE_XPM=yes
10916 rm -f conftest*
10919 if test "${HAVE_XPM}" = "yes"; then
10920 echo "$as_me:$LINENO: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6
10922 else
10923 echo "$as_me:$LINENO: result: no" >&5
10924 echo "${ECHO_T}no" >&6
10929 if test "${HAVE_XPM}" = "yes"; then
10931 cat >>confdefs.h <<\_ACEOF
10932 #define HAVE_XPM 1
10933 _ACEOF
10938 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10939 HAVE_JPEG=no
10940 if test "${HAVE_X11}" = "yes"; then
10941 if test "${with_jpeg}" != "no"; then
10942 if test "${ac_cv_header_jerror_h+set}" = set; then
10943 echo "$as_me:$LINENO: checking for jerror.h" >&5
10944 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10945 if test "${ac_cv_header_jerror_h+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10949 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10950 else
10951 # Is the header compilable?
10952 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10953 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960 $ac_includes_default
10961 #include <jerror.h>
10962 _ACEOF
10963 rm -f conftest.$ac_objext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -z "$ac_c_werror_flag"
10973 || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_header_compiler=yes
10986 else
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 ac_header_compiler=no
10992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10994 echo "${ECHO_T}$ac_header_compiler" >&6
10996 # Is the header present?
10997 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10998 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10999 cat >conftest.$ac_ext <<_ACEOF
11000 /* confdefs.h. */
11001 _ACEOF
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11005 #include <jerror.h>
11006 _ACEOF
11007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } >/dev/null; then
11015 if test -s conftest.err; then
11016 ac_cpp_err=$ac_c_preproc_warn_flag
11017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11018 else
11019 ac_cpp_err=
11021 else
11022 ac_cpp_err=yes
11024 if test -z "$ac_cpp_err"; then
11025 ac_header_preproc=yes
11026 else
11027 echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11030 ac_header_preproc=no
11032 rm -f conftest.err conftest.$ac_ext
11033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11034 echo "${ECHO_T}$ac_header_preproc" >&6
11036 # So? What about this header?
11037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11038 yes:no: )
11039 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11040 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11042 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11043 ac_header_preproc=yes
11045 no:yes:* )
11046 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11047 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11048 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11049 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11051 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11053 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11055 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11057 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11059 cat <<\_ASBOX
11060 ## ------------------------------------------ ##
11061 ## Report this to the AC_PACKAGE_NAME lists. ##
11062 ## ------------------------------------------ ##
11063 _ASBOX
11065 sed "s/^/$as_me: WARNING: /" >&2
11067 esac
11068 echo "$as_me:$LINENO: checking for jerror.h" >&5
11069 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11070 if test "${ac_cv_header_jerror_h+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 else
11073 ac_cv_header_jerror_h=$ac_header_preproc
11075 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11076 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11079 if test $ac_cv_header_jerror_h = yes; then
11080 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11081 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11082 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 ac_check_lib_save_LIBS=$LIBS
11086 LIBS="-ljpeg $LIBS"
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11094 /* Override any gcc2 internal prototype to avoid an error. */
11095 #ifdef __cplusplus
11096 extern "C"
11097 #endif
11098 /* We use char because int might match the return type of a gcc2
11099 builtin and then its argument prototype would still apply. */
11100 char jpeg_destroy_compress ();
11102 main ()
11104 jpeg_destroy_compress ();
11106 return 0;
11108 _ACEOF
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag"
11119 || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11128 ac_status=$?
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11132 else
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11136 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11138 rm -f conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11143 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11144 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11145 HAVE_JPEG=yes
11154 if test "${HAVE_JPEG}" = "yes"; then
11155 cat >>confdefs.h <<\_ACEOF
11156 #define HAVE_JPEG 1
11157 _ACEOF
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h. */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 #include <jpeglib.h>
11166 version=JPEG_LIB_VERSION
11168 _ACEOF
11169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11170 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11171 cat >>confdefs.h <<\_ACEOF
11172 #define HAVE_JPEG 1
11173 _ACEOF
11175 else
11176 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11177 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11178 HAVE_JPEG=no
11180 rm -f conftest*
11185 ### Use -lpng if available, unless `--with-png=no'.
11186 HAVE_PNG=no
11187 if test "${HAVE_X11}" = "yes"; then
11188 if test "${with_png}" != "no"; then
11189 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11190 # in /usr/include/libpng.
11193 for ac_header in png.h libpng/png.h
11195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11197 echo "$as_me:$LINENO: checking for $ac_header" >&5
11198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11200 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11204 else
11205 # Is the header compilable?
11206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h. */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h. */
11214 $ac_includes_default
11215 #include <$ac_header>
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_header_compiler=yes
11240 else
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 ac_header_compiler=no
11246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11248 echo "${ECHO_T}$ac_header_compiler" >&6
11250 # Is the header present?
11251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <$ac_header>
11260 _ACEOF
11261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev/null; then
11269 if test -s conftest.err; then
11270 ac_cpp_err=$ac_c_preproc_warn_flag
11271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11272 else
11273 ac_cpp_err=
11275 else
11276 ac_cpp_err=yes
11278 if test -z "$ac_cpp_err"; then
11279 ac_header_preproc=yes
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_preproc=no
11286 rm -f conftest.err conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11288 echo "${ECHO_T}$ac_header_preproc" >&6
11290 # So? What about this header?
11291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11292 yes:no: )
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11297 ac_header_preproc=yes
11299 no:yes:* )
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11313 cat <<\_ASBOX
11314 ## ------------------------------------------ ##
11315 ## Report this to the AC_PACKAGE_NAME lists. ##
11316 ## ------------------------------------------ ##
11317 _ASBOX
11319 sed "s/^/$as_me: WARNING: /" >&2
11321 esac
11322 echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327 eval "$as_ac_Header=\$ac_header_preproc"
11329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11336 _ACEOF
11340 done
11342 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11343 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11344 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11345 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348 ac_check_lib_save_LIBS=$LIBS
11349 LIBS="-lpng -lz -lm $LIBS"
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11357 /* Override any gcc2 internal prototype to avoid an error. */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11363 char png_get_channels ();
11365 main ()
11367 png_get_channels ();
11369 return 0;
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11374 (eval $ac_link) 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest$ac_exeext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_cv_lib_png_png_get_channels=yes
11395 else
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_cv_lib_png_png_get_channels=no
11401 rm -f conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11403 LIBS=$ac_check_lib_save_LIBS
11405 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11406 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11407 if test $ac_cv_lib_png_png_get_channels = yes; then
11408 HAVE_PNG=yes
11414 if test "${HAVE_PNG}" = "yes"; then
11416 cat >>confdefs.h <<\_ACEOF
11417 #define HAVE_PNG 1
11418 _ACEOF
11423 ### Use -ltiff if available, unless `--with-tiff=no'.
11424 HAVE_TIFF=no
11425 if test "${HAVE_X11}" = "yes"; then
11426 if test "${with_tiff}" != "no"; then
11427 if test "${ac_cv_header_tiffio_h+set}" = set; then
11428 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11429 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11430 if test "${ac_cv_header_tiffio_h+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11434 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11435 else
11436 # Is the header compilable?
11437 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11438 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 $ac_includes_default
11446 #include <tiffio.h>
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>conftest.er1
11451 ac_status=$?
11452 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_c_werror_flag"
11458 || test ! -s conftest.err'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; } &&
11464 { ac_try='test -s conftest.$ac_objext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_header_compiler=yes
11471 else
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_header_compiler=no
11477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 echo "${ECHO_T}$ac_header_compiler" >&6
11481 # Is the header present?
11482 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11483 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 #include <tiffio.h>
11491 _ACEOF
11492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } >/dev/null; then
11500 if test -s conftest.err; then
11501 ac_cpp_err=$ac_c_preproc_warn_flag
11502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11503 else
11504 ac_cpp_err=
11506 else
11507 ac_cpp_err=yes
11509 if test -z "$ac_cpp_err"; then
11510 ac_header_preproc=yes
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_header_preproc=no
11517 rm -f conftest.err conftest.$ac_ext
11518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519 echo "${ECHO_T}$ac_header_preproc" >&6
11521 # So? What about this header?
11522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 yes:no: )
11524 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11525 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11527 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc=yes
11530 no:yes:* )
11531 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11532 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11534 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11536 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11538 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11540 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11542 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11544 cat <<\_ASBOX
11545 ## ------------------------------------------ ##
11546 ## Report this to the AC_PACKAGE_NAME lists. ##
11547 ## ------------------------------------------ ##
11548 _ASBOX
11550 sed "s/^/$as_me: WARNING: /" >&2
11552 esac
11553 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11554 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11555 if test "${ac_cv_header_tiffio_h+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558 ac_cv_header_tiffio_h=$ac_header_preproc
11560 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11561 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11564 if test $ac_cv_header_tiffio_h = yes; then
11565 tifflibs="-lz -lm"
11566 # At least one tiff package requires the jpeg library.
11567 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11568 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11569 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11570 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-ltiff $tifflibs $LIBS"
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11582 /* Override any gcc2 internal prototype to avoid an error. */
11583 #ifdef __cplusplus
11584 extern "C"
11585 #endif
11586 /* We use char because int might match the return type of a gcc2
11587 builtin and then its argument prototype would still apply. */
11588 char TIFFGetVersion ();
11590 main ()
11592 TIFFGetVersion ();
11594 return 0;
11596 _ACEOF
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest$ac_exeext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_cv_lib_tiff_TIFFGetVersion=yes
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 ac_cv_lib_tiff_TIFFGetVersion=no
11626 rm -f conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11630 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11631 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11632 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11633 HAVE_TIFF=yes
11641 if test "${HAVE_TIFF}" = "yes"; then
11643 cat >>confdefs.h <<\_ACEOF
11644 #define HAVE_TIFF 1
11645 _ACEOF
11650 ### Use -lgif if available, unless `--with-gif=no'.
11651 HAVE_GIF=no
11652 if test "${HAVE_X11}" = "yes"; then
11653 if test "${with_gif}" != "no"; then
11654 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11655 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11656 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11657 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11661 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11662 else
11663 # Is the header compilable?
11664 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11665 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h. */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 $ac_includes_default
11673 #include <gif_lib.h>
11674 _ACEOF
11675 rm -f conftest.$ac_objext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_header_compiler=yes
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 ac_header_compiler=no
11704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11706 echo "${ECHO_T}$ac_header_compiler" >&6
11708 # Is the header present?
11709 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11710 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h. */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 #include <gif_lib.h>
11718 _ACEOF
11719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } >/dev/null; then
11727 if test -s conftest.err; then
11728 ac_cpp_err=$ac_c_preproc_warn_flag
11729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11730 else
11731 ac_cpp_err=
11733 else
11734 ac_cpp_err=yes
11736 if test -z "$ac_cpp_err"; then
11737 ac_header_preproc=yes
11738 else
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 ac_header_preproc=no
11744 rm -f conftest.err conftest.$ac_ext
11745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11746 echo "${ECHO_T}$ac_header_preproc" >&6
11748 # So? What about this header?
11749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11750 yes:no: )
11751 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11752 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11753 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11754 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11755 ac_header_preproc=yes
11757 no:yes:* )
11758 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11759 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11761 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11763 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11765 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11767 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11769 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11771 cat <<\_ASBOX
11772 ## ------------------------------------------ ##
11773 ## Report this to the AC_PACKAGE_NAME lists. ##
11774 ## ------------------------------------------ ##
11775 _ASBOX
11777 sed "s/^/$as_me: WARNING: /" >&2
11779 esac
11780 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11781 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11782 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785 ac_cv_header_gif_lib_h=$ac_header_preproc
11787 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11788 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11791 if test $ac_cv_header_gif_lib_h = yes; then
11792 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11793 # Earlier versions can crash Emacs.
11794 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11795 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11796 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799 ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-lungif $LIBS"
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11808 /* Override any gcc2 internal prototype to avoid an error. */
11809 #ifdef __cplusplus
11810 extern "C"
11811 #endif
11812 /* We use char because int might match the return type of a gcc2
11813 builtin and then its argument prototype would still apply. */
11814 char EGifPutExtensionLast ();
11816 main ()
11818 EGifPutExtensionLast ();
11820 return 0;
11822 _ACEOF
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11825 (eval $ac_link) 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -z "$ac_c_werror_flag"
11833 || test ! -s conftest.err'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_cv_lib_ungif_EGifPutExtensionLast=no
11852 rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11856 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11857 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11858 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11859 HAVE_GIF=yes
11867 if test "${HAVE_GIF}" = "yes"; then
11869 cat >>confdefs.h <<\_ACEOF
11870 #define HAVE_GIF 1
11871 _ACEOF
11876 ### Use Mac OS X Carbon API to implement GUI.
11877 HAVE_CARBON=no
11878 if test "${with_carbon}" != "no"; then
11879 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11880 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11881 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11882 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11886 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11887 else
11888 # Is the header compilable?
11889 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11890 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 $ac_includes_default
11898 #include <Carbon/Carbon.h>
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_header_compiler=yes
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_header_compiler=no
11929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11931 echo "${ECHO_T}$ac_header_compiler" >&6
11933 # Is the header present?
11934 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11935 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h. */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 #include <Carbon/Carbon.h>
11943 _ACEOF
11944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } >/dev/null; then
11952 if test -s conftest.err; then
11953 ac_cpp_err=$ac_c_preproc_warn_flag
11954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11955 else
11956 ac_cpp_err=
11958 else
11959 ac_cpp_err=yes
11961 if test -z "$ac_cpp_err"; then
11962 ac_header_preproc=yes
11963 else
11964 echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11967 ac_header_preproc=no
11969 rm -f conftest.err conftest.$ac_ext
11970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11971 echo "${ECHO_T}$ac_header_preproc" >&6
11973 # So? What about this header?
11974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11975 yes:no: )
11976 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11977 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11979 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11980 ac_header_preproc=yes
11982 no:yes:* )
11983 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11984 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11986 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11987 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11988 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11990 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11992 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11994 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11996 cat <<\_ASBOX
11997 ## ------------------------------------------ ##
11998 ## Report this to the AC_PACKAGE_NAME lists. ##
11999 ## ------------------------------------------ ##
12000 _ASBOX
12002 sed "s/^/$as_me: WARNING: /" >&2
12004 esac
12005 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12006 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12007 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
12012 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12013 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12016 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12017 HAVE_CARBON=yes
12023 if test "${HAVE_CARBON}" = "yes"; then
12025 cat >>confdefs.h <<\_ACEOF
12026 #define HAVE_CARBON 1
12027 _ACEOF
12029 window_system=mac
12030 ## Specify the install directory
12031 carbon_appdir=
12032 if test "${carbon_appdir_x}" != ""; then
12033 case ${carbon_appdir_x} in
12034 y | ye | yes) carbon_appdir=/Applications ;;
12035 * ) carbon_appdir=${carbon_appdir_x} ;;
12036 esac
12038 # We also have mouse menus.
12039 HAVE_MENUS=yes
12042 ### Use session management (-lSM -lICE) if available
12043 HAVE_X_SM=no
12044 if test "${HAVE_X11}" = "yes"; then
12045 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12046 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12047 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12048 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12052 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12053 else
12054 # Is the header compilable?
12055 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12056 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h. */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 $ac_includes_default
12064 #include <X11/SM/SMlib.h>
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068 (eval $ac_compile) 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest.$ac_objext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_header_compiler=yes
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_header_compiler=no
12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12097 echo "${ECHO_T}$ac_header_compiler" >&6
12099 # Is the header present?
12100 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12101 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h. */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 #include <X11/SM/SMlib.h>
12109 _ACEOF
12110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } >/dev/null; then
12118 if test -s conftest.err; then
12119 ac_cpp_err=$ac_c_preproc_warn_flag
12120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12121 else
12122 ac_cpp_err=
12124 else
12125 ac_cpp_err=yes
12127 if test -z "$ac_cpp_err"; then
12128 ac_header_preproc=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 ac_header_preproc=no
12135 rm -f conftest.err conftest.$ac_ext
12136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12137 echo "${ECHO_T}$ac_header_preproc" >&6
12139 # So? What about this header?
12140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12141 yes:no: )
12142 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12143 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12145 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12146 ac_header_preproc=yes
12148 no:yes:* )
12149 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12150 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12152 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12154 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12155 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12156 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12157 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12158 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12159 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12160 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12162 cat <<\_ASBOX
12163 ## ------------------------------------------ ##
12164 ## Report this to the AC_PACKAGE_NAME lists. ##
12165 ## ------------------------------------------ ##
12166 _ASBOX
12168 sed "s/^/$as_me: WARNING: /" >&2
12170 esac
12171 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12172 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12173 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12178 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12179 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12182 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12183 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12184 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12185 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-lSM -lICE $LIBS"
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12197 /* Override any gcc2 internal prototype to avoid an error. */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12203 char SmcOpenConnection ();
12205 main ()
12207 SmcOpenConnection ();
12209 return 0;
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214 (eval $ac_link) 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_c_werror_flag"
12222 || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_lib_SM_SmcOpenConnection=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_lib_SM_SmcOpenConnection=no
12241 rm -f conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243 LIBS=$ac_check_lib_save_LIBS
12245 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12246 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12247 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12248 HAVE_X_SM=yes
12255 if test "${HAVE_X_SM}" = "yes"; then
12257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_X_SM 1
12259 _ACEOF
12261 case "$LIBS" in
12262 *-lSM*) ;;
12263 *) LIBS="-lSM -lICE $LIBS" ;;
12264 esac
12268 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12269 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12270 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12271 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 #include <netdb.h>
12282 main ()
12284 return h_errno;
12286 return 0;
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291 (eval $ac_link) 2>conftest.er1
12292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag"
12299 || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12302 ac_status=$?
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 emacs_cv_netdb_declares_h_errno=yes
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 emacs_cv_netdb_declares_h_errno=no
12318 rm -f conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12321 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12322 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12323 if test $emacs_cv_netdb_declares_h_errno = yes; then
12325 cat >>confdefs.h <<\_ACEOF
12326 #define HAVE_H_ERRNO 1
12327 _ACEOF
12331 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12332 # for constant arguments. Useless!
12333 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12334 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12335 if test "${ac_cv_working_alloca_h+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338 cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h. */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12344 #include <alloca.h>
12346 main ()
12348 char *p = (char *) alloca (2 * sizeof (int));
12350 return 0;
12352 _ACEOF
12353 rm -f conftest.$ac_objext conftest$ac_exeext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355 (eval $ac_link) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest$ac_exeext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_cv_working_alloca_h=yes
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 ac_cv_working_alloca_h=no
12382 rm -f conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12385 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12386 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12387 if test $ac_cv_working_alloca_h = yes; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_ALLOCA_H 1
12391 _ACEOF
12395 echo "$as_me:$LINENO: checking for alloca" >&5
12396 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12397 if test "${ac_cv_func_alloca_works+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 #ifdef __GNUC__
12407 # define alloca __builtin_alloca
12408 #else
12409 # ifdef _MSC_VER
12410 # include <malloc.h>
12411 # define alloca _alloca
12412 # else
12413 # if HAVE_ALLOCA_H
12414 # include <alloca.h>
12415 # else
12416 # ifdef _AIX
12417 #pragma alloca
12418 # else
12419 # ifndef alloca /* predefined by HP cc +Olibcalls */
12420 char *alloca ();
12421 # endif
12422 # endif
12423 # endif
12424 # endif
12425 #endif
12428 main ()
12430 char *p = (char *) alloca (1);
12432 return 0;
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag"
12445 || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_func_alloca_works=yes
12458 else
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ac_cv_func_alloca_works=no
12464 rm -f conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12467 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12468 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12470 if test $ac_cv_func_alloca_works = yes; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define HAVE_ALLOCA 1
12474 _ACEOF
12476 else
12477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12478 # that cause trouble. Some versions do not even contain alloca or
12479 # contain a buggy version. If you still want to use their alloca,
12480 # use ar to extract alloca.o from them instead of compiling alloca.c.
12482 ALLOCA=alloca.$ac_objext
12484 cat >>confdefs.h <<\_ACEOF
12485 #define C_ALLOCA 1
12486 _ACEOF
12489 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12490 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12491 if test "${ac_cv_os_cray+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 #if defined(CRAY) && ! defined(CRAY2)
12501 webecray
12502 #else
12503 wenotbecray
12504 #endif
12506 _ACEOF
12507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12508 $EGREP "webecray" >/dev/null 2>&1; then
12509 ac_cv_os_cray=yes
12510 else
12511 ac_cv_os_cray=no
12513 rm -f conftest*
12516 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12517 echo "${ECHO_T}$ac_cv_os_cray" >&6
12518 if test $ac_cv_os_cray = yes; then
12519 for ac_func in _getb67 GETB67 getb67; do
12520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12521 echo "$as_me:$LINENO: checking for $ac_func" >&5
12522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12523 if eval "test \"\${$as_ac_var+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12534 #define $ac_func innocuous_$ac_func
12536 /* System header to define __stub macros and hopefully few prototypes,
12537 which can conflict with char $ac_func (); below.
12538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12539 <limits.h> exists even on freestanding compilers. */
12541 #ifdef __STDC__
12542 # include <limits.h>
12543 #else
12544 # include <assert.h>
12545 #endif
12547 #undef $ac_func
12549 /* Override any gcc2 internal prototype to avoid an error. */
12550 #ifdef __cplusplus
12551 extern "C"
12553 #endif
12554 /* We use char because int might match the return type of a gcc2
12555 builtin and then its argument prototype would still apply. */
12556 char $ac_func ();
12557 /* The GNU C library defines this for functions which it implements
12558 to always fail with ENOSYS. Some functions are actually named
12559 something starting with __ and the normal name is an alias. */
12560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12561 choke me
12562 #else
12563 char (*f) () = $ac_func;
12564 #endif
12565 #ifdef __cplusplus
12567 #endif
12570 main ()
12572 return f != $ac_func;
12574 return 0;
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12579 (eval $ac_link) 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -z "$ac_c_werror_flag"
12587 || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 eval "$as_ac_var=yes"
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 eval "$as_ac_var=no"
12606 rm -f conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12611 if test `eval echo '${'$as_ac_var'}'` = yes; then
12613 cat >>confdefs.h <<_ACEOF
12614 #define CRAY_STACKSEG_END $ac_func
12615 _ACEOF
12617 break
12620 done
12623 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12624 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12625 if test "${ac_cv_c_stack_direction+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628 if test "$cross_compiling" = yes; then
12629 ac_cv_c_stack_direction=0
12630 else
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12638 find_stack_direction ()
12640 static char *addr = 0;
12641 auto char dummy;
12642 if (addr == 0)
12644 addr = &dummy;
12645 return find_stack_direction ();
12647 else
12648 return (&dummy > addr) ? 1 : -1;
12652 main ()
12654 exit (find_stack_direction () < 0);
12656 _ACEOF
12657 rm -f conftest$ac_exeext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 ac_cv_c_stack_direction=1
12669 else
12670 echo "$as_me: program exited with status $ac_status" >&5
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ( exit $ac_status )
12675 ac_cv_c_stack_direction=-1
12677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12680 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12681 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12683 cat >>confdefs.h <<_ACEOF
12684 #define STACK_DIRECTION $ac_cv_c_stack_direction
12685 _ACEOF
12691 # fmod, logb, and frexp are found in -lm on most systems.
12692 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12694 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12695 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12696 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lm $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any gcc2 internal prototype to avoid an error. */
12709 #ifdef __cplusplus
12710 extern "C"
12711 #endif
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714 char sqrt ();
12716 main ()
12718 sqrt ();
12720 return 0;
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12725 (eval $ac_link) 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_lib_m_sqrt=yes
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12750 ac_cv_lib_m_sqrt=no
12752 rm -f conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 LIBS=$ac_check_lib_save_LIBS
12756 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12757 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12758 if test $ac_cv_lib_m_sqrt = yes; then
12759 cat >>confdefs.h <<_ACEOF
12760 #define HAVE_LIBM 1
12761 _ACEOF
12763 LIBS="-lm $LIBS"
12768 # Check for mail-locking functions in a "mail" library. Probably this should
12769 # have the same check as for liblockfile below.
12771 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12772 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12773 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 else
12776 ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-lmail $LIBS"
12778 cat >conftest.$ac_ext <<_ACEOF
12779 /* confdefs.h. */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12785 /* Override any gcc2 internal prototype to avoid an error. */
12786 #ifdef __cplusplus
12787 extern "C"
12788 #endif
12789 /* We use char because int might match the return type of a gcc2
12790 builtin and then its argument prototype would still apply. */
12791 char maillock ();
12793 main ()
12795 maillock ();
12797 return 0;
12799 _ACEOF
12800 rm -f conftest.$ac_objext conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_lib_mail_maillock=yes
12823 else
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12827 ac_cv_lib_mail_maillock=no
12829 rm -f conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12833 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12834 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12835 if test $ac_cv_lib_mail_maillock = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_LIBMAIL 1
12838 _ACEOF
12840 LIBS="-lmail $LIBS"
12845 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12846 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12847 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850 ac_check_lib_save_LIBS=$LIBS
12851 LIBS="-llockfile $LIBS"
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h. */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any gcc2 internal prototype to avoid an error. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12865 char maillock ();
12867 main ()
12869 maillock ();
12871 return 0;
12873 _ACEOF
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_cv_lib_lockfile_maillock=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_cv_lib_lockfile_maillock=no
12903 rm -f conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12908 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12909 if test $ac_cv_lib_lockfile_maillock = yes; then
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_LIBLOCKFILE 1
12912 _ACEOF
12914 LIBS="-llockfile $LIBS"
12918 # If we have the shared liblockfile, assume we must use it for mail
12919 # locking (e.g. Debian). If we couldn't link against liblockfile
12920 # (no liblockfile.a installed), ensure that we don't need to.
12921 if test "$ac_cv_lib_lockfile_maillock" = no; then
12922 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12923 set dummy liblockfile.so; ac_word=$2
12924 echo "$as_me:$LINENO: checking for $ac_word" >&5
12925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12926 if test "${ac_cv_prog_liblockfile+set}" = set; then
12927 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929 if test -n "$liblockfile"; then
12930 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12931 else
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12934 for as_dir in $as_dummy
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12940 ac_cv_prog_liblockfile="yes"
12941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12944 done
12945 done
12947 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12950 liblockfile=$ac_cv_prog_liblockfile
12951 if test -n "$liblockfile"; then
12952 echo "$as_me:$LINENO: result: $liblockfile" >&5
12953 echo "${ECHO_T}$liblockfile" >&6
12954 else
12955 echo "$as_me:$LINENO: result: no" >&5
12956 echo "${ECHO_T}no" >&6
12959 if test $ac_cv_prog_liblockfile = yes; then
12960 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12961 This probably means that movemail could lose mail.
12962 There may be a \`development' package to install containing liblockfile." >&5
12963 echo "$as_me: error: Shared liblockfile found but can't link against it.
12964 This probably means that movemail could lose mail.
12965 There may be a \`development' package to install containing liblockfile." >&2;}
12966 { (exit 1); exit 1; }; }
12967 else :
12971 for ac_func in touchlock
12973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12974 echo "$as_me:$LINENO: checking for $ac_func" >&5
12975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12976 if eval "test \"\${$as_ac_var+set}\" = set"; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12987 #define $ac_func innocuous_$ac_func
12989 /* System header to define __stub macros and hopefully few prototypes,
12990 which can conflict with char $ac_func (); below.
12991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12992 <limits.h> exists even on freestanding compilers. */
12994 #ifdef __STDC__
12995 # include <limits.h>
12996 #else
12997 # include <assert.h>
12998 #endif
13000 #undef $ac_func
13002 /* Override any gcc2 internal prototype to avoid an error. */
13003 #ifdef __cplusplus
13004 extern "C"
13006 #endif
13007 /* We use char because int might match the return type of a gcc2
13008 builtin and then its argument prototype would still apply. */
13009 char $ac_func ();
13010 /* The GNU C library defines this for functions which it implements
13011 to always fail with ENOSYS. Some functions are actually named
13012 something starting with __ and the normal name is an alias. */
13013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13014 choke me
13015 #else
13016 char (*f) () = $ac_func;
13017 #endif
13018 #ifdef __cplusplus
13020 #endif
13023 main ()
13025 return f != $ac_func;
13027 return 0;
13029 _ACEOF
13030 rm -f conftest.$ac_objext conftest$ac_exeext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13032 (eval $ac_link) 2>conftest.er1
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
13039 { ac_try='test -z "$ac_c_werror_flag"
13040 || test ! -s conftest.err'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 eval "$as_ac_var=yes"
13053 else
13054 echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13057 eval "$as_ac_var=no"
13059 rm -f conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13064 if test `eval echo '${'$as_ac_var'}'` = yes; then
13065 cat >>confdefs.h <<_ACEOF
13066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13067 _ACEOF
13070 done
13073 for ac_header in maillock.h
13075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13077 echo "$as_me:$LINENO: checking for $ac_header" >&5
13078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13084 else
13085 # Is the header compilable?
13086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13088 cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h. */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13095 #include <$ac_header>
13096 _ACEOF
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_header_compiler=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_header_compiler=no
13126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13128 echo "${ECHO_T}$ac_header_compiler" >&6
13130 # Is the header present?
13131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h. */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 #include <$ac_header>
13140 _ACEOF
13141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } >/dev/null; then
13149 if test -s conftest.err; then
13150 ac_cpp_err=$ac_c_preproc_warn_flag
13151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13152 else
13153 ac_cpp_err=
13155 else
13156 ac_cpp_err=yes
13158 if test -z "$ac_cpp_err"; then
13159 ac_header_preproc=yes
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13164 ac_header_preproc=no
13166 rm -f conftest.err conftest.$ac_ext
13167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13168 echo "${ECHO_T}$ac_header_preproc" >&6
13170 # So? What about this header?
13171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13172 yes:no: )
13173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13177 ac_header_preproc=yes
13179 no:yes:* )
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13193 cat <<\_ASBOX
13194 ## ------------------------------------------ ##
13195 ## Report this to the AC_PACKAGE_NAME lists. ##
13196 ## ------------------------------------------ ##
13197 _ASBOX
13199 sed "s/^/$as_me: WARNING: /" >&2
13201 esac
13202 echo "$as_me:$LINENO: checking for $ac_header" >&5
13203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 eval "$as_ac_Header=\$ac_header_preproc"
13209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13214 cat >>confdefs.h <<_ACEOF
13215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13216 _ACEOF
13220 done
13290 for ac_func in gethostname getdomainname dup2 \
13291 rename closedir mkdir rmdir sysinfo \
13292 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13293 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13294 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13295 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13296 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13297 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13298 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
13300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13301 echo "$as_me:$LINENO: checking for $ac_func" >&5
13302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13303 if eval "test \"\${$as_ac_var+set}\" = set"; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13314 #define $ac_func innocuous_$ac_func
13316 /* System header to define __stub macros and hopefully few prototypes,
13317 which can conflict with char $ac_func (); below.
13318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13319 <limits.h> exists even on freestanding compilers. */
13321 #ifdef __STDC__
13322 # include <limits.h>
13323 #else
13324 # include <assert.h>
13325 #endif
13327 #undef $ac_func
13329 /* Override any gcc2 internal prototype to avoid an error. */
13330 #ifdef __cplusplus
13331 extern "C"
13333 #endif
13334 /* We use char because int might match the return type of a gcc2
13335 builtin and then its argument prototype would still apply. */
13336 char $ac_func ();
13337 /* The GNU C library defines this for functions which it implements
13338 to always fail with ENOSYS. Some functions are actually named
13339 something starting with __ and the normal name is an alias. */
13340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13341 choke me
13342 #else
13343 char (*f) () = $ac_func;
13344 #endif
13345 #ifdef __cplusplus
13347 #endif
13350 main ()
13352 return f != $ac_func;
13354 return 0;
13356 _ACEOF
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359 (eval $ac_link) 2>conftest.er1
13360 ac_status=$?
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -z "$ac_c_werror_flag"
13367 || test ! -s conftest.err'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13379 eval "$as_ac_var=yes"
13380 else
13381 echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13384 eval "$as_ac_var=no"
13386 rm -f conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13391 if test `eval echo '${'$as_ac_var'}'` = yes; then
13392 cat >>confdefs.h <<_ACEOF
13393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13394 _ACEOF
13397 done
13401 for ac_header in sys/un.h
13403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13405 echo "$as_me:$LINENO: checking for $ac_header" >&5
13406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13412 else
13413 # Is the header compilable?
13414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 $ac_includes_default
13423 #include <$ac_header>
13424 _ACEOF
13425 rm -f conftest.$ac_objext
13426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -z "$ac_c_werror_flag"
13435 || test ! -s conftest.err'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest.$ac_objext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_header_compiler=yes
13448 else
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_header_compiler=no
13454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456 echo "${ECHO_T}$ac_header_compiler" >&6
13458 # Is the header present?
13459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 #include <$ac_header>
13468 _ACEOF
13469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13471 ac_status=$?
13472 grep -v '^ *+' conftest.er1 >conftest.err
13473 rm -f conftest.er1
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } >/dev/null; then
13477 if test -s conftest.err; then
13478 ac_cpp_err=$ac_c_preproc_warn_flag
13479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13480 else
13481 ac_cpp_err=
13483 else
13484 ac_cpp_err=yes
13486 if test -z "$ac_cpp_err"; then
13487 ac_header_preproc=yes
13488 else
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_header_preproc=no
13494 rm -f conftest.err conftest.$ac_ext
13495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13496 echo "${ECHO_T}$ac_header_preproc" >&6
13498 # So? What about this header?
13499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13500 yes:no: )
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13505 ac_header_preproc=yes
13507 no:yes:* )
13508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13521 cat <<\_ASBOX
13522 ## ------------------------------------------ ##
13523 ## Report this to the AC_PACKAGE_NAME lists. ##
13524 ## ------------------------------------------ ##
13525 _ASBOX
13527 sed "s/^/$as_me: WARNING: /" >&2
13529 esac
13530 echo "$as_me:$LINENO: checking for $ac_header" >&5
13531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535 eval "$as_ac_Header=\$ac_header_preproc"
13537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13544 _ACEOF
13548 done
13554 for ac_header in stdlib.h sys/time.h unistd.h
13556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13558 echo "$as_me:$LINENO: checking for $ac_header" >&5
13559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13565 else
13566 # Is the header compilable?
13567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13569 cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h. */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 $ac_includes_default
13576 #include <$ac_header>
13577 _ACEOF
13578 rm -f conftest.$ac_objext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag"
13588 || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_header_compiler=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_compiler=no
13607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13609 echo "${ECHO_T}$ac_header_compiler" >&6
13611 # Is the header present?
13612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 #include <$ac_header>
13621 _ACEOF
13622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } >/dev/null; then
13630 if test -s conftest.err; then
13631 ac_cpp_err=$ac_c_preproc_warn_flag
13632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13633 else
13634 ac_cpp_err=
13636 else
13637 ac_cpp_err=yes
13639 if test -z "$ac_cpp_err"; then
13640 ac_header_preproc=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 ac_header_preproc=no
13647 rm -f conftest.err conftest.$ac_ext
13648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13649 echo "${ECHO_T}$ac_header_preproc" >&6
13651 # So? What about this header?
13652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13653 yes:no: )
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13658 ac_header_preproc=yes
13660 no:yes:* )
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13674 cat <<\_ASBOX
13675 ## ------------------------------------------ ##
13676 ## Report this to the AC_PACKAGE_NAME lists. ##
13677 ## ------------------------------------------ ##
13678 _ASBOX
13680 sed "s/^/$as_me: WARNING: /" >&2
13682 esac
13683 echo "$as_me:$LINENO: checking for $ac_header" >&5
13684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 else
13688 eval "$as_ac_Header=\$ac_header_preproc"
13690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13697 _ACEOF
13701 done
13704 for ac_func in alarm
13706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13707 echo "$as_me:$LINENO: checking for $ac_func" >&5
13708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_var+set}\" = set"; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13720 #define $ac_func innocuous_$ac_func
13722 /* System header to define __stub macros and hopefully few prototypes,
13723 which can conflict with char $ac_func (); below.
13724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13725 <limits.h> exists even on freestanding compilers. */
13727 #ifdef __STDC__
13728 # include <limits.h>
13729 #else
13730 # include <assert.h>
13731 #endif
13733 #undef $ac_func
13735 /* Override any gcc2 internal prototype to avoid an error. */
13736 #ifdef __cplusplus
13737 extern "C"
13739 #endif
13740 /* We use char because int might match the return type of a gcc2
13741 builtin and then its argument prototype would still apply. */
13742 char $ac_func ();
13743 /* The GNU C library defines this for functions which it implements
13744 to always fail with ENOSYS. Some functions are actually named
13745 something starting with __ and the normal name is an alias. */
13746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13747 choke me
13748 #else
13749 char (*f) () = $ac_func;
13750 #endif
13751 #ifdef __cplusplus
13753 #endif
13756 main ()
13758 return f != $ac_func;
13760 return 0;
13762 _ACEOF
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>conftest.er1
13766 ac_status=$?
13767 grep -v '^ *+' conftest.er1 >conftest.err
13768 rm -f conftest.er1
13769 cat conftest.err >&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -z "$ac_c_werror_flag"
13773 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } &&
13779 { ac_try='test -s conftest$ac_exeext'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 eval "$as_ac_var=yes"
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 eval "$as_ac_var=no"
13792 rm -f conftest.err conftest.$ac_objext \
13793 conftest$ac_exeext conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13797 if test `eval echo '${'$as_ac_var'}'` = yes; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13800 _ACEOF
13803 done
13805 echo "$as_me:$LINENO: checking for working mktime" >&5
13806 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13807 if test "${ac_cv_func_working_mktime+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810 if test "$cross_compiling" = yes; then
13811 ac_cv_func_working_mktime=no
13812 else
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 /* Test program from Paul Eggert and Tony Leneis. */
13820 #if TIME_WITH_SYS_TIME
13821 # include <sys/time.h>
13822 # include <time.h>
13823 #else
13824 # if HAVE_SYS_TIME_H
13825 # include <sys/time.h>
13826 # else
13827 # include <time.h>
13828 # endif
13829 #endif
13831 #if HAVE_STDLIB_H
13832 # include <stdlib.h>
13833 #endif
13835 #if HAVE_UNISTD_H
13836 # include <unistd.h>
13837 #endif
13839 #if !HAVE_ALARM
13840 # define alarm(X) /* empty */
13841 #endif
13843 /* Work around redefinition to rpl_putenv by other config tests. */
13844 #undef putenv
13846 static time_t time_t_max;
13847 static time_t time_t_min;
13849 /* Values we'll use to set the TZ environment variable. */
13850 static char *tz_strings[] = {
13851 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13852 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13854 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13856 /* Fail if mktime fails to convert a date in the spring-forward gap.
13857 Based on a problem report from Andreas Jaeger. */
13858 static void
13859 spring_forward_gap ()
13861 /* glibc (up to about 1998-10-07) failed this test. */
13862 struct tm tm;
13864 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13865 instead of "TZ=America/Vancouver" in order to detect the bug even
13866 on systems that don't support the Olson extension, or don't have the
13867 full zoneinfo tables installed. */
13868 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13870 tm.tm_year = 98;
13871 tm.tm_mon = 3;
13872 tm.tm_mday = 5;
13873 tm.tm_hour = 2;
13874 tm.tm_min = 0;
13875 tm.tm_sec = 0;
13876 tm.tm_isdst = -1;
13877 if (mktime (&tm) == (time_t)-1)
13878 exit (1);
13881 static void
13882 mktime_test1 (now)
13883 time_t now;
13885 struct tm *lt;
13886 if ((lt = localtime (&now)) && mktime (lt) != now)
13887 exit (1);
13890 static void
13891 mktime_test (now)
13892 time_t now;
13894 mktime_test1 (now);
13895 mktime_test1 ((time_t) (time_t_max - now));
13896 mktime_test1 ((time_t) (time_t_min + now));
13899 static void
13900 irix_6_4_bug ()
13902 /* Based on code from Ariel Faigon. */
13903 struct tm tm;
13904 tm.tm_year = 96;
13905 tm.tm_mon = 3;
13906 tm.tm_mday = 0;
13907 tm.tm_hour = 0;
13908 tm.tm_min = 0;
13909 tm.tm_sec = 0;
13910 tm.tm_isdst = -1;
13911 mktime (&tm);
13912 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13913 exit (1);
13916 static void
13917 bigtime_test (j)
13918 int j;
13920 struct tm tm;
13921 time_t now;
13922 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13923 now = mktime (&tm);
13924 if (now != (time_t) -1)
13926 struct tm *lt = localtime (&now);
13927 if (! (lt
13928 && lt->tm_year == tm.tm_year
13929 && lt->tm_mon == tm.tm_mon
13930 && lt->tm_mday == tm.tm_mday
13931 && lt->tm_hour == tm.tm_hour
13932 && lt->tm_min == tm.tm_min
13933 && lt->tm_sec == tm.tm_sec
13934 && lt->tm_yday == tm.tm_yday
13935 && lt->tm_wday == tm.tm_wday
13936 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13937 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13938 exit (1);
13943 main ()
13945 time_t t, delta;
13946 int i, j;
13948 /* This test makes some buggy mktime implementations loop.
13949 Give up after 60 seconds; a mktime slower than that
13950 isn't worth using anyway. */
13951 alarm (60);
13953 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13954 continue;
13955 time_t_max--;
13956 if ((time_t) -1 < 0)
13957 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13958 continue;
13959 delta = time_t_max / 997; /* a suitable prime number */
13960 for (i = 0; i < N_STRINGS; i++)
13962 if (tz_strings[i])
13963 putenv (tz_strings[i]);
13965 for (t = 0; t <= time_t_max - delta; t += delta)
13966 mktime_test (t);
13967 mktime_test ((time_t) 1);
13968 mktime_test ((time_t) (60 * 60));
13969 mktime_test ((time_t) (60 * 60 * 24));
13971 for (j = 1; 0 < j; j *= 2)
13972 bigtime_test (j);
13973 bigtime_test (j - 1);
13975 irix_6_4_bug ();
13976 spring_forward_gap ();
13977 exit (0);
13979 _ACEOF
13980 rm -f conftest$ac_exeext
13981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13982 (eval $ac_link) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 ac_cv_func_working_mktime=yes
13992 else
13993 echo "$as_me: program exited with status $ac_status" >&5
13994 echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13997 ( exit $ac_status )
13998 ac_cv_func_working_mktime=no
14000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14003 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14004 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14005 if test $ac_cv_func_working_mktime = no; then
14006 case $LIBOBJS in
14007 "mktime.$ac_objext" | \
14008 *" mktime.$ac_objext" | \
14009 "mktime.$ac_objext "* | \
14010 *" mktime.$ac_objext "* ) ;;
14011 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14012 esac
14016 if test "$ac_cv_func_working_mktime" = no; then
14018 cat >>confdefs.h <<\_ACEOF
14019 #define BROKEN_MKTIME 1
14020 _ACEOF
14024 ac_have_func=no # yes means we've found a way to get the load average.
14026 # Make sure getloadavg.c is where it belongs, at configure-time.
14027 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14028 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14029 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14030 { (exit 1); exit 1; }; }
14032 ac_save_LIBS=$LIBS
14034 # Check for getloadavg, but be sure not to touch the cache variable.
14035 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14036 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14037 if test "${ac_cv_func_getloadavg+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h. */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14048 #define getloadavg innocuous_getloadavg
14050 /* System header to define __stub macros and hopefully few prototypes,
14051 which can conflict with char getloadavg (); below.
14052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14053 <limits.h> exists even on freestanding compilers. */
14055 #ifdef __STDC__
14056 # include <limits.h>
14057 #else
14058 # include <assert.h>
14059 #endif
14061 #undef getloadavg
14063 /* Override any gcc2 internal prototype to avoid an error. */
14064 #ifdef __cplusplus
14065 extern "C"
14067 #endif
14068 /* We use char because int might match the return type of a gcc2
14069 builtin and then its argument prototype would still apply. */
14070 char getloadavg ();
14071 /* The GNU C library defines this for functions which it implements
14072 to always fail with ENOSYS. Some functions are actually named
14073 something starting with __ and the normal name is an alias. */
14074 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14075 choke me
14076 #else
14077 char (*f) () = getloadavg;
14078 #endif
14079 #ifdef __cplusplus
14081 #endif
14084 main ()
14086 return f != getloadavg;
14088 return 0;
14090 _ACEOF
14091 rm -f conftest.$ac_objext conftest$ac_exeext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14093 (eval $ac_link) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag"
14101 || test ! -s conftest.err'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_cv_func_getloadavg=yes
14114 else
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14118 ac_cv_func_getloadavg=no
14120 rm -f conftest.err conftest.$ac_objext \
14121 conftest$ac_exeext conftest.$ac_ext
14123 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14124 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14125 if test $ac_cv_func_getloadavg = yes; then
14126 exit 0
14127 else
14128 exit 1
14130 ) && ac_have_func=yes
14132 # On HPUX9, an unprivileged user can get load averages through this function.
14134 for ac_func in pstat_getdynamic
14136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14137 echo "$as_me:$LINENO: checking for $ac_func" >&5
14138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14139 if eval "test \"\${$as_ac_var+set}\" = set"; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h. */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14150 #define $ac_func innocuous_$ac_func
14152 /* System header to define __stub macros and hopefully few prototypes,
14153 which can conflict with char $ac_func (); below.
14154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14155 <limits.h> exists even on freestanding compilers. */
14157 #ifdef __STDC__
14158 # include <limits.h>
14159 #else
14160 # include <assert.h>
14161 #endif
14163 #undef $ac_func
14165 /* Override any gcc2 internal prototype to avoid an error. */
14166 #ifdef __cplusplus
14167 extern "C"
14169 #endif
14170 /* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14172 char $ac_func ();
14173 /* The GNU C library defines this for functions which it implements
14174 to always fail with ENOSYS. Some functions are actually named
14175 something starting with __ and the normal name is an alias. */
14176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14177 choke me
14178 #else
14179 char (*f) () = $ac_func;
14180 #endif
14181 #ifdef __cplusplus
14183 #endif
14186 main ()
14188 return f != $ac_func;
14190 return 0;
14192 _ACEOF
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14195 (eval $ac_link) 2>conftest.er1
14196 ac_status=$?
14197 grep -v '^ *+' conftest.er1 >conftest.err
14198 rm -f conftest.er1
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_c_werror_flag"
14203 || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest$ac_exeext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 eval "$as_ac_var=yes"
14216 else
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 eval "$as_ac_var=no"
14222 rm -f conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
14225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14227 if test `eval echo '${'$as_ac_var'}'` = yes; then
14228 cat >>confdefs.h <<_ACEOF
14229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14230 _ACEOF
14233 done
14236 # Solaris has libkstat which does not require root.
14238 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14239 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14240 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243 ac_check_lib_save_LIBS=$LIBS
14244 LIBS="-lkstat $LIBS"
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h. */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14252 /* Override any gcc2 internal prototype to avoid an error. */
14253 #ifdef __cplusplus
14254 extern "C"
14255 #endif
14256 /* We use char because int might match the return type of a gcc2
14257 builtin and then its argument prototype would still apply. */
14258 char kstat_open ();
14260 main ()
14262 kstat_open ();
14264 return 0;
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269 (eval $ac_link) 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -z "$ac_c_werror_flag"
14277 || test ! -s conftest.err'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14280 ac_status=$?
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; } &&
14283 { ac_try='test -s conftest$ac_exeext'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }; then
14289 ac_cv_lib_kstat_kstat_open=yes
14290 else
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 ac_cv_lib_kstat_kstat_open=no
14296 rm -f conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LIBS=$ac_check_lib_save_LIBS
14300 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14301 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14302 if test $ac_cv_lib_kstat_kstat_open = yes; then
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_LIBKSTAT 1
14305 _ACEOF
14307 LIBS="-lkstat $LIBS"
14311 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14313 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14314 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14315 # to get the right answer into the cache.
14316 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14317 if test $ac_have_func = no; then
14318 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14319 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14320 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323 ac_check_lib_save_LIBS=$LIBS
14324 LIBS="-lelf $LIBS"
14325 cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h. */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14332 /* Override any gcc2 internal prototype to avoid an error. */
14333 #ifdef __cplusplus
14334 extern "C"
14335 #endif
14336 /* We use char because int might match the return type of a gcc2
14337 builtin and then its argument prototype would still apply. */
14338 char elf_begin ();
14340 main ()
14342 elf_begin ();
14344 return 0;
14346 _ACEOF
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_lib_elf_elf_begin=yes
14370 else
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ac_cv_lib_elf_elf_begin=no
14376 rm -f conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 LIBS=$ac_check_lib_save_LIBS
14380 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14381 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14382 if test $ac_cv_lib_elf_elf_begin = yes; then
14383 LIBS="-lelf $LIBS"
14387 if test $ac_have_func = no; then
14388 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14389 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14390 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393 ac_check_lib_save_LIBS=$LIBS
14394 LIBS="-lkvm $LIBS"
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h. */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14402 /* Override any gcc2 internal prototype to avoid an error. */
14403 #ifdef __cplusplus
14404 extern "C"
14405 #endif
14406 /* We use char because int might match the return type of a gcc2
14407 builtin and then its argument prototype would still apply. */
14408 char kvm_open ();
14410 main ()
14412 kvm_open ();
14414 return 0;
14416 _ACEOF
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14419 (eval $ac_link) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -z "$ac_c_werror_flag"
14427 || test ! -s conftest.err'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; } &&
14433 { ac_try='test -s conftest$ac_exeext'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 ac_cv_lib_kvm_kvm_open=yes
14440 else
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14444 ac_cv_lib_kvm_kvm_open=no
14446 rm -f conftest.err conftest.$ac_objext \
14447 conftest$ac_exeext conftest.$ac_ext
14448 LIBS=$ac_check_lib_save_LIBS
14450 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14451 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14452 if test $ac_cv_lib_kvm_kvm_open = yes; then
14453 LIBS="-lkvm $LIBS"
14456 # Check for the 4.4BSD definition of getloadavg.
14457 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14458 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14459 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462 ac_check_lib_save_LIBS=$LIBS
14463 LIBS="-lutil $LIBS"
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h. */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14471 /* Override any gcc2 internal prototype to avoid an error. */
14472 #ifdef __cplusplus
14473 extern "C"
14474 #endif
14475 /* We use char because int might match the return type of a gcc2
14476 builtin and then its argument prototype would still apply. */
14477 char getloadavg ();
14479 main ()
14481 getloadavg ();
14483 return 0;
14485 _ACEOF
14486 rm -f conftest.$ac_objext conftest$ac_exeext
14487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14488 (eval $ac_link) 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } &&
14495 { ac_try='test -z "$ac_c_werror_flag"
14496 || test ! -s conftest.err'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; } &&
14502 { ac_try='test -s conftest$ac_exeext'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_cv_lib_util_getloadavg=yes
14509 else
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 ac_cv_lib_util_getloadavg=no
14515 rm -f conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext conftest.$ac_ext
14517 LIBS=$ac_check_lib_save_LIBS
14519 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14520 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14521 if test $ac_cv_lib_util_getloadavg = yes; then
14522 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14527 if test $ac_have_func = no; then
14528 # There is a commonly available library for RS/6000 AIX.
14529 # Since it is not a standard part of AIX, it might be installed locally.
14530 ac_getloadavg_LIBS=$LIBS
14531 LIBS="-L/usr/local/lib $LIBS"
14532 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14533 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14534 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537 ac_check_lib_save_LIBS=$LIBS
14538 LIBS="-lgetloadavg $LIBS"
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14546 /* Override any gcc2 internal prototype to avoid an error. */
14547 #ifdef __cplusplus
14548 extern "C"
14549 #endif
14550 /* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14552 char getloadavg ();
14554 main ()
14556 getloadavg ();
14558 return 0;
14560 _ACEOF
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14563 (eval $ac_link) 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
14570 { ac_try='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest$ac_exeext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_cv_lib_getloadavg_getloadavg=yes
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14588 ac_cv_lib_getloadavg_getloadavg=no
14590 rm -f conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LIBS=$ac_check_lib_save_LIBS
14594 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14595 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14596 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14597 LIBS="-lgetloadavg $LIBS"
14598 else
14599 LIBS=$ac_getloadavg_LIBS
14604 # Make sure it is really in the library, if we think we found it,
14605 # otherwise set up the replacement function.
14607 for ac_func in getloadavg
14609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14610 echo "$as_me:$LINENO: checking for $ac_func" >&5
14611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14612 if eval "test \"\${$as_ac_var+set}\" = set"; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 else
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14623 #define $ac_func innocuous_$ac_func
14625 /* System header to define __stub macros and hopefully few prototypes,
14626 which can conflict with char $ac_func (); below.
14627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14628 <limits.h> exists even on freestanding compilers. */
14630 #ifdef __STDC__
14631 # include <limits.h>
14632 #else
14633 # include <assert.h>
14634 #endif
14636 #undef $ac_func
14638 /* Override any gcc2 internal prototype to avoid an error. */
14639 #ifdef __cplusplus
14640 extern "C"
14642 #endif
14643 /* We use char because int might match the return type of a gcc2
14644 builtin and then its argument prototype would still apply. */
14645 char $ac_func ();
14646 /* The GNU C library defines this for functions which it implements
14647 to always fail with ENOSYS. Some functions are actually named
14648 something starting with __ and the normal name is an alias. */
14649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14650 choke me
14651 #else
14652 char (*f) () = $ac_func;
14653 #endif
14654 #ifdef __cplusplus
14656 #endif
14659 main ()
14661 return f != $ac_func;
14663 return 0;
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668 (eval $ac_link) 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try='test -z "$ac_c_werror_flag"
14676 || test ! -s conftest.err'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; } &&
14682 { ac_try='test -s conftest$ac_exeext'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; }; then
14688 eval "$as_ac_var=yes"
14689 else
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 eval "$as_ac_var=no"
14695 rm -f conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
14698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14700 if test `eval echo '${'$as_ac_var'}'` = yes; then
14701 cat >>confdefs.h <<_ACEOF
14702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14703 _ACEOF
14705 else
14706 case $LIBOBJS in
14707 "getloadavg.$ac_objext" | \
14708 *" getloadavg.$ac_objext" | \
14709 "getloadavg.$ac_objext "* | \
14710 *" getloadavg.$ac_objext "* ) ;;
14711 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14712 esac
14715 cat >>confdefs.h <<\_ACEOF
14716 #define C_GETLOADAVG 1
14717 _ACEOF
14719 # Figure out what our getloadavg.c needs.
14720 ac_have_func=no
14721 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14722 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14723 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14724 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14728 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14729 else
14730 # Is the header compilable?
14731 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14732 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14740 #include <sys/dg_sys_info.h>
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_header_compiler=no
14771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 echo "${ECHO_T}$ac_header_compiler" >&6
14775 # Is the header present?
14776 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14777 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <sys/dg_sys_info.h>
14785 _ACEOF
14786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } >/dev/null; then
14794 if test -s conftest.err; then
14795 ac_cpp_err=$ac_c_preproc_warn_flag
14796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14797 else
14798 ac_cpp_err=
14800 else
14801 ac_cpp_err=yes
14803 if test -z "$ac_cpp_err"; then
14804 ac_header_preproc=yes
14805 else
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_header_preproc=no
14811 rm -f conftest.err conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 echo "${ECHO_T}$ac_header_preproc" >&6
14815 # So? What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 yes:no: )
14818 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14819 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14821 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14824 no:yes:* )
14825 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14826 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14828 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14830 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14832 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14834 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14836 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14838 cat <<\_ASBOX
14839 ## ------------------------------------------ ##
14840 ## Report this to the AC_PACKAGE_NAME lists. ##
14841 ## ------------------------------------------ ##
14842 _ASBOX
14844 sed "s/^/$as_me: WARNING: /" >&2
14846 esac
14847 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14848 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14849 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14854 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14855 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14858 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14859 ac_have_func=yes
14861 cat >>confdefs.h <<\_ACEOF
14862 #define DGUX 1
14863 _ACEOF
14866 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14867 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14868 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871 ac_check_lib_save_LIBS=$LIBS
14872 LIBS="-ldgc $LIBS"
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14880 /* Override any gcc2 internal prototype to avoid an error. */
14881 #ifdef __cplusplus
14882 extern "C"
14883 #endif
14884 /* We use char because int might match the return type of a gcc2
14885 builtin and then its argument prototype would still apply. */
14886 char dg_sys_info ();
14888 main ()
14890 dg_sys_info ();
14892 return 0;
14894 _ACEOF
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest$ac_exeext'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_lib_dgc_dg_sys_info=yes
14918 else
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14922 ac_cv_lib_dgc_dg_sys_info=no
14924 rm -f conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 LIBS=$ac_check_lib_save_LIBS
14928 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14929 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14930 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_LIBDGC 1
14933 _ACEOF
14935 LIBS="-ldgc $LIBS"
14943 if test "${ac_cv_header_locale_h+set}" = set; then
14944 echo "$as_me:$LINENO: checking for locale.h" >&5
14945 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14946 if test "${ac_cv_header_locale_h+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14950 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14951 else
14952 # Is the header compilable?
14953 echo "$as_me:$LINENO: checking locale.h usability" >&5
14954 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 $ac_includes_default
14962 #include <locale.h>
14963 _ACEOF
14964 rm -f conftest.$ac_objext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14966 (eval $ac_compile) 2>conftest.er1
14967 ac_status=$?
14968 grep -v '^ *+' conftest.er1 >conftest.err
14969 rm -f conftest.er1
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } &&
14973 { ac_try='test -z "$ac_c_werror_flag"
14974 || test ! -s conftest.err'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest.$ac_objext'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 ac_header_compiler=yes
14987 else
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 ac_header_compiler=no
14993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 echo "${ECHO_T}$ac_header_compiler" >&6
14997 # Is the header present?
14998 echo "$as_me:$LINENO: checking locale.h presence" >&5
14999 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15000 cat >conftest.$ac_ext <<_ACEOF
15001 /* confdefs.h. */
15002 _ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <locale.h>
15007 _ACEOF
15008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } >/dev/null; then
15016 if test -s conftest.err; then
15017 ac_cpp_err=$ac_c_preproc_warn_flag
15018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15019 else
15020 ac_cpp_err=
15022 else
15023 ac_cpp_err=yes
15025 if test -z "$ac_cpp_err"; then
15026 ac_header_preproc=yes
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_header_preproc=no
15033 rm -f conftest.err conftest.$ac_ext
15034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15035 echo "${ECHO_T}$ac_header_preproc" >&6
15037 # So? What about this header?
15038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15039 yes:no: )
15040 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15041 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15043 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15044 ac_header_preproc=yes
15046 no:yes:* )
15047 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15048 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15050 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15052 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15054 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15056 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15058 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15060 cat <<\_ASBOX
15061 ## ------------------------------------------ ##
15062 ## Report this to the AC_PACKAGE_NAME lists. ##
15063 ## ------------------------------------------ ##
15064 _ASBOX
15066 sed "s/^/$as_me: WARNING: /" >&2
15068 esac
15069 echo "$as_me:$LINENO: checking for locale.h" >&5
15070 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15071 if test "${ac_cv_header_locale_h+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 ac_cv_header_locale_h=$ac_header_preproc
15076 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15077 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15083 for ac_func in setlocale
15085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15086 echo "$as_me:$LINENO: checking for $ac_func" >&5
15087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15088 if eval "test \"\${$as_ac_var+set}\" = set"; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h. */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15099 #define $ac_func innocuous_$ac_func
15101 /* System header to define __stub macros and hopefully few prototypes,
15102 which can conflict with char $ac_func (); below.
15103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15104 <limits.h> exists even on freestanding compilers. */
15106 #ifdef __STDC__
15107 # include <limits.h>
15108 #else
15109 # include <assert.h>
15110 #endif
15112 #undef $ac_func
15114 /* Override any gcc2 internal prototype to avoid an error. */
15115 #ifdef __cplusplus
15116 extern "C"
15118 #endif
15119 /* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15121 char $ac_func ();
15122 /* The GNU C library defines this for functions which it implements
15123 to always fail with ENOSYS. Some functions are actually named
15124 something starting with __ and the normal name is an alias. */
15125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15126 choke me
15127 #else
15128 char (*f) () = $ac_func;
15129 #endif
15130 #ifdef __cplusplus
15132 #endif
15135 main ()
15137 return f != $ac_func;
15139 return 0;
15141 _ACEOF
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144 (eval $ac_link) 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } &&
15151 { ac_try='test -z "$ac_c_werror_flag"
15152 || test ! -s conftest.err'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest$ac_exeext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 eval "$as_ac_var=yes"
15165 else
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 eval "$as_ac_var=no"
15171 rm -f conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15176 if test `eval echo '${'$as_ac_var'}'` = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15179 _ACEOF
15182 done
15185 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15186 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15187 # Irix 4.0.5F has the header but not the library.
15188 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15189 ac_have_func=yes
15191 cat >>confdefs.h <<\_ACEOF
15192 #define SVR4 1
15193 _ACEOF
15197 if test $ac_have_func = no; then
15198 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15199 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15200 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15201 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15205 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15206 else
15207 # Is the header compilable?
15208 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15209 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 $ac_includes_default
15217 #include <inq_stats/cpustats.h>
15218 _ACEOF
15219 rm -f conftest.$ac_objext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15221 (eval $ac_compile) 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } &&
15228 { ac_try='test -z "$ac_c_werror_flag"
15229 || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest.$ac_objext'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
15241 ac_header_compiler=yes
15242 else
15243 echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15246 ac_header_compiler=no
15248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15250 echo "${ECHO_T}$ac_header_compiler" >&6
15252 # Is the header present?
15253 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15254 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h. */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15261 #include <inq_stats/cpustats.h>
15262 _ACEOF
15263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } >/dev/null; then
15271 if test -s conftest.err; then
15272 ac_cpp_err=$ac_c_preproc_warn_flag
15273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15274 else
15275 ac_cpp_err=
15277 else
15278 ac_cpp_err=yes
15280 if test -z "$ac_cpp_err"; then
15281 ac_header_preproc=yes
15282 else
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_header_preproc=no
15288 rm -f conftest.err conftest.$ac_ext
15289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15290 echo "${ECHO_T}$ac_header_preproc" >&6
15292 # So? What about this header?
15293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15294 yes:no: )
15295 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15296 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15298 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15299 ac_header_preproc=yes
15301 no:yes:* )
15302 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15303 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15305 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15307 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15309 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15311 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15313 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15315 cat <<\_ASBOX
15316 ## ------------------------------------------ ##
15317 ## Report this to the AC_PACKAGE_NAME lists. ##
15318 ## ------------------------------------------ ##
15319 _ASBOX
15321 sed "s/^/$as_me: WARNING: /" >&2
15323 esac
15324 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15325 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15326 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15331 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15332 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15335 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15336 ac_have_func=yes
15338 cat >>confdefs.h <<\_ACEOF
15339 #define UMAX 1
15340 _ACEOF
15343 cat >>confdefs.h <<\_ACEOF
15344 #define UMAX4_3 1
15345 _ACEOF
15352 if test $ac_have_func = no; then
15353 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15354 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15355 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15356 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15360 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15361 else
15362 # Is the header compilable?
15363 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15364 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15365 cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h. */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 $ac_includes_default
15372 #include <sys/cpustats.h>
15373 _ACEOF
15374 rm -f conftest.$ac_objext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15376 (eval $ac_compile) 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -z "$ac_c_werror_flag"
15384 || test ! -s conftest.err'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; } &&
15390 { ac_try='test -s conftest.$ac_objext'
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_header_compiler=yes
15397 else
15398 echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15401 ac_header_compiler=no
15403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15405 echo "${ECHO_T}$ac_header_compiler" >&6
15407 # Is the header present?
15408 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15409 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 #include <sys/cpustats.h>
15417 _ACEOF
15418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } >/dev/null; then
15426 if test -s conftest.err; then
15427 ac_cpp_err=$ac_c_preproc_warn_flag
15428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15429 else
15430 ac_cpp_err=
15432 else
15433 ac_cpp_err=yes
15435 if test -z "$ac_cpp_err"; then
15436 ac_header_preproc=yes
15437 else
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ac_header_preproc=no
15443 rm -f conftest.err conftest.$ac_ext
15444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15445 echo "${ECHO_T}$ac_header_preproc" >&6
15447 # So? What about this header?
15448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15449 yes:no: )
15450 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15451 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15453 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15454 ac_header_preproc=yes
15456 no:yes:* )
15457 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15458 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15460 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15462 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15464 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15466 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15468 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15470 cat <<\_ASBOX
15471 ## ------------------------------------------ ##
15472 ## Report this to the AC_PACKAGE_NAME lists. ##
15473 ## ------------------------------------------ ##
15474 _ASBOX
15476 sed "s/^/$as_me: WARNING: /" >&2
15478 esac
15479 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15480 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15481 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 else
15484 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15486 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15487 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15490 if test $ac_cv_header_sys_cpustats_h = yes; then
15491 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15492 #define UMAX 1
15493 _ACEOF
15500 if test $ac_have_func = no; then
15502 for ac_header in mach/mach.h
15504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15506 echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15513 else
15514 # Is the header compilable?
15515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15517 cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h. */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 #include <$ac_header>
15525 _ACEOF
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_header_compiler=yes
15549 else
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_compiler=no
15555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15557 echo "${ECHO_T}$ac_header_compiler" >&6
15559 # Is the header present?
15560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h. */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <$ac_header>
15569 _ACEOF
15570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15572 ac_status=$?
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } >/dev/null; then
15578 if test -s conftest.err; then
15579 ac_cpp_err=$ac_c_preproc_warn_flag
15580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15581 else
15582 ac_cpp_err=
15584 else
15585 ac_cpp_err=yes
15587 if test -z "$ac_cpp_err"; then
15588 ac_header_preproc=yes
15589 else
15590 echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_header_preproc=no
15595 rm -f conftest.err conftest.$ac_ext
15596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15597 echo "${ECHO_T}$ac_header_preproc" >&6
15599 # So? What about this header?
15600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15601 yes:no: )
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15606 ac_header_preproc=yes
15608 no:yes:* )
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15622 cat <<\_ASBOX
15623 ## ------------------------------------------ ##
15624 ## Report this to the AC_PACKAGE_NAME lists. ##
15625 ## ------------------------------------------ ##
15626 _ASBOX
15628 sed "s/^/$as_me: WARNING: /" >&2
15630 esac
15631 echo "$as_me:$LINENO: checking for $ac_header" >&5
15632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636 eval "$as_ac_Header=\$ac_header_preproc"
15638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15643 cat >>confdefs.h <<_ACEOF
15644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15645 _ACEOF
15649 done
15654 for ac_header in nlist.h
15656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15658 echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15665 else
15666 # Is the header compilable?
15667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h. */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15675 $ac_includes_default
15676 #include <$ac_header>
15677 _ACEOF
15678 rm -f conftest.$ac_objext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15680 (eval $ac_compile) 2>conftest.er1
15681 ac_status=$?
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag"
15688 || test ! -s conftest.err'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_header_compiler=yes
15701 else
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_header_compiler=no
15707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15709 echo "${ECHO_T}$ac_header_compiler" >&6
15711 # Is the header present?
15712 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h. */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <$ac_header>
15721 _ACEOF
15722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } >/dev/null; then
15730 if test -s conftest.err; then
15731 ac_cpp_err=$ac_c_preproc_warn_flag
15732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15733 else
15734 ac_cpp_err=
15736 else
15737 ac_cpp_err=yes
15739 if test -z "$ac_cpp_err"; then
15740 ac_header_preproc=yes
15741 else
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 ac_header_preproc=no
15747 rm -f conftest.err conftest.$ac_ext
15748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15749 echo "${ECHO_T}$ac_header_preproc" >&6
15751 # So? What about this header?
15752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15753 yes:no: )
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15758 ac_header_preproc=yes
15760 no:yes:* )
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15774 cat <<\_ASBOX
15775 ## ------------------------------------------ ##
15776 ## Report this to the AC_PACKAGE_NAME lists. ##
15777 ## ------------------------------------------ ##
15778 _ASBOX
15780 sed "s/^/$as_me: WARNING: /" >&2
15782 esac
15783 echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 else
15788 eval "$as_ac_Header=\$ac_header_preproc"
15790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15795 cat >>confdefs.h <<_ACEOF
15796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15797 _ACEOF
15798 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15799 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15800 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h. */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <nlist.h>
15812 main ()
15814 static struct nlist ac_aggr;
15815 if (ac_aggr.n_un.n_name)
15816 return 0;
15818 return 0;
15820 _ACEOF
15821 rm -f conftest.$ac_objext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15823 (eval $ac_compile) 2>conftest.er1
15824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_c_werror_flag"
15831 || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest.$ac_objext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_cv_member_struct_nlist_n_un_n_name=yes
15844 else
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h. */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <nlist.h>
15857 main ()
15859 static struct nlist ac_aggr;
15860 if (sizeof ac_aggr.n_un.n_name)
15861 return 0;
15863 return 0;
15865 _ACEOF
15866 rm -f conftest.$ac_objext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15868 (eval $ac_compile) 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag"
15876 || test ! -s conftest.err'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } &&
15882 { ac_try='test -s conftest.$ac_objext'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_cv_member_struct_nlist_n_un_n_name=yes
15889 else
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_cv_member_struct_nlist_n_un_n_name=no
15895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15899 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15900 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15901 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15903 cat >>confdefs.h <<_ACEOF
15904 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15905 _ACEOF
15908 cat >>confdefs.h <<\_ACEOF
15909 #define NLIST_NAME_UNION 1
15910 _ACEOF
15917 done
15920 done
15923 # Some definitions of getloadavg require that the program be installed setgid.
15924 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15925 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15926 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929 cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h. */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15936 #ifdef LDAV_PRIVILEGED
15937 Yowza Am I SETGID yet
15938 #endif
15939 _ACEOF
15940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15941 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15942 ac_cv_func_getloadavg_setgid=yes
15943 else
15944 ac_cv_func_getloadavg_setgid=no
15946 rm -f conftest*
15949 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15950 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15951 if test $ac_cv_func_getloadavg_setgid = yes; then
15952 NEED_SETGID=true
15954 cat >>confdefs.h <<\_ACEOF
15955 #define GETLOADAVG_PRIVILEGED 1
15956 _ACEOF
15958 else
15959 NEED_SETGID=false
15962 if test $ac_cv_func_getloadavg_setgid = yes; then
15963 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15964 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15965 if test "${ac_cv_group_kmem+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15969 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15970 # If we got an error (system does not support symlinks), try without -L.
15971 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15972 ac_cv_group_kmem=`echo $ac_ls_output \
15973 | sed -ne 's/[ ][ ]*/ /g;
15974 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15975 / /s/.* //;p;'`
15978 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15979 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15980 KMEM_GROUP=$ac_cv_group_kmem
15982 if test "x$ac_save_LIBS" = x; then
15983 GETLOADAVG_LIBS=$LIBS
15984 else
15985 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15987 LIBS=$ac_save_LIBS
15991 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15992 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15993 if test "${ac_cv_sys_largefile_source+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996 while :; do
15997 ac_cv_sys_largefile_source=no
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h. */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16004 #include <stdio.h>
16006 main ()
16008 return !fseeko;
16010 return 0;
16012 _ACEOF
16013 rm -f conftest.$ac_objext
16014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16015 (eval $ac_compile) 2>conftest.er1
16016 ac_status=$?
16017 grep -v '^ *+' conftest.er1 >conftest.err
16018 rm -f conftest.er1
16019 cat conftest.err >&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); } &&
16022 { ac_try='test -z "$ac_c_werror_flag"
16023 || test ! -s conftest.err'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 break
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h. */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 #define _LARGEFILE_SOURCE 1
16049 #include <stdio.h>
16051 main ()
16053 return !fseeko;
16055 return 0;
16057 _ACEOF
16058 rm -f conftest.$ac_objext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060 (eval $ac_compile) 2>conftest.er1
16061 ac_status=$?
16062 grep -v '^ *+' conftest.er1 >conftest.err
16063 rm -f conftest.er1
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag"
16068 || test ! -s conftest.err'
16069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070 (eval $ac_try) 2>&5
16071 ac_status=$?
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
16075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16076 (eval $ac_try) 2>&5
16077 ac_status=$?
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; }; then
16080 ac_cv_sys_largefile_source=1; break
16081 else
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16087 break
16088 done
16090 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16091 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16092 if test "$ac_cv_sys_largefile_source" != no; then
16094 cat >>confdefs.h <<_ACEOF
16095 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16096 _ACEOF
16099 rm -f conftest*
16101 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16102 # in glibc 2.1.3, but that breaks too many other things.
16103 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16104 echo "$as_me:$LINENO: checking for fseeko" >&5
16105 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16106 if test "${ac_cv_func_fseeko+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 #include <stdio.h>
16117 main ()
16119 return fseeko && fseeko (stdin, 0, 0);
16121 return 0;
16123 _ACEOF
16124 rm -f conftest.$ac_objext conftest$ac_exeext
16125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16126 (eval $ac_link) 2>conftest.er1
16127 ac_status=$?
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
16133 { ac_try='test -z "$ac_c_werror_flag"
16134 || test ! -s conftest.err'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest$ac_exeext'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_cv_func_fseeko=yes
16147 else
16148 echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16151 ac_cv_func_fseeko=no
16153 rm -f conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16156 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16157 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16158 if test $ac_cv_func_fseeko = yes; then
16160 cat >>confdefs.h <<\_ACEOF
16161 #define HAVE_FSEEKO 1
16162 _ACEOF
16167 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16168 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16169 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172 # Use it with a single arg.
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h. */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 $ac_includes_default
16181 main ()
16183 getpgrp (0);
16185 return 0;
16187 _ACEOF
16188 rm -f conftest.$ac_objext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16190 (eval $ac_compile) 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_func_getpgrp_void=no
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_cv_func_getpgrp_void=yes
16217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16220 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16221 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16222 if test $ac_cv_func_getpgrp_void = yes; then
16224 cat >>confdefs.h <<\_ACEOF
16225 #define GETPGRP_VOID 1
16226 _ACEOF
16232 for ac_func in strftime
16234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16235 echo "$as_me:$LINENO: checking for $ac_func" >&5
16236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16237 if eval "test \"\${$as_ac_var+set}\" = set"; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240 cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h. */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16248 #define $ac_func innocuous_$ac_func
16250 /* System header to define __stub macros and hopefully few prototypes,
16251 which can conflict with char $ac_func (); below.
16252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16253 <limits.h> exists even on freestanding compilers. */
16255 #ifdef __STDC__
16256 # include <limits.h>
16257 #else
16258 # include <assert.h>
16259 #endif
16261 #undef $ac_func
16263 /* Override any gcc2 internal prototype to avoid an error. */
16264 #ifdef __cplusplus
16265 extern "C"
16267 #endif
16268 /* We use char because int might match the return type of a gcc2
16269 builtin and then its argument prototype would still apply. */
16270 char $ac_func ();
16271 /* The GNU C library defines this for functions which it implements
16272 to always fail with ENOSYS. Some functions are actually named
16273 something starting with __ and the normal name is an alias. */
16274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16275 choke me
16276 #else
16277 char (*f) () = $ac_func;
16278 #endif
16279 #ifdef __cplusplus
16281 #endif
16284 main ()
16286 return f != $ac_func;
16288 return 0;
16290 _ACEOF
16291 rm -f conftest.$ac_objext conftest$ac_exeext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16293 (eval $ac_link) 2>conftest.er1
16294 ac_status=$?
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
16300 { ac_try='test -z "$ac_c_werror_flag"
16301 || test ! -s conftest.err'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 eval "$as_ac_var=yes"
16314 else
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 eval "$as_ac_var=no"
16320 rm -f conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16325 if test `eval echo '${'$as_ac_var'}'` = yes; then
16326 cat >>confdefs.h <<_ACEOF
16327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16328 _ACEOF
16330 else
16331 # strftime is in -lintl on SCO UNIX.
16332 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16333 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16334 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16336 else
16337 ac_check_lib_save_LIBS=$LIBS
16338 LIBS="-lintl $LIBS"
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16346 /* Override any gcc2 internal prototype to avoid an error. */
16347 #ifdef __cplusplus
16348 extern "C"
16349 #endif
16350 /* We use char because int might match the return type of a gcc2
16351 builtin and then its argument prototype would still apply. */
16352 char strftime ();
16354 main ()
16356 strftime ();
16358 return 0;
16360 _ACEOF
16361 rm -f conftest.$ac_objext conftest$ac_exeext
16362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16363 (eval $ac_link) 2>conftest.er1
16364 ac_status=$?
16365 grep -v '^ *+' conftest.er1 >conftest.err
16366 rm -f conftest.er1
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag"
16371 || test ! -s conftest.err'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } &&
16377 { ac_try='test -s conftest$ac_exeext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ac_cv_lib_intl_strftime=yes
16384 else
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 ac_cv_lib_intl_strftime=no
16390 rm -f conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
16392 LIBS=$ac_check_lib_save_LIBS
16394 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16395 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16396 if test $ac_cv_lib_intl_strftime = yes; then
16397 cat >>confdefs.h <<\_ACEOF
16398 #define HAVE_STRFTIME 1
16399 _ACEOF
16401 LIBS="-lintl $LIBS"
16405 done
16408 # UNIX98 PTYs.
16410 for ac_func in grantpt
16412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16413 echo "$as_me:$LINENO: checking for $ac_func" >&5
16414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16415 if eval "test \"\${$as_ac_var+set}\" = set"; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16426 #define $ac_func innocuous_$ac_func
16428 /* System header to define __stub macros and hopefully few prototypes,
16429 which can conflict with char $ac_func (); below.
16430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16431 <limits.h> exists even on freestanding compilers. */
16433 #ifdef __STDC__
16434 # include <limits.h>
16435 #else
16436 # include <assert.h>
16437 #endif
16439 #undef $ac_func
16441 /* Override any gcc2 internal prototype to avoid an error. */
16442 #ifdef __cplusplus
16443 extern "C"
16445 #endif
16446 /* We use char because int might match the return type of a gcc2
16447 builtin and then its argument prototype would still apply. */
16448 char $ac_func ();
16449 /* The GNU C library defines this for functions which it implements
16450 to always fail with ENOSYS. Some functions are actually named
16451 something starting with __ and the normal name is an alias. */
16452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16453 choke me
16454 #else
16455 char (*f) () = $ac_func;
16456 #endif
16457 #ifdef __cplusplus
16459 #endif
16462 main ()
16464 return f != $ac_func;
16466 return 0;
16468 _ACEOF
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16471 (eval $ac_link) 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag"
16479 || test ! -s conftest.err'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; } &&
16485 { ac_try='test -s conftest$ac_exeext'
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 eval "$as_ac_var=yes"
16492 else
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 eval "$as_ac_var=no"
16498 rm -f conftest.err conftest.$ac_objext \
16499 conftest$ac_exeext conftest.$ac_ext
16501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16503 if test `eval echo '${'$as_ac_var'}'` = yes; then
16504 cat >>confdefs.h <<_ACEOF
16505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16506 _ACEOF
16509 done
16512 # PTY-related GNU extensions.
16514 for ac_func in getpt
16516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16517 echo "$as_me:$LINENO: checking for $ac_func" >&5
16518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16519 if eval "test \"\${$as_ac_var+set}\" = set"; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522 cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h. */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16530 #define $ac_func innocuous_$ac_func
16532 /* System header to define __stub macros and hopefully few prototypes,
16533 which can conflict with char $ac_func (); below.
16534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16535 <limits.h> exists even on freestanding compilers. */
16537 #ifdef __STDC__
16538 # include <limits.h>
16539 #else
16540 # include <assert.h>
16541 #endif
16543 #undef $ac_func
16545 /* Override any gcc2 internal prototype to avoid an error. */
16546 #ifdef __cplusplus
16547 extern "C"
16549 #endif
16550 /* We use char because int might match the return type of a gcc2
16551 builtin and then its argument prototype would still apply. */
16552 char $ac_func ();
16553 /* The GNU C library defines this for functions which it implements
16554 to always fail with ENOSYS. Some functions are actually named
16555 something starting with __ and the normal name is an alias. */
16556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16557 choke me
16558 #else
16559 char (*f) () = $ac_func;
16560 #endif
16561 #ifdef __cplusplus
16563 #endif
16566 main ()
16568 return f != $ac_func;
16570 return 0;
16572 _ACEOF
16573 rm -f conftest.$ac_objext conftest$ac_exeext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575 (eval $ac_link) 2>conftest.er1
16576 ac_status=$?
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -z "$ac_c_werror_flag"
16583 || test ! -s conftest.err'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; } &&
16589 { ac_try='test -s conftest$ac_exeext'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 eval "$as_ac_var=yes"
16596 else
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 eval "$as_ac_var=no"
16602 rm -f conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
16605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16607 if test `eval echo '${'$as_ac_var'}'` = yes; then
16608 cat >>confdefs.h <<_ACEOF
16609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16610 _ACEOF
16613 done
16616 # Check this now, so that we will NOT find the above functions in ncurses.
16617 # That is because we have not set up to link ncurses in lib-src.
16618 # It's better to believe a function is not available
16619 # than to expect to find it in ncurses.
16621 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16622 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16623 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626 ac_check_lib_save_LIBS=$LIBS
16627 LIBS="-lncurses $LIBS"
16628 cat >conftest.$ac_ext <<_ACEOF
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16635 /* Override any gcc2 internal prototype to avoid an error. */
16636 #ifdef __cplusplus
16637 extern "C"
16638 #endif
16639 /* We use char because int might match the return type of a gcc2
16640 builtin and then its argument prototype would still apply. */
16641 char tparm ();
16643 main ()
16645 tparm ();
16647 return 0;
16649 _ACEOF
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 (eval $ac_link) 2>conftest.er1
16653 ac_status=$?
16654 grep -v '^ *+' conftest.er1 >conftest.err
16655 rm -f conftest.er1
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag"
16660 || test ! -s conftest.err'
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; } &&
16666 { ac_try='test -s conftest$ac_exeext'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
16672 ac_cv_lib_ncurses_tparm=yes
16673 else
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16677 ac_cv_lib_ncurses_tparm=no
16679 rm -f conftest.err conftest.$ac_objext \
16680 conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16683 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16684 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16685 if test $ac_cv_lib_ncurses_tparm = yes; then
16686 cat >>confdefs.h <<_ACEOF
16687 #define HAVE_LIBNCURSES 1
16688 _ACEOF
16690 LIBS="-lncurses $LIBS"
16695 # Do we need the Hesiod library to provide the support routines?
16696 if test "$with_hesiod" = yes ; then
16697 # Don't set $LIBS here -- see comments above.
16698 resolv=no
16699 echo "$as_me:$LINENO: checking for res_send" >&5
16700 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16701 if test "${ac_cv_func_res_send+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704 cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16712 #define res_send innocuous_res_send
16714 /* System header to define __stub macros and hopefully few prototypes,
16715 which can conflict with char res_send (); below.
16716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16717 <limits.h> exists even on freestanding compilers. */
16719 #ifdef __STDC__
16720 # include <limits.h>
16721 #else
16722 # include <assert.h>
16723 #endif
16725 #undef res_send
16727 /* Override any gcc2 internal prototype to avoid an error. */
16728 #ifdef __cplusplus
16729 extern "C"
16731 #endif
16732 /* We use char because int might match the return type of a gcc2
16733 builtin and then its argument prototype would still apply. */
16734 char res_send ();
16735 /* The GNU C library defines this for functions which it implements
16736 to always fail with ENOSYS. Some functions are actually named
16737 something starting with __ and the normal name is an alias. */
16738 #if defined (__stub_res_send) || defined (__stub___res_send)
16739 choke me
16740 #else
16741 char (*f) () = res_send;
16742 #endif
16743 #ifdef __cplusplus
16745 #endif
16748 main ()
16750 return f != res_send;
16752 return 0;
16754 _ACEOF
16755 rm -f conftest.$ac_objext conftest$ac_exeext
16756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16757 (eval $ac_link) 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_c_werror_flag"
16765 || test ! -s conftest.err'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest$ac_exeext'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_func_res_send=yes
16778 else
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_func_res_send=no
16784 rm -f conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16787 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16788 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16789 if test $ac_cv_func_res_send = yes; then
16791 else
16792 echo "$as_me:$LINENO: checking for __res_send" >&5
16793 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16794 if test "${ac_cv_func___res_send+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 else
16797 cat >conftest.$ac_ext <<_ACEOF
16798 /* confdefs.h. */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h. */
16803 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16805 #define __res_send innocuous___res_send
16807 /* System header to define __stub macros and hopefully few prototypes,
16808 which can conflict with char __res_send (); below.
16809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16810 <limits.h> exists even on freestanding compilers. */
16812 #ifdef __STDC__
16813 # include <limits.h>
16814 #else
16815 # include <assert.h>
16816 #endif
16818 #undef __res_send
16820 /* Override any gcc2 internal prototype to avoid an error. */
16821 #ifdef __cplusplus
16822 extern "C"
16824 #endif
16825 /* We use char because int might match the return type of a gcc2
16826 builtin and then its argument prototype would still apply. */
16827 char __res_send ();
16828 /* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831 #if defined (__stub___res_send) || defined (__stub_____res_send)
16832 choke me
16833 #else
16834 char (*f) () = __res_send;
16835 #endif
16836 #ifdef __cplusplus
16838 #endif
16841 main ()
16843 return f != __res_send;
16845 return 0;
16847 _ACEOF
16848 rm -f conftest.$ac_objext conftest$ac_exeext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16850 (eval $ac_link) 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -z "$ac_c_werror_flag"
16858 || test ! -s conftest.err'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest$ac_exeext'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16867 ac_status=$?
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; }; then
16870 ac_cv_func___res_send=yes
16871 else
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 ac_cv_func___res_send=no
16877 rm -f conftest.err conftest.$ac_objext \
16878 conftest$ac_exeext conftest.$ac_ext
16880 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16881 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16882 if test $ac_cv_func___res_send = yes; then
16884 else
16885 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16886 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16887 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 else
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lresolv $LIBS"
16892 cat >conftest.$ac_ext <<_ACEOF
16893 /* confdefs.h. */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 /* Override any gcc2 internal prototype to avoid an error. */
16900 #ifdef __cplusplus
16901 extern "C"
16902 #endif
16903 /* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905 char res_send ();
16907 main ()
16909 res_send ();
16911 return 0;
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16916 (eval $ac_link) 2>conftest.er1
16917 ac_status=$?
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag"
16924 || test ! -s conftest.err'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; } &&
16930 { ac_try='test -s conftest$ac_exeext'
16931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932 (eval $ac_try) 2>&5
16933 ac_status=$?
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 ac_cv_lib_resolv_res_send=yes
16937 else
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 ac_cv_lib_resolv_res_send=no
16943 rm -f conftest.err conftest.$ac_objext \
16944 conftest$ac_exeext conftest.$ac_ext
16945 LIBS=$ac_check_lib_save_LIBS
16947 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16948 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16949 if test $ac_cv_lib_resolv_res_send = yes; then
16950 resolv=yes
16951 else
16952 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16953 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16954 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 else
16957 ac_check_lib_save_LIBS=$LIBS
16958 LIBS="-lresolv $LIBS"
16959 cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h. */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16966 /* Override any gcc2 internal prototype to avoid an error. */
16967 #ifdef __cplusplus
16968 extern "C"
16969 #endif
16970 /* We use char because int might match the return type of a gcc2
16971 builtin and then its argument prototype would still apply. */
16972 char __res_send ();
16974 main ()
16976 __res_send ();
16978 return 0;
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983 (eval $ac_link) 2>conftest.er1
16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } &&
16990 { ac_try='test -z "$ac_c_werror_flag"
16991 || test ! -s conftest.err'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; } &&
16997 { ac_try='test -s conftest$ac_exeext'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_cv_lib_resolv___res_send=yes
17004 else
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_cv_lib_resolv___res_send=no
17010 rm -f conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17012 LIBS=$ac_check_lib_save_LIBS
17014 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17015 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17016 if test $ac_cv_lib_resolv___res_send = yes; then
17017 resolv=yes
17026 if test "$resolv" = yes ; then
17027 RESOLVLIB=-lresolv
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE_LIBRESOLV 1
17031 _ACEOF
17033 else
17034 RESOLVLIB=
17036 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17037 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17038 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17049 #define hes_getmailhost innocuous_hes_getmailhost
17051 /* System header to define __stub macros and hopefully few prototypes,
17052 which can conflict with char hes_getmailhost (); below.
17053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054 <limits.h> exists even on freestanding compilers. */
17056 #ifdef __STDC__
17057 # include <limits.h>
17058 #else
17059 # include <assert.h>
17060 #endif
17062 #undef hes_getmailhost
17064 /* Override any gcc2 internal prototype to avoid an error. */
17065 #ifdef __cplusplus
17066 extern "C"
17068 #endif
17069 /* We use char because int might match the return type of a gcc2
17070 builtin and then its argument prototype would still apply. */
17071 char hes_getmailhost ();
17072 /* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17076 choke me
17077 #else
17078 char (*f) () = hes_getmailhost;
17079 #endif
17080 #ifdef __cplusplus
17082 #endif
17085 main ()
17087 return f != hes_getmailhost;
17089 return 0;
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17094 (eval $ac_link) 2>conftest.er1
17095 ac_status=$?
17096 grep -v '^ *+' conftest.er1 >conftest.err
17097 rm -f conftest.er1
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } &&
17101 { ac_try='test -z "$ac_c_werror_flag"
17102 || test ! -s conftest.err'
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest$ac_exeext'
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_func_hes_getmailhost=yes
17115 else
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_cv_func_hes_getmailhost=no
17121 rm -f conftest.err conftest.$ac_objext \
17122 conftest$ac_exeext conftest.$ac_ext
17124 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17125 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17126 if test $ac_cv_func_hes_getmailhost = yes; then
17128 else
17129 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17130 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17131 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lhesiod $RESOLVLIB $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any gcc2 internal prototype to avoid an error. */
17144 #ifdef __cplusplus
17145 extern "C"
17146 #endif
17147 /* We use char because int might match the return type of a gcc2
17148 builtin and then its argument prototype would still apply. */
17149 char hes_getmailhost ();
17151 main ()
17153 hes_getmailhost ();
17155 return 0;
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17160 (eval $ac_link) 2>conftest.er1
17161 ac_status=$?
17162 grep -v '^ *+' conftest.er1 >conftest.err
17163 rm -f conftest.er1
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } &&
17167 { ac_try='test -z "$ac_c_werror_flag"
17168 || test ! -s conftest.err'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try='test -s conftest$ac_exeext'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_cv_lib_hesiod_hes_getmailhost=yes
17181 else
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ac_cv_lib_hesiod_hes_getmailhost=no
17187 rm -f conftest.err conftest.$ac_objext \
17188 conftest$ac_exeext conftest.$ac_ext
17189 LIBS=$ac_check_lib_save_LIBS
17191 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17192 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17193 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17195 cat >>confdefs.h <<\_ACEOF
17196 #define HAVE_LIBHESIOD 1
17197 _ACEOF
17199 else
17207 # These tell us which Kerberos-related libraries to use.
17208 if test "${with_kerberos+set}" = set; then
17210 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17211 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17212 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214 else
17215 ac_check_lib_save_LIBS=$LIBS
17216 LIBS="-lcom_err $LIBS"
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h. */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17224 /* Override any gcc2 internal prototype to avoid an error. */
17225 #ifdef __cplusplus
17226 extern "C"
17227 #endif
17228 /* We use char because int might match the return type of a gcc2
17229 builtin and then its argument prototype would still apply. */
17230 char com_err ();
17232 main ()
17234 com_err ();
17236 return 0;
17238 _ACEOF
17239 rm -f conftest.$ac_objext conftest$ac_exeext
17240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -z "$ac_c_werror_flag"
17249 || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest$ac_exeext'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_cv_lib_com_err_com_err=yes
17262 else
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 ac_cv_lib_com_err_com_err=no
17268 rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_lib_save_LIBS
17272 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17273 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17274 if test $ac_cv_lib_com_err_com_err = yes; then
17275 cat >>confdefs.h <<_ACEOF
17276 #define HAVE_LIBCOM_ERR 1
17277 _ACEOF
17279 LIBS="-lcom_err $LIBS"
17284 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17285 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17286 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 ac_check_lib_save_LIBS=$LIBS
17290 LIBS="-lk5crypto $LIBS"
17291 cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h. */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17298 /* Override any gcc2 internal prototype to avoid an error. */
17299 #ifdef __cplusplus
17300 extern "C"
17301 #endif
17302 /* We use char because int might match the return type of a gcc2
17303 builtin and then its argument prototype would still apply. */
17304 char mit_des_cbc_encrypt ();
17306 main ()
17308 mit_des_cbc_encrypt ();
17310 return 0;
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
17322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17342 rm -f conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17346 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17347 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17348 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_LIBK5CRYPTO 1
17351 _ACEOF
17353 LIBS="-lk5crypto $LIBS"
17358 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17359 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17360 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363 ac_check_lib_save_LIBS=$LIBS
17364 LIBS="-lcrypto $LIBS"
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17372 /* Override any gcc2 internal prototype to avoid an error. */
17373 #ifdef __cplusplus
17374 extern "C"
17375 #endif
17376 /* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17378 char mit_des_cbc_encrypt ();
17380 main ()
17382 mit_des_cbc_encrypt ();
17384 return 0;
17386 _ACEOF
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest$ac_exeext'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17416 rm -f conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 LIBS=$ac_check_lib_save_LIBS
17420 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17421 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17422 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17423 cat >>confdefs.h <<_ACEOF
17424 #define HAVE_LIBCRYPTO 1
17425 _ACEOF
17427 LIBS="-lcrypto $LIBS"
17432 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17433 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17434 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 else
17437 ac_check_lib_save_LIBS=$LIBS
17438 LIBS="-lkrb5 $LIBS"
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17446 /* Override any gcc2 internal prototype to avoid an error. */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17452 char krb5_init_context ();
17454 main ()
17456 krb5_init_context ();
17458 return 0;
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } &&
17470 { ac_try='test -z "$ac_c_werror_flag"
17471 || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_cv_lib_krb5_krb5_init_context=yes
17484 else
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_cv_lib_krb5_krb5_init_context=no
17490 rm -f conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17492 LIBS=$ac_check_lib_save_LIBS
17494 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17495 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17496 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17497 cat >>confdefs.h <<_ACEOF
17498 #define HAVE_LIBKRB5 1
17499 _ACEOF
17501 LIBS="-lkrb5 $LIBS"
17505 if test "${with_kerberos5+set}" != set; then
17507 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17508 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17509 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512 ac_check_lib_save_LIBS=$LIBS
17513 LIBS="-ldes425 $LIBS"
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17521 /* Override any gcc2 internal prototype to avoid an error. */
17522 #ifdef __cplusplus
17523 extern "C"
17524 #endif
17525 /* We use char because int might match the return type of a gcc2
17526 builtin and then its argument prototype would still apply. */
17527 char des_cbc_encrypt ();
17529 main ()
17531 des_cbc_encrypt ();
17533 return 0;
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538 (eval $ac_link) 2>conftest.er1
17539 ac_status=$?
17540 grep -v '^ *+' conftest.er1 >conftest.err
17541 rm -f conftest.er1
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } &&
17545 { ac_try='test -z "$ac_c_werror_flag"
17546 || test ! -s conftest.err'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; } &&
17552 { ac_try='test -s conftest$ac_exeext'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17555 ac_status=$?
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_cv_lib_des425_des_cbc_encrypt=yes
17559 else
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_cv_lib_des425_des_cbc_encrypt=no
17565 rm -f conftest.err conftest.$ac_objext \
17566 conftest$ac_exeext conftest.$ac_ext
17567 LIBS=$ac_check_lib_save_LIBS
17569 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17570 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17571 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_LIBDES425 1
17574 _ACEOF
17576 LIBS="-ldes425 $LIBS"
17578 else
17580 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17581 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17582 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17584 else
17585 ac_check_lib_save_LIBS=$LIBS
17586 LIBS="-ldes $LIBS"
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17594 /* Override any gcc2 internal prototype to avoid an error. */
17595 #ifdef __cplusplus
17596 extern "C"
17597 #endif
17598 /* We use char because int might match the return type of a gcc2
17599 builtin and then its argument prototype would still apply. */
17600 char des_cbc_encrypt ();
17602 main ()
17604 des_cbc_encrypt ();
17606 return 0;
17608 _ACEOF
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17611 (eval $ac_link) 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag"
17619 || test ! -s conftest.err'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; } &&
17625 { ac_try='test -s conftest$ac_exeext'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; }; then
17631 ac_cv_lib_des_des_cbc_encrypt=yes
17632 else
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17636 ac_cv_lib_des_des_cbc_encrypt=no
17638 rm -f conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640 LIBS=$ac_check_lib_save_LIBS
17642 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17643 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17644 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17645 cat >>confdefs.h <<_ACEOF
17646 #define HAVE_LIBDES 1
17647 _ACEOF
17649 LIBS="-ldes $LIBS"
17656 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17657 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17658 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 else
17661 ac_check_lib_save_LIBS=$LIBS
17662 LIBS="-lkrb4 $LIBS"
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17670 /* Override any gcc2 internal prototype to avoid an error. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 /* We use char because int might match the return type of a gcc2
17675 builtin and then its argument prototype would still apply. */
17676 char krb_get_cred ();
17678 main ()
17680 krb_get_cred ();
17682 return 0;
17684 _ACEOF
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687 (eval $ac_link) 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest$ac_exeext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_lib_krb4_krb_get_cred=yes
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_cv_lib_krb4_krb_get_cred=no
17714 rm -f conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
17716 LIBS=$ac_check_lib_save_LIBS
17718 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17719 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17720 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_LIBKRB4 1
17723 _ACEOF
17725 LIBS="-lkrb4 $LIBS"
17727 else
17729 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17730 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17731 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734 ac_check_lib_save_LIBS=$LIBS
17735 LIBS="-lkrb $LIBS"
17736 cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h. */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h. */
17743 /* Override any gcc2 internal prototype to avoid an error. */
17744 #ifdef __cplusplus
17745 extern "C"
17746 #endif
17747 /* We use char because int might match the return type of a gcc2
17748 builtin and then its argument prototype would still apply. */
17749 char krb_get_cred ();
17751 main ()
17753 krb_get_cred ();
17755 return 0;
17757 _ACEOF
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760 (eval $ac_link) 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag"
17768 || test ! -s conftest.err'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_lib_krb_krb_get_cred=yes
17781 else
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ac_cv_lib_krb_krb_get_cred=no
17787 rm -f conftest.err conftest.$ac_objext \
17788 conftest$ac_exeext conftest.$ac_ext
17789 LIBS=$ac_check_lib_save_LIBS
17791 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17792 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17793 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17794 cat >>confdefs.h <<_ACEOF
17795 #define HAVE_LIBKRB 1
17796 _ACEOF
17798 LIBS="-lkrb $LIBS"
17806 if test "${with_kerberos5+set}" = set; then
17808 for ac_header in krb5.h
17810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17812 echo "$as_me:$LINENO: checking for $ac_header" >&5
17813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17819 else
17820 # Is the header compilable?
17821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h. */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 $ac_includes_default
17830 #include <$ac_header>
17831 _ACEOF
17832 rm -f conftest.$ac_objext
17833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17834 (eval $ac_compile) 2>conftest.er1
17835 ac_status=$?
17836 grep -v '^ *+' conftest.er1 >conftest.err
17837 rm -f conftest.er1
17838 cat conftest.err >&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); } &&
17841 { ac_try='test -z "$ac_c_werror_flag"
17842 || test ! -s conftest.err'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_header_compiler=yes
17855 else
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 ac_header_compiler=no
17861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17863 echo "${ECHO_T}$ac_header_compiler" >&6
17865 # Is the header present?
17866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 #include <$ac_header>
17875 _ACEOF
17876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17878 ac_status=$?
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } >/dev/null; then
17884 if test -s conftest.err; then
17885 ac_cpp_err=$ac_c_preproc_warn_flag
17886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17887 else
17888 ac_cpp_err=
17890 else
17891 ac_cpp_err=yes
17893 if test -z "$ac_cpp_err"; then
17894 ac_header_preproc=yes
17895 else
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ac_header_preproc=no
17901 rm -f conftest.err conftest.$ac_ext
17902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17903 echo "${ECHO_T}$ac_header_preproc" >&6
17905 # So? What about this header?
17906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17907 yes:no: )
17908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17912 ac_header_preproc=yes
17914 no:yes:* )
17915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17928 cat <<\_ASBOX
17929 ## ------------------------------------------ ##
17930 ## Report this to the AC_PACKAGE_NAME lists. ##
17931 ## ------------------------------------------ ##
17932 _ASBOX
17934 sed "s/^/$as_me: WARNING: /" >&2
17936 esac
17937 echo "$as_me:$LINENO: checking for $ac_header" >&5
17938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 else
17942 eval "$as_ac_Header=\$ac_header_preproc"
17944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17949 cat >>confdefs.h <<_ACEOF
17950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17951 _ACEOF
17955 done
17957 else
17959 for ac_header in des.h
17961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17963 echo "$as_me:$LINENO: checking for $ac_header" >&5
17964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17970 else
17971 # Is the header compilable?
17972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980 $ac_includes_default
17981 #include <$ac_header>
17982 _ACEOF
17983 rm -f conftest.$ac_objext
17984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17985 (eval $ac_compile) 2>conftest.er1
17986 ac_status=$?
17987 grep -v '^ *+' conftest.er1 >conftest.err
17988 rm -f conftest.er1
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } &&
17992 { ac_try='test -z "$ac_c_werror_flag"
17993 || test ! -s conftest.err'
17994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17995 (eval $ac_try) 2>&5
17996 ac_status=$?
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest.$ac_objext'
18000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_header_compiler=yes
18006 else
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18010 ac_header_compiler=no
18012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18014 echo "${ECHO_T}$ac_header_compiler" >&6
18016 # Is the header present?
18017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18019 cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h. */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 #include <$ac_header>
18026 _ACEOF
18027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18029 ac_status=$?
18030 grep -v '^ *+' conftest.er1 >conftest.err
18031 rm -f conftest.er1
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } >/dev/null; then
18035 if test -s conftest.err; then
18036 ac_cpp_err=$ac_c_preproc_warn_flag
18037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18038 else
18039 ac_cpp_err=
18041 else
18042 ac_cpp_err=yes
18044 if test -z "$ac_cpp_err"; then
18045 ac_header_preproc=yes
18046 else
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 ac_header_preproc=no
18052 rm -f conftest.err conftest.$ac_ext
18053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18054 echo "${ECHO_T}$ac_header_preproc" >&6
18056 # So? What about this header?
18057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18058 yes:no: )
18059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18063 ac_header_preproc=yes
18065 no:yes:* )
18066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18079 cat <<\_ASBOX
18080 ## ------------------------------------------ ##
18081 ## Report this to the AC_PACKAGE_NAME lists. ##
18082 ## ------------------------------------------ ##
18083 _ASBOX
18085 sed "s/^/$as_me: WARNING: /" >&2
18087 esac
18088 echo "$as_me:$LINENO: checking for $ac_header" >&5
18089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093 eval "$as_ac_Header=\$ac_header_preproc"
18095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18100 cat >>confdefs.h <<_ACEOF
18101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18102 _ACEOF
18104 else
18106 for ac_header in kerberosIV/des.h
18108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18110 echo "$as_me:$LINENO: checking for $ac_header" >&5
18111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18117 else
18118 # Is the header compilable?
18119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18121 cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h. */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 $ac_includes_default
18128 #include <$ac_header>
18129 _ACEOF
18130 rm -f conftest.$ac_objext
18131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18132 (eval $ac_compile) 2>conftest.er1
18133 ac_status=$?
18134 grep -v '^ *+' conftest.er1 >conftest.err
18135 rm -f conftest.er1
18136 cat conftest.err >&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); } &&
18139 { ac_try='test -z "$ac_c_werror_flag"
18140 || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_header_compiler=yes
18153 else
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 ac_header_compiler=no
18159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18161 echo "${ECHO_T}$ac_header_compiler" >&6
18163 # Is the header present?
18164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h. */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18172 #include <$ac_header>
18173 _ACEOF
18174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18176 ac_status=$?
18177 grep -v '^ *+' conftest.er1 >conftest.err
18178 rm -f conftest.er1
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } >/dev/null; then
18182 if test -s conftest.err; then
18183 ac_cpp_err=$ac_c_preproc_warn_flag
18184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18185 else
18186 ac_cpp_err=
18188 else
18189 ac_cpp_err=yes
18191 if test -z "$ac_cpp_err"; then
18192 ac_header_preproc=yes
18193 else
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_header_preproc=no
18199 rm -f conftest.err conftest.$ac_ext
18200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18201 echo "${ECHO_T}$ac_header_preproc" >&6
18203 # So? What about this header?
18204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18205 yes:no: )
18206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18210 ac_header_preproc=yes
18212 no:yes:* )
18213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18226 cat <<\_ASBOX
18227 ## ------------------------------------------ ##
18228 ## Report this to the AC_PACKAGE_NAME lists. ##
18229 ## ------------------------------------------ ##
18230 _ASBOX
18232 sed "s/^/$as_me: WARNING: /" >&2
18234 esac
18235 echo "$as_me:$LINENO: checking for $ac_header" >&5
18236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 eval "$as_ac_Header=\$ac_header_preproc"
18242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18247 cat >>confdefs.h <<_ACEOF
18248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18249 _ACEOF
18251 else
18253 for ac_header in kerberos/des.h
18255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18257 echo "$as_me:$LINENO: checking for $ac_header" >&5
18258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18264 else
18265 # Is the header compilable?
18266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18268 cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h. */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 $ac_includes_default
18275 #include <$ac_header>
18276 _ACEOF
18277 rm -f conftest.$ac_objext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18279 (eval $ac_compile) 2>conftest.er1
18280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag"
18287 || test ! -s conftest.err'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_header_compiler=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_header_compiler=no
18306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18308 echo "${ECHO_T}$ac_header_compiler" >&6
18310 # Is the header present?
18311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h. */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319 #include <$ac_header>
18320 _ACEOF
18321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18323 ac_status=$?
18324 grep -v '^ *+' conftest.er1 >conftest.err
18325 rm -f conftest.er1
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } >/dev/null; then
18329 if test -s conftest.err; then
18330 ac_cpp_err=$ac_c_preproc_warn_flag
18331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18332 else
18333 ac_cpp_err=
18335 else
18336 ac_cpp_err=yes
18338 if test -z "$ac_cpp_err"; then
18339 ac_header_preproc=yes
18340 else
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_header_preproc=no
18346 rm -f conftest.err conftest.$ac_ext
18347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18348 echo "${ECHO_T}$ac_header_preproc" >&6
18350 # So? What about this header?
18351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18352 yes:no: )
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18357 ac_header_preproc=yes
18359 no:yes:* )
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18373 cat <<\_ASBOX
18374 ## ------------------------------------------ ##
18375 ## Report this to the AC_PACKAGE_NAME lists. ##
18376 ## ------------------------------------------ ##
18377 _ASBOX
18379 sed "s/^/$as_me: WARNING: /" >&2
18381 esac
18382 echo "$as_me:$LINENO: checking for $ac_header" >&5
18383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 else
18387 eval "$as_ac_Header=\$ac_header_preproc"
18389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18394 cat >>confdefs.h <<_ACEOF
18395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18396 _ACEOF
18400 done
18404 done
18408 done
18411 for ac_header in krb.h
18413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18415 echo "$as_me:$LINENO: checking for $ac_header" >&5
18416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18422 else
18423 # Is the header compilable?
18424 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h. */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 $ac_includes_default
18433 #include <$ac_header>
18434 _ACEOF
18435 rm -f conftest.$ac_objext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18437 (eval $ac_compile) 2>conftest.er1
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } &&
18444 { ac_try='test -z "$ac_c_werror_flag"
18445 || test ! -s conftest.err'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest.$ac_objext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_header_compiler=yes
18458 else
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18462 ac_header_compiler=no
18464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18466 echo "${ECHO_T}$ac_header_compiler" >&6
18468 # Is the header present?
18469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18471 cat >conftest.$ac_ext <<_ACEOF
18472 /* confdefs.h. */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h. */
18477 #include <$ac_header>
18478 _ACEOF
18479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18481 ac_status=$?
18482 grep -v '^ *+' conftest.er1 >conftest.err
18483 rm -f conftest.er1
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } >/dev/null; then
18487 if test -s conftest.err; then
18488 ac_cpp_err=$ac_c_preproc_warn_flag
18489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18490 else
18491 ac_cpp_err=
18493 else
18494 ac_cpp_err=yes
18496 if test -z "$ac_cpp_err"; then
18497 ac_header_preproc=yes
18498 else
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 ac_header_preproc=no
18504 rm -f conftest.err conftest.$ac_ext
18505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18506 echo "${ECHO_T}$ac_header_preproc" >&6
18508 # So? What about this header?
18509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18510 yes:no: )
18511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18515 ac_header_preproc=yes
18517 no:yes:* )
18518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18531 cat <<\_ASBOX
18532 ## ------------------------------------------ ##
18533 ## Report this to the AC_PACKAGE_NAME lists. ##
18534 ## ------------------------------------------ ##
18535 _ASBOX
18537 sed "s/^/$as_me: WARNING: /" >&2
18539 esac
18540 echo "$as_me:$LINENO: checking for $ac_header" >&5
18541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 else
18545 eval "$as_ac_Header=\$ac_header_preproc"
18547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18552 cat >>confdefs.h <<_ACEOF
18553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18554 _ACEOF
18556 else
18558 for ac_header in kerberosIV/krb.h
18560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18562 echo "$as_me:$LINENO: checking for $ac_header" >&5
18563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18569 else
18570 # Is the header compilable?
18571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18573 cat >conftest.$ac_ext <<_ACEOF
18574 /* confdefs.h. */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18579 $ac_includes_default
18580 #include <$ac_header>
18581 _ACEOF
18582 rm -f conftest.$ac_objext
18583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18584 (eval $ac_compile) 2>conftest.er1
18585 ac_status=$?
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } &&
18591 { ac_try='test -z "$ac_c_werror_flag"
18592 || test ! -s conftest.err'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try='test -s conftest.$ac_objext'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; }; then
18604 ac_header_compiler=yes
18605 else
18606 echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18609 ac_header_compiler=no
18611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18613 echo "${ECHO_T}$ac_header_compiler" >&6
18615 # Is the header present?
18616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18618 cat >conftest.$ac_ext <<_ACEOF
18619 /* confdefs.h. */
18620 _ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 #include <$ac_header>
18625 _ACEOF
18626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18628 ac_status=$?
18629 grep -v '^ *+' conftest.er1 >conftest.err
18630 rm -f conftest.er1
18631 cat conftest.err >&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } >/dev/null; then
18634 if test -s conftest.err; then
18635 ac_cpp_err=$ac_c_preproc_warn_flag
18636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18637 else
18638 ac_cpp_err=
18640 else
18641 ac_cpp_err=yes
18643 if test -z "$ac_cpp_err"; then
18644 ac_header_preproc=yes
18645 else
18646 echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 ac_header_preproc=no
18651 rm -f conftest.err conftest.$ac_ext
18652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18653 echo "${ECHO_T}$ac_header_preproc" >&6
18655 # So? What about this header?
18656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18657 yes:no: )
18658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18662 ac_header_preproc=yes
18664 no:yes:* )
18665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18678 cat <<\_ASBOX
18679 ## ------------------------------------------ ##
18680 ## Report this to the AC_PACKAGE_NAME lists. ##
18681 ## ------------------------------------------ ##
18682 _ASBOX
18684 sed "s/^/$as_me: WARNING: /" >&2
18686 esac
18687 echo "$as_me:$LINENO: checking for $ac_header" >&5
18688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 else
18692 eval "$as_ac_Header=\$ac_header_preproc"
18694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18699 cat >>confdefs.h <<_ACEOF
18700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18701 _ACEOF
18703 else
18705 for ac_header in kerberos/krb.h
18707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18709 echo "$as_me:$LINENO: checking for $ac_header" >&5
18710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18716 else
18717 # Is the header compilable?
18718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18720 cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h. */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 $ac_includes_default
18727 #include <$ac_header>
18728 _ACEOF
18729 rm -f conftest.$ac_objext
18730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18731 (eval $ac_compile) 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_c_werror_flag"
18739 || test ! -s conftest.err'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try='test -s conftest.$ac_objext'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_header_compiler=yes
18752 else
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_header_compiler=no
18758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18760 echo "${ECHO_T}$ac_header_compiler" >&6
18762 # Is the header present?
18763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h. */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 #include <$ac_header>
18772 _ACEOF
18773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } >/dev/null; then
18781 if test -s conftest.err; then
18782 ac_cpp_err=$ac_c_preproc_warn_flag
18783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18784 else
18785 ac_cpp_err=
18787 else
18788 ac_cpp_err=yes
18790 if test -z "$ac_cpp_err"; then
18791 ac_header_preproc=yes
18792 else
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 ac_header_preproc=no
18798 rm -f conftest.err conftest.$ac_ext
18799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18800 echo "${ECHO_T}$ac_header_preproc" >&6
18802 # So? What about this header?
18803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18804 yes:no: )
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18809 ac_header_preproc=yes
18811 no:yes:* )
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18825 cat <<\_ASBOX
18826 ## ------------------------------------------ ##
18827 ## Report this to the AC_PACKAGE_NAME lists. ##
18828 ## ------------------------------------------ ##
18829 _ASBOX
18831 sed "s/^/$as_me: WARNING: /" >&2
18833 esac
18834 echo "$as_me:$LINENO: checking for $ac_header" >&5
18835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839 eval "$as_ac_Header=\$ac_header_preproc"
18841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18846 cat >>confdefs.h <<_ACEOF
18847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18848 _ACEOF
18852 done
18856 done
18860 done
18864 for ac_header in com_err.h
18866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18868 echo "$as_me:$LINENO: checking for $ac_header" >&5
18869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18875 else
18876 # Is the header compilable?
18877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h. */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18885 $ac_includes_default
18886 #include <$ac_header>
18887 _ACEOF
18888 rm -f conftest.$ac_objext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18890 (eval $ac_compile) 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_c_werror_flag"
18898 || test ! -s conftest.err'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest.$ac_objext'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910 ac_header_compiler=yes
18911 else
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_header_compiler=no
18917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18919 echo "${ECHO_T}$ac_header_compiler" >&6
18921 # Is the header present?
18922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 #include <$ac_header>
18931 _ACEOF
18932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } >/dev/null; then
18940 if test -s conftest.err; then
18941 ac_cpp_err=$ac_c_preproc_warn_flag
18942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18943 else
18944 ac_cpp_err=
18946 else
18947 ac_cpp_err=yes
18949 if test -z "$ac_cpp_err"; then
18950 ac_header_preproc=yes
18951 else
18952 echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_header_preproc=no
18957 rm -f conftest.err conftest.$ac_ext
18958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18959 echo "${ECHO_T}$ac_header_preproc" >&6
18961 # So? What about this header?
18962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18963 yes:no: )
18964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18968 ac_header_preproc=yes
18970 no:yes:* )
18971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18984 cat <<\_ASBOX
18985 ## ------------------------------------------ ##
18986 ## Report this to the AC_PACKAGE_NAME lists. ##
18987 ## ------------------------------------------ ##
18988 _ASBOX
18990 sed "s/^/$as_me: WARNING: /" >&2
18992 esac
18993 echo "$as_me:$LINENO: checking for $ac_header" >&5
18994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998 eval "$as_ac_Header=\$ac_header_preproc"
19000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19005 cat >>confdefs.h <<_ACEOF
19006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19007 _ACEOF
19011 done
19015 # Solaris requires -lintl if you want strerror (which calls dgettext)
19016 # to return localized messages.
19018 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19019 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19020 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023 ac_check_lib_save_LIBS=$LIBS
19024 LIBS="-lintl $LIBS"
19025 cat >conftest.$ac_ext <<_ACEOF
19026 /* confdefs.h. */
19027 _ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19032 /* Override any gcc2 internal prototype to avoid an error. */
19033 #ifdef __cplusplus
19034 extern "C"
19035 #endif
19036 /* We use char because int might match the return type of a gcc2
19037 builtin and then its argument prototype would still apply. */
19038 char dgettext ();
19040 main ()
19042 dgettext ();
19044 return 0;
19046 _ACEOF
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19049 (eval $ac_link) 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest$ac_exeext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 ac_cv_lib_intl_dgettext=yes
19070 else
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_cv_lib_intl_dgettext=no
19076 rm -f conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19078 LIBS=$ac_check_lib_save_LIBS
19080 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19081 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19082 if test $ac_cv_lib_intl_dgettext = yes; then
19083 cat >>confdefs.h <<_ACEOF
19084 #define HAVE_LIBINTL 1
19085 _ACEOF
19087 LIBS="-lintl $LIBS"
19092 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19093 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19094 if test "${emacs_cv_localtime_cache+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097 if test x$ac_cv_func_tzset = xyes; then
19098 if test "$cross_compiling" = yes; then
19099 # If we have tzset, assume the worst when cross-compiling.
19100 emacs_cv_localtime_cache=yes
19101 else
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h. */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h. */
19108 #include <time.h>
19109 extern char **environ;
19110 unset_TZ ()
19112 char **from, **to;
19113 for (to = from = environ; (*to = *from); from++)
19114 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19115 to++;
19117 char TZ_GMT0[] = "TZ=GMT0";
19118 char TZ_PST8[] = "TZ=PST8";
19119 main()
19121 time_t now = time ((time_t *) 0);
19122 int hour_GMT0, hour_unset;
19123 if (putenv (TZ_GMT0) != 0)
19124 exit (1);
19125 hour_GMT0 = localtime (&now)->tm_hour;
19126 unset_TZ ();
19127 hour_unset = localtime (&now)->tm_hour;
19128 if (putenv (TZ_PST8) != 0)
19129 exit (1);
19130 if (localtime (&now)->tm_hour == hour_GMT0)
19131 exit (1);
19132 unset_TZ ();
19133 if (localtime (&now)->tm_hour != hour_unset)
19134 exit (1);
19135 exit (0);
19137 _ACEOF
19138 rm -f conftest$ac_exeext
19139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19140 (eval $ac_link) 2>&5
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 emacs_cv_localtime_cache=no
19150 else
19151 echo "$as_me: program exited with status $ac_status" >&5
19152 echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ( exit $ac_status )
19156 emacs_cv_localtime_cache=yes
19158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19160 else
19161 # If we lack tzset, report that localtime does not cache TZ,
19162 # since we can't invalidate the cache if we don't have tzset.
19163 emacs_cv_localtime_cache=no
19166 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19167 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19168 if test $emacs_cv_localtime_cache = yes; then
19170 cat >>confdefs.h <<\_ACEOF
19171 #define LOCALTIME_CACHE 1
19172 _ACEOF
19176 if test "x$HAVE_TIMEVAL" = xyes; then
19178 for ac_func in gettimeofday
19180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19181 echo "$as_me:$LINENO: checking for $ac_func" >&5
19182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_var+set}\" = set"; then
19184 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h. */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19194 #define $ac_func innocuous_$ac_func
19196 /* System header to define __stub macros and hopefully few prototypes,
19197 which can conflict with char $ac_func (); below.
19198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199 <limits.h> exists even on freestanding compilers. */
19201 #ifdef __STDC__
19202 # include <limits.h>
19203 #else
19204 # include <assert.h>
19205 #endif
19207 #undef $ac_func
19209 /* Override any gcc2 internal prototype to avoid an error. */
19210 #ifdef __cplusplus
19211 extern "C"
19213 #endif
19214 /* We use char because int might match the return type of a gcc2
19215 builtin and then its argument prototype would still apply. */
19216 char $ac_func ();
19217 /* The GNU C library defines this for functions which it implements
19218 to always fail with ENOSYS. Some functions are actually named
19219 something starting with __ and the normal name is an alias. */
19220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19221 choke me
19222 #else
19223 char (*f) () = $ac_func;
19224 #endif
19225 #ifdef __cplusplus
19227 #endif
19230 main ()
19232 return f != $ac_func;
19234 return 0;
19236 _ACEOF
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239 (eval $ac_link) 2>conftest.er1
19240 ac_status=$?
19241 grep -v '^ *+' conftest.er1 >conftest.err
19242 rm -f conftest.er1
19243 cat conftest.err >&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); } &&
19246 { ac_try='test -z "$ac_c_werror_flag"
19247 || test ! -s conftest.err'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest$ac_exeext'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19256 ac_status=$?
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 eval "$as_ac_var=yes"
19260 else
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 eval "$as_ac_var=no"
19266 rm -f conftest.err conftest.$ac_objext \
19267 conftest$ac_exeext conftest.$ac_ext
19269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19271 if test `eval echo '${'$as_ac_var'}'` = yes; then
19272 cat >>confdefs.h <<_ACEOF
19273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19274 _ACEOF
19277 done
19279 if test $ac_cv_func_gettimeofday = yes; then
19280 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19281 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19282 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19283 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19285 cat >conftest.$ac_ext <<_ACEOF
19286 /* confdefs.h. */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h. */
19292 #ifdef TIME_WITH_SYS_TIME
19293 #include <sys/time.h>
19294 #include <time.h>
19295 #else
19296 #ifdef HAVE_SYS_TIME_H
19297 #include <sys/time.h>
19298 #else
19299 #include <time.h>
19300 #endif
19301 #endif
19303 main ()
19305 struct timeval time;
19306 gettimeofday (&time, 0);
19308 return 0;
19310 _ACEOF
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 emacs_cv_gettimeofday_two_arguments=yes
19334 else
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 emacs_cv_gettimeofday_two_arguments=no
19340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19342 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19343 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19344 if test $emacs_cv_gettimeofday_two_arguments = no; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19348 _ACEOF
19354 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19355 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19356 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19357 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19359 else
19360 cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h. */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19366 #include <sys/types.h>
19367 #include <$ac_cv_struct_tm>
19371 main ()
19373 static struct tm ac_aggr;
19374 if (ac_aggr.tm_zone)
19375 return 0;
19377 return 0;
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_cv_member_struct_tm_tm_zone=yes
19403 else
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h. */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 #include <sys/types.h>
19414 #include <$ac_cv_struct_tm>
19418 main ()
19420 static struct tm ac_aggr;
19421 if (sizeof ac_aggr.tm_zone)
19422 return 0;
19424 return 0;
19426 _ACEOF
19427 rm -f conftest.$ac_objext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429 (eval $ac_compile) 2>conftest.er1
19430 ac_status=$?
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
19436 { ac_try='test -z "$ac_c_werror_flag"
19437 || test ! -s conftest.err'
19438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439 (eval $ac_try) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; } &&
19443 { ac_try='test -s conftest.$ac_objext'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; }; then
19449 ac_cv_member_struct_tm_tm_zone=yes
19450 else
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_member_struct_tm_tm_zone=no
19456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19461 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19462 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19464 cat >>confdefs.h <<_ACEOF
19465 #define HAVE_STRUCT_TM_TM_ZONE 1
19466 _ACEOF
19471 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_TM_ZONE 1
19475 _ACEOF
19477 else
19478 echo "$as_me:$LINENO: checking for tzname" >&5
19479 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19480 if test "${ac_cv_var_tzname+set}" = set; then
19481 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 else
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h. */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <time.h>
19490 #ifndef tzname /* For SGI. */
19491 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19492 #endif
19495 main ()
19497 atoi(*tzname);
19499 return 0;
19501 _ACEOF
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19504 (eval $ac_link) 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_c_werror_flag"
19512 || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest$ac_exeext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_var_tzname=yes
19525 else
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_cv_var_tzname=no
19531 rm -f conftest.err conftest.$ac_objext \
19532 conftest$ac_exeext conftest.$ac_ext
19534 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19535 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19536 if test $ac_cv_var_tzname = yes; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_TZNAME 1
19540 _ACEOF
19546 if test "$ac_cv_func_gettimeofday" = yes; then
19547 echo "$as_me:$LINENO: checking for struct timezone" >&5
19548 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19549 if test "${emacs_cv_struct_timezone+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 #include <sys/time.h>
19560 main ()
19562 struct timezone tz;
19564 return 0;
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569 (eval $ac_compile) 2>conftest.er1
19570 ac_status=$?
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 if test "$cross_compiling" = yes; then
19590 emacs_cv_struct_timezone=yes
19591 else
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h. */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19599 #ifdef TIME_WITH_SYS_TIME
19600 #include <sys/time.h>
19601 #include <time.h>
19602 #else
19603 #ifdef HAVE_SYS_TIME_H
19604 #include <sys/time.h>
19605 #else
19606 #include <time.h>
19607 #endif
19608 #endif
19609 main () {
19610 struct timeval time;
19611 struct timezone dummy;
19612 exit (gettimeofday (&time, &dummy));
19614 _ACEOF
19615 rm -f conftest$ac_exeext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617 (eval $ac_link) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19626 emacs_cv_struct_timezone=yes
19627 else
19628 echo "$as_me: program exited with status $ac_status" >&5
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ( exit $ac_status )
19633 emacs_cv_struct_timezone=no
19635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19637 else
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 emacs_cv_struct_timezone=no
19643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19645 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19646 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19649 ok_so_far=yes
19650 echo "$as_me:$LINENO: checking for socket" >&5
19651 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19652 if test "${ac_cv_func_socket+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19663 #define socket innocuous_socket
19665 /* System header to define __stub macros and hopefully few prototypes,
19666 which can conflict with char socket (); below.
19667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19668 <limits.h> exists even on freestanding compilers. */
19670 #ifdef __STDC__
19671 # include <limits.h>
19672 #else
19673 # include <assert.h>
19674 #endif
19676 #undef socket
19678 /* Override any gcc2 internal prototype to avoid an error. */
19679 #ifdef __cplusplus
19680 extern "C"
19682 #endif
19683 /* We use char because int might match the return type of a gcc2
19684 builtin and then its argument prototype would still apply. */
19685 char socket ();
19686 /* The GNU C library defines this for functions which it implements
19687 to always fail with ENOSYS. Some functions are actually named
19688 something starting with __ and the normal name is an alias. */
19689 #if defined (__stub_socket) || defined (__stub___socket)
19690 choke me
19691 #else
19692 char (*f) () = socket;
19693 #endif
19694 #ifdef __cplusplus
19696 #endif
19699 main ()
19701 return f != socket;
19703 return 0;
19705 _ACEOF
19706 rm -f conftest.$ac_objext conftest$ac_exeext
19707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19708 (eval $ac_link) 2>conftest.er1
19709 ac_status=$?
19710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try='test -z "$ac_c_werror_flag"
19716 || test ! -s conftest.err'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19719 ac_status=$?
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; } &&
19722 { ac_try='test -s conftest$ac_exeext'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_func_socket=yes
19729 else
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 ac_cv_func_socket=no
19735 rm -f conftest.err conftest.$ac_objext \
19736 conftest$ac_exeext conftest.$ac_ext
19738 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19739 echo "${ECHO_T}$ac_cv_func_socket" >&6
19740 if test $ac_cv_func_socket = yes; then
19742 else
19743 ok_so_far=no
19746 if test $ok_so_far = yes; then
19747 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19748 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19749 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19750 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19754 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19755 else
19756 # Is the header compilable?
19757 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19758 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h. */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765 $ac_includes_default
19766 #include <netinet/in.h>
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19770 (eval $ac_compile) 2>conftest.er1
19771 ac_status=$?
19772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_c_werror_flag"
19778 || test ! -s conftest.err'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; } &&
19784 { ac_try='test -s conftest.$ac_objext'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_header_compiler=yes
19791 else
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_header_compiler=no
19797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19799 echo "${ECHO_T}$ac_header_compiler" >&6
19801 # Is the header present?
19802 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19803 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19804 cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h. */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 #include <netinet/in.h>
19811 _ACEOF
19812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19814 ac_status=$?
19815 grep -v '^ *+' conftest.er1 >conftest.err
19816 rm -f conftest.er1
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } >/dev/null; then
19820 if test -s conftest.err; then
19821 ac_cpp_err=$ac_c_preproc_warn_flag
19822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19823 else
19824 ac_cpp_err=
19826 else
19827 ac_cpp_err=yes
19829 if test -z "$ac_cpp_err"; then
19830 ac_header_preproc=yes
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_header_preproc=no
19837 rm -f conftest.err conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19839 echo "${ECHO_T}$ac_header_preproc" >&6
19841 # So? What about this header?
19842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19843 yes:no: )
19844 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19845 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19846 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19847 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19848 ac_header_preproc=yes
19850 no:yes:* )
19851 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19852 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19854 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19855 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19856 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19857 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19858 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19859 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19860 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19861 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19862 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19864 cat <<\_ASBOX
19865 ## ------------------------------------------ ##
19866 ## Report this to the AC_PACKAGE_NAME lists. ##
19867 ## ------------------------------------------ ##
19868 _ASBOX
19870 sed "s/^/$as_me: WARNING: /" >&2
19872 esac
19873 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19874 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19875 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878 ac_cv_header_netinet_in_h=$ac_header_preproc
19880 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19881 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19884 if test $ac_cv_header_netinet_in_h = yes; then
19886 else
19887 ok_so_far=no
19892 if test $ok_so_far = yes; then
19893 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19894 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19895 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19896 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19900 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19901 else
19902 # Is the header compilable?
19903 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19904 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19905 cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h. */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19911 $ac_includes_default
19912 #include <arpa/inet.h>
19913 _ACEOF
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916 (eval $ac_compile) 2>conftest.er1
19917 ac_status=$?
19918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -z "$ac_c_werror_flag"
19924 || test ! -s conftest.err'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 ac_header_compiler=yes
19937 else
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ac_header_compiler=no
19943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19945 echo "${ECHO_T}$ac_header_compiler" >&6
19947 # Is the header present?
19948 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19949 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h. */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 #include <arpa/inet.h>
19957 _ACEOF
19958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19960 ac_status=$?
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } >/dev/null; then
19966 if test -s conftest.err; then
19967 ac_cpp_err=$ac_c_preproc_warn_flag
19968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19969 else
19970 ac_cpp_err=
19972 else
19973 ac_cpp_err=yes
19975 if test -z "$ac_cpp_err"; then
19976 ac_header_preproc=yes
19977 else
19978 echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19981 ac_header_preproc=no
19983 rm -f conftest.err conftest.$ac_ext
19984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19985 echo "${ECHO_T}$ac_header_preproc" >&6
19987 # So? What about this header?
19988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19989 yes:no: )
19990 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19991 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19993 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19994 ac_header_preproc=yes
19996 no:yes:* )
19997 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19998 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20000 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20002 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20003 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20004 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20005 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20006 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20007 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20008 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20010 cat <<\_ASBOX
20011 ## ------------------------------------------ ##
20012 ## Report this to the AC_PACKAGE_NAME lists. ##
20013 ## ------------------------------------------ ##
20014 _ASBOX
20016 sed "s/^/$as_me: WARNING: /" >&2
20018 esac
20019 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20020 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20021 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024 ac_cv_header_arpa_inet_h=$ac_header_preproc
20026 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20027 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20030 if test $ac_cv_header_arpa_inet_h = yes; then
20032 else
20033 ok_so_far=no
20038 if test $ok_so_far = yes; then
20040 cat >>confdefs.h <<\_ACEOF
20041 #define HAVE_INET_SOCKETS 1
20042 _ACEOF
20047 for ac_header in sys/ioctl.h
20049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20051 echo "$as_me:$LINENO: checking for $ac_header" >&5
20052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20058 else
20059 # Is the header compilable?
20060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h. */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 $ac_includes_default
20069 #include <$ac_header>
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20073 (eval $ac_compile) 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } &&
20080 { ac_try='test -z "$ac_c_werror_flag"
20081 || test ! -s conftest.err'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest.$ac_objext'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 ac_header_compiler=yes
20094 else
20095 echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 ac_header_compiler=no
20100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20102 echo "${ECHO_T}$ac_header_compiler" >&6
20104 # Is the header present?
20105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20107 cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h. */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h. */
20113 #include <$ac_header>
20114 _ACEOF
20115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } >/dev/null; then
20123 if test -s conftest.err; then
20124 ac_cpp_err=$ac_c_preproc_warn_flag
20125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20126 else
20127 ac_cpp_err=
20129 else
20130 ac_cpp_err=yes
20132 if test -z "$ac_cpp_err"; then
20133 ac_header_preproc=yes
20134 else
20135 echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20138 ac_header_preproc=no
20140 rm -f conftest.err conftest.$ac_ext
20141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20142 echo "${ECHO_T}$ac_header_preproc" >&6
20144 # So? What about this header?
20145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20146 yes:no: )
20147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20151 ac_header_preproc=yes
20153 no:yes:* )
20154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20167 cat <<\_ASBOX
20168 ## ------------------------------------------ ##
20169 ## Report this to the AC_PACKAGE_NAME lists. ##
20170 ## ------------------------------------------ ##
20171 _ASBOX
20173 sed "s/^/$as_me: WARNING: /" >&2
20175 esac
20176 echo "$as_me:$LINENO: checking for $ac_header" >&5
20177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181 eval "$as_ac_Header=\$ac_header_preproc"
20183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20188 cat >>confdefs.h <<_ACEOF
20189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20190 _ACEOF
20194 done
20197 if test -f /usr/lpp/X11/bin/smt.exp; then
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_AIX_SMT_EXP 1
20201 _ACEOF
20205 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20206 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20207 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20208 echo "$as_me:$LINENO: result: yes" >&5
20209 echo "${ECHO_T}yes" >&6
20211 cat >>confdefs.h <<\_ACEOF
20212 #define HAVE_DEV_PTMX 1
20213 _ACEOF
20215 else
20216 echo "$as_me:$LINENO: result: no" >&5
20217 echo "${ECHO_T}no" >&6
20220 echo "$as_me:$LINENO: checking for pid_t" >&5
20221 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20222 if test "${ac_cv_type_pid_t+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225 cat >conftest.$ac_ext <<_ACEOF
20226 /* confdefs.h. */
20227 _ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 $ac_includes_default
20233 main ()
20235 if ((pid_t *) 0)
20236 return 0;
20237 if (sizeof (pid_t))
20238 return 0;
20240 return 0;
20242 _ACEOF
20243 rm -f conftest.$ac_objext
20244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245 (eval $ac_compile) 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -z "$ac_c_werror_flag"
20253 || test ! -s conftest.err'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_type_pid_t=yes
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_type_pid_t=no
20272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20274 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20275 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20276 if test $ac_cv_type_pid_t = yes; then
20278 else
20280 cat >>confdefs.h <<_ACEOF
20281 #define pid_t int
20282 _ACEOF
20288 for ac_header in unistd.h vfork.h
20290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20292 echo "$as_me:$LINENO: checking for $ac_header" >&5
20293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20299 else
20300 # Is the header compilable?
20301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 $ac_includes_default
20310 #include <$ac_header>
20311 _ACEOF
20312 rm -f conftest.$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>conftest.er1
20315 ac_status=$?
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
20321 { ac_try='test -z "$ac_c_werror_flag"
20322 || test ! -s conftest.err'
20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20324 (eval $ac_try) 2>&5
20325 ac_status=$?
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); }; } &&
20328 { ac_try='test -s conftest.$ac_objext'
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; }; then
20334 ac_header_compiler=yes
20335 else
20336 echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20339 ac_header_compiler=no
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20343 echo "${ECHO_T}$ac_header_compiler" >&6
20345 # Is the header present?
20346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354 #include <$ac_header>
20355 _ACEOF
20356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } >/dev/null; then
20364 if test -s conftest.err; then
20365 ac_cpp_err=$ac_c_preproc_warn_flag
20366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20367 else
20368 ac_cpp_err=
20370 else
20371 ac_cpp_err=yes
20373 if test -z "$ac_cpp_err"; then
20374 ac_header_preproc=yes
20375 else
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_header_preproc=no
20381 rm -f conftest.err conftest.$ac_ext
20382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383 echo "${ECHO_T}$ac_header_preproc" >&6
20385 # So? What about this header?
20386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20387 yes:no: )
20388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20392 ac_header_preproc=yes
20394 no:yes:* )
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20408 cat <<\_ASBOX
20409 ## ------------------------------------------ ##
20410 ## Report this to the AC_PACKAGE_NAME lists. ##
20411 ## ------------------------------------------ ##
20412 _ASBOX
20414 sed "s/^/$as_me: WARNING: /" >&2
20416 esac
20417 echo "$as_me:$LINENO: checking for $ac_header" >&5
20418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20421 else
20422 eval "$as_ac_Header=\$ac_header_preproc"
20424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429 cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20431 _ACEOF
20435 done
20439 for ac_func in fork vfork
20441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20442 echo "$as_me:$LINENO: checking for $ac_func" >&5
20443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_var+set}\" = set"; then
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20455 #define $ac_func innocuous_$ac_func
20457 /* System header to define __stub macros and hopefully few prototypes,
20458 which can conflict with char $ac_func (); below.
20459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20460 <limits.h> exists even on freestanding compilers. */
20462 #ifdef __STDC__
20463 # include <limits.h>
20464 #else
20465 # include <assert.h>
20466 #endif
20468 #undef $ac_func
20470 /* Override any gcc2 internal prototype to avoid an error. */
20471 #ifdef __cplusplus
20472 extern "C"
20474 #endif
20475 /* We use char because int might match the return type of a gcc2
20476 builtin and then its argument prototype would still apply. */
20477 char $ac_func ();
20478 /* The GNU C library defines this for functions which it implements
20479 to always fail with ENOSYS. Some functions are actually named
20480 something starting with __ and the normal name is an alias. */
20481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20482 choke me
20483 #else
20484 char (*f) () = $ac_func;
20485 #endif
20486 #ifdef __cplusplus
20488 #endif
20491 main ()
20493 return f != $ac_func;
20495 return 0;
20497 _ACEOF
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20500 (eval $ac_link) 2>conftest.er1
20501 ac_status=$?
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } &&
20507 { ac_try='test -z "$ac_c_werror_flag"
20508 || test ! -s conftest.err'
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest$ac_exeext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 eval "$as_ac_var=yes"
20521 else
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 eval "$as_ac_var=no"
20527 rm -f conftest.err conftest.$ac_objext \
20528 conftest$ac_exeext conftest.$ac_ext
20530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20532 if test `eval echo '${'$as_ac_var'}'` = yes; then
20533 cat >>confdefs.h <<_ACEOF
20534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20535 _ACEOF
20538 done
20540 if test "x$ac_cv_func_fork" = xyes; then
20541 echo "$as_me:$LINENO: checking for working fork" >&5
20542 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20543 if test "${ac_cv_func_fork_works+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546 if test "$cross_compiling" = yes; then
20547 ac_cv_func_fork_works=cross
20548 else
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* By Ruediger Kuhlmann. */
20551 #include <sys/types.h>
20552 #if HAVE_UNISTD_H
20553 # include <unistd.h>
20554 #endif
20555 /* Some systems only have a dummy stub for fork() */
20556 int main ()
20558 if (fork() < 0)
20559 exit (1);
20560 exit (0);
20562 _ACEOF
20563 rm -f conftest$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565 (eval $ac_link) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_cv_func_fork_works=yes
20575 else
20576 echo "$as_me: program exited with status $ac_status" >&5
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ( exit $ac_status )
20581 ac_cv_func_fork_works=no
20583 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20587 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20589 else
20590 ac_cv_func_fork_works=$ac_cv_func_fork
20592 if test "x$ac_cv_func_fork_works" = xcross; then
20593 case $host in
20594 *-*-amigaos* | *-*-msdosdjgpp*)
20595 # Override, as these systems have only a dummy fork() stub
20596 ac_cv_func_fork_works=no
20599 ac_cv_func_fork_works=yes
20601 esac
20602 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20603 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20605 ac_cv_func_vfork_works=$ac_cv_func_vfork
20606 if test "x$ac_cv_func_vfork" = xyes; then
20607 echo "$as_me:$LINENO: checking for working vfork" >&5
20608 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20609 if test "${ac_cv_func_vfork_works+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 else
20612 if test "$cross_compiling" = yes; then
20613 ac_cv_func_vfork_works=cross
20614 else
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 /* Thanks to Paul Eggert for this test. */
20622 #include <stdio.h>
20623 #include <stdlib.h>
20624 #include <sys/types.h>
20625 #include <sys/stat.h>
20626 #include <sys/wait.h>
20627 #if HAVE_UNISTD_H
20628 # include <unistd.h>
20629 #endif
20630 #if HAVE_VFORK_H
20631 # include <vfork.h>
20632 #endif
20633 /* On some sparc systems, changes by the child to local and incoming
20634 argument registers are propagated back to the parent. The compiler
20635 is told about this with #include <vfork.h>, but some compilers
20636 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20637 static variable whose address is put into a register that is
20638 clobbered by the vfork. */
20639 static void
20640 #ifdef __cplusplus
20641 sparc_address_test (int arg)
20642 # else
20643 sparc_address_test (arg) int arg;
20644 #endif
20646 static pid_t child;
20647 if (!child) {
20648 child = vfork ();
20649 if (child < 0) {
20650 perror ("vfork");
20651 _exit(2);
20653 if (!child) {
20654 arg = getpid();
20655 write(-1, "", 0);
20656 _exit (arg);
20662 main ()
20664 pid_t parent = getpid ();
20665 pid_t child;
20667 sparc_address_test (0);
20669 child = vfork ();
20671 if (child == 0) {
20672 /* Here is another test for sparc vfork register problems. This
20673 test uses lots of local variables, at least as many local
20674 variables as main has allocated so far including compiler
20675 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20676 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20677 reuse the register of parent for one of the local variables,
20678 since it will think that parent can't possibly be used any more
20679 in this routine. Assigning to the local variable will thus
20680 munge parent in the parent process. */
20681 pid_t
20682 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20683 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20684 /* Convince the compiler that p..p7 are live; otherwise, it might
20685 use the same hardware register for all 8 local variables. */
20686 if (p != p1 || p != p2 || p != p3 || p != p4
20687 || p != p5 || p != p6 || p != p7)
20688 _exit(1);
20690 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20691 from child file descriptors. If the child closes a descriptor
20692 before it execs or exits, this munges the parent's descriptor
20693 as well. Test for this by closing stdout in the child. */
20694 _exit(close(fileno(stdout)) != 0);
20695 } else {
20696 int status;
20697 struct stat st;
20699 while (wait(&status) != child)
20701 exit(
20702 /* Was there some problem with vforking? */
20703 child < 0
20705 /* Did the child fail? (This shouldn't happen.) */
20706 || status
20708 /* Did the vfork/compiler bug occur? */
20709 || parent != getpid()
20711 /* Did the file descriptor bug occur? */
20712 || fstat(fileno(stdout), &st) != 0
20716 _ACEOF
20717 rm -f conftest$ac_exeext
20718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20719 (eval $ac_link) 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; }; then
20728 ac_cv_func_vfork_works=yes
20729 else
20730 echo "$as_me: program exited with status $ac_status" >&5
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.$ac_ext >&5
20734 ( exit $ac_status )
20735 ac_cv_func_vfork_works=no
20737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20740 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20741 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20744 if test "x$ac_cv_func_fork_works" = xcross; then
20745 ac_cv_func_vfork_works=$ac_cv_func_vfork
20746 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20747 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20750 if test "x$ac_cv_func_vfork_works" = xyes; then
20752 cat >>confdefs.h <<\_ACEOF
20753 #define HAVE_WORKING_VFORK 1
20754 _ACEOF
20756 else
20758 cat >>confdefs.h <<\_ACEOF
20759 #define vfork fork
20760 _ACEOF
20763 if test "x$ac_cv_func_fork_works" = xyes; then
20765 cat >>confdefs.h <<\_ACEOF
20766 #define HAVE_WORKING_FORK 1
20767 _ACEOF
20772 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20773 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20774 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 #include <langinfo.h>
20785 main ()
20787 char* cs = nl_langinfo(CODESET);
20789 return 0;
20791 _ACEOF
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20794 (eval $ac_link) 2>conftest.er1
20795 ac_status=$?
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try='test -z "$ac_c_werror_flag"
20802 || test ! -s conftest.err'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20805 ac_status=$?
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; } &&
20808 { ac_try='test -s conftest$ac_exeext'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20811 ac_status=$?
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 emacs_cv_langinfo_codeset=yes
20815 else
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 emacs_cv_langinfo_codeset=no
20821 rm -f conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
20825 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20826 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20827 if test $emacs_cv_langinfo_codeset = yes; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_LANGINFO_CODESET 1
20831 _ACEOF
20835 echo "$as_me:$LINENO: checking for size_t" >&5
20836 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20837 if test "${ac_cv_type_size_t+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h. */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 $ac_includes_default
20848 main ()
20850 if ((size_t *) 0)
20851 return 0;
20852 if (sizeof (size_t))
20853 return 0;
20855 return 0;
20857 _ACEOF
20858 rm -f conftest.$ac_objext
20859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20860 (eval $ac_compile) 2>conftest.er1
20861 ac_status=$?
20862 grep -v '^ *+' conftest.er1 >conftest.err
20863 rm -f conftest.er1
20864 cat conftest.err >&5
20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
20867 { ac_try='test -z "$ac_c_werror_flag"
20868 || test ! -s conftest.err'
20869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); }; } &&
20874 { ac_try='test -s conftest.$ac_objext'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 ac_cv_type_size_t=yes
20881 else
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ac_cv_type_size_t=no
20887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20889 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20890 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20891 if test $ac_cv_type_size_t = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define HAVE_SIZE_T 1
20895 _ACEOF
20901 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20902 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20903 if test "${ac_cv_type_mbstate_t+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 $ac_includes_default
20913 # include <wchar.h>
20915 main ()
20917 mbstate_t x; return sizeof x;
20919 return 0;
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20924 (eval $ac_compile) 2>conftest.er1
20925 ac_status=$?
20926 grep -v '^ *+' conftest.er1 >conftest.err
20927 rm -f conftest.er1
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -z "$ac_c_werror_flag"
20932 || test ! -s conftest.err'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest.$ac_objext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_type_mbstate_t=yes
20945 else
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ac_cv_type_mbstate_t=no
20951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20953 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20954 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20955 if test $ac_cv_type_mbstate_t = yes; then
20957 cat >>confdefs.h <<\_ACEOF
20958 #define HAVE_MBSTATE_T 1
20959 _ACEOF
20961 else
20963 cat >>confdefs.h <<\_ACEOF
20964 #define mbstate_t int
20965 _ACEOF
20969 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20970 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20971 if test "${emacs_cv_c_restrict+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h. */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 void fred (int *restrict x);
20982 main ()
20986 return 0;
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20991 (eval $ac_compile) 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } &&
20998 { ac_try='test -z "$ac_c_werror_flag"
20999 || test ! -s conftest.err'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21002 ac_status=$?
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } &&
21005 { ac_try='test -s conftest.$ac_objext'
21006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007 (eval $ac_try) 2>&5
21008 ac_status=$?
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); }; }; then
21011 emacs_cv_c_restrict=yes
21012 else
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 void fred (int *__restrict x);
21024 main ()
21028 return 0;
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
21040 { ac_try='test -z "$ac_c_werror_flag"
21041 || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 emacs_cv_c_restrict=__restrict
21054 else
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 emacs_cv_c_restrict=no
21060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21064 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21065 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21066 case "$emacs_cv_c_restrict" in
21067 yes) emacs_restrict=restrict;;
21068 no) emacs_restrict="";;
21069 *) emacs_restrict="$emacs_cv_c_restrict";;
21070 esac
21071 if test "$emacs_restrict" != __restrict; then
21073 cat >>confdefs.h <<_ACEOF
21074 #define __restrict $emacs_restrict
21075 _ACEOF
21079 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21080 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21081 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 else
21084 cat >conftest.$ac_ext <<_ACEOF
21085 /* confdefs.h. */
21086 _ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21090 void fred (int x[__restrict]);
21092 main ()
21096 return 0;
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101 (eval $ac_compile) 2>conftest.er1
21102 ac_status=$?
21103 grep -v '^ *+' conftest.er1 >conftest.err
21104 rm -f conftest.er1
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -z "$ac_c_werror_flag"
21109 || test ! -s conftest.err'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21112 ac_status=$?
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 emacs_cv_c_restrict_arr=yes
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 emacs_cv_c_restrict_arr=no
21128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21130 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21131 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21132 if test "$emacs_cv_c_restrict_arr" = yes; then
21134 cat >>confdefs.h <<\_ACEOF
21135 #define __restrict_arr __restrict
21136 _ACEOF
21142 # Set up the CFLAGS for real compilation, so we can substitute it.
21143 CFLAGS="$REAL_CFLAGS"
21144 CPPFLAGS="$REAL_CPPFLAGS"
21146 #### Find out which version of Emacs this is.
21147 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21148 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21149 if test x"${version}" = x; then
21150 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21151 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21152 { (exit 1); exit 1; }; }
21155 ### Specify what sort of things we'll be editing into Makefile and config.h.
21156 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21192 cat >>confdefs.h <<_ACEOF
21193 #define EMACS_CONFIGURATION "${canonical}"
21194 _ACEOF
21197 cat >>confdefs.h <<_ACEOF
21198 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21199 _ACEOF
21202 cat >>confdefs.h <<_ACEOF
21203 #define config_machfile "${machfile}"
21204 _ACEOF
21207 cat >>confdefs.h <<_ACEOF
21208 #define config_opsysfile "${opsysfile}"
21209 _ACEOF
21212 cat >>confdefs.h <<_ACEOF
21213 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21214 _ACEOF
21217 cat >>confdefs.h <<_ACEOF
21218 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21219 _ACEOF
21222 cat >>confdefs.h <<_ACEOF
21223 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21224 _ACEOF
21227 cat >>confdefs.h <<_ACEOF
21228 #define UNEXEC_SRC ${UNEXEC_SRC}
21229 _ACEOF
21232 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21234 cat >>confdefs.h <<\_ACEOF
21235 #define HAVE_X_WINDOWS 1
21236 _ACEOF
21239 if test "${USE_X_TOOLKIT}" != "none" ; then
21241 cat >>confdefs.h <<\_ACEOF
21242 #define USE_X_TOOLKIT 1
21243 _ACEOF
21246 if test "${HAVE_X11}" = "yes" ; then
21248 cat >>confdefs.h <<\_ACEOF
21249 #define HAVE_X11 1
21250 _ACEOF
21253 if test "${HAVE_XFREE386}" = "yes" ; then
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_XFREE386 1
21257 _ACEOF
21260 if test "${HAVE_MENUS}" = "yes" ; then
21262 cat >>confdefs.h <<\_ACEOF
21263 #define HAVE_MENUS 1
21264 _ACEOF
21267 if test "${GNU_MALLOC}" = "yes" ; then
21269 cat >>confdefs.h <<\_ACEOF
21270 #define GNU_MALLOC 1
21271 _ACEOF
21274 if test "${REL_ALLOC}" = "yes" ; then
21276 cat >>confdefs.h <<\_ACEOF
21277 #define REL_ALLOC 1
21278 _ACEOF
21286 #### Report on what we decided to do.
21287 #### Report GTK as a toolkit, even if it doesn't use Xt.
21288 #### It makes printing result more understandable as using GTK sets
21289 #### toolkit_scroll_bars to yes by default.
21290 if test "${HAVE_GTK}" = "yes"; then
21291 USE_X_TOOLKIT=GTK
21294 echo "
21295 Configured for \`${canonical}'.
21297 Where should the build process find the source code? ${srcdir}
21298 What operating system and machine description files should Emacs use?
21299 \`${opsysfile}' and \`${machfile}'
21300 What compiler should emacs be built with? ${CC} ${CFLAGS}
21301 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21302 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21303 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21304 What window system should Emacs use? ${window_system}
21305 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21307 if test -n "${x_includes}"; then
21308 echo " Where do we find X Windows header files? ${x_includes}"
21309 else
21310 echo " Where do we find X Windows header files? Standard dirs"
21312 if test -n "${x_libraries}"; then
21313 echo " Where do we find X Windows libraries? ${x_libraries}"
21314 else
21315 echo " Where do we find X Windows libraries? Standard dirs"
21318 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21319 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21320 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21321 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21322 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21323 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21324 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21325 echo
21327 # Remove any trailing slashes in these variables.
21328 test "${prefix}" != NONE &&
21329 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21330 test "${exec_prefix}" != NONE &&
21331 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21333 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21334 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21335 ## from Makefile.c can correctly provide the arg `-traditional' to the
21336 ## C preprocessor.
21338 cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h. */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 yes..yes
21345 _ACEOF
21346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21347 $EGREP "yes..yes" >/dev/null 2>&1; then
21348 CPP_NEED_TRADITIONAL=no
21349 else
21350 CPP_NEED_TRADITIONAL=yes
21352 rm -f conftest*
21355 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"
21356 ac_config_commands="$ac_config_commands default"
21357 cat >confcache <<\_ACEOF
21358 # This file is a shell script that caches the results of configure
21359 # tests run on this system so they can be shared between configure
21360 # scripts and configure runs, see configure's option --config-cache.
21361 # It is not useful on other systems. If it contains results you don't
21362 # want to keep, you may remove or edit it.
21364 # config.status only pays attention to the cache file if you give it
21365 # the --recheck option to rerun configure.
21367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21369 # following values.
21371 _ACEOF
21373 # The following way of writing the cache mishandles newlines in values,
21374 # but we know of no workaround that is simple, portable, and efficient.
21375 # So, don't put newlines in cache variables' values.
21376 # Ultrix sh set writes to stderr and can't be redirected directly,
21377 # and sets the high bit in the cache file unless we assign to the vars.
21379 (set) 2>&1 |
21380 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21381 *ac_space=\ *)
21382 # `set' does not quote correctly, so add quotes (double-quote
21383 # substitution turns \\\\ into \\, and sed turns \\ into \).
21384 sed -n \
21385 "s/'/'\\\\''/g;
21386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21389 # `set' quotes correctly as required by POSIX, so do not add quotes.
21390 sed -n \
21391 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21393 esac;
21395 sed '
21396 t clear
21397 : clear
21398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21399 t end
21400 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21401 : end' >>confcache
21402 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21403 if test -w $cache_file; then
21404 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21405 cat confcache >$cache_file
21406 else
21407 echo "not updating unwritable cache $cache_file"
21410 rm -f confcache
21412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21413 # Let make expand exec_prefix.
21414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21416 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21417 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21418 # trailing colons and then remove the whole line if VPATH becomes empty
21419 # (actually we leave an empty line to preserve line numbers).
21420 if test "x$srcdir" = x.; then
21421 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21422 s/:*\$(srcdir):*/:/;
21423 s/:*\${srcdir}:*/:/;
21424 s/:*@srcdir@:*/:/;
21425 s/^\([^=]*=[ ]*\):*/\1/;
21426 s/:*$//;
21427 s/^[^=]*=[ ]*$//;
21431 DEFS=-DHAVE_CONFIG_H
21433 ac_libobjs=
21434 ac_ltlibobjs=
21435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21436 # 1. Remove the extension, and $U if already installed.
21437 ac_i=`echo "$ac_i" |
21438 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21439 # 2. Add them.
21440 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21441 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21442 done
21443 LIBOBJS=$ac_libobjs
21445 LTLIBOBJS=$ac_ltlibobjs
21449 : ${CONFIG_STATUS=./config.status}
21450 ac_clean_files_save=$ac_clean_files
21451 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21452 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21453 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21454 cat >$CONFIG_STATUS <<_ACEOF
21455 #! $SHELL
21456 # Generated by $as_me.
21457 # Run this file to recreate the current configuration.
21458 # Compiler output produced by configure, useful for debugging
21459 # configure, is in config.log if it exists.
21461 debug=false
21462 ac_cs_recheck=false
21463 ac_cs_silent=false
21464 SHELL=\${CONFIG_SHELL-$SHELL}
21465 _ACEOF
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21468 ## --------------------- ##
21469 ## M4sh Initialization. ##
21470 ## --------------------- ##
21472 # Be Bourne compatible
21473 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21474 emulate sh
21475 NULLCMD=:
21476 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21477 # is contrary to our usage. Disable this feature.
21478 alias -g '${1+"$@"}'='"$@"'
21479 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21480 set -o posix
21482 DUALCASE=1; export DUALCASE # for MKS sh
21484 # Support unset when possible.
21485 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21486 as_unset=unset
21487 else
21488 as_unset=false
21492 # Work around bugs in pre-3.0 UWIN ksh.
21493 $as_unset ENV MAIL MAILPATH
21494 PS1='$ '
21495 PS2='> '
21496 PS4='+ '
21498 # NLS nuisances.
21499 for as_var in \
21500 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21501 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21502 LC_TELEPHONE LC_TIME
21504 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21505 eval $as_var=C; export $as_var
21506 else
21507 $as_unset $as_var
21509 done
21511 # Required to use basename.
21512 if expr a : '\(a\)' >/dev/null 2>&1; then
21513 as_expr=expr
21514 else
21515 as_expr=false
21518 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21519 as_basename=basename
21520 else
21521 as_basename=false
21525 # Name of the executable.
21526 as_me=`$as_basename "$0" ||
21527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21528 X"$0" : 'X\(//\)$' \| \
21529 X"$0" : 'X\(/\)$' \| \
21530 . : '\(.\)' 2>/dev/null ||
21531 echo X/"$0" |
21532 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21533 /^X\/\(\/\/\)$/{ s//\1/; q; }
21534 /^X\/\(\/\).*/{ s//\1/; q; }
21535 s/.*/./; q'`
21538 # PATH needs CR, and LINENO needs CR and PATH.
21539 # Avoid depending upon Character Ranges.
21540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21543 as_cr_digits='0123456789'
21544 as_cr_alnum=$as_cr_Letters$as_cr_digits
21546 # The user is always right.
21547 if test "${PATH_SEPARATOR+set}" != set; then
21548 echo "#! /bin/sh" >conf$$.sh
21549 echo "exit 0" >>conf$$.sh
21550 chmod +x conf$$.sh
21551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21552 PATH_SEPARATOR=';'
21553 else
21554 PATH_SEPARATOR=:
21556 rm -f conf$$.sh
21560 as_lineno_1=$LINENO
21561 as_lineno_2=$LINENO
21562 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21563 test "x$as_lineno_1" != "x$as_lineno_2" &&
21564 test "x$as_lineno_3" = "x$as_lineno_2" || {
21565 # Find who we are. Look in the path if we contain no path at all
21566 # relative or not.
21567 case $0 in
21568 *[\\/]* ) as_myself=$0 ;;
21569 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21570 for as_dir in $PATH
21572 IFS=$as_save_IFS
21573 test -z "$as_dir" && as_dir=.
21574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21575 done
21578 esac
21579 # We did not find ourselves, most probably we were run as `sh COMMAND'
21580 # in which case we are not to be found in the path.
21581 if test "x$as_myself" = x; then
21582 as_myself=$0
21584 if test ! -f "$as_myself"; then
21585 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21586 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21587 { (exit 1); exit 1; }; }
21589 case $CONFIG_SHELL in
21591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21592 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21594 IFS=$as_save_IFS
21595 test -z "$as_dir" && as_dir=.
21596 for as_base in sh bash ksh sh5; do
21597 case $as_dir in
21599 if ("$as_dir/$as_base" -c '
21600 as_lineno_1=$LINENO
21601 as_lineno_2=$LINENO
21602 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21603 test "x$as_lineno_1" != "x$as_lineno_2" &&
21604 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21605 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21606 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21607 CONFIG_SHELL=$as_dir/$as_base
21608 export CONFIG_SHELL
21609 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21610 fi;;
21611 esac
21612 done
21613 done
21615 esac
21617 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21618 # uniformly replaced by the line number. The first 'sed' inserts a
21619 # line-number line before each line; the second 'sed' does the real
21620 # work. The second script uses 'N' to pair each line-number line
21621 # with the numbered line, and appends trailing '-' during
21622 # substitution so that $LINENO is not a special case at line end.
21623 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21624 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21625 sed '=' <$as_myself |
21626 sed '
21628 s,$,-,
21629 : loop
21630 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21631 t loop
21632 s,-$,,
21633 s,^['$as_cr_digits']*\n,,
21634 ' >$as_me.lineno &&
21635 chmod +x $as_me.lineno ||
21636 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21637 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21638 { (exit 1); exit 1; }; }
21640 # Don't try to exec as it changes $[0], causing all sort of problems
21641 # (the dirname of $[0] is not the place where we might find the
21642 # original and so on. Autoconf is especially sensible to this).
21643 . ./$as_me.lineno
21644 # Exit status is that of the last command.
21645 exit
21649 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21650 *c*,-n*) ECHO_N= ECHO_C='
21651 ' ECHO_T=' ' ;;
21652 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21653 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21654 esac
21656 if expr a : '\(a\)' >/dev/null 2>&1; then
21657 as_expr=expr
21658 else
21659 as_expr=false
21662 rm -f conf$$ conf$$.exe conf$$.file
21663 echo >conf$$.file
21664 if ln -s conf$$.file conf$$ 2>/dev/null; then
21665 # We could just check for DJGPP; but this test a) works b) is more generic
21666 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21667 if test -f conf$$.exe; then
21668 # Don't use ln at all; we don't have any links
21669 as_ln_s='cp -p'
21670 else
21671 as_ln_s='ln -s'
21673 elif ln conf$$.file conf$$ 2>/dev/null; then
21674 as_ln_s=ln
21675 else
21676 as_ln_s='cp -p'
21678 rm -f conf$$ conf$$.exe conf$$.file
21680 if mkdir -p . 2>/dev/null; then
21681 as_mkdir_p=:
21682 else
21683 test -d ./-p && rmdir ./-p
21684 as_mkdir_p=false
21687 as_executable_p="test -f"
21689 # Sed expression to map a string onto a valid CPP name.
21690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21692 # Sed expression to map a string onto a valid variable name.
21693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21696 # IFS
21697 # We need space, tab and new line, in precisely that order.
21698 as_nl='
21700 IFS=" $as_nl"
21702 # CDPATH.
21703 $as_unset CDPATH
21705 exec 6>&1
21707 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21708 # report actual input values of CONFIG_FILES etc. instead of their
21709 # values after options handling. Logging --version etc. is OK.
21710 exec 5>>config.log
21712 echo
21713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21714 ## Running $as_me. ##
21715 _ASBOX
21716 } >&5
21717 cat >&5 <<_CSEOF
21719 This file was extended by $as_me, which was
21720 generated by GNU Autoconf 2.59. Invocation command line was
21722 CONFIG_FILES = $CONFIG_FILES
21723 CONFIG_HEADERS = $CONFIG_HEADERS
21724 CONFIG_LINKS = $CONFIG_LINKS
21725 CONFIG_COMMANDS = $CONFIG_COMMANDS
21726 $ $0 $@
21728 _CSEOF
21729 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21730 echo >&5
21731 _ACEOF
21733 # Files that config.status was made for.
21734 if test -n "$ac_config_files"; then
21735 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21738 if test -n "$ac_config_headers"; then
21739 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21742 if test -n "$ac_config_links"; then
21743 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21746 if test -n "$ac_config_commands"; then
21747 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21750 cat >>$CONFIG_STATUS <<\_ACEOF
21752 ac_cs_usage="\
21753 \`$as_me' instantiates files from templates according to the
21754 current configuration.
21756 Usage: $0 [OPTIONS] [FILE]...
21758 -h, --help print this help, then exit
21759 -V, --version print version number, then exit
21760 -q, --quiet do not print progress messages
21761 -d, --debug don't remove temporary files
21762 --recheck update $as_me by reconfiguring in the same conditions
21763 --file=FILE[:TEMPLATE]
21764 instantiate the configuration file FILE
21765 --header=FILE[:TEMPLATE]
21766 instantiate the configuration header FILE
21768 Configuration files:
21769 $config_files
21771 Configuration headers:
21772 $config_headers
21774 Configuration commands:
21775 $config_commands
21777 Report bugs to <bug-autoconf@gnu.org>."
21778 _ACEOF
21780 cat >>$CONFIG_STATUS <<_ACEOF
21781 ac_cs_version="\\
21782 config.status
21783 configured by $0, generated by GNU Autoconf 2.59,
21784 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21786 Copyright (C) 2003 Free Software Foundation, Inc.
21787 This config.status script is free software; the Free Software Foundation
21788 gives unlimited permission to copy, distribute and modify it."
21789 srcdir=$srcdir
21790 INSTALL="$INSTALL"
21791 _ACEOF
21793 cat >>$CONFIG_STATUS <<\_ACEOF
21794 # If no file are specified by the user, then we need to provide default
21795 # value. By we need to know if files were specified by the user.
21796 ac_need_defaults=:
21797 while test $# != 0
21799 case $1 in
21800 --*=*)
21801 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21802 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21803 ac_shift=:
21806 ac_option=$1
21807 ac_optarg=$2
21808 ac_shift=shift
21810 *) # This is not an option, so the user has probably given explicit
21811 # arguments.
21812 ac_option=$1
21813 ac_need_defaults=false;;
21814 esac
21816 case $ac_option in
21817 # Handling of the options.
21818 _ACEOF
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21821 ac_cs_recheck=: ;;
21822 --version | --vers* | -V )
21823 echo "$ac_cs_version"; exit 0 ;;
21824 --he | --h)
21825 # Conflict between --help and --header
21826 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21827 Try \`$0 --help' for more information." >&5
21828 echo "$as_me: error: ambiguous option: $1
21829 Try \`$0 --help' for more information." >&2;}
21830 { (exit 1); exit 1; }; };;
21831 --help | --hel | -h )
21832 echo "$ac_cs_usage"; exit 0 ;;
21833 --debug | --d* | -d )
21834 debug=: ;;
21835 --file | --fil | --fi | --f )
21836 $ac_shift
21837 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21838 ac_need_defaults=false;;
21839 --header | --heade | --head | --hea )
21840 $ac_shift
21841 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21842 ac_need_defaults=false;;
21843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21845 ac_cs_silent=: ;;
21847 # This is an error.
21848 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21849 Try \`$0 --help' for more information." >&5
21850 echo "$as_me: error: unrecognized option: $1
21851 Try \`$0 --help' for more information." >&2;}
21852 { (exit 1); exit 1; }; } ;;
21854 *) ac_config_targets="$ac_config_targets $1" ;;
21856 esac
21857 shift
21858 done
21860 ac_configure_extra_args=
21862 if $ac_cs_silent; then
21863 exec 6>/dev/null
21864 ac_configure_extra_args="$ac_configure_extra_args --silent"
21867 _ACEOF
21868 cat >>$CONFIG_STATUS <<_ACEOF
21869 if \$ac_cs_recheck; then
21870 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21871 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21874 _ACEOF
21876 cat >>$CONFIG_STATUS <<_ACEOF
21878 # INIT-COMMANDS section.
21881 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21883 _ACEOF
21887 cat >>$CONFIG_STATUS <<\_ACEOF
21888 for ac_config_target in $ac_config_targets
21890 case "$ac_config_target" in
21891 # Handling of arguments.
21892 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21893 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21894 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21895 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21896 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21897 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21898 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21899 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21900 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21901 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21902 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21903 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21905 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21906 { (exit 1); exit 1; }; };;
21907 esac
21908 done
21910 # If the user did not use the arguments to specify the items to instantiate,
21911 # then the envvar interface is used. Set only those that are not.
21912 # We use the long form for the default assignment because of an extremely
21913 # bizarre bug on SunOS 4.1.3.
21914 if $ac_need_defaults; then
21915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21917 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21920 # Have a temporary directory for convenience. Make it in the build tree
21921 # simply because there is no reason to put it here, and in addition,
21922 # creating and moving files from /tmp can sometimes cause problems.
21923 # Create a temporary directory, and hook for its removal unless debugging.
21924 $debug ||
21926 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21927 trap '{ (exit 1); exit 1; }' 1 2 13 15
21930 # Create a (secure) tmp directory for tmp files.
21933 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21934 test -n "$tmp" && test -d "$tmp"
21935 } ||
21937 tmp=./confstat$$-$RANDOM
21938 (umask 077 && mkdir $tmp)
21939 } ||
21941 echo "$me: cannot create a temporary directory in ." >&2
21942 { (exit 1); exit 1; }
21945 _ACEOF
21947 cat >>$CONFIG_STATUS <<_ACEOF
21950 # CONFIG_FILES section.
21953 # No need to generate the scripts if there are no CONFIG_FILES.
21954 # This happens for instance when ./config.status config.h
21955 if test -n "\$CONFIG_FILES"; then
21956 # Protect against being on the right side of a sed subst in config.status.
21957 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21958 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21959 s,@SHELL@,$SHELL,;t t
21960 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21961 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21962 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21963 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21964 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21965 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21966 s,@exec_prefix@,$exec_prefix,;t t
21967 s,@prefix@,$prefix,;t t
21968 s,@program_transform_name@,$program_transform_name,;t t
21969 s,@bindir@,$bindir,;t t
21970 s,@sbindir@,$sbindir,;t t
21971 s,@libexecdir@,$libexecdir,;t t
21972 s,@datadir@,$datadir,;t t
21973 s,@sysconfdir@,$sysconfdir,;t t
21974 s,@sharedstatedir@,$sharedstatedir,;t t
21975 s,@localstatedir@,$localstatedir,;t t
21976 s,@libdir@,$libdir,;t t
21977 s,@includedir@,$includedir,;t t
21978 s,@oldincludedir@,$oldincludedir,;t t
21979 s,@infodir@,$infodir,;t t
21980 s,@mandir@,$mandir,;t t
21981 s,@build_alias@,$build_alias,;t t
21982 s,@host_alias@,$host_alias,;t t
21983 s,@target_alias@,$target_alias,;t t
21984 s,@DEFS@,$DEFS,;t t
21985 s,@ECHO_C@,$ECHO_C,;t t
21986 s,@ECHO_N@,$ECHO_N,;t t
21987 s,@ECHO_T@,$ECHO_T,;t t
21988 s,@LIBS@,$LIBS,;t t
21989 s,@MAINT@,$MAINT,;t t
21990 s,@build@,$build,;t t
21991 s,@build_cpu@,$build_cpu,;t t
21992 s,@build_vendor@,$build_vendor,;t t
21993 s,@build_os@,$build_os,;t t
21994 s,@host@,$host,;t t
21995 s,@host_cpu@,$host_cpu,;t t
21996 s,@host_vendor@,$host_vendor,;t t
21997 s,@host_os@,$host_os,;t t
21998 s,@CC@,$CC,;t t
21999 s,@CFLAGS@,$CFLAGS,;t t
22000 s,@LDFLAGS@,$LDFLAGS,;t t
22001 s,@CPPFLAGS@,$CPPFLAGS,;t t
22002 s,@ac_ct_CC@,$ac_ct_CC,;t t
22003 s,@EXEEXT@,$EXEEXT,;t t
22004 s,@OBJEXT@,$OBJEXT,;t t
22005 s,@LN_S@,$LN_S,;t t
22006 s,@CPP@,$CPP,;t t
22007 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22008 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22009 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22010 s,@RANLIB@,$RANLIB,;t t
22011 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22012 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22013 s,@EGREP@,$EGREP,;t t
22014 s,@LIBSOUND@,$LIBSOUND,;t t
22015 s,@SET_MAKE@,$SET_MAKE,;t t
22016 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22017 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22018 s,@GTK_LIBS@,$GTK_LIBS,;t t
22019 s,@ALLOCA@,$ALLOCA,;t t
22020 s,@liblockfile@,$liblockfile,;t t
22021 s,@LIBOBJS@,$LIBOBJS,;t t
22022 s,@NEED_SETGID@,$NEED_SETGID,;t t
22023 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22024 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22025 s,@version@,$version,;t t
22026 s,@configuration@,$configuration,;t t
22027 s,@canonical@,$canonical,;t t
22028 s,@srcdir@,$srcdir,;t t
22029 s,@lispdir@,$lispdir,;t t
22030 s,@locallisppath@,$locallisppath,;t t
22031 s,@lisppath@,$lisppath,;t t
22032 s,@x_default_search_path@,$x_default_search_path,;t t
22033 s,@etcdir@,$etcdir,;t t
22034 s,@archlibdir@,$archlibdir,;t t
22035 s,@docdir@,$docdir,;t t
22036 s,@bitmapdir@,$bitmapdir,;t t
22037 s,@gamedir@,$gamedir,;t t
22038 s,@gameuser@,$gameuser,;t t
22039 s,@c_switch_system@,$c_switch_system,;t t
22040 s,@c_switch_machine@,$c_switch_machine,;t t
22041 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22042 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22043 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22044 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22045 s,@machfile@,$machfile,;t t
22046 s,@opsysfile@,$opsysfile,;t t
22047 s,@carbon_appdir@,$carbon_appdir,;t t
22048 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22049 CEOF
22051 _ACEOF
22053 cat >>$CONFIG_STATUS <<\_ACEOF
22054 # Split the substitutions into bite-sized pieces for seds with
22055 # small command number limits, like on Digital OSF/1 and HP-UX.
22056 ac_max_sed_lines=48
22057 ac_sed_frag=1 # Number of current file.
22058 ac_beg=1 # First line for current file.
22059 ac_end=$ac_max_sed_lines # Line after last line for current file.
22060 ac_more_lines=:
22061 ac_sed_cmds=
22062 while $ac_more_lines; do
22063 if test $ac_beg -gt 1; then
22064 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22065 else
22066 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22068 if test ! -s $tmp/subs.frag; then
22069 ac_more_lines=false
22070 else
22071 # The purpose of the label and of the branching condition is to
22072 # speed up the sed processing (if there are no `@' at all, there
22073 # is no need to browse any of the substitutions).
22074 # These are the two extra sed commands mentioned above.
22075 (echo ':t
22076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22077 if test -z "$ac_sed_cmds"; then
22078 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22079 else
22080 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22082 ac_sed_frag=`expr $ac_sed_frag + 1`
22083 ac_beg=$ac_end
22084 ac_end=`expr $ac_end + $ac_max_sed_lines`
22086 done
22087 if test -z "$ac_sed_cmds"; then
22088 ac_sed_cmds=cat
22090 fi # test -n "$CONFIG_FILES"
22092 _ACEOF
22093 cat >>$CONFIG_STATUS <<\_ACEOF
22094 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22096 case $ac_file in
22097 - | *:- | *:-:* ) # input from stdin
22098 cat >$tmp/stdin
22099 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22101 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22103 * ) ac_file_in=$ac_file.in ;;
22104 esac
22106 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22107 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22108 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22109 X"$ac_file" : 'X\(//\)[^/]' \| \
22110 X"$ac_file" : 'X\(//\)$' \| \
22111 X"$ac_file" : 'X\(/\)' \| \
22112 . : '\(.\)' 2>/dev/null ||
22113 echo X"$ac_file" |
22114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22116 /^X\(\/\/\)$/{ s//\1/; q; }
22117 /^X\(\/\).*/{ s//\1/; q; }
22118 s/.*/./; q'`
22119 { if $as_mkdir_p; then
22120 mkdir -p "$ac_dir"
22121 else
22122 as_dir="$ac_dir"
22123 as_dirs=
22124 while test ! -d "$as_dir"; do
22125 as_dirs="$as_dir $as_dirs"
22126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22128 X"$as_dir" : 'X\(//\)[^/]' \| \
22129 X"$as_dir" : 'X\(//\)$' \| \
22130 X"$as_dir" : 'X\(/\)' \| \
22131 . : '\(.\)' 2>/dev/null ||
22132 echo X"$as_dir" |
22133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22135 /^X\(\/\/\)$/{ s//\1/; q; }
22136 /^X\(\/\).*/{ s//\1/; q; }
22137 s/.*/./; q'`
22138 done
22139 test ! -n "$as_dirs" || mkdir $as_dirs
22140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22141 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22142 { (exit 1); exit 1; }; }; }
22144 ac_builddir=.
22146 if test "$ac_dir" != .; then
22147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22148 # A "../" for each directory in $ac_dir_suffix.
22149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22150 else
22151 ac_dir_suffix= ac_top_builddir=
22154 case $srcdir in
22155 .) # No --srcdir option. We are building in place.
22156 ac_srcdir=.
22157 if test -z "$ac_top_builddir"; then
22158 ac_top_srcdir=.
22159 else
22160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22161 fi ;;
22162 [\\/]* | ?:[\\/]* ) # Absolute path.
22163 ac_srcdir=$srcdir$ac_dir_suffix;
22164 ac_top_srcdir=$srcdir ;;
22165 *) # Relative path.
22166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22168 esac
22170 # Do not use `cd foo && pwd` to compute absolute paths, because
22171 # the directories may not exist.
22172 case `pwd` in
22173 .) ac_abs_builddir="$ac_dir";;
22175 case "$ac_dir" in
22176 .) ac_abs_builddir=`pwd`;;
22177 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22178 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22179 esac;;
22180 esac
22181 case $ac_abs_builddir in
22182 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22184 case ${ac_top_builddir}. in
22185 .) ac_abs_top_builddir=$ac_abs_builddir;;
22186 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22187 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22188 esac;;
22189 esac
22190 case $ac_abs_builddir in
22191 .) ac_abs_srcdir=$ac_srcdir;;
22193 case $ac_srcdir in
22194 .) ac_abs_srcdir=$ac_abs_builddir;;
22195 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22196 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22197 esac;;
22198 esac
22199 case $ac_abs_builddir in
22200 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22202 case $ac_top_srcdir in
22203 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22204 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22205 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22206 esac;;
22207 esac
22210 case $INSTALL in
22211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22212 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22213 esac
22215 if test x"$ac_file" != x-; then
22216 { echo "$as_me:$LINENO: creating $ac_file" >&5
22217 echo "$as_me: creating $ac_file" >&6;}
22218 rm -f "$ac_file"
22220 # Let's still pretend it is `configure' which instantiates (i.e., don't
22221 # use $as_me), people would be surprised to read:
22222 # /* config.h. Generated by config.status. */
22223 if test x"$ac_file" = x-; then
22224 configure_input=
22225 else
22226 configure_input="$ac_file. "
22228 configure_input=$configure_input"Generated from `echo $ac_file_in |
22229 sed 's,.*/,,'` by configure."
22231 # First look for the input files in the build tree, otherwise in the
22232 # src tree.
22233 ac_file_inputs=`IFS=:
22234 for f in $ac_file_in; do
22235 case $f in
22236 -) echo $tmp/stdin ;;
22237 [\\/$]*)
22238 # Absolute (can't be DOS-style, as IFS=:)
22239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22240 echo "$as_me: error: cannot find input file: $f" >&2;}
22241 { (exit 1); exit 1; }; }
22242 echo "$f";;
22243 *) # Relative
22244 if test -f "$f"; then
22245 # Build tree
22246 echo "$f"
22247 elif test -f "$srcdir/$f"; then
22248 # Source tree
22249 echo "$srcdir/$f"
22250 else
22251 # /dev/null tree
22252 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22253 echo "$as_me: error: cannot find input file: $f" >&2;}
22254 { (exit 1); exit 1; }; }
22255 fi;;
22256 esac
22257 done` || { (exit 1); exit 1; }
22258 _ACEOF
22259 cat >>$CONFIG_STATUS <<_ACEOF
22260 sed "$ac_vpsub
22261 $extrasub
22262 _ACEOF
22263 cat >>$CONFIG_STATUS <<\_ACEOF
22265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22266 s,@configure_input@,$configure_input,;t t
22267 s,@srcdir@,$ac_srcdir,;t t
22268 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22269 s,@top_srcdir@,$ac_top_srcdir,;t t
22270 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22271 s,@builddir@,$ac_builddir,;t t
22272 s,@abs_builddir@,$ac_abs_builddir,;t t
22273 s,@top_builddir@,$ac_top_builddir,;t t
22274 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22275 s,@INSTALL@,$ac_INSTALL,;t t
22276 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22277 rm -f $tmp/stdin
22278 if test x"$ac_file" != x-; then
22279 mv $tmp/out $ac_file
22280 else
22281 cat $tmp/out
22282 rm -f $tmp/out
22285 done
22286 _ACEOF
22287 cat >>$CONFIG_STATUS <<\_ACEOF
22290 # CONFIG_HEADER section.
22293 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22294 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22296 # ac_d sets the value in "#define NAME VALUE" lines.
22297 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22298 ac_dB='[ ].*$,\1#\2'
22299 ac_dC=' '
22300 ac_dD=',;t'
22301 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22302 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22303 ac_uB='$,\1#\2define\3'
22304 ac_uC=' '
22305 ac_uD=',;t'
22307 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22308 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22309 case $ac_file in
22310 - | *:- | *:-:* ) # input from stdin
22311 cat >$tmp/stdin
22312 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22314 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22316 * ) ac_file_in=$ac_file.in ;;
22317 esac
22319 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22320 echo "$as_me: creating $ac_file" >&6;}
22322 # First look for the input files in the build tree, otherwise in the
22323 # src tree.
22324 ac_file_inputs=`IFS=:
22325 for f in $ac_file_in; do
22326 case $f in
22327 -) echo $tmp/stdin ;;
22328 [\\/$]*)
22329 # Absolute (can't be DOS-style, as IFS=:)
22330 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22331 echo "$as_me: error: cannot find input file: $f" >&2;}
22332 { (exit 1); exit 1; }; }
22333 # Do quote $f, to prevent DOS paths from being IFS'd.
22334 echo "$f";;
22335 *) # Relative
22336 if test -f "$f"; then
22337 # Build tree
22338 echo "$f"
22339 elif test -f "$srcdir/$f"; then
22340 # Source tree
22341 echo "$srcdir/$f"
22342 else
22343 # /dev/null tree
22344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22345 echo "$as_me: error: cannot find input file: $f" >&2;}
22346 { (exit 1); exit 1; }; }
22347 fi;;
22348 esac
22349 done` || { (exit 1); exit 1; }
22350 # Remove the trailing spaces.
22351 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22353 _ACEOF
22355 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22356 # `conftest.undefs', that substitutes the proper values into
22357 # config.h.in to produce config.h. The first handles `#define'
22358 # templates, and the second `#undef' templates.
22359 # And first: Protect against being on the right side of a sed subst in
22360 # config.status. Protect against being in an unquoted here document
22361 # in config.status.
22362 rm -f conftest.defines conftest.undefs
22363 # Using a here document instead of a string reduces the quoting nightmare.
22364 # Putting comments in sed scripts is not portable.
22366 # `end' is used to avoid that the second main sed command (meant for
22367 # 0-ary CPP macros) applies to n-ary macro definitions.
22368 # See the Autoconf documentation for `clear'.
22369 cat >confdef2sed.sed <<\_ACEOF
22370 s/[\\&,]/\\&/g
22371 s,[\\$`],\\&,g
22372 t clear
22373 : clear
22374 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22375 t end
22376 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22377 : end
22378 _ACEOF
22379 # If some macros were called several times there might be several times
22380 # the same #defines, which is useless. Nevertheless, we may not want to
22381 # sort them, since we want the *last* AC-DEFINE to be honored.
22382 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22383 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22384 rm -f confdef2sed.sed
22386 # This sed command replaces #undef with comments. This is necessary, for
22387 # example, in the case of _POSIX_SOURCE, which is predefined and required
22388 # on some systems where configure will not decide to define it.
22389 cat >>conftest.undefs <<\_ACEOF
22390 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22391 _ACEOF
22393 # Break up conftest.defines because some shells have a limit on the size
22394 # of here documents, and old seds have small limits too (100 cmds).
22395 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22396 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22397 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22398 echo ' :' >>$CONFIG_STATUS
22399 rm -f conftest.tail
22400 while grep . conftest.defines >/dev/null
22402 # Write a limited-size here document to $tmp/defines.sed.
22403 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22404 # Speed up: don't consider the non `#define' lines.
22405 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22406 # Work around the forget-to-reset-the-flag bug.
22407 echo 't clr' >>$CONFIG_STATUS
22408 echo ': clr' >>$CONFIG_STATUS
22409 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22410 echo 'CEOF
22411 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22412 rm -f $tmp/in
22413 mv $tmp/out $tmp/in
22414 ' >>$CONFIG_STATUS
22415 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22416 rm -f conftest.defines
22417 mv conftest.tail conftest.defines
22418 done
22419 rm -f conftest.defines
22420 echo ' fi # grep' >>$CONFIG_STATUS
22421 echo >>$CONFIG_STATUS
22423 # Break up conftest.undefs because some shells have a limit on the size
22424 # of here documents, and old seds have small limits too (100 cmds).
22425 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22426 rm -f conftest.tail
22427 while grep . conftest.undefs >/dev/null
22429 # Write a limited-size here document to $tmp/undefs.sed.
22430 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22431 # Speed up: don't consider the non `#undef'
22432 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22433 # Work around the forget-to-reset-the-flag bug.
22434 echo 't clr' >>$CONFIG_STATUS
22435 echo ': clr' >>$CONFIG_STATUS
22436 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22437 echo 'CEOF
22438 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22439 rm -f $tmp/in
22440 mv $tmp/out $tmp/in
22441 ' >>$CONFIG_STATUS
22442 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22443 rm -f conftest.undefs
22444 mv conftest.tail conftest.undefs
22445 done
22446 rm -f conftest.undefs
22448 cat >>$CONFIG_STATUS <<\_ACEOF
22449 # Let's still pretend it is `configure' which instantiates (i.e., don't
22450 # use $as_me), people would be surprised to read:
22451 # /* config.h. Generated by config.status. */
22452 if test x"$ac_file" = x-; then
22453 echo "/* Generated by configure. */" >$tmp/config.h
22454 else
22455 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22457 cat $tmp/in >>$tmp/config.h
22458 rm -f $tmp/in
22459 if test x"$ac_file" != x-; then
22460 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22462 echo "$as_me: $ac_file is unchanged" >&6;}
22463 else
22464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22466 X"$ac_file" : 'X\(//\)[^/]' \| \
22467 X"$ac_file" : 'X\(//\)$' \| \
22468 X"$ac_file" : 'X\(/\)' \| \
22469 . : '\(.\)' 2>/dev/null ||
22470 echo X"$ac_file" |
22471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22473 /^X\(\/\/\)$/{ s//\1/; q; }
22474 /^X\(\/\).*/{ s//\1/; q; }
22475 s/.*/./; q'`
22476 { if $as_mkdir_p; then
22477 mkdir -p "$ac_dir"
22478 else
22479 as_dir="$ac_dir"
22480 as_dirs=
22481 while test ! -d "$as_dir"; do
22482 as_dirs="$as_dir $as_dirs"
22483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485 X"$as_dir" : 'X\(//\)[^/]' \| \
22486 X"$as_dir" : 'X\(//\)$' \| \
22487 X"$as_dir" : 'X\(/\)' \| \
22488 . : '\(.\)' 2>/dev/null ||
22489 echo X"$as_dir" |
22490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22492 /^X\(\/\/\)$/{ s//\1/; q; }
22493 /^X\(\/\).*/{ s//\1/; q; }
22494 s/.*/./; q'`
22495 done
22496 test ! -n "$as_dirs" || mkdir $as_dirs
22497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22499 { (exit 1); exit 1; }; }; }
22501 rm -f $ac_file
22502 mv $tmp/config.h $ac_file
22504 else
22505 cat $tmp/config.h
22506 rm -f $tmp/config.h
22508 done
22509 _ACEOF
22510 cat >>$CONFIG_STATUS <<\_ACEOF
22513 # CONFIG_COMMANDS section.
22515 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22516 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22517 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22518 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22519 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22520 X"$ac_dest" : 'X\(//\)[^/]' \| \
22521 X"$ac_dest" : 'X\(//\)$' \| \
22522 X"$ac_dest" : 'X\(/\)' \| \
22523 . : '\(.\)' 2>/dev/null ||
22524 echo X"$ac_dest" |
22525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22527 /^X\(\/\/\)$/{ s//\1/; q; }
22528 /^X\(\/\).*/{ s//\1/; q; }
22529 s/.*/./; q'`
22530 { if $as_mkdir_p; then
22531 mkdir -p "$ac_dir"
22532 else
22533 as_dir="$ac_dir"
22534 as_dirs=
22535 while test ! -d "$as_dir"; do
22536 as_dirs="$as_dir $as_dirs"
22537 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22539 X"$as_dir" : 'X\(//\)[^/]' \| \
22540 X"$as_dir" : 'X\(//\)$' \| \
22541 X"$as_dir" : 'X\(/\)' \| \
22542 . : '\(.\)' 2>/dev/null ||
22543 echo X"$as_dir" |
22544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22546 /^X\(\/\/\)$/{ s//\1/; q; }
22547 /^X\(\/\).*/{ s//\1/; q; }
22548 s/.*/./; q'`
22549 done
22550 test ! -n "$as_dirs" || mkdir $as_dirs
22551 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22552 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22553 { (exit 1); exit 1; }; }; }
22555 ac_builddir=.
22557 if test "$ac_dir" != .; then
22558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22559 # A "../" for each directory in $ac_dir_suffix.
22560 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22561 else
22562 ac_dir_suffix= ac_top_builddir=
22565 case $srcdir in
22566 .) # No --srcdir option. We are building in place.
22567 ac_srcdir=.
22568 if test -z "$ac_top_builddir"; then
22569 ac_top_srcdir=.
22570 else
22571 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22572 fi ;;
22573 [\\/]* | ?:[\\/]* ) # Absolute path.
22574 ac_srcdir=$srcdir$ac_dir_suffix;
22575 ac_top_srcdir=$srcdir ;;
22576 *) # Relative path.
22577 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22578 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22579 esac
22581 # Do not use `cd foo && pwd` to compute absolute paths, because
22582 # the directories may not exist.
22583 case `pwd` in
22584 .) ac_abs_builddir="$ac_dir";;
22586 case "$ac_dir" in
22587 .) ac_abs_builddir=`pwd`;;
22588 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22589 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22590 esac;;
22591 esac
22592 case $ac_abs_builddir in
22593 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22595 case ${ac_top_builddir}. in
22596 .) ac_abs_top_builddir=$ac_abs_builddir;;
22597 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22598 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22599 esac;;
22600 esac
22601 case $ac_abs_builddir in
22602 .) ac_abs_srcdir=$ac_srcdir;;
22604 case $ac_srcdir in
22605 .) ac_abs_srcdir=$ac_abs_builddir;;
22606 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22607 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22608 esac;;
22609 esac
22610 case $ac_abs_builddir in
22611 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22613 case $ac_top_srcdir in
22614 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22615 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22616 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22617 esac;;
22618 esac
22621 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22622 echo "$as_me: executing $ac_dest commands" >&6;}
22623 case $ac_dest in
22624 default )
22626 ### Make the necessary directories, if they don't exist.
22627 for dir in etc lisp ; do
22628 test -d ${dir} || mkdir ${dir}
22629 done
22631 # Build src/Makefile from ${srcdir}/src/Makefile.c
22632 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22633 # This must be done after src/config.h is built, since we rely on that file.
22635 # Now get this: Some word that is part of the ${srcdir} directory name
22636 # or the ${configuration} value might, just might, happen to be an
22637 # identifier like `sun4' or `i386' or something, and be predefined by
22638 # the C preprocessor to some helpful value like 1, or maybe the empty
22639 # string. Needless to say consequent macro substitutions are less
22640 # than conducive to the makefile finding the correct directory.
22641 undefs="`echo $top_srcdir $configuration $canonical |
22642 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22643 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22646 echo creating src/epaths.h
22647 ${MAKE-make} epaths-force
22649 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22650 # `..' to `. .' unless invoked with -traditional
22652 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22653 CPPFLAGS="$CPPFLAGS -traditional"
22656 echo creating lib-src/Makefile
22657 ( cd lib-src
22658 rm -f junk.c junk1.c junk2.c
22659 sed -e '/start of cpp stuff/q' \
22660 < Makefile.c > junk1.c
22661 sed -e '1,/start of cpp stuff/d'\
22662 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22663 < Makefile.c > junk.c
22664 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22665 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22666 cat junk1.c junk2.c > Makefile.new
22667 rm -f junk.c junk1.c junk2.c
22668 chmod 444 Makefile.new
22669 mv -f Makefile.new Makefile
22672 echo creating src/Makefile
22673 ( cd src
22674 rm -f junk.c junk1.c junk2.c
22675 sed -e '/start of cpp stuff/q' \
22676 < Makefile.c > junk1.c
22677 sed -e '1,/start of cpp stuff/d'\
22678 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22679 < Makefile.c > junk.c
22680 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22681 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22682 cat junk1.c junk2.c > Makefile.new
22683 rm -f junk.c junk1.c junk2.c
22684 chmod 444 Makefile.new
22685 mv -f Makefile.new Makefile
22688 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22689 echo creating src/.gdbinit
22690 echo source $srcdir/src/.gdbinit > src/.gdbinit
22693 # This is how we know whether to re-run configure in certain cases.
22694 touch src/config.stamp
22697 esac
22698 done
22699 _ACEOF
22701 cat >>$CONFIG_STATUS <<\_ACEOF
22703 { (exit 0); exit 0; }
22704 _ACEOF
22705 chmod +x $CONFIG_STATUS
22706 ac_clean_files=$ac_clean_files_save
22709 # configure is writing to config.log, and then calls config.status.
22710 # config.status does its own redirection, appending to config.log.
22711 # Unfortunately, on DOS this fails, as config.log is still kept open
22712 # by configure, so config.status won't be able to write to it; its
22713 # output is simply discarded. So we exec the FD to /dev/null,
22714 # effectively closing config.log, so it can be properly (re)opened and
22715 # appended to by config.status. When coming back to configure, we
22716 # need to make the FD available again.
22717 if test "$no_create" != yes; then
22718 ac_cs_success=:
22719 ac_config_status_args=
22720 test "$silent" = yes &&
22721 ac_config_status_args="$ac_config_status_args --quiet"
22722 exec 5>/dev/null
22723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22724 exec 5>>config.log
22725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22726 # would make configure fail if this is the last instruction.
22727 $ac_cs_success || { (exit 1); exit 1; }