(ange-ftp-file-attributes): Add new optional parameter ID-FORMAT.
[emacs.git] / configure
blob1616a51eb46f4d3d8368c40d06dd53c769f265e2
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"
2615 ## AMD x86-64 Linux-based GNU system
2616 x86_64-*-linux-gnu* )
2617 machine=amdx86-64 opsys=gnu-linux
2621 unported=yes
2623 esac
2625 ### If the code above didn't choose an operating system, just choose
2626 ### an operating system based on the configuration name. You really
2627 ### only want to use this when you have no idea what the right
2628 ### operating system is; if you know what operating systems a machine
2629 ### runs, it's cleaner to make it explicit in the case statement
2630 ### above.
2631 if test x"${opsys}" = x; then
2632 case "${canonical}" in
2633 *-gnu* ) opsys=gnu ;;
2634 *-bsd4.[01] ) opsys=bsd4-1 ;;
2635 *-bsd4.2 ) opsys=bsd4-2 ;;
2636 *-bsd4.3 ) opsys=bsd4-3 ;;
2637 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2638 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2639 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2640 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2641 *-sysv4.2uw* ) opsys=unixware ;;
2642 *-sysv5uw* ) opsys=unixware ;;
2643 *-sysv5OpenUNIX* ) opsys=unixware ;;
2644 *-sysv4.1* | *-sysvr4.1* )
2645 NON_GNU_CPP=/usr/lib/cpp
2646 opsys=usg5-4 ;;
2647 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2648 if [ x$NON_GNU_CPP = x ]; then
2649 if [ -f /usr/ccs/lib/cpp ]; then
2650 NON_GNU_CPP=/usr/ccs/lib/cpp
2651 else
2652 NON_GNU_CPP=/lib/cpp
2655 opsys=usg5-4-2 ;;
2656 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2658 unported=yes
2660 esac
2665 if test $unported = yes; then
2666 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2667 Check \`etc/MACHINES' for recognized configuration names." >&5
2668 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2669 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2670 { (exit 1); exit 1; }; }
2673 machfile="m/${machine}.h"
2674 opsysfile="s/${opsys}.h"
2677 #### Choose a compiler.
2678 test -n "$CC" && cc_specified=yes
2680 # Save the value of CFLAGS that the user specified.
2681 SPECIFIED_CFLAGS="$CFLAGS"
2683 case ${with_gcc} in
2684 "yes" ) CC="gcc" GCC=yes ;;
2685 "no" ) : ${CC=cc} ;;
2687 esac
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2696 echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2715 done
2716 done
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722 echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6
2724 else
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2730 if test -z "$ac_cv_prog_CC"; then
2731 ac_ct_CC=$CC
2732 # Extract the first word of "gcc", so it can be a program name with args.
2733 set dummy gcc; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC="gcc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2753 done
2754 done
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6
2762 else
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2767 CC=$ac_ct_CC
2768 else
2769 CC="$ac_cv_prog_CC"
2772 if test -z "$CC"; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}cc; ac_word=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CC="${ac_tool_prefix}cc"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6
2804 else
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2810 if test -z "$ac_cv_prog_CC"; then
2811 ac_ct_CC=$CC
2812 # Extract the first word of "cc", so it can be a program name with args.
2813 set dummy cc; ac_word=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="cc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2842 else
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2847 CC=$ac_ct_CC
2848 else
2849 CC="$ac_cv_prog_CC"
2853 if test -z "$CC"; then
2854 # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc; ac_word=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 ac_prog_rejected=no
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected=yes
2874 continue
2876 ac_cv_prog_CC="cc"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2880 done
2881 done
2883 if test $ac_prog_rejected = yes; then
2884 # We found a bogon in the path, so make sure we never use it.
2885 set dummy $ac_cv_prog_CC
2886 shift
2887 if test $# != 0; then
2888 # We chose a different compiler from the bogus one.
2889 # However, it has the same basename, so the bogon will be chosen
2890 # first if we set CC to just the basename; use the full file name.
2891 shift
2892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 echo "$as_me:$LINENO: result: $CC" >&5
2900 echo "${ECHO_T}$CC" >&6
2901 else
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939 echo "$as_me:$LINENO: result: $CC" >&5
2940 echo "${ECHO_T}$CC" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 test -n "$CC" && break
2947 done
2949 if test -z "$CC"; then
2950 ac_ct_CC=$CC
2951 for ac_prog in cl
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CC="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6
2983 else
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2988 test -n "$ac_ct_CC" && break
2989 done
2991 CC=$ac_ct_CC
2997 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: no acceptable C compiler found in \$PATH
3000 See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
3003 # Provide some information about the compiler.
3004 echo "$as_me:$LINENO:" \
3005 "checking for C compiler version" >&5
3006 ac_compiler=`set X $ac_compile; echo $2`
3007 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3008 (eval $ac_compiler --version </dev/null >&5) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }
3012 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3013 (eval $ac_compiler -v </dev/null >&5) 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3018 (eval $ac_compiler -V </dev/null >&5) 2>&5
3019 ac_status=$?
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3031 main ()
3035 return 0;
3037 _ACEOF
3038 ac_clean_files_save=$ac_clean_files
3039 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3040 # Try to create an executable without -o first, disregard a.out.
3041 # It will help us diagnose broken compilers, and finding out an intuition
3042 # of exeext.
3043 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3044 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3045 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3047 (eval $ac_link_default) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 # Find the output, starting from the most likely. This scheme is
3052 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3053 # resort.
3055 # Be careful to initialize this variable, since it used to be cached.
3056 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3057 ac_cv_exeext=
3058 # b.out is created by i960 compilers.
3059 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3061 test -f "$ac_file" || continue
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3065 conftest.$ac_ext )
3066 # This is the source file.
3068 [ab].out )
3069 # We found the default executable, but exeext='' is most
3070 # certainly right.
3071 break;;
3072 *.* )
3073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 # FIXME: I believe we export ac_cv_exeext for Libtool,
3075 # but it would be cool to find out if it's true. Does anybody
3076 # maintain Libtool? --akim.
3077 export ac_cv_exeext
3078 break;;
3080 break;;
3081 esac
3082 done
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091 { (exit 77); exit 77; }; }
3094 ac_exeext=$ac_cv_exeext
3095 echo "$as_me:$LINENO: result: $ac_file" >&5
3096 echo "${ECHO_T}$ac_file" >&6
3098 # Check the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3101 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105 if { ac_try='./$ac_file'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 cross_compiling=no
3112 else
3113 if test "$cross_compiling" = maybe; then
3114 cross_compiling=yes
3115 else
3116 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: cannot run C compiled programs.
3120 If you meant to cross compile, use \`--host'.
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6
3129 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3130 ac_clean_files=$ac_clean_files_save
3131 # Check the compiler produces executables we can run. If not, either
3132 # the compiler is broken, or we cross compile.
3133 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3134 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3135 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3136 echo "${ECHO_T}$cross_compiling" >&6
3138 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3139 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>&5
3142 ac_status=$?
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with
3148 # `rm'.
3149 for ac_file in conftest.exe conftest conftest.*; do
3150 test -f "$ac_file" || continue
3151 case $ac_file in
3152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3153 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 export ac_cv_exeext
3155 break;;
3156 * ) break;;
3157 esac
3158 done
3159 else
3160 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3167 rm -f conftest$ac_cv_exeext
3168 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3169 echo "${ECHO_T}$ac_cv_exeext" >&6
3171 rm -f conftest.$ac_ext
3172 EXEEXT=$ac_cv_exeext
3173 ac_exeext=$EXEEXT
3174 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3175 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3176 if test "${ac_cv_objext+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3187 main ()
3191 return 0;
3193 _ACEOF
3194 rm -f conftest.o conftest.obj
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; then
3200 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204 break;;
3205 esac
3206 done
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3218 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3220 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3221 echo "${ECHO_T}$ac_cv_objext" >&6
3222 OBJEXT=$ac_cv_objext
3223 ac_objext=$OBJEXT
3224 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 cat >conftest.$ac_ext <<_ACEOF
3230 /* confdefs.h. */
3231 _ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3237 main ()
3239 #ifndef __GNUC__
3240 choke me
3241 #endif
3244 return 0;
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>conftest.er1
3250 ac_status=$?
3251 grep -v '^ *+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -z "$ac_c_werror_flag"
3257 || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3269 ac_compiler_gnu=yes
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 ac_compiler_gnu=no
3276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3282 GCC=`test $ac_compiler_gnu = yes && echo yes`
3283 ac_test_CFLAGS=${CFLAGS+set}
3284 ac_save_CFLAGS=$CFLAGS
3285 CFLAGS="-g"
3286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3288 if test "${ac_cv_prog_cc_g+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291 cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3299 main ()
3303 return 0;
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -z "$ac_c_werror_flag"
3316 || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3328 ac_cv_prog_cc_g=yes
3329 else
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 ac_cv_prog_cc_g=no
3335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3343 CFLAGS="-g -O2"
3344 else
3345 CFLAGS="-g"
3347 else
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
3350 else
3351 CFLAGS=
3354 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3355 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3356 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 ac_cv_prog_cc_stdc=no
3360 ac_save_CC=$CC
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #include <stdarg.h>
3368 #include <stdio.h>
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3375 char **p;
3376 int i;
3378 return p[i];
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3382 char *s;
3383 va_list v;
3384 va_start (v,p);
3385 s = g (p, va_arg (v,int));
3386 va_end (v);
3387 return s;
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std1 is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std1. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 int test (int i, double x);
3400 struct s1 {int (*f) (int a);};
3401 struct s2 {int (*f) (double a);};
3402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3403 int argc;
3404 char **argv;
3406 main ()
3408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 return 0;
3412 _ACEOF
3413 # Don't try gcc -ansi; that turns off useful extensions and
3414 # breaks some systems' header files.
3415 # AIX -qlanglvl=ansi
3416 # Ultrix and OSF/1 -std1
3417 # HP-UX 10.20 and later -Ae
3418 # HP-UX older versions -Aa -D_HPUX_SOURCE
3419 # SVR4 -Xc -D__EXTENSIONS__
3420 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC="$ac_save_CC $ac_arg"
3423 rm -f conftest.$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -z "$ac_c_werror_flag"
3433 || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3445 ac_cv_prog_cc_stdc=$ac_arg
3446 break
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3452 rm -f conftest.err conftest.$ac_objext
3453 done
3454 rm -f conftest.$ac_ext conftest.$ac_objext
3455 CC=$ac_save_CC
3459 case "x$ac_cv_prog_cc_stdc" in
3460 x|xno)
3461 echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6 ;;
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3466 CC="$CC $ac_cv_prog_cc_stdc" ;;
3467 esac
3469 # Some people use a C++ compiler to compile C. Since we use `exit',
3470 # in C++ we need to declare it. In case someone uses the same compiler
3471 # for both compiling C and C++ we need to have the C++ compiler decide
3472 # the declaration of exit, since it's the most demanding environment.
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #ifndef __cplusplus
3475 choke me
3476 #endif
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3500 for ac_declaration in \
3501 '' \
3502 'extern "C" void std::exit (int) throw (); using std::exit;' \
3503 'extern "C" void std::exit (int); using std::exit;' \
3504 'extern "C" void exit (int) throw ();' \
3505 'extern "C" void exit (int);' \
3506 'void exit (int);'
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 $ac_declaration
3515 #include <stdlib.h>
3517 main ()
3519 exit (42);
3521 return 0;
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>conftest.er1
3527 ac_status=$?
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 continue
3553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_declaration
3562 main ()
3564 exit (42);
3566 return 0;
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3591 break
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3598 done
3599 rm -f conftest*
3600 if test -n "$ac_declaration"; then
3601 echo '#ifdef __cplusplus' >>confdefs.h
3602 echo $ac_declaration >>confdefs.h
3603 echo '#endif' >>confdefs.h
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 # On Suns, sometimes $CPP names a directory.
3620 if test -n "$CPP" && test -d "$CPP"; then
3621 CPP=
3624 #### Some systems specify a CPP to use unless we are using GCC.
3625 #### Now that we know whether we are using GCC, we can decide whether
3626 #### to use that one.
3627 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3628 then
3629 CPP="$NON_GNU_CPP"
3632 #### Some systems specify a CC to use unless we are using GCC.
3633 #### Now that we know whether we are using GCC, we can decide whether
3634 #### to use that one.
3635 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3636 test x$cc_specified != xyes
3637 then
3638 CC="$NON_GNU_CC"
3641 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3642 then
3643 CC="$CC $GCC_TEST_OPTIONS"
3646 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3647 then
3648 CC="$CC $NON_GCC_TEST_OPTIONS"
3651 #### Some other nice autoconf tests.
3653 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3654 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3655 LN_S=$as_ln_s
3656 if test "$LN_S" = "ln -s"; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6
3659 else
3660 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3661 echo "${ECHO_T}no, using $LN_S" >&6
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3670 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3673 CPP=
3675 if test -z "$CPP"; then
3676 if test "${ac_cv_prog_CPP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 # Double quotes because CPP needs to be expanded
3680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682 ac_preproc_ok=false
3683 for ac_c_preproc_warn_flag in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #ifdef __STDC__
3698 # include <limits.h>
3699 #else
3700 # include <assert.h>
3701 #endif
3702 Syntax error
3703 _ACEOF
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null; then
3712 if test -s conftest.err; then
3713 ac_cpp_err=$ac_c_preproc_warn_flag
3714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3715 else
3716 ac_cpp_err=
3718 else
3719 ac_cpp_err=yes
3721 if test -z "$ac_cpp_err"; then
3723 else
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 # Broken: fails on valid input.
3728 continue
3730 rm -f conftest.err conftest.$ac_ext
3732 # OK, works on sane cases. Now check whether non-existent headers
3733 # can be detected and how.
3734 cat >conftest.$ac_ext <<_ACEOF
3735 /* confdefs.h. */
3736 _ACEOF
3737 cat confdefs.h >>conftest.$ac_ext
3738 cat >>conftest.$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #include <ac_nonexistent.h>
3741 _ACEOF
3742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3744 ac_status=$?
3745 grep -v '^ *+' conftest.er1 >conftest.err
3746 rm -f conftest.er1
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } >/dev/null; then
3750 if test -s conftest.err; then
3751 ac_cpp_err=$ac_c_preproc_warn_flag
3752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3753 else
3754 ac_cpp_err=
3756 else
3757 ac_cpp_err=yes
3759 if test -z "$ac_cpp_err"; then
3760 # Broken: success on invalid input.
3761 continue
3762 else
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 # Passes both tests.
3767 ac_preproc_ok=:
3768 break
3770 rm -f conftest.err conftest.$ac_ext
3772 done
3773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774 rm -f conftest.err conftest.$ac_ext
3775 if $ac_preproc_ok; then
3776 break
3779 done
3780 ac_cv_prog_CPP=$CPP
3783 CPP=$ac_cv_prog_CPP
3784 else
3785 ac_cv_prog_CPP=$CPP
3787 echo "$as_me:$LINENO: result: $CPP" >&5
3788 echo "${ECHO_T}$CPP" >&6
3789 ac_preproc_ok=false
3790 for ac_c_preproc_warn_flag in '' yes
3792 # Use a header file that comes with gcc, so configuring glibc
3793 # with a fresh cross-compiler works.
3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 # <limits.h> exists even on freestanding compilers.
3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3797 # not just through cpp. "Syntax error" is here to catch this case.
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h. */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 #ifdef __STDC__
3805 # include <limits.h>
3806 #else
3807 # include <assert.h>
3808 #endif
3809 Syntax error
3810 _ACEOF
3811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null; then
3819 if test -s conftest.err; then
3820 ac_cpp_err=$ac_c_preproc_warn_flag
3821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3822 else
3823 ac_cpp_err=
3825 else
3826 ac_cpp_err=yes
3828 if test -z "$ac_cpp_err"; then
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 # Broken: fails on valid input.
3835 continue
3837 rm -f conftest.err conftest.$ac_ext
3839 # OK, works on sane cases. Now check whether non-existent headers
3840 # can be detected and how.
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <ac_nonexistent.h>
3848 _ACEOF
3849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev/null; then
3857 if test -s conftest.err; then
3858 ac_cpp_err=$ac_c_preproc_warn_flag
3859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3860 else
3861 ac_cpp_err=
3863 else
3864 ac_cpp_err=yes
3866 if test -z "$ac_cpp_err"; then
3867 # Broken: success on invalid input.
3868 continue
3869 else
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3873 # Passes both tests.
3874 ac_preproc_ok=:
3875 break
3877 rm -f conftest.err conftest.$ac_ext
3879 done
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok; then
3884 else
3885 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 # Find a good install program. We prefer a C program (faster),
3899 # so one script is as good as another. But avoid the broken or
3900 # incompatible versions:
3901 # SysV /etc/install, /usr/sbin/install
3902 # SunOS /usr/etc/install
3903 # IRIX /sbin/install
3904 # AIX /bin/install
3905 # AmigaOS /C/install, which installs bootblocks on floppy discs
3906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909 # OS/2's system install, which has a completely different semantic
3910 # ./install, which can be erroneously created by make from ./install.sh.
3911 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3912 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3913 if test -z "$INSTALL"; then
3914 if test "${ac_cv_path_install+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 # Account for people who put trailing slashes in PATH elements.
3923 case $as_dir/ in
3924 ./ | .// | /cC/* | \
3925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3926 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3927 /usr/ucb/* ) ;;
3929 # OSF1 and SCO ODT 3.0 have their own names for install.
3930 # Don't use installbsd from OSF since it installs stuff as root
3931 # by default.
3932 for ac_prog in ginstall scoinst install; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3935 if test $ac_prog = install &&
3936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3937 # AIX install. It has an incompatible calling convention.
3939 elif test $ac_prog = install &&
3940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941 # program-specific install script used by HP pwplus--don't use.
3943 else
3944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3945 break 3
3948 done
3949 done
3951 esac
3952 done
3956 if test "${ac_cv_path_install+set}" = set; then
3957 INSTALL=$ac_cv_path_install
3958 else
3959 # As a last resort, use the slow shell script. We don't cache a
3960 # path for INSTALL within a source directory, because that will
3961 # break other packages using the cache if that directory is
3962 # removed, or if the path is relative.
3963 INSTALL=$ac_install_sh
3966 echo "$as_me:$LINENO: result: $INSTALL" >&5
3967 echo "${ECHO_T}$INSTALL" >&6
3969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3970 # It thinks the first close brace ends the variable substitution.
3971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3977 if test "x$RANLIB" = x; then
3978 if test -n "$ac_tool_prefix"; then
3979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_RANLIB+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 if test -n "$RANLIB"; then
3987 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4005 RANLIB=$ac_cv_prog_RANLIB
4006 if test -n "$RANLIB"; then
4007 echo "$as_me:$LINENO: result: $RANLIB" >&5
4008 echo "${ECHO_T}$RANLIB" >&6
4009 else
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4015 if test -z "$ac_cv_prog_RANLIB"; then
4016 ac_ct_RANLIB=$RANLIB
4017 # Extract the first word of "ranlib", so it can be a program name with args.
4018 set dummy ranlib; ac_word=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 if test -n "$ac_ct_RANLIB"; then
4025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_ac_ct_RANLIB="ranlib"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4038 done
4039 done
4041 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4045 if test -n "$ac_ct_RANLIB"; then
4046 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4047 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4053 RANLIB=$ac_ct_RANLIB
4054 else
4055 RANLIB="$ac_cv_prog_RANLIB"
4059 # Extract the first word of "install-info", so it can be a program name with args.
4060 set dummy install-info; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 case $INSTALL_INFO in
4067 [\\/]* | ?:[\\/]*)
4068 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4082 done
4083 done
4086 esac
4088 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4090 if test -n "$INSTALL_INFO"; then
4091 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4092 echo "${ECHO_T}$INSTALL_INFO" >&6
4093 else
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4098 # Extract the first word of "install-info", so it can be a program name with args.
4099 set dummy install-info; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 case $INSTALL_INFO in
4106 [\\/]* | ?:[\\/]*)
4107 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in /usr/sbin
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4125 esac
4127 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4129 if test -n "$INSTALL_INFO"; then
4130 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4131 echo "${ECHO_T}$INSTALL_INFO" >&6
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4137 # Extract the first word of "install-info", so it can be a program name with args.
4138 set dummy install-info; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 case $INSTALL_INFO in
4145 [\\/]* | ?:[\\/]*)
4146 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in /sbin
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4160 done
4161 done
4163 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4165 esac
4167 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4179 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4180 then
4181 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4184 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4185 then
4186 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4191 echo "$as_me:$LINENO: checking for egrep" >&5
4192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4193 if test "${ac_cv_prog_egrep+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4197 then ac_cv_prog_egrep='grep -E'
4198 else ac_cv_prog_egrep='egrep'
4201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4203 EGREP=$ac_cv_prog_egrep
4207 echo "$as_me:$LINENO: checking for AIX" >&5
4208 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #ifdef _AIX
4217 #endif
4219 _ACEOF
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "yes" >/dev/null 2>&1; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 cat >>confdefs.h <<\_ACEOF
4225 #define _ALL_SOURCE 1
4226 _ACEOF
4228 else
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 rm -f conftest*
4236 #### Extract some information from the operating system and machine files.
4238 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4239 - which libraries the lib-src programs will want, and
4240 - whether the GNU malloc routines are usable..." >&5
4241 echo "$as_me: checking the machine- and system-dependent files to find out
4242 - which libraries the lib-src programs will want, and
4243 - whether the GNU malloc routines are usable..." >&6;}
4245 ### First figure out CFLAGS (which we use for running the compiler here)
4246 ### and REAL_CFLAGS (which we use for real compilation).
4247 ### The two are the same except on a few systems, where they are made
4248 ### different to work around various lossages. For example,
4249 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4250 ### as implying static linking.
4252 ### If the CFLAGS env var is specified, we use that value
4253 ### instead of the default.
4255 ### It's not important that this name contain the PID; you can't run
4256 ### two configures in the same directory and have anything work
4257 ### anyway.
4258 tempcname="conftest.c"
4260 echo '
4261 #include "'${srcdir}'/src/'${opsysfile}'"
4262 #include "'${srcdir}'/src/'${machfile}'"
4263 #ifndef LIBS_MACHINE
4264 #define LIBS_MACHINE
4265 #endif
4266 #ifndef LIBS_SYSTEM
4267 #define LIBS_SYSTEM
4268 #endif
4269 #ifndef C_SWITCH_SYSTEM
4270 #define C_SWITCH_SYSTEM
4271 #endif
4272 #ifndef C_SWITCH_MACHINE
4273 #define C_SWITCH_MACHINE
4274 #endif
4275 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4276 configure___ c_switch_system=C_SWITCH_SYSTEM
4277 configure___ c_switch_machine=C_SWITCH_MACHINE
4279 #ifndef LIB_X11_LIB
4280 #define LIB_X11_LIB -lX11
4281 #endif
4283 #ifndef LIBX11_MACHINE
4284 #define LIBX11_MACHINE
4285 #endif
4287 #ifndef LIBX11_SYSTEM
4288 #define LIBX11_SYSTEM
4289 #endif
4290 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4292 #ifdef UNEXEC
4293 configure___ unexec=UNEXEC
4294 #else
4295 configure___ unexec=unexec.o
4296 #endif
4298 #ifdef SYSTEM_MALLOC
4299 configure___ system_malloc=yes
4300 #else
4301 configure___ system_malloc=no
4302 #endif
4304 #ifdef USE_MMAP_FOR_BUFFERS
4305 configure___ use_mmap_for_buffers=yes
4306 #else
4307 configure___ use_mmap_for_buffers=no
4308 #endif
4310 #ifndef C_DEBUG_SWITCH
4311 #define C_DEBUG_SWITCH -g
4312 #endif
4314 #ifndef C_OPTIMIZE_SWITCH
4315 #ifdef __GNUC__
4316 #define C_OPTIMIZE_SWITCH -O2
4317 #else
4318 #define C_OPTIMIZE_SWITCH -O
4319 #endif
4320 #endif
4322 #ifndef LD_SWITCH_MACHINE
4323 #define LD_SWITCH_MACHINE
4324 #endif
4326 #ifndef LD_SWITCH_SYSTEM
4327 #define LD_SWITCH_SYSTEM
4328 #endif
4330 #ifndef LD_SWITCH_X_SITE_AUX
4331 #define LD_SWITCH_X_SITE_AUX
4332 #endif
4334 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4335 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4337 #ifdef THIS_IS_CONFIGURE
4339 /* Get the CFLAGS for tests in configure. */
4340 #ifdef __GNUC__
4341 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4342 #else
4343 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4344 #endif
4346 #else /* not THIS_IS_CONFIGURE */
4348 /* Get the CFLAGS for real compilation. */
4349 #ifdef __GNUC__
4350 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4351 #else
4352 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4353 #endif
4355 #endif /* not THIS_IS_CONFIGURE */
4356 ' > ${tempcname}
4358 # The value of CPP is a quoted variable reference, so we need to do this
4359 # to get its actual value...
4360 CPP=`eval "echo $CPP"`
4361 eval `${CPP} -Isrc ${tempcname} \
4362 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4363 if test "x$SPECIFIED_CFLAGS" = x; then
4364 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4365 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4366 else
4367 REAL_CFLAGS="$CFLAGS"
4369 rm ${tempcname}
4371 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4373 ### Make sure subsequent tests use flags consistent with the build flags.
4375 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4376 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4377 else
4378 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4384 cat >>confdefs.h <<\_ACEOF
4385 #define _GNU_SOURCE 1
4386 _ACEOF
4390 # Check whether --enable-largefile or --disable-largefile was given.
4391 if test "${enable_largefile+set}" = set; then
4392 enableval="$enable_largefile"
4395 if test "$enable_largefile" != no; then
4397 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4398 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4399 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402 ac_cv_sys_largefile_CC=no
4403 if test "$GCC" != yes; then
4404 ac_save_CC=$CC
4405 while :; do
4406 # IRIX 6.2 and later do not support large files by default,
4407 # so use the C compiler's -n32 option if that helps.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4422 ? 1 : -1];
4424 main ()
4428 return 0;
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?
4435 grep -v '^ *+' conftest.er1 >conftest.err
4436 rm -f conftest.er1
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 break
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4459 rm -f conftest.err conftest.$ac_objext
4460 CC="$CC -n32"
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_sys_largefile_CC=' -n32'; break
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4489 rm -f conftest.err conftest.$ac_objext
4490 break
4491 done
4492 CC=$ac_save_CC
4493 rm -f conftest.$ac_ext
4496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4497 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4498 if test "$ac_cv_sys_largefile_CC" != no; then
4499 CC=$CC$ac_cv_sys_largefile_CC
4502 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4503 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 while :; do
4508 ac_cv_sys_file_offset_bits=no
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <sys/types.h>
4516 /* Check that off_t can represent 2**63 - 1 correctly.
4517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4518 since some C++ compilers masquerading as C compilers
4519 incorrectly reject 9223372036854775807. */
4520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4522 && LARGE_OFF_T % 2147483647 == 1)
4523 ? 1 : -1];
4525 main ()
4529 return 0;
4531 _ACEOF
4532 rm -f conftest.$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 break
4555 else
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #define _FILE_OFFSET_BITS 64
4568 #include <sys/types.h>
4569 /* Check that off_t can represent 2**63 - 1 correctly.
4570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4571 since some C++ compilers masquerading as C compilers
4572 incorrectly reject 9223372036854775807. */
4573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4575 && LARGE_OFF_T % 2147483647 == 1)
4576 ? 1 : -1];
4578 main ()
4582 return 0;
4584 _ACEOF
4585 rm -f conftest.$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_sys_file_offset_bits=64; break
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4614 break
4615 done
4617 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4618 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4619 if test "$ac_cv_sys_file_offset_bits" != no; then
4621 cat >>confdefs.h <<_ACEOF
4622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4623 _ACEOF
4626 rm -f conftest*
4627 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4628 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4629 if test "${ac_cv_sys_large_files+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 while :; do
4633 ac_cv_sys_large_files=no
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4641 /* Check that off_t can represent 2**63 - 1 correctly.
4642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4643 since some C++ compilers masquerading as C compilers
4644 incorrectly reject 9223372036854775807. */
4645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4647 && LARGE_OFF_T % 2147483647 == 1)
4648 ? 1 : -1];
4650 main ()
4654 return 0;
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4660 ac_status=$?
4661 grep -v '^ *+' conftest.er1 >conftest.err
4662 rm -f conftest.er1
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 break
4680 else
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #define _LARGE_FILES 1
4693 #include <sys/types.h>
4694 /* Check that off_t can represent 2**63 - 1 correctly.
4695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4696 since some C++ compilers masquerading as C compilers
4697 incorrectly reject 9223372036854775807. */
4698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4700 && LARGE_OFF_T % 2147483647 == 1)
4701 ? 1 : -1];
4703 main ()
4707 return 0;
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_sys_large_files=1; break
4733 else
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739 break
4740 done
4742 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4743 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4744 if test "$ac_cv_sys_large_files" != no; then
4746 cat >>confdefs.h <<_ACEOF
4747 #define _LARGE_FILES $ac_cv_sys_large_files
4748 _ACEOF
4751 rm -f conftest*
4755 if test "${with_sound}" != "no"; then
4756 # Sound support for GNU/Linux and the free BSDs.
4757 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <stdlib.h>
4769 #include <stdarg.h>
4770 #include <string.h>
4771 #include <float.h>
4774 main ()
4778 return 0;
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_header_stdc=yes
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4808 ac_cv_header_stdc=no
4810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h. */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <string.h>
4822 _ACEOF
4823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "memchr" >/dev/null 2>&1; then
4826 else
4827 ac_cv_header_stdc=no
4829 rm -f conftest*
4833 if test $ac_cv_header_stdc = yes; then
4834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #include <stdlib.h>
4843 _ACEOF
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 $EGREP "free" >/dev/null 2>&1; then
4847 else
4848 ac_cv_header_stdc=no
4850 rm -f conftest*
4854 if test $ac_cv_header_stdc = yes; then
4855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4856 if test "$cross_compiling" = yes; then
4858 else
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 #include <ctype.h>
4866 #if ((' ' & 0x0FF) == 0x020)
4867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4869 #else
4870 # define ISLOWER(c) \
4871 (('a' <= (c) && (c) <= 'i') \
4872 || ('j' <= (c) && (c) <= 'r') \
4873 || ('s' <= (c) && (c) <= 'z'))
4874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4875 #endif
4877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4879 main ()
4881 int i;
4882 for (i = 0; i < 256; i++)
4883 if (XOR (islower (i), ISLOWER (i))
4884 || toupper (i) != TOUPPER (i))
4885 exit(2);
4886 exit (0);
4888 _ACEOF
4889 rm -f conftest$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4901 else
4902 echo "$as_me: program exited with status $ac_status" >&5
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4906 ( exit $ac_status )
4907 ac_cv_header_stdc=no
4909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4914 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4915 if test $ac_cv_header_stdc = yes; then
4917 cat >>confdefs.h <<\_ACEOF
4918 #define STDC_HEADERS 1
4919 _ACEOF
4923 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4933 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4934 inttypes.h stdint.h unistd.h
4936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 echo "$as_me:$LINENO: checking for $ac_header" >&5
4938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4950 #include <$ac_header>
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 eval "$as_ac_Header=yes"
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4979 eval "$as_ac_Header=no"
4981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4986 cat >>confdefs.h <<_ACEOF
4987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 _ACEOF
4992 done
4998 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5002 echo "$as_me:$LINENO: checking for $ac_header" >&5
5003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5009 else
5010 # Is the header compilable?
5011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5013 cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h. */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 #include <$ac_header>
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 (eval $ac_try) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_header_compiler=yes
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 ac_header_compiler=no
5051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5053 echo "${ECHO_T}$ac_header_compiler" >&6
5055 # Is the header present?
5056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <$ac_header>
5065 _ACEOF
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null; then
5074 if test -s conftest.err; then
5075 ac_cpp_err=$ac_c_preproc_warn_flag
5076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5077 else
5078 ac_cpp_err=
5080 else
5081 ac_cpp_err=yes
5083 if test -z "$ac_cpp_err"; then
5084 ac_header_preproc=yes
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 ac_header_preproc=no
5091 rm -f conftest.err conftest.$ac_ext
5092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5093 echo "${ECHO_T}$ac_header_preproc" >&6
5095 # So? What about this header?
5096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5097 yes:no: )
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5102 ac_header_preproc=yes
5104 no:yes:* )
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5118 cat <<\_ASBOX
5119 ## ------------------------------------------ ##
5120 ## Report this to the AC_PACKAGE_NAME lists. ##
5121 ## ------------------------------------------ ##
5122 _ASBOX
5124 sed "s/^/$as_me: WARNING: /" >&2
5126 esac
5127 echo "$as_me:$LINENO: checking for $ac_header" >&5
5128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 eval "$as_ac_Header=\$ac_header_preproc"
5134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139 cat >>confdefs.h <<_ACEOF
5140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141 _ACEOF
5145 done
5147 # Emulation library used on NetBSD.
5148 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5149 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5150 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 ac_check_lib_save_LIBS=$LIBS
5154 LIBS="-lossaudio $LIBS"
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h. */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5162 /* Override any gcc2 internal prototype to avoid an error. */
5163 #ifdef __cplusplus
5164 extern "C"
5165 #endif
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5168 char _oss_ioctl ();
5170 main ()
5172 _oss_ioctl ();
5174 return 0;
5176 _ACEOF
5177 rm -f conftest.$ac_objext conftest$ac_exeext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 (eval $ac_link) 2>conftest.er1
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 (eval $ac_try) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try='test -s conftest$ac_exeext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_lib_ossaudio__oss_ioctl=yes
5200 else
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 ac_cv_lib_ossaudio__oss_ioctl=no
5206 rm -f conftest.err conftest.$ac_objext \
5207 conftest$ac_exeext conftest.$ac_ext
5208 LIBS=$ac_check_lib_save_LIBS
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5211 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5212 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5213 LIBSOUND=-lossaudio
5214 else
5215 LIBSOUND=
5244 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5245 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5246 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5247 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h
5249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5251 echo "$as_me:$LINENO: checking for $ac_header" >&5
5252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5258 else
5259 # Is the header compilable?
5260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 #include <$ac_header>
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>conftest.er1
5274 ac_status=$?
5275 grep -v '^ *+' conftest.er1 >conftest.err
5276 rm -f conftest.er1
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 (eval $ac_try) 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_header_compiler=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 ac_header_compiler=no
5300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5302 echo "${ECHO_T}$ac_header_compiler" >&6
5304 # Is the header present?
5305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h. */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <$ac_header>
5314 _ACEOF
5315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } >/dev/null; then
5323 if test -s conftest.err; then
5324 ac_cpp_err=$ac_c_preproc_warn_flag
5325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5326 else
5327 ac_cpp_err=
5329 else
5330 ac_cpp_err=yes
5332 if test -z "$ac_cpp_err"; then
5333 ac_header_preproc=yes
5334 else
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5338 ac_header_preproc=no
5340 rm -f conftest.err conftest.$ac_ext
5341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5342 echo "${ECHO_T}$ac_header_preproc" >&6
5344 # So? What about this header?
5345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5346 yes:no: )
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5351 ac_header_preproc=yes
5353 no:yes:* )
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5367 cat <<\_ASBOX
5368 ## ------------------------------------------ ##
5369 ## Report this to the AC_PACKAGE_NAME lists. ##
5370 ## ------------------------------------------ ##
5371 _ASBOX
5373 sed "s/^/$as_me: WARNING: /" >&2
5375 esac
5376 echo "$as_me:$LINENO: checking for $ac_header" >&5
5377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 eval "$as_ac_Header=\$ac_header_preproc"
5383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5390 _ACEOF
5394 done
5397 for ac_header in term.h
5399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400 echo "$as_me:$LINENO: checking for $ac_header" >&5
5401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5412 _ACEOF
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5427 else
5428 ac_cpp_err=yes
5430 if test -z "$ac_cpp_err"; then
5431 eval "$as_ac_Header=yes"
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5436 eval "$as_ac_Header=no"
5438 rm -f conftest.err conftest.$ac_ext
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443 cat >>confdefs.h <<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5445 _ACEOF
5449 done
5451 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5453 if test "${ac_cv_header_stdc+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <stdlib.h>
5463 #include <stdarg.h>
5464 #include <string.h>
5465 #include <float.h>
5468 main ()
5472 return 0;
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try='test -z "$ac_c_werror_flag"
5485 || test ! -s conftest.err'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; } &&
5491 { ac_try='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_header_stdc=yes
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5502 ac_cv_header_stdc=no
5504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5506 if test $ac_cv_header_stdc = yes; then
5507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 #include <string.h>
5516 _ACEOF
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev/null 2>&1; then
5520 else
5521 ac_cv_header_stdc=no
5523 rm -f conftest*
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 #include <stdlib.h>
5537 _ACEOF
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev/null 2>&1; then
5541 else
5542 ac_cv_header_stdc=no
5544 rm -f conftest*
5548 if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then
5552 else
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 #include <ctype.h>
5560 #if ((' ' & 0x0FF) == 0x020)
5561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5563 #else
5564 # define ISLOWER(c) \
5565 (('a' <= (c) && (c) <= 'i') \
5566 || ('j' <= (c) && (c) <= 'r') \
5567 || ('s' <= (c) && (c) <= 'z'))
5568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5569 #endif
5571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5573 main ()
5575 int i;
5576 for (i = 0; i < 256; i++)
5577 if (XOR (islower (i), ISLOWER (i))
5578 || toupper (i) != TOUPPER (i))
5579 exit(2);
5580 exit (0);
5582 _ACEOF
5583 rm -f conftest$ac_exeext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 (eval $ac_try) 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5595 else
5596 echo "$as_me: program exited with status $ac_status" >&5
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 ( exit $ac_status )
5601 ac_cv_header_stdc=no
5603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5608 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5609 if test $ac_cv_header_stdc = yes; then
5611 cat >>confdefs.h <<\_ACEOF
5612 #define STDC_HEADERS 1
5613 _ACEOF
5617 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5618 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5619 if test "${ac_cv_header_time+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622 cat >conftest.$ac_ext <<_ACEOF
5623 /* confdefs.h. */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 #include <sys/time.h>
5630 #include <time.h>
5633 main ()
5635 if ((struct tm *) 0)
5636 return 0;
5638 return 0;
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5644 ac_status=$?
5645 grep -v '^ *+' conftest.er1 >conftest.err
5646 rm -f conftest.er1
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_header_time=yes
5664 else
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 ac_cv_header_time=no
5670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5673 echo "${ECHO_T}$ac_cv_header_time" >&6
5674 if test $ac_cv_header_time = yes; then
5676 cat >>confdefs.h <<\_ACEOF
5677 #define TIME_WITH_SYS_TIME 1
5678 _ACEOF
5682 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5683 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5684 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5695 main ()
5697 #ifndef sys_siglist
5698 char *p = (char *) sys_siglist;
5699 #endif
5702 return 0;
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_have_decl_sys_siglist=yes
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_cv_have_decl_sys_siglist=no
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5737 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5738 if test $ac_cv_have_decl_sys_siglist = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define HAVE_DECL_SYS_SIGLIST 1
5742 _ACEOF
5745 else
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_DECL_SYS_SIGLIST 0
5748 _ACEOF
5754 if test $ac_cv_have_decl_sys_siglist != yes; then
5755 # For Tru64, at least:
5756 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5757 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5758 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h. */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5769 main ()
5771 #ifndef __sys_siglist
5772 char *p = (char *) __sys_siglist;
5773 #endif
5776 return 0;
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5782 ac_status=$?
5783 grep -v '^ *+' conftest.er1 >conftest.err
5784 rm -f conftest.er1
5785 cat conftest.err >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_have_decl___sys_siglist=yes
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 ac_cv_have_decl___sys_siglist=no
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5810 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5811 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5812 if test $ac_cv_have_decl___sys_siglist = yes; then
5814 cat >>confdefs.h <<_ACEOF
5815 #define HAVE_DECL___SYS_SIGLIST 1
5816 _ACEOF
5819 else
5820 cat >>confdefs.h <<_ACEOF
5821 #define HAVE_DECL___SYS_SIGLIST 0
5822 _ACEOF
5828 if test $ac_cv_have_decl___sys_siglist = yes; then
5830 cat >>confdefs.h <<\_ACEOF
5831 #define sys_siglist __sys_siglist
5832 _ACEOF
5836 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5837 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5838 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841 cat >conftest.$ac_ext <<_ACEOF
5842 /* confdefs.h. */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <sys/types.h>
5848 #include <sys/wait.h>
5849 #ifndef WEXITSTATUS
5850 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5851 #endif
5852 #ifndef WIFEXITED
5853 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5854 #endif
5857 main ()
5859 int s;
5860 wait (&s);
5861 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5863 return 0;
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_header_sys_wait_h=yes
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_cv_header_sys_wait_h=no
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5899 if test $ac_cv_header_sys_wait_h = yes; then
5901 cat >>confdefs.h <<\_ACEOF
5902 #define HAVE_SYS_WAIT_H 1
5903 _ACEOF
5908 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5909 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5910 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h. */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #ifdef TIME_WITH_SYS_TIME
5920 #include <sys/time.h>
5921 #include <time.h>
5922 #else
5923 #ifdef HAVE_SYS_TIME_H
5924 #include <sys/time.h>
5925 #else
5926 #include <time.h>
5927 #endif
5928 #endif
5929 #ifdef HAVE_UTIME_H
5930 #include <utime.h>
5931 #endif
5933 main ()
5935 static struct utimbuf x; x.actime = x.modtime;
5937 return 0;
5939 _ACEOF
5940 rm -f conftest.$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 emacs_cv_struct_utimbuf=yes
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 emacs_cv_struct_utimbuf=no
5969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5971 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5972 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5973 if test $emacs_cv_struct_utimbuf = yes; then
5975 cat >>confdefs.h <<\_ACEOF
5976 #define HAVE_STRUCT_UTIMBUF 1
5977 _ACEOF
5981 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5982 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5983 if test "${ac_cv_type_signal+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5993 #include <signal.h>
5994 #ifdef signal
5995 # undef signal
5996 #endif
5997 #ifdef __cplusplus
5998 extern "C" void (*signal (int, void (*)(int)))(int);
5999 #else
6000 void (*signal ()) ();
6001 #endif
6004 main ()
6006 int i;
6008 return 0;
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_type_signal=void
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_type_signal=int
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6043 echo "${ECHO_T}$ac_cv_type_signal" >&6
6045 cat >>confdefs.h <<_ACEOF
6046 #define RETSIGTYPE $ac_cv_type_signal
6047 _ACEOF
6051 echo "$as_me:$LINENO: checking for speed_t" >&5
6052 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6053 if test "${emacs_cv_speed_t+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <termios.h>
6064 main ()
6066 speed_t x = 1;
6068 return 0;
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
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); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 (eval $ac_try) 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 emacs_cv_speed_t=yes
6094 else
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 emacs_cv_speed_t=no
6100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6102 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6103 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6104 if test $emacs_cv_speed_t = yes; then
6106 cat >>confdefs.h <<\_ACEOF
6107 #define HAVE_SPEED_T 1
6108 _ACEOF
6112 echo "$as_me:$LINENO: checking for struct timeval" >&5
6113 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6114 if test "${emacs_cv_struct_timeval+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117 cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h. */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #ifdef TIME_WITH_SYS_TIME
6124 #include <sys/time.h>
6125 #include <time.h>
6126 #else
6127 #ifdef HAVE_SYS_TIME_H
6128 #include <sys/time.h>
6129 #else
6130 #include <time.h>
6131 #endif
6132 #endif
6134 main ()
6136 static struct timeval x; x.tv_sec = x.tv_usec;
6138 return 0;
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 emacs_cv_struct_timeval=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 emacs_cv_struct_timeval=no
6170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6173 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6174 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6175 if test $emacs_cv_struct_timeval = yes; then
6177 cat >>confdefs.h <<\_ACEOF
6178 #define HAVE_TIMEVAL 1
6179 _ACEOF
6183 echo "$as_me:$LINENO: checking for struct exception" >&5
6184 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6185 if test "${emacs_cv_struct_exception+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <math.h>
6196 main ()
6198 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6200 return 0;
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6206 ac_status=$?
6207 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -f conftest.er1
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 (eval $ac_try) 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6221 (eval $ac_try) 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 emacs_cv_struct_exception=yes
6226 else
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 emacs_cv_struct_exception=no
6232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6235 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6236 HAVE_EXCEPTION=$emacs_cv_struct_exception
6237 if test $emacs_cv_struct_exception != yes; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define NO_MATHERR 1
6241 _ACEOF
6246 for ac_header in sys/socket.h
6248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
6251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6257 else
6258 # Is the header compilable?
6259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6268 #include <$ac_header>
6269 _ACEOF
6270 rm -f conftest.$ac_objext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272 (eval $ac_compile) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag"
6280 || test ! -s conftest.err'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; } &&
6286 { ac_try='test -s conftest.$ac_objext'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; }; then
6292 ac_header_compiler=yes
6293 else
6294 echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6297 ac_header_compiler=no
6299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301 echo "${ECHO_T}$ac_header_compiler" >&6
6303 # Is the header present?
6304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <$ac_header>
6313 _ACEOF
6314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } >/dev/null; then
6322 if test -s conftest.err; then
6323 ac_cpp_err=$ac_c_preproc_warn_flag
6324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6325 else
6326 ac_cpp_err=
6328 else
6329 ac_cpp_err=yes
6331 if test -z "$ac_cpp_err"; then
6332 ac_header_preproc=yes
6333 else
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.$ac_ext >&5
6337 ac_header_preproc=no
6339 rm -f conftest.err conftest.$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341 echo "${ECHO_T}$ac_header_preproc" >&6
6343 # So? What about this header?
6344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345 yes:no: )
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 ac_header_preproc=yes
6352 no:yes:* )
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6366 cat <<\_ASBOX
6367 ## ------------------------------------------ ##
6368 ## Report this to the AC_PACKAGE_NAME lists. ##
6369 ## ------------------------------------------ ##
6370 _ASBOX
6372 sed "s/^/$as_me: WARNING: /" >&2
6374 esac
6375 echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h <<_ACEOF
6388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389 _ACEOF
6393 done
6396 for ac_header in net/if.h
6398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 echo "$as_me:$LINENO: checking for $ac_header" >&5
6400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 $ac_includes_default
6411 #if HAVE_SYS_SOCKET_H
6412 #include <sys/socket.h>
6413 #endif
6415 #include <$ac_header>
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 eval "$as_ac_Header=yes"
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 eval "$as_ac_Header=no"
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h <<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453 _ACEOF
6457 done
6460 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6461 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6462 if test "${ac_cv_struct_tm+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <sys/types.h>
6472 #include <time.h>
6475 main ()
6477 struct tm *tp; tp->tm_sec;
6479 return 0;
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484 (eval $ac_compile) 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } &&
6491 { ac_try='test -z "$ac_c_werror_flag"
6492 || test ! -s conftest.err'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; } &&
6498 { ac_try='test -s conftest.$ac_objext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_struct_tm=time.h
6505 else
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_cv_struct_tm=sys/time.h
6511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6514 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6515 if test $ac_cv_struct_tm = sys/time.h; then
6517 cat >>confdefs.h <<\_ACEOF
6518 #define TM_IN_SYS_TIME 1
6519 _ACEOF
6523 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6524 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6525 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 #include <sys/types.h>
6535 #include <$ac_cv_struct_tm>
6539 main ()
6541 static struct tm ac_aggr;
6542 if (ac_aggr.tm_zone)
6543 return 0;
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>conftest.er1
6551 ac_status=$?
6552 grep -v '^ *+' conftest.er1 >conftest.err
6553 rm -f conftest.er1
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_c_werror_flag"
6558 || test ! -s conftest.err'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; } &&
6564 { ac_try='test -s conftest.$ac_objext'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; }; then
6570 ac_cv_member_struct_tm_tm_zone=yes
6571 else
6572 echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h. */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 #include <sys/types.h>
6582 #include <$ac_cv_struct_tm>
6586 main ()
6588 static struct tm ac_aggr;
6589 if (sizeof ac_aggr.tm_zone)
6590 return 0;
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6597 (eval $ac_compile) 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_c_werror_flag"
6605 || test ! -s conftest.err'
6606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; } &&
6611 { ac_try='test -s conftest.$ac_objext'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; }; then
6617 ac_cv_member_struct_tm_tm_zone=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_cv_member_struct_tm_tm_zone=no
6624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6628 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6629 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6630 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6632 cat >>confdefs.h <<_ACEOF
6633 #define HAVE_STRUCT_TM_TM_ZONE 1
6634 _ACEOF
6639 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_TM_ZONE 1
6643 _ACEOF
6645 else
6646 echo "$as_me:$LINENO: checking for tzname" >&5
6647 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6648 if test "${ac_cv_var_tzname+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <time.h>
6658 #ifndef tzname /* For SGI. */
6659 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6660 #endif
6663 main ()
6665 atoi(*tzname);
6667 return 0;
6669 _ACEOF
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>conftest.er1
6673 ac_status=$?
6674 grep -v '^ *+' conftest.er1 >conftest.err
6675 rm -f conftest.er1
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag"
6680 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } &&
6686 { ac_try='test -s conftest$ac_exeext'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; }; then
6692 ac_cv_var_tzname=yes
6693 else
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6697 ac_cv_var_tzname=no
6699 rm -f conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6703 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6704 if test $ac_cv_var_tzname = yes; then
6706 cat >>confdefs.h <<\_ACEOF
6707 #define HAVE_TZNAME 1
6708 _ACEOF
6713 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6714 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6715 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h. */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <time.h>
6727 main ()
6729 static struct tm ac_aggr;
6730 if (ac_aggr.tm_gmtoff)
6731 return 0;
6733 return 0;
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_c_werror_flag"
6746 || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_cv_member_struct_tm_tm_gmtoff=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <time.h>
6772 main ()
6774 static struct tm ac_aggr;
6775 if (sizeof ac_aggr.tm_gmtoff)
6776 return 0;
6778 return 0;
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783 (eval $ac_compile) 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try='test -z "$ac_c_werror_flag"
6791 || test ! -s conftest.err'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; } &&
6797 { ac_try='test -s conftest.$ac_objext'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; }; then
6803 ac_cv_member_struct_tm_tm_gmtoff=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_member_struct_tm_tm_gmtoff=no
6810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6815 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6816 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_TM_GMTOFF 1
6820 _ACEOF
6824 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6825 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6826 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 $ac_includes_default
6836 #if HAVE_SYS_SOCKET_H
6837 #include <sys/socket.h>
6838 #endif
6839 #if HAVE_NET_IF_H
6840 #include <net/if.h>
6841 #endif
6844 main ()
6846 static struct ifreq ac_aggr;
6847 if (ac_aggr.ifr_flags)
6848 return 0;
6850 return 0;
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>conftest.er1
6856 ac_status=$?
6857 grep -v '^ *+' conftest.er1 >conftest.err
6858 rm -f conftest.er1
6859 cat conftest.err >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } &&
6862 { ac_try='test -z "$ac_c_werror_flag"
6863 || test ! -s conftest.err'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; } &&
6869 { ac_try='test -s conftest.$ac_objext'
6870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 (eval $ac_try) 2>&5
6872 ac_status=$?
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); }; }; then
6875 ac_cv_member_struct_ifreq_ifr_flags=yes
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 $ac_includes_default
6887 #if HAVE_SYS_SOCKET_H
6888 #include <sys/socket.h>
6889 #endif
6890 #if HAVE_NET_IF_H
6891 #include <net/if.h>
6892 #endif
6895 main ()
6897 static struct ifreq ac_aggr;
6898 if (sizeof ac_aggr.ifr_flags)
6899 return 0;
6901 return 0;
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_member_struct_ifreq_ifr_flags=yes
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 ac_cv_member_struct_ifreq_ifr_flags=no
6933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6938 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6939 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6941 cat >>confdefs.h <<_ACEOF
6942 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6943 _ACEOF
6947 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6948 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6949 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6959 #if HAVE_SYS_SOCKET_H
6960 #include <sys/socket.h>
6961 #endif
6962 #if HAVE_NET_IF_H
6963 #include <net/if.h>
6964 #endif
6967 main ()
6969 static struct ifreq ac_aggr;
6970 if (ac_aggr.ifr_hwaddr)
6971 return 0;
6973 return 0;
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -z "$ac_c_werror_flag"
6986 || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7010 #if HAVE_SYS_SOCKET_H
7011 #include <sys/socket.h>
7012 #endif
7013 #if HAVE_NET_IF_H
7014 #include <net/if.h>
7015 #endif
7018 main ()
7020 static struct ifreq ac_aggr;
7021 if (sizeof ac_aggr.ifr_hwaddr)
7022 return 0;
7024 return 0;
7026 _ACEOF
7027 rm -f conftest.$ac_objext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7029 (eval $ac_compile) 2>conftest.er1
7030 ac_status=$?
7031 grep -v '^ *+' conftest.er1 >conftest.err
7032 rm -f conftest.er1
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -z "$ac_c_werror_flag"
7037 || test ! -s conftest.err'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; } &&
7043 { ac_try='test -s conftest.$ac_objext'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
7049 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7050 else
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7060 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7061 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7062 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7064 cat >>confdefs.h <<_ACEOF
7065 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7066 _ACEOF
7070 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7071 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7072 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h. */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7081 $ac_includes_default
7082 #if HAVE_SYS_SOCKET_H
7083 #include <sys/socket.h>
7084 #endif
7085 #if HAVE_NET_IF_H
7086 #include <net/if.h>
7087 #endif
7090 main ()
7092 static struct ifreq ac_aggr;
7093 if (ac_aggr.ifr_netmask)
7094 return 0;
7096 return 0;
7098 _ACEOF
7099 rm -f conftest.$ac_objext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>conftest.er1
7102 ac_status=$?
7103 grep -v '^ *+' conftest.er1 >conftest.err
7104 rm -f conftest.er1
7105 cat conftest.err >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -z "$ac_c_werror_flag"
7109 || test ! -s conftest.err'
7110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 (eval $ac_try) 2>&5
7112 ac_status=$?
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); }; } &&
7115 { ac_try='test -s conftest.$ac_objext'
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7121 ac_cv_member_struct_ifreq_ifr_netmask=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 $ac_includes_default
7133 #if HAVE_SYS_SOCKET_H
7134 #include <sys/socket.h>
7135 #endif
7136 #if HAVE_NET_IF_H
7137 #include <net/if.h>
7138 #endif
7141 main ()
7143 static struct ifreq ac_aggr;
7144 if (sizeof ac_aggr.ifr_netmask)
7145 return 0;
7147 return 0;
7149 _ACEOF
7150 rm -f conftest.$ac_objext
7151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7152 (eval $ac_compile) 2>conftest.er1
7153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } &&
7159 { ac_try='test -z "$ac_c_werror_flag"
7160 || test ! -s conftest.err'
7161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162 (eval $ac_try) 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; } &&
7166 { ac_try='test -s conftest.$ac_objext'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 ac_cv_member_struct_ifreq_ifr_netmask=yes
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ac_cv_member_struct_ifreq_ifr_netmask=no
7179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7184 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7185 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7187 cat >>confdefs.h <<_ACEOF
7188 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7189 _ACEOF
7193 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7194 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7195 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 $ac_includes_default
7205 #if HAVE_SYS_SOCKET_H
7206 #include <sys/socket.h>
7207 #endif
7208 #if HAVE_NET_IF_H
7209 #include <net/if.h>
7210 #endif
7213 main ()
7215 static struct ifreq ac_aggr;
7216 if (ac_aggr.ifr_broadaddr)
7217 return 0;
7219 return 0;
7221 _ACEOF
7222 rm -f conftest.$ac_objext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7224 (eval $ac_compile) 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try='test -z "$ac_c_werror_flag"
7232 || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try='test -s conftest.$ac_objext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7256 #if HAVE_SYS_SOCKET_H
7257 #include <sys/socket.h>
7258 #endif
7259 #if HAVE_NET_IF_H
7260 #include <net/if.h>
7261 #endif
7264 main ()
7266 static struct ifreq ac_aggr;
7267 if (sizeof ac_aggr.ifr_broadaddr)
7268 return 0;
7270 return 0;
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7296 else
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7306 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7307 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7308 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7310 cat >>confdefs.h <<_ACEOF
7311 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7312 _ACEOF
7316 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7317 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7318 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 $ac_includes_default
7328 #if HAVE_SYS_SOCKET_H
7329 #include <sys/socket.h>
7330 #endif
7331 #if HAVE_NET_IF_H
7332 #include <net/if.h>
7333 #endif
7336 main ()
7338 static struct ifreq ac_aggr;
7339 if (ac_aggr.ifr_addr)
7340 return 0;
7342 return 0;
7344 _ACEOF
7345 rm -f conftest.$ac_objext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7347 (eval $ac_compile) 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -z "$ac_c_werror_flag"
7355 || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_cv_member_struct_ifreq_ifr_addr=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #if HAVE_SYS_SOCKET_H
7380 #include <sys/socket.h>
7381 #endif
7382 #if HAVE_NET_IF_H
7383 #include <net/if.h>
7384 #endif
7387 main ()
7389 static struct ifreq ac_aggr;
7390 if (sizeof ac_aggr.ifr_addr)
7391 return 0;
7393 return 0;
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7398 (eval $ac_compile) 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } &&
7405 { ac_try='test -z "$ac_c_werror_flag"
7406 || test ! -s conftest.err'
7407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 (eval $ac_try) 2>&5
7409 ac_status=$?
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); }; } &&
7412 { ac_try='test -s conftest.$ac_objext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 (eval $ac_try) 2>&5
7415 ac_status=$?
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 ac_cv_member_struct_ifreq_ifr_addr=yes
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ac_cv_member_struct_ifreq_ifr_addr=no
7425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7429 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7430 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7431 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7433 cat >>confdefs.h <<_ACEOF
7434 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7435 _ACEOF
7442 echo "$as_me:$LINENO: checking for function prototypes" >&5
7443 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7444 if test "$ac_cv_prog_cc_stdc" != no; then
7445 echo "$as_me:$LINENO: result: yes" >&5
7446 echo "${ECHO_T}yes" >&6
7448 cat >>confdefs.h <<\_ACEOF
7449 #define PROTOTYPES 1
7450 _ACEOF
7453 cat >>confdefs.h <<\_ACEOF
7454 #define __PROTOTYPES 1
7455 _ACEOF
7457 else
7458 echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7462 echo "$as_me:$LINENO: checking for working volatile" >&5
7463 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7464 if test "${ac_cv_c_volatile+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 else
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7475 main ()
7478 volatile int x;
7479 int * volatile y;
7481 return 0;
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7486 (eval $ac_compile) 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } &&
7493 { ac_try='test -z "$ac_c_werror_flag"
7494 || test ! -s conftest.err'
7495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7496 (eval $ac_try) 2>&5
7497 ac_status=$?
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); }; } &&
7500 { ac_try='test -s conftest.$ac_objext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 ac_cv_c_volatile=yes
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 ac_cv_c_volatile=no
7513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7515 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7516 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7517 if test $ac_cv_c_volatile = no; then
7519 cat >>confdefs.h <<\_ACEOF
7520 #define volatile
7521 _ACEOF
7525 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7526 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7527 if test "${ac_cv_c_const+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h. */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7538 main ()
7540 /* FIXME: Include the comments suggested by Paul. */
7541 #ifndef __cplusplus
7542 /* Ultrix mips cc rejects this. */
7543 typedef int charset[2];
7544 const charset x;
7545 /* SunOS 4.1.1 cc rejects this. */
7546 char const *const *ccp;
7547 char **p;
7548 /* NEC SVR4.0.2 mips cc rejects this. */
7549 struct point {int x, y;};
7550 static struct point const zero = {0,0};
7551 /* AIX XL C 1.02.0.0 rejects this.
7552 It does not let you subtract one const X* pointer from another in
7553 an arm of an if-expression whose if-part is not a constant
7554 expression */
7555 const char *g = "string";
7556 ccp = &g + (g ? g-g : 0);
7557 /* HPUX 7.0 cc rejects these. */
7558 ++ccp;
7559 p = (char**) ccp;
7560 ccp = (char const *const *) p;
7561 { /* SCO 3.2v4 cc rejects this. */
7562 char *t;
7563 char const *s = 0 ? (char *) 0 : (char const *) 0;
7565 *t++ = 0;
7567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7568 int x[] = {25, 17};
7569 const int *foo = &x[0];
7570 ++foo;
7572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7573 typedef const int *iptr;
7574 iptr p = 0;
7575 ++p;
7577 { /* AIX XL C 1.02.0.0 rejects this saying
7578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7579 struct s { int j; const int *ap[3]; };
7580 struct s *b; b->j = 5;
7582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7583 const int foo = 10;
7585 #endif
7588 return 0;
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7594 ac_status=$?
7595 grep -v '^ *+' conftest.er1 >conftest.err
7596 rm -f conftest.er1
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -z "$ac_c_werror_flag"
7601 || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 (eval $ac_try) 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 (eval $ac_try) 2>&5
7610 ac_status=$?
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 ac_cv_c_const=yes
7614 else
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7618 ac_cv_c_const=no
7620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7623 echo "${ECHO_T}$ac_cv_c_const" >&6
7624 if test $ac_cv_c_const = no; then
7626 cat >>confdefs.h <<\_ACEOF
7627 #define const
7628 _ACEOF
7632 echo "$as_me:$LINENO: checking for void * support" >&5
7633 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7634 if test "${emacs_cv_void_star+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7645 main ()
7647 void * foo;
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7654 (eval $ac_compile) 2>conftest.er1
7655 ac_status=$?
7656 grep -v '^ *+' conftest.er1 >conftest.err
7657 rm -f conftest.er1
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -z "$ac_c_werror_flag"
7662 || test ! -s conftest.err'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest.$ac_objext'
7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 (eval $ac_try) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }; }; then
7674 emacs_cv_void_star=yes
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 emacs_cv_void_star=no
7681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7684 echo "${ECHO_T}$emacs_cv_void_star" >&6
7685 if test $emacs_cv_void_star = yes; then
7686 cat >>confdefs.h <<\_ACEOF
7687 #define POINTER_TYPE void
7688 _ACEOF
7690 else
7691 cat >>confdefs.h <<\_ACEOF
7692 #define POINTER_TYPE char
7693 _ACEOF
7699 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7700 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7701 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7702 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705 cat >conftest.make <<\_ACEOF
7706 all:
7707 @echo 'ac_maketemp="$(MAKE)"'
7708 _ACEOF
7709 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7710 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7711 if test -n "$ac_maketemp"; then
7712 eval ac_cv_prog_make_${ac_make}_set=yes
7713 else
7714 eval ac_cv_prog_make_${ac_make}_set=no
7716 rm -f conftest.make
7718 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7719 echo "$as_me:$LINENO: result: yes" >&5
7720 echo "${ECHO_T}yes" >&6
7721 SET_MAKE=
7722 else
7723 echo "$as_me:$LINENO: result: no" >&5
7724 echo "${ECHO_T}no" >&6
7725 SET_MAKE="MAKE=${MAKE-make}"
7729 echo "$as_me:$LINENO: checking for long file names" >&5
7730 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7731 if test "${ac_cv_sys_long_file_names+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734 ac_cv_sys_long_file_names=yes
7735 # Test for long file names in all the places we know might matter:
7736 # . the current directory, where building will happen
7737 # $prefix/lib where we will be installing things
7738 # $exec_prefix/lib likewise
7739 # eval it to expand exec_prefix.
7740 # $TMPDIR if set, where it might want to write temporary files
7741 # if $TMPDIR is not set:
7742 # /tmp where it might want to write temporary files
7743 # /var/tmp likewise
7744 # /usr/tmp likewise
7745 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7746 ac_tmpdirs=$TMPDIR
7747 else
7748 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7750 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7751 test -d $ac_dir || continue
7752 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7753 ac_xdir=$ac_dir/cf$$
7754 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7755 ac_tf1=$ac_xdir/conftest9012345
7756 ac_tf2=$ac_xdir/conftest9012346
7757 (echo 1 >$ac_tf1) 2>/dev/null
7758 (echo 2 >$ac_tf2) 2>/dev/null
7759 ac_val=`cat $ac_tf1 2>/dev/null`
7760 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7761 ac_cv_sys_long_file_names=no
7762 rm -rf $ac_xdir 2>/dev/null
7763 break
7765 rm -rf $ac_xdir 2>/dev/null
7766 done
7768 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7769 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7770 if test $ac_cv_sys_long_file_names = yes; then
7772 cat >>confdefs.h <<\_ACEOF
7773 #define HAVE_LONG_FILE_NAMES 1
7774 _ACEOF
7779 #### Choose a window system.
7781 echo "$as_me:$LINENO: checking for X" >&5
7782 echo $ECHO_N "checking for X... $ECHO_C" >&6
7785 # Check whether --with-x or --without-x was given.
7786 if test "${with_x+set}" = set; then
7787 withval="$with_x"
7790 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7791 if test "x$with_x" = xno; then
7792 # The user explicitly disabled X.
7793 have_x=disabled
7794 else
7795 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7796 # Both variables are already set.
7797 have_x=yes
7798 else
7799 if test "${ac_cv_have_x+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802 # One or both of the vars are not set, and there is no cached value.
7803 ac_x_includes=no ac_x_libraries=no
7804 rm -fr conftest.dir
7805 if mkdir conftest.dir; then
7806 cd conftest.dir
7807 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7808 cat >Imakefile <<'_ACEOF'
7809 acfindx:
7810 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7811 _ACEOF
7812 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7814 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7815 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7816 for ac_extension in a so sl; do
7817 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7818 test -f $ac_im_libdir/libX11.$ac_extension; then
7819 ac_im_usrlibdir=$ac_im_libdir; break
7821 done
7822 # Screen out bogus values from the imake configuration. They are
7823 # bogus both because they are the default anyway, and because
7824 # using them would break gcc on systems where it needs fixed includes.
7825 case $ac_im_incroot in
7826 /usr/include) ;;
7827 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7828 esac
7829 case $ac_im_usrlibdir in
7830 /usr/lib | /lib) ;;
7831 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7832 esac
7834 cd ..
7835 rm -fr conftest.dir
7838 # Standard set of common directories for X headers.
7839 # Check X11 before X11Rn because it is often a symlink to the current release.
7840 ac_x_header_dirs='
7841 /usr/X11/include
7842 /usr/X11R6/include
7843 /usr/X11R5/include
7844 /usr/X11R4/include
7846 /usr/include/X11
7847 /usr/include/X11R6
7848 /usr/include/X11R5
7849 /usr/include/X11R4
7851 /usr/local/X11/include
7852 /usr/local/X11R6/include
7853 /usr/local/X11R5/include
7854 /usr/local/X11R4/include
7856 /usr/local/include/X11
7857 /usr/local/include/X11R6
7858 /usr/local/include/X11R5
7859 /usr/local/include/X11R4
7861 /usr/X386/include
7862 /usr/x386/include
7863 /usr/XFree86/include/X11
7865 /usr/include
7866 /usr/local/include
7867 /usr/unsupported/include
7868 /usr/athena/include
7869 /usr/local/x11r5/include
7870 /usr/lpp/Xamples/include
7872 /usr/openwin/include
7873 /usr/openwin/share/include'
7875 if test "$ac_x_includes" = no; then
7876 # Guess where to find include files, by looking for Intrinsic.h.
7877 # First, try using that file with no special directory specified.
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <X11/Intrinsic.h>
7885 _ACEOF
7886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } >/dev/null; then
7894 if test -s conftest.err; then
7895 ac_cpp_err=$ac_c_preproc_warn_flag
7896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7897 else
7898 ac_cpp_err=
7900 else
7901 ac_cpp_err=yes
7903 if test -z "$ac_cpp_err"; then
7904 # We can compile using X headers with no special include directory.
7905 ac_x_includes=
7906 else
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 for ac_dir in $ac_x_header_dirs; do
7911 if test -r "$ac_dir/X11/Intrinsic.h"; then
7912 ac_x_includes=$ac_dir
7913 break
7915 done
7917 rm -f conftest.err conftest.$ac_ext
7918 fi # $ac_x_includes = no
7920 if test "$ac_x_libraries" = no; then
7921 # Check for the libraries.
7922 # See if we find them without any special options.
7923 # Don't add to $LIBS permanently.
7924 ac_save_LIBS=$LIBS
7925 LIBS="-lXt $LIBS"
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <X11/Intrinsic.h>
7934 main ()
7936 XtMalloc (0)
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7943 (eval $ac_link) 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag"
7951 || test ! -s conftest.err'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; } &&
7957 { ac_try='test -s conftest$ac_exeext'
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; }; then
7963 LIBS=$ac_save_LIBS
7964 # We can link X programs with no special library path.
7965 ac_x_libraries=
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 LIBS=$ac_save_LIBS
7971 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7973 # Don't even attempt the hair of trying to link an X program!
7974 for ac_extension in a so sl; do
7975 if test -r $ac_dir/libXt.$ac_extension; then
7976 ac_x_libraries=$ac_dir
7977 break 2
7979 done
7980 done
7982 rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 fi # $ac_x_libraries = no
7986 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7987 # Didn't find X anywhere. Cache the known absence of X.
7988 ac_cv_have_x="have_x=no"
7989 else
7990 # Record where we found X for the cache.
7991 ac_cv_have_x="have_x=yes \
7992 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7997 eval "$ac_cv_have_x"
7998 fi # $with_x != no
8000 if test "$have_x" != yes; then
8001 echo "$as_me:$LINENO: result: $have_x" >&5
8002 echo "${ECHO_T}$have_x" >&6
8003 no_x=yes
8004 else
8005 # If each of the values was on the command line, it overrides each guess.
8006 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8007 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8008 # Update the cache value to reflect the command line values.
8009 ac_cv_have_x="have_x=yes \
8010 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8011 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8012 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8015 if test "$no_x" = yes; then
8016 window_system=none
8017 else
8018 window_system=x11
8021 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8022 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8023 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8024 x_default_search_path=""
8025 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8026 x_search_path="\
8027 ${x_library}/X11/%L/%T/%N%C%S:\
8028 ${x_library}/X11/%l/%T/%N%C%S:\
8029 ${x_library}/X11/%T/%N%C%S:\
8030 ${x_library}/X11/%L/%T/%N%S:\
8031 ${x_library}/X11/%l/%T/%N%S:\
8032 ${x_library}/X11/%T/%N%S"
8033 if test x"${x_default_search_path}" = x; then
8034 x_default_search_path=${x_search_path}
8035 else
8036 x_default_search_path="${x_search_path}:${x_default_search_path}"
8038 done
8040 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8041 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8044 if test x"${x_includes}" = x; then
8045 bitmapdir=/usr/include/X11/bitmaps
8046 else
8047 # accumulate include directories that have X11 bitmap subdirectories
8048 bmd_acc="dummyval"
8049 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8050 if test -d "${bmd}/X11/bitmaps"; then
8051 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8053 if test -d "${bmd}/bitmaps"; then
8054 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8056 done
8057 if test ${bmd_acc} != "dummyval"; then
8058 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8062 case "${window_system}" in
8063 x11 )
8064 HAVE_X_WINDOWS=yes
8065 HAVE_X11=yes
8066 case "${with_x_toolkit}" in
8067 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8068 motif ) USE_X_TOOLKIT=MOTIF ;;
8069 gtk ) with_gtk=yes
8070 USE_X_TOOLKIT=none ;;
8071 no ) USE_X_TOOLKIT=none ;;
8072 * ) USE_X_TOOLKIT=maybe ;;
8073 esac
8075 none )
8076 HAVE_X_WINDOWS=no
8077 HAVE_X11=no
8078 USE_X_TOOLKIT=none
8080 esac
8082 ### If we're using X11, we should use the X menu package.
8083 HAVE_MENUS=no
8084 case ${HAVE_X11} in
8085 yes ) HAVE_MENUS=yes ;;
8086 esac
8088 if test "${opsys}" = "hpux9"; then
8089 case "${x_libraries}" in
8090 *X11R4* )
8091 opsysfile="s/hpux9-x11r4.h"
8093 esac
8096 if test "${opsys}" = "hpux9shr"; then
8097 case "${x_libraries}" in
8098 *X11R4* )
8099 opsysfile="s/hpux9shxr4.h"
8101 esac
8104 ### Compute the unexec source name from the object name.
8105 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8107 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8108 # Assume not, until told otherwise.
8109 GNU_MALLOC=yes
8110 doug_lea_malloc=yes
8111 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8112 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8113 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h. */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8122 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8124 #define malloc_get_state innocuous_malloc_get_state
8126 /* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char malloc_get_state (); below.
8128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8129 <limits.h> exists even on freestanding compilers. */
8131 #ifdef __STDC__
8132 # include <limits.h>
8133 #else
8134 # include <assert.h>
8135 #endif
8137 #undef malloc_get_state
8139 /* Override any gcc2 internal prototype to avoid an error. */
8140 #ifdef __cplusplus
8141 extern "C"
8143 #endif
8144 /* We use char because int might match the return type of a gcc2
8145 builtin and then its argument prototype would still apply. */
8146 char malloc_get_state ();
8147 /* The GNU C library defines this for functions which it implements
8148 to always fail with ENOSYS. Some functions are actually named
8149 something starting with __ and the normal name is an alias. */
8150 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8151 choke me
8152 #else
8153 char (*f) () = malloc_get_state;
8154 #endif
8155 #ifdef __cplusplus
8157 #endif
8160 main ()
8162 return f != malloc_get_state;
8164 return 0;
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169 (eval $ac_link) 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -z "$ac_c_werror_flag"
8177 || test ! -s conftest.err'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_func_malloc_get_state=yes
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_func_malloc_get_state=no
8196 rm -f conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8199 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8200 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8201 if test $ac_cv_func_malloc_get_state = yes; then
8203 else
8204 doug_lea_malloc=no
8207 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8208 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8209 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h. */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h. */
8218 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8220 #define malloc_set_state innocuous_malloc_set_state
8222 /* System header to define __stub macros and hopefully few prototypes,
8223 which can conflict with char malloc_set_state (); below.
8224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8225 <limits.h> exists even on freestanding compilers. */
8227 #ifdef __STDC__
8228 # include <limits.h>
8229 #else
8230 # include <assert.h>
8231 #endif
8233 #undef malloc_set_state
8235 /* Override any gcc2 internal prototype to avoid an error. */
8236 #ifdef __cplusplus
8237 extern "C"
8239 #endif
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242 char malloc_set_state ();
8243 /* The GNU C library defines this for functions which it implements
8244 to always fail with ENOSYS. Some functions are actually named
8245 something starting with __ and the normal name is an alias. */
8246 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8247 choke me
8248 #else
8249 char (*f) () = malloc_set_state;
8250 #endif
8251 #ifdef __cplusplus
8253 #endif
8256 main ()
8258 return f != malloc_set_state;
8260 return 0;
8262 _ACEOF
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8265 (eval $ac_link) 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } &&
8272 { ac_try='test -z "$ac_c_werror_flag"
8273 || test ! -s conftest.err'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_func_malloc_set_state=yes
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8290 ac_cv_func_malloc_set_state=no
8292 rm -f conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8295 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8296 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8297 if test $ac_cv_func_malloc_set_state = yes; then
8299 else
8300 doug_lea_malloc=no
8303 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8304 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8305 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308 cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h. */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 extern void (* __after_morecore_hook)();
8316 main ()
8318 __after_morecore_hook = 0
8320 return 0;
8322 _ACEOF
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
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); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 emacs_cv_var___after_morecore_hook=yes
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 emacs_cv_var___after_morecore_hook=no
8352 rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8355 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8356 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8357 if test $emacs_cv_var___after_morecore_hook = no; then
8358 doug_lea_malloc=no
8360 if test "${system_malloc}" = "yes"; then
8361 GNU_MALLOC=no
8362 GNU_MALLOC_reason="
8363 (The GNU allocators don't work with this system configuration.)"
8365 if test "$doug_lea_malloc" = "yes" ; then
8366 if test "$GNU_MALLOC" = yes ; then
8367 GNU_MALLOC_reason="
8368 (Using Doug Lea's new malloc from the GNU C Library.)"
8371 cat >>confdefs.h <<\_ACEOF
8372 #define DOUG_LEA_MALLOC 1
8373 _ACEOF
8377 if test x"${REL_ALLOC}" = x; then
8378 REL_ALLOC=${GNU_MALLOC}
8384 for ac_header in stdlib.h unistd.h
8386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388 echo "$as_me:$LINENO: checking for $ac_header" >&5
8389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8395 else
8396 # Is the header compilable?
8397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #include <$ac_header>
8407 _ACEOF
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag"
8418 || test ! -s conftest.err'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; } &&
8424 { ac_try='test -s conftest.$ac_objext'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; }; then
8430 ac_header_compiler=yes
8431 else
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_header_compiler=no
8437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6
8441 # Is the header present?
8442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h. */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <$ac_header>
8451 _ACEOF
8452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8454 ac_status=$?
8455 grep -v '^ *+' conftest.er1 >conftest.err
8456 rm -f conftest.er1
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } >/dev/null; then
8460 if test -s conftest.err; then
8461 ac_cpp_err=$ac_c_preproc_warn_flag
8462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8463 else
8464 ac_cpp_err=
8466 else
8467 ac_cpp_err=yes
8469 if test -z "$ac_cpp_err"; then
8470 ac_header_preproc=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_header_preproc=no
8477 rm -f conftest.err conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479 echo "${ECHO_T}$ac_header_preproc" >&6
8481 # So? What about this header?
8482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8483 yes:no: )
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488 ac_header_preproc=yes
8490 no:yes:* )
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8504 cat <<\_ASBOX
8505 ## ------------------------------------------ ##
8506 ## Report this to the AC_PACKAGE_NAME lists. ##
8507 ## ------------------------------------------ ##
8508 _ASBOX
8510 sed "s/^/$as_me: WARNING: /" >&2
8512 esac
8513 echo "$as_me:$LINENO: checking for $ac_header" >&5
8514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518 eval "$as_ac_Header=\$ac_header_preproc"
8520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8525 cat >>confdefs.h <<_ACEOF
8526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527 _ACEOF
8531 done
8534 for ac_func in getpagesize
8536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8537 echo "$as_me:$LINENO: checking for $ac_func" >&5
8538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8539 if eval "test \"\${$as_ac_var+set}\" = set"; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h. */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8550 #define $ac_func innocuous_$ac_func
8552 /* System header to define __stub macros and hopefully few prototypes,
8553 which can conflict with char $ac_func (); below.
8554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8555 <limits.h> exists even on freestanding compilers. */
8557 #ifdef __STDC__
8558 # include <limits.h>
8559 #else
8560 # include <assert.h>
8561 #endif
8563 #undef $ac_func
8565 /* Override any gcc2 internal prototype to avoid an error. */
8566 #ifdef __cplusplus
8567 extern "C"
8569 #endif
8570 /* We use char because int might match the return type of a gcc2
8571 builtin and then its argument prototype would still apply. */
8572 char $ac_func ();
8573 /* The GNU C library defines this for functions which it implements
8574 to always fail with ENOSYS. Some functions are actually named
8575 something starting with __ and the normal name is an alias. */
8576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8577 choke me
8578 #else
8579 char (*f) () = $ac_func;
8580 #endif
8581 #ifdef __cplusplus
8583 #endif
8586 main ()
8588 return f != $ac_func;
8590 return 0;
8592 _ACEOF
8593 rm -f conftest.$ac_objext conftest$ac_exeext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8595 (eval $ac_link) 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try='test -z "$ac_c_werror_flag"
8603 || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 eval "$as_ac_var=yes"
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 eval "$as_ac_var=no"
8622 rm -f conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8627 if test `eval echo '${'$as_ac_var'}'` = yes; then
8628 cat >>confdefs.h <<_ACEOF
8629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8630 _ACEOF
8633 done
8635 echo "$as_me:$LINENO: checking for working mmap" >&5
8636 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8637 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 if test "$cross_compiling" = yes; then
8641 ac_cv_func_mmap_fixed_mapped=no
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 $ac_includes_default
8650 /* malloc might have been renamed as rpl_malloc. */
8651 #undef malloc
8653 /* Thanks to Mike Haertel and Jim Avera for this test.
8654 Here is a matrix of mmap possibilities:
8655 mmap private not fixed
8656 mmap private fixed at somewhere currently unmapped
8657 mmap private fixed at somewhere already mapped
8658 mmap shared not fixed
8659 mmap shared fixed at somewhere currently unmapped
8660 mmap shared fixed at somewhere already mapped
8661 For private mappings, we should verify that changes cannot be read()
8662 back from the file, nor mmap's back from the file at a different
8663 address. (There have been systems where private was not correctly
8664 implemented like the infamous i386 svr4.0, and systems where the
8665 VM page cache was not coherent with the file system buffer cache
8666 like early versions of FreeBSD and possibly contemporary NetBSD.)
8667 For shared mappings, we should conversely verify that changes get
8668 propagated back to all the places they're supposed to be.
8670 Grep wants private fixed already mapped.
8671 The main things grep needs to know about mmap are:
8672 * does it exist and is it safe to write into the mmap'd area
8673 * how to use it (BSD variants) */
8675 #include <fcntl.h>
8676 #include <sys/mman.h>
8678 #if !STDC_HEADERS && !HAVE_STDLIB_H
8679 char *malloc ();
8680 #endif
8682 /* This mess was copied from the GNU getpagesize.h. */
8683 #if !HAVE_GETPAGESIZE
8684 /* Assume that all systems that can run configure have sys/param.h. */
8685 # if !HAVE_SYS_PARAM_H
8686 # define HAVE_SYS_PARAM_H 1
8687 # endif
8689 # ifdef _SC_PAGESIZE
8690 # define getpagesize() sysconf(_SC_PAGESIZE)
8691 # else /* no _SC_PAGESIZE */
8692 # if HAVE_SYS_PARAM_H
8693 # include <sys/param.h>
8694 # ifdef EXEC_PAGESIZE
8695 # define getpagesize() EXEC_PAGESIZE
8696 # else /* no EXEC_PAGESIZE */
8697 # ifdef NBPG
8698 # define getpagesize() NBPG * CLSIZE
8699 # ifndef CLSIZE
8700 # define CLSIZE 1
8701 # endif /* no CLSIZE */
8702 # else /* no NBPG */
8703 # ifdef NBPC
8704 # define getpagesize() NBPC
8705 # else /* no NBPC */
8706 # ifdef PAGESIZE
8707 # define getpagesize() PAGESIZE
8708 # endif /* PAGESIZE */
8709 # endif /* no NBPC */
8710 # endif /* no NBPG */
8711 # endif /* no EXEC_PAGESIZE */
8712 # else /* no HAVE_SYS_PARAM_H */
8713 # define getpagesize() 8192 /* punt totally */
8714 # endif /* no HAVE_SYS_PARAM_H */
8715 # endif /* no _SC_PAGESIZE */
8717 #endif /* no HAVE_GETPAGESIZE */
8720 main ()
8722 char *data, *data2, *data3;
8723 int i, pagesize;
8724 int fd;
8726 pagesize = getpagesize ();
8728 /* First, make a file with some known garbage in it. */
8729 data = (char *) malloc (pagesize);
8730 if (!data)
8731 exit (1);
8732 for (i = 0; i < pagesize; ++i)
8733 *(data + i) = rand ();
8734 umask (0);
8735 fd = creat ("conftest.mmap", 0600);
8736 if (fd < 0)
8737 exit (1);
8738 if (write (fd, data, pagesize) != pagesize)
8739 exit (1);
8740 close (fd);
8742 /* Next, try to mmap the file at a fixed address which already has
8743 something else allocated at it. If we can, also make sure that
8744 we see the same garbage. */
8745 fd = open ("conftest.mmap", O_RDWR);
8746 if (fd < 0)
8747 exit (1);
8748 data2 = (char *) malloc (2 * pagesize);
8749 if (!data2)
8750 exit (1);
8751 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8752 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8753 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8754 exit (1);
8755 for (i = 0; i < pagesize; ++i)
8756 if (*(data + i) != *(data2 + i))
8757 exit (1);
8759 /* Finally, make sure that changes to the mapped area do not
8760 percolate back to the file as seen by read(). (This is a bug on
8761 some variants of i386 svr4.0.) */
8762 for (i = 0; i < pagesize; ++i)
8763 *(data2 + i) = *(data2 + i) + 1;
8764 data3 = (char *) malloc (pagesize);
8765 if (!data3)
8766 exit (1);
8767 if (read (fd, data3, pagesize) != pagesize)
8768 exit (1);
8769 for (i = 0; i < pagesize; ++i)
8770 if (*(data + i) != *(data3 + i))
8771 exit (1);
8772 close (fd);
8773 exit (0);
8775 _ACEOF
8776 rm -f conftest$ac_exeext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8778 (eval $ac_link) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_cv_func_mmap_fixed_mapped=yes
8788 else
8789 echo "$as_me: program exited with status $ac_status" >&5
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ( exit $ac_status )
8794 ac_cv_func_mmap_fixed_mapped=no
8796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8800 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8801 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8803 cat >>confdefs.h <<\_ACEOF
8804 #define HAVE_MMAP 1
8805 _ACEOF
8808 rm -f conftest.mmap
8810 if test $use_mmap_for_buffers = yes; then
8811 REL_ALLOC=no
8814 LIBS="$libsrc_libs $LIBS"
8817 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8818 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8819 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 ac_check_lib_save_LIBS=$LIBS
8823 LIBS="-ldnet $LIBS"
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h. */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8831 /* Override any gcc2 internal prototype to avoid an error. */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8837 char dnet_ntoa ();
8839 main ()
8841 dnet_ntoa ();
8843 return 0;
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8848 (eval $ac_link) 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag"
8856 || test ! -s conftest.err'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 (eval $ac_try) 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try='test -s conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 (eval $ac_try) 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_lib_dnet_dnet_ntoa=yes
8869 else
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8873 ac_cv_lib_dnet_dnet_ntoa=no
8875 rm -f conftest.err conftest.$ac_objext \
8876 conftest$ac_exeext conftest.$ac_ext
8877 LIBS=$ac_check_lib_save_LIBS
8879 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8880 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8881 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8882 cat >>confdefs.h <<_ACEOF
8883 #define HAVE_LIBDNET 1
8884 _ACEOF
8886 LIBS="-ldnet $LIBS"
8891 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8892 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8893 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-lXbsd $LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8907 main ()
8909 main ();
8911 return 0;
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_lib_Xbsd_main=yes
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_lib_Xbsd_main=no
8943 rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945 LIBS=$ac_check_lib_save_LIBS
8947 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8948 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8949 if test $ac_cv_lib_Xbsd_main = yes; then
8950 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8955 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8956 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8957 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 ac_check_lib_save_LIBS=$LIBS
8961 LIBS="-lpthreads $LIBS"
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975 char cma_open ();
8977 main ()
8979 cma_open ();
8981 return 0;
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_pthreads_cma_open=yes
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_lib_pthreads_cma_open=no
9013 rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015 LIBS=$ac_check_lib_save_LIBS
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9018 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9019 if test $ac_cv_lib_pthreads_cma_open = yes; then
9020 cat >>confdefs.h <<_ACEOF
9021 #define HAVE_LIBPTHREADS 1
9022 _ACEOF
9024 LIBS="-lpthreads $LIBS"
9029 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9030 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9031 if test -d /usr/X386/include; then
9032 HAVE_XFREE386=yes
9033 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9034 else
9035 HAVE_XFREE386=no
9037 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9038 echo "${ECHO_T}$HAVE_XFREE386" >&6
9041 case ${host_os} in
9042 aix*)
9043 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9044 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9045 if test "${gdb_cv_bigtoc+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9049 case $GCC in
9050 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9051 *) gdb_cv_bigtoc=-bbigtoc ;;
9052 esac
9054 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9063 main ()
9065 int i;
9067 return 0;
9069 _ACEOF
9070 rm -f conftest.$ac_objext conftest$ac_exeext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9072 (eval $ac_link) 2>conftest.er1
9073 ac_status=$?
9074 grep -v '^ *+' conftest.er1 >conftest.err
9075 rm -f conftest.er1
9076 cat conftest.err >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try='test -s conftest$ac_exeext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9093 else
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9097 gdb_cv_bigtoc=
9099 rm -f conftest.err conftest.$ac_objext \
9100 conftest$ac_exeext conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9104 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9106 esac
9108 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9109 # used for the tests that follow. We set them back to REAL_CFLAGS and
9110 # REAL_CPPFLAGS later on.
9112 REAL_CPPFLAGS="$CPPFLAGS"
9114 if test "${HAVE_X11}" = "yes"; then
9115 DEFS="$C_SWITCH_X_SITE $DEFS"
9116 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9117 LIBS="$LIBX $LIBS"
9118 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9119 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9121 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9122 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9123 # but it's more convenient here to set LD_RUN_PATH
9124 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9125 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9126 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9127 export LD_RUN_PATH
9130 if test "${opsys}" = "gnu-linux"; then
9131 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9132 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h. */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9141 main ()
9143 XOpenDisplay ("foo");
9145 return 0;
9147 _ACEOF
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 xlinux_first_failure=no
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 xlinux_first_failure=yes
9177 rm -f conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 if test "${xlinux_first_failure}" = "yes"; then
9180 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9181 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9182 OLD_CPPFLAGS="$CPPFLAGS"
9183 OLD_LIBS="$LIBS"
9184 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9185 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9186 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9187 LIBS="$LIBS -b i486-linuxaout"
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h. */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9196 main ()
9198 XOpenDisplay ("foo");
9200 return 0;
9202 _ACEOF
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9205 (eval $ac_link) 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try='test -z "$ac_c_werror_flag"
9213 || test ! -s conftest.err'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 (eval $ac_try) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest$ac_exeext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 xlinux_second_failure=no
9226 else
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9230 xlinux_second_failure=yes
9232 rm -f conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234 if test "${xlinux_second_failure}" = "yes"; then
9235 # If we get the same failure with -b, there is no use adding -b.
9236 # So take it out. This plays safe.
9237 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9238 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9239 CPPFLAGS="$OLD_CPPFLAGS"
9240 LIBS="$OLD_LIBS"
9241 echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6
9243 else
9244 echo "$as_me:$LINENO: result: yes" >&5
9245 echo "${ECHO_T}yes" >&6
9247 else
9248 echo "$as_me:$LINENO: result: no" >&5
9249 echo "${ECHO_T}no" >&6
9253 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9254 # header files included from there.
9255 echo "$as_me:$LINENO: checking for Xkb" >&5
9256 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 #include <X11/Xlib.h>
9264 #include <X11/XKBlib.h>
9266 main ()
9268 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9270 return 0;
9272 _ACEOF
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 emacs_xkb=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 emacs_xkb=no
9302 rm -f conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9305 echo "${ECHO_T}$emacs_xkb" >&6
9306 if test $emacs_xkb = yes; then
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_XKBGETKEYBOARD 1
9310 _ACEOF
9318 for ac_func in XrmSetDatabase XScreenResourceString \
9319 XScreenNumberOfScreen XSetWMProtocols
9321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9322 echo "$as_me:$LINENO: checking for $ac_func" >&5
9323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9324 if eval "test \"\${$as_ac_var+set}\" = set"; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h. */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9335 #define $ac_func innocuous_$ac_func
9337 /* System header to define __stub macros and hopefully few prototypes,
9338 which can conflict with char $ac_func (); below.
9339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9340 <limits.h> exists even on freestanding compilers. */
9342 #ifdef __STDC__
9343 # include <limits.h>
9344 #else
9345 # include <assert.h>
9346 #endif
9348 #undef $ac_func
9350 /* Override any gcc2 internal prototype to avoid an error. */
9351 #ifdef __cplusplus
9352 extern "C"
9354 #endif
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9357 char $ac_func ();
9358 /* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9362 choke me
9363 #else
9364 char (*f) () = $ac_func;
9365 #endif
9366 #ifdef __cplusplus
9368 #endif
9371 main ()
9373 return f != $ac_func;
9375 return 0;
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_c_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390 (eval $ac_try) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 eval "$as_ac_var=yes"
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 eval "$as_ac_var=no"
9407 rm -f conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext conftest.$ac_ext
9410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9412 if test `eval echo '${'$as_ac_var'}'` = yes; then
9413 cat >>confdefs.h <<_ACEOF
9414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9415 _ACEOF
9418 done
9422 if test "${window_system}" = "x11"; then
9423 echo "$as_me:$LINENO: checking X11 version 6" >&5
9424 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9425 if test "${emacs_cv_x11_version_6+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9436 main ()
9438 #if XlibSpecificationRelease < 6
9439 fail;
9440 #endif
9443 return 0;
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>conftest.er1
9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 emacs_cv_x11_version_6=yes
9469 else
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9473 emacs_cv_x11_version_6=no
9475 rm -f conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9479 if test $emacs_cv_x11_version_6 = yes; then
9480 echo "$as_me:$LINENO: result: 6 or newer" >&5
9481 echo "${ECHO_T}6 or newer" >&6
9483 cat >>confdefs.h <<\_ACEOF
9484 #define HAVE_X11R6 1
9485 _ACEOF
9487 else
9488 echo "$as_me:$LINENO: result: before 6" >&5
9489 echo "${ECHO_T}before 6" >&6
9493 if test "${window_system}" = "x11"; then
9494 echo "$as_me:$LINENO: checking X11 version 5" >&5
9495 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9496 if test "${emacs_cv_x11_version_5+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h. */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 #include <X11/Xlib.h>
9507 main ()
9509 #if XlibSpecificationRelease < 5
9510 fail;
9511 #endif
9514 return 0;
9516 _ACEOF
9517 rm -f conftest.$ac_objext conftest$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 emacs_cv_x11_version_5=yes
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9544 emacs_cv_x11_version_5=no
9546 rm -f conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9550 if test $emacs_cv_x11_version_5 = yes; then
9551 echo "$as_me:$LINENO: result: 5 or newer" >&5
9552 echo "${ECHO_T}5 or newer" >&6
9553 HAVE_X11R5=yes
9555 cat >>confdefs.h <<\_ACEOF
9556 #define HAVE_X11R5 1
9557 _ACEOF
9559 else
9560 HAVE_X11R5=no
9561 echo "$as_me:$LINENO: result: before 5" >&5
9562 echo "${ECHO_T}before 5" >&6
9568 HAVE_GTK=no
9569 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9570 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9571 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9572 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9573 { (exit 1); exit 1; }; };
9575 GLIB_REQUIRED=2.0.1
9576 GTK_REQUIRED=2.0.1
9577 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9579 if test "X${with_pkg_config_prog}" != X; then
9580 PKG_CONFIG="${with_pkg_config_prog}"
9583 succeeded=no
9585 if test -z "$PKG_CONFIG"; then
9586 # Extract the first word of "pkg-config", so it can be a program name with args.
9587 set dummy pkg-config; ac_word=$2
9588 echo "$as_me:$LINENO: checking for $ac_word" >&5
9589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593 case $PKG_CONFIG in
9594 [\\/]* | ?:[\\/]*)
9595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 for as_dir in $PATH
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
9603 for ac_exec_ext in '' $ac_executable_extensions; do
9604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9607 break 2
9609 done
9610 done
9612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9614 esac
9616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9618 if test -n "$PKG_CONFIG"; then
9619 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9620 echo "${ECHO_T}$PKG_CONFIG" >&6
9621 else
9622 echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6
9628 if test "$PKG_CONFIG" = "no" ; then
9629 echo "*** The pkg-config script could not be found. Make sure it is"
9630 echo "*** in your path, or give the full path to pkg-config with"
9631 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9632 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9633 else
9634 PKG_CONFIG_MIN_VERSION=0.9.0
9635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9636 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9637 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9639 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9640 echo "$as_me:$LINENO: result: yes" >&5
9641 echo "${ECHO_T}yes" >&6
9642 succeeded=yes
9644 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9645 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9646 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9647 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9648 echo "${ECHO_T}$GTK_CFLAGS" >&6
9650 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9651 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9652 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9653 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9654 echo "${ECHO_T}$GTK_LIBS" >&6
9655 else
9656 GTK_CFLAGS=""
9657 GTK_LIBS=""
9658 ## If we have a custom action on failure, don't print errors, but
9659 ## do set a variable so people can do so.
9660 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9661 echo $GTK_PKG_ERRORS
9666 else
9667 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9668 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9672 if test $succeeded = yes; then
9674 else
9675 { { 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
9676 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;}
9677 { (exit 1); exit 1; }; }
9682 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9683 CFLAGS="$CFLAGS $GTK_CFLAGS"
9684 LIBS="$GTK_LIBS $LIBS"
9685 HAVE_GTK=yes
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_GTK 1
9689 _ACEOF
9691 USE_X_TOOLKIT=none
9693 with_toolkit_scroll_bars=yes
9695 HAVE_GTK_MULTIDISPLAY=no
9697 for ac_func in gdk_display_open
9699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9700 echo "$as_me:$LINENO: checking for $ac_func" >&5
9701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9702 if eval "test \"\${$as_ac_var+set}\" = set"; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713 #define $ac_func innocuous_$ac_func
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char $ac_func (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9720 #ifdef __STDC__
9721 # include <limits.h>
9722 #else
9723 # include <assert.h>
9724 #endif
9726 #undef $ac_func
9728 /* Override any gcc2 internal prototype to avoid an error. */
9729 #ifdef __cplusplus
9730 extern "C"
9732 #endif
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9735 char $ac_func ();
9736 /* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9740 choke me
9741 #else
9742 char (*f) () = $ac_func;
9743 #endif
9744 #ifdef __cplusplus
9746 #endif
9749 main ()
9751 return f != $ac_func;
9753 return 0;
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 eval "$as_ac_var=yes"
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 eval "$as_ac_var=no"
9785 rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9790 if test `eval echo '${'$as_ac_var'}'` = yes; then
9791 cat >>confdefs.h <<_ACEOF
9792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9793 _ACEOF
9794 HAVE_GTK_MULTIDISPLAY=yes
9796 done
9798 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9800 cat >>confdefs.h <<\_ACEOF
9801 #define HAVE_GTK_MULTIDISPLAY 1
9802 _ACEOF
9807 if test x"${USE_X_TOOLKIT}" = xmaybe; then
9808 if test x"${HAVE_X11R5}" = xyes; then
9809 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9810 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9811 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9821 #include <X11/Intrinsic.h>
9822 #include <X11/Xaw/Simple.h>
9824 main ()
9828 return 0;
9830 _ACEOF
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 emacs_cv_x11_version_5_with_xaw=yes
9854 else
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 emacs_cv_x11_version_5_with_xaw=no
9860 rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9864 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9865 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9866 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9867 USE_X_TOOLKIT=LUCID
9868 else
9869 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9870 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9871 USE_X_TOOLKIT=none
9873 else
9874 USE_X_TOOLKIT=none
9878 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9880 if test "${USE_X_TOOLKIT}" != "none"; then
9881 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9882 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9883 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 cat >conftest.$ac_ext <<_ACEOF
9887 /* confdefs.h. */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 #include <X11/Intrinsic.h>
9894 main ()
9896 #if XtSpecificationRelease < 6
9897 fail;
9898 #endif
9901 return 0;
9903 _ACEOF
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906 (eval $ac_link) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 emacs_cv_x11_toolkit_version_6=yes
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 emacs_cv_x11_toolkit_version_6=no
9933 rm -f conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9937 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9938 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9939 echo "$as_me:$LINENO: result: 6 or newer" >&5
9940 echo "${ECHO_T}6 or newer" >&6
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_X11XTR6 1
9944 _ACEOF
9946 else
9947 echo "$as_me:$LINENO: result: before 6" >&5
9948 echo "${ECHO_T}before 6" >&6
9951 OLDLIBS="$LIBS"
9952 if test x$HAVE_X11XTR6 = xyes; then
9953 LIBS="-lXt -lSM -lICE $LIBS"
9954 else
9955 LIBS="-lXt $LIBS"
9958 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9959 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9960 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 ac_check_lib_save_LIBS=$LIBS
9964 LIBS="-lXmu $LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9978 char XmuConvertStandardSelection ();
9980 main ()
9982 XmuConvertStandardSelection ();
9984 return 0;
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10016 rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10021 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10022 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10023 cat >>confdefs.h <<_ACEOF
10024 #define HAVE_LIBXMU 1
10025 _ACEOF
10027 LIBS="-lXmu $LIBS"
10031 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10034 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10035 if test "${HAVE_X11}" = "yes"; then
10036 if test "${USE_X_TOOLKIT}" != "none"; then
10038 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10039 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10040 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 ac_check_lib_save_LIBS=$LIBS
10044 LIBS="-lXext $LIBS"
10045 cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h. */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 #ifdef __cplusplus
10054 extern "C"
10055 #endif
10056 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10058 char XShapeQueryExtension ();
10060 main ()
10062 XShapeQueryExtension ();
10064 return 0;
10066 _ACEOF
10067 rm -f conftest.$ac_objext conftest$ac_exeext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069 (eval $ac_link) 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_c_werror_flag"
10077 || test ! -s conftest.err'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; } &&
10083 { ac_try='test -s conftest$ac_exeext'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_lib_Xext_XShapeQueryExtension=yes
10090 else
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ac_cv_lib_Xext_XShapeQueryExtension=no
10096 rm -f conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 LIBS=$ac_check_lib_save_LIBS
10100 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10101 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10102 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10103 cat >>confdefs.h <<_ACEOF
10104 #define HAVE_LIBXEXT 1
10105 _ACEOF
10107 LIBS="-lXext $LIBS"
10114 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10115 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10116 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10117 if test "${emacs_cv_lesstif+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 # We put this in CFLAGS temporarily to precede other -I options
10121 # that might be in CFLAGS temporarily.
10122 # We put this in CPPFLAGS where it precedes the other -I options.
10123 OLD_CPPFLAGS=$CPPFLAGS
10124 OLD_CFLAGS=$CFLAGS
10125 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10126 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10135 main ()
10137 int x = 5;
10139 return 0;
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144 (eval $ac_compile) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest.$ac_objext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 emacs_cv_lesstif=yes
10165 else
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 emacs_cv_lesstif=no
10171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10173 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10174 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10175 if test $emacs_cv_lesstif = yes; then
10176 # Make sure this -I option remains in CPPFLAGS after it is set
10177 # back to REAL_CPPFLAGS.
10178 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10179 # have those other -I options anyway. Ultimately, having this
10180 # directory ultimately in CPPFLAGS will be enough.
10181 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10182 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10183 else
10184 CFLAGS=$OLD_CFLAGS
10185 CPPFLAGS=$OLD_CPPFLAGS
10187 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10188 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10189 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 #include <Xm/Xm.h>
10200 main ()
10202 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10203 int x = 5;
10204 #else
10205 Motif version prior to 2.1.
10206 #endif
10208 return 0;
10210 _ACEOF
10211 rm -f conftest.$ac_objext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213 (eval $ac_compile) 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -z "$ac_c_werror_flag"
10221 || test ! -s conftest.err'
10222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223 (eval $ac_try) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest.$ac_objext'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 emacs_cv_motif_version_2_1=yes
10234 else
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 emacs_cv_motif_version_2_1=no
10240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10242 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10243 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10244 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10245 if test $emacs_cv_motif_version_2_1 = yes; then
10246 HAVE_LIBXP=no
10248 cat >>confdefs.h <<\_ACEOF
10249 #define HAVE_MOTIF_2_1 1
10250 _ACEOF
10252 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10253 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10254 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-lXp $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any gcc2 internal prototype to avoid an error. */
10267 #ifdef __cplusplus
10268 extern "C"
10269 #endif
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272 char XpCreateContext ();
10274 main ()
10276 XpCreateContext ();
10278 return 0;
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_lib_Xp_XpCreateContext=yes
10304 else
10305 echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10308 ac_cv_lib_Xp_XpCreateContext=no
10310 rm -f conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312 LIBS=$ac_check_lib_save_LIBS
10314 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10315 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10316 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10317 HAVE_LIBXP=yes
10320 if test ${HAVE_LIBXP} = yes; then
10322 cat >>confdefs.h <<\_ACEOF
10323 #define HAVE_LIBXP 1
10324 _ACEOF
10330 ### Is -lXaw3d available?
10331 HAVE_XAW3D=no
10332 if test "${HAVE_X11}" = "yes"; then
10333 if test "${USE_X_TOOLKIT}" != "none"; then
10334 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10335 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10336 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339 cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h. */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <X11/Xaw3d/Scrollbar.h>
10346 _ACEOF
10347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } >/dev/null; then
10355 if test -s conftest.err; then
10356 ac_cpp_err=$ac_c_preproc_warn_flag
10357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10358 else
10359 ac_cpp_err=
10361 else
10362 ac_cpp_err=yes
10364 if test -z "$ac_cpp_err"; then
10365 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
10366 else
10367 echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
10372 rm -f conftest.err conftest.$ac_ext
10374 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10375 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10376 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10377 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10378 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10379 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382 ac_check_lib_save_LIBS=$LIBS
10383 LIBS="-lXaw3d $LIBS"
10384 cat >conftest.$ac_ext <<_ACEOF
10385 /* confdefs.h. */
10386 _ACEOF
10387 cat confdefs.h >>conftest.$ac_ext
10388 cat >>conftest.$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10391 /* Override any gcc2 internal prototype to avoid an error. */
10392 #ifdef __cplusplus
10393 extern "C"
10394 #endif
10395 /* We use char because int might match the return type of a gcc2
10396 builtin and then its argument prototype would still apply. */
10397 char XawScrollbarSetThumb ();
10399 main ()
10401 XawScrollbarSetThumb ();
10403 return 0;
10405 _ACEOF
10406 rm -f conftest.$ac_objext conftest$ac_exeext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>conftest.er1
10409 ac_status=$?
10410 grep -v '^ *+' conftest.er1 >conftest.err
10411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10429 else
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10435 rm -f conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 LIBS=$ac_check_lib_save_LIBS
10439 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10440 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10441 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10442 HAVE_XAW3D=yes
10448 if test "${HAVE_XAW3D}" = "yes"; then
10450 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_XAW3D 1
10452 _ACEOF
10460 USE_TOOLKIT_SCROLL_BARS=no
10461 if test "${with_toolkit_scroll_bars}" != "no"; then
10462 if test "${USE_X_TOOLKIT}" != "none"; then
10463 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10464 cat >>confdefs.h <<\_ACEOF
10465 #define USE_TOOLKIT_SCROLL_BARS 1
10466 _ACEOF
10468 HAVE_XAW3D=no
10469 USE_TOOLKIT_SCROLL_BARS=yes
10470 elif test "${HAVE_XAW3D}" = "yes"; then
10471 cat >>confdefs.h <<\_ACEOF
10472 #define USE_TOOLKIT_SCROLL_BARS 1
10473 _ACEOF
10475 USE_TOOLKIT_SCROLL_BARS=yes
10477 elif test "${HAVE_GTK}" = "yes"; then
10478 cat >>confdefs.h <<\_ACEOF
10479 #define USE_TOOLKIT_SCROLL_BARS 1
10480 _ACEOF
10482 USE_TOOLKIT_SCROLL_BARS=yes
10486 cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h. */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10493 #include <X11/Xlib.h>
10494 #include <X11/Xresource.h>
10496 main ()
10498 XIMProc callback;
10500 return 0;
10502 _ACEOF
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try='test -z "$ac_c_werror_flag"
10513 || test ! -s conftest.err'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest.$ac_objext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 HAVE_XIM=yes
10527 cat >>confdefs.h <<\_ACEOF
10528 #define HAVE_XIM 1
10529 _ACEOF
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 HAVE_XIM=no
10537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10540 if test "${with_xim}" != "no"; then
10542 cat >>confdefs.h <<\_ACEOF
10543 #define USE_XIM 1
10544 _ACEOF
10549 if test "${HAVE_XIM}" != "no"; then
10550 late_CFLAGS=$CFLAGS
10551 if test "$GCC" = yes; then
10552 CFLAGS="$CFLAGS --pedantic-errors"
10554 cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h. */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10561 #include <X11/Xlib.h>
10562 #include <X11/Xresource.h>
10564 main ()
10566 Display *display;
10567 XrmDatabase db;
10568 char *res_name;
10569 char *res_class;
10570 XIMProc callback;
10571 XPointer *client_data;
10572 #ifndef __GNUC__
10573 /* If we're not using GCC, it's probably not XFree86, and this is
10574 probably right, but we can't use something like --pedantic-errors. */
10575 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10576 char*, XIMProc, XPointer*);
10577 #endif
10578 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10579 client_data);
10581 return 0;
10583 _ACEOF
10584 rm -f conftest.$ac_objext
10585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10586 (eval $ac_compile) 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -z "$ac_c_werror_flag"
10594 || test ! -s conftest.err'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; } &&
10600 { ac_try='test -s conftest.$ac_objext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 emacs_cv_arg6_star=yes
10607 else
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10614 if test "$emacs_cv_arg6_star" = yes; then
10615 cat >>confdefs.h <<\_ACEOF
10616 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10617 _ACEOF
10619 else
10620 cat >>confdefs.h <<\_ACEOF
10621 #define XRegisterIMInstantiateCallback_arg6 XPointer
10622 _ACEOF
10625 CFLAGS=$late_CFLAGS
10628 ### Use -lXpm if available, unless `--with-xpm=no'.
10629 HAVE_XPM=no
10630 if test "${HAVE_X11}" = "yes"; then
10631 if test "${with_xpm}" != "no"; then
10632 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10633 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10634 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10635 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10639 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10640 else
10641 # Is the header compilable?
10642 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10643 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h. */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 $ac_includes_default
10651 #include <X11/xpm.h>
10652 _ACEOF
10653 rm -f conftest.$ac_objext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest.$ac_objext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 ac_header_compiler=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 ac_header_compiler=no
10682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10684 echo "${ECHO_T}$ac_header_compiler" >&6
10686 # Is the header present?
10687 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10688 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 #include <X11/xpm.h>
10696 _ACEOF
10697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } >/dev/null; then
10705 if test -s conftest.err; then
10706 ac_cpp_err=$ac_c_preproc_warn_flag
10707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10708 else
10709 ac_cpp_err=
10711 else
10712 ac_cpp_err=yes
10714 if test -z "$ac_cpp_err"; then
10715 ac_header_preproc=yes
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10720 ac_header_preproc=no
10722 rm -f conftest.err conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10724 echo "${ECHO_T}$ac_header_preproc" >&6
10726 # So? What about this header?
10727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10728 yes:no: )
10729 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10730 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10732 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10733 ac_header_preproc=yes
10735 no:yes:* )
10736 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10737 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10739 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10741 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10743 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10745 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10747 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10749 cat <<\_ASBOX
10750 ## ------------------------------------------ ##
10751 ## Report this to the AC_PACKAGE_NAME lists. ##
10752 ## ------------------------------------------ ##
10753 _ASBOX
10755 sed "s/^/$as_me: WARNING: /" >&2
10757 esac
10758 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10759 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10760 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 ac_cv_header_X11_xpm_h=$ac_header_preproc
10765 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10766 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10769 if test $ac_cv_header_X11_xpm_h = yes; then
10770 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10771 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10772 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775 ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-lXpm -lX11 $LIBS"
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h. */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10784 /* Override any gcc2 internal prototype to avoid an error. */
10785 #ifdef __cplusplus
10786 extern "C"
10787 #endif
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790 char XpmReadFileToPixmap ();
10792 main ()
10794 XpmReadFileToPixmap ();
10796 return 0;
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10801 (eval $ac_link) 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_c_werror_flag"
10809 || test ! -s conftest.err'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest$ac_exeext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10822 else
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10828 rm -f conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10832 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10833 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10834 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10835 HAVE_XPM=yes
10841 if test "${HAVE_XPM}" = "yes"; then
10842 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10843 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h. */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include "X11/xpm.h"
10851 #ifndef XpmReturnAllocPixels
10852 no_return_alloc_pixels
10853 #endif
10855 _ACEOF
10856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10857 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
10858 HAVE_XPM=no
10859 else
10860 HAVE_XPM=yes
10862 rm -f conftest*
10865 if test "${HAVE_XPM}" = "yes"; then
10866 echo "$as_me:$LINENO: result: yes" >&5
10867 echo "${ECHO_T}yes" >&6
10868 else
10869 echo "$as_me:$LINENO: result: no" >&5
10870 echo "${ECHO_T}no" >&6
10875 if test "${HAVE_XPM}" = "yes"; then
10877 cat >>confdefs.h <<\_ACEOF
10878 #define HAVE_XPM 1
10879 _ACEOF
10884 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10885 HAVE_JPEG=no
10886 if test "${HAVE_X11}" = "yes"; then
10887 if test "${with_jpeg}" != "no"; then
10888 if test "${ac_cv_header_jerror_h+set}" = set; then
10889 echo "$as_me:$LINENO: checking for jerror.h" >&5
10890 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10891 if test "${ac_cv_header_jerror_h+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10895 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10896 else
10897 # Is the header compilable?
10898 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10899 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10900 cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h. */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 #include <jerror.h>
10908 _ACEOF
10909 rm -f conftest.$ac_objext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10911 (eval $ac_compile) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest.$ac_objext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_header_compiler=yes
10932 else
10933 echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 ac_header_compiler=no
10938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10940 echo "${ECHO_T}$ac_header_compiler" >&6
10942 # Is the header present?
10943 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10944 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10945 cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h. */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #include <jerror.h>
10952 _ACEOF
10953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10955 ac_status=$?
10956 grep -v '^ *+' conftest.er1 >conftest.err
10957 rm -f conftest.er1
10958 cat conftest.err >&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } >/dev/null; then
10961 if test -s conftest.err; then
10962 ac_cpp_err=$ac_c_preproc_warn_flag
10963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10964 else
10965 ac_cpp_err=
10967 else
10968 ac_cpp_err=yes
10970 if test -z "$ac_cpp_err"; then
10971 ac_header_preproc=yes
10972 else
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_header_preproc=no
10978 rm -f conftest.err conftest.$ac_ext
10979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10980 echo "${ECHO_T}$ac_header_preproc" >&6
10982 # So? What about this header?
10983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10984 yes:no: )
10985 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10986 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
10988 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
10989 ac_header_preproc=yes
10991 no:yes:* )
10992 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10993 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10995 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
10997 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
10999 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11001 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11003 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11005 cat <<\_ASBOX
11006 ## ------------------------------------------ ##
11007 ## Report this to the AC_PACKAGE_NAME lists. ##
11008 ## ------------------------------------------ ##
11009 _ASBOX
11011 sed "s/^/$as_me: WARNING: /" >&2
11013 esac
11014 echo "$as_me:$LINENO: checking for jerror.h" >&5
11015 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11016 if test "${ac_cv_header_jerror_h+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019 ac_cv_header_jerror_h=$ac_header_preproc
11021 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11022 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11025 if test $ac_cv_header_jerror_h = yes; then
11026 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11027 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11028 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031 ac_check_lib_save_LIBS=$LIBS
11032 LIBS="-ljpeg $LIBS"
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11040 /* Override any gcc2 internal prototype to avoid an error. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 /* We use char because int might match the return type of a gcc2
11045 builtin and then its argument prototype would still apply. */
11046 char jpeg_destroy_compress ();
11048 main ()
11050 jpeg_destroy_compress ();
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11084 rm -f conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11088 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11089 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11090 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11091 HAVE_JPEG=yes
11100 if test "${HAVE_JPEG}" = "yes"; then
11101 cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_JPEG 1
11103 _ACEOF
11105 cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h. */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 #include <jpeglib.h>
11112 version=JPEG_LIB_VERSION
11114 _ACEOF
11115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11116 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_JPEG 1
11119 _ACEOF
11121 else
11122 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11123 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11124 HAVE_JPEG=no
11126 rm -f conftest*
11131 ### Use -lpng if available, unless `--with-png=no'.
11132 HAVE_PNG=no
11133 if test "${HAVE_X11}" = "yes"; then
11134 if test "${with_png}" != "no"; then
11135 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11136 # in /usr/include/libpng.
11139 for ac_header in png.h libpng/png.h
11141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11143 echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11150 else
11151 # Is the header compilable?
11152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 $ac_includes_default
11161 #include <$ac_header>
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest.$ac_objext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_header_compiler=yes
11186 else
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_header_compiler=no
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11194 echo "${ECHO_T}$ac_header_compiler" >&6
11196 # Is the header present?
11197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <$ac_header>
11206 _ACEOF
11207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218 else
11219 ac_cpp_err=
11221 else
11222 ac_cpp_err=yes
11224 if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_preproc=no
11232 rm -f conftest.err conftest.$ac_ext
11233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11234 echo "${ECHO_T}$ac_header_preproc" >&6
11236 # So? What about this header?
11237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11238 yes:no: )
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11243 ac_header_preproc=yes
11245 no:yes:* )
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11259 cat <<\_ASBOX
11260 ## ------------------------------------------ ##
11261 ## Report this to the AC_PACKAGE_NAME lists. ##
11262 ## ------------------------------------------ ##
11263 _ASBOX
11265 sed "s/^/$as_me: WARNING: /" >&2
11267 esac
11268 echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 else
11273 eval "$as_ac_Header=\$ac_header_preproc"
11275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 _ACEOF
11286 done
11288 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11289 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11290 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11291 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-lpng -lz -lm $LIBS"
11296 cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h. */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11303 /* Override any gcc2 internal prototype to avoid an error. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 /* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11309 char png_get_channels ();
11311 main ()
11313 png_get_channels ();
11315 return 0;
11317 _ACEOF
11318 rm -f conftest.$ac_objext conftest$ac_exeext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11320 (eval $ac_link) 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_lib_png_png_get_channels=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_cv_lib_png_png_get_channels=no
11347 rm -f conftest.err conftest.$ac_objext \
11348 conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11351 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11352 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11353 if test $ac_cv_lib_png_png_get_channels = yes; then
11354 HAVE_PNG=yes
11360 if test "${HAVE_PNG}" = "yes"; then
11362 cat >>confdefs.h <<\_ACEOF
11363 #define HAVE_PNG 1
11364 _ACEOF
11369 ### Use -ltiff if available, unless `--with-tiff=no'.
11370 HAVE_TIFF=no
11371 if test "${HAVE_X11}" = "yes"; then
11372 if test "${with_tiff}" != "no"; then
11373 if test "${ac_cv_header_tiffio_h+set}" = set; then
11374 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11375 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11376 if test "${ac_cv_header_tiffio_h+set}" = set; then
11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11380 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11381 else
11382 # Is the header compilable?
11383 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11384 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 #include <tiffio.h>
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396 (eval $ac_compile) 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest.$ac_objext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_header_compiler=yes
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_header_compiler=no
11423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11425 echo "${ECHO_T}$ac_header_compiler" >&6
11427 # Is the header present?
11428 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11429 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11430 cat >conftest.$ac_ext <<_ACEOF
11431 /* confdefs.h. */
11432 _ACEOF
11433 cat confdefs.h >>conftest.$ac_ext
11434 cat >>conftest.$ac_ext <<_ACEOF
11435 /* end confdefs.h. */
11436 #include <tiffio.h>
11437 _ACEOF
11438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null; then
11446 if test -s conftest.err; then
11447 ac_cpp_err=$ac_c_preproc_warn_flag
11448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11449 else
11450 ac_cpp_err=
11452 else
11453 ac_cpp_err=yes
11455 if test -z "$ac_cpp_err"; then
11456 ac_header_preproc=yes
11457 else
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11461 ac_header_preproc=no
11463 rm -f conftest.err conftest.$ac_ext
11464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6
11467 # So? What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11469 yes:no: )
11470 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11471 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11473 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11474 ac_header_preproc=yes
11476 no:yes:* )
11477 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11478 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11480 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11482 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11484 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11488 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11490 cat <<\_ASBOX
11491 ## ------------------------------------------ ##
11492 ## Report this to the AC_PACKAGE_NAME lists. ##
11493 ## ------------------------------------------ ##
11494 _ASBOX
11496 sed "s/^/$as_me: WARNING: /" >&2
11498 esac
11499 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11500 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11501 if test "${ac_cv_header_tiffio_h+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504 ac_cv_header_tiffio_h=$ac_header_preproc
11506 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11507 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11510 if test $ac_cv_header_tiffio_h = yes; then
11511 tifflibs="-lz -lm"
11512 # At least one tiff package requires the jpeg library.
11513 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11514 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11515 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11516 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-ltiff $tifflibs $LIBS"
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11528 /* Override any gcc2 internal prototype to avoid an error. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char TIFFGetVersion ();
11536 main ()
11538 TIFFGetVersion ();
11540 return 0;
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } &&
11552 { ac_try='test -z "$ac_c_werror_flag"
11553 || test ! -s conftest.err'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try='test -s conftest$ac_exeext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_lib_tiff_TIFFGetVersion=yes
11566 else
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_cv_lib_tiff_TIFFGetVersion=no
11572 rm -f conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11576 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11577 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11578 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11579 HAVE_TIFF=yes
11587 if test "${HAVE_TIFF}" = "yes"; then
11589 cat >>confdefs.h <<\_ACEOF
11590 #define HAVE_TIFF 1
11591 _ACEOF
11596 ### Use -lgif if available, unless `--with-gif=no'.
11597 HAVE_GIF=no
11598 if test "${HAVE_X11}" = "yes"; then
11599 if test "${with_gif}" != "no"; then
11600 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11601 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11602 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11603 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11607 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11608 else
11609 # Is the header compilable?
11610 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11611 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h. */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 $ac_includes_default
11619 #include <gif_lib.h>
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_header_compiler=yes
11644 else
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 ac_header_compiler=no
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652 echo "${ECHO_T}$ac_header_compiler" >&6
11654 # Is the header present?
11655 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11656 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <gif_lib.h>
11664 _ACEOF
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11667 ac_status=$?
11668 grep -v '^ *+' conftest.er1 >conftest.err
11669 rm -f conftest.er1
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null; then
11673 if test -s conftest.err; then
11674 ac_cpp_err=$ac_c_preproc_warn_flag
11675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11676 else
11677 ac_cpp_err=
11679 else
11680 ac_cpp_err=yes
11682 if test -z "$ac_cpp_err"; then
11683 ac_header_preproc=yes
11684 else
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 ac_header_preproc=no
11690 rm -f conftest.err conftest.$ac_ext
11691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11692 echo "${ECHO_T}$ac_header_preproc" >&6
11694 # So? What about this header?
11695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11696 yes:no: )
11697 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11698 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11700 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11701 ac_header_preproc=yes
11703 no:yes:* )
11704 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11705 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11707 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11708 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11709 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11711 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11713 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11715 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11717 cat <<\_ASBOX
11718 ## ------------------------------------------ ##
11719 ## Report this to the AC_PACKAGE_NAME lists. ##
11720 ## ------------------------------------------ ##
11721 _ASBOX
11723 sed "s/^/$as_me: WARNING: /" >&2
11725 esac
11726 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11727 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11728 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731 ac_cv_header_gif_lib_h=$ac_header_preproc
11733 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11734 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11737 if test $ac_cv_header_gif_lib_h = yes; then
11738 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11739 # Earlier versions can crash Emacs.
11740 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11741 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11742 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-lungif $LIBS"
11747 cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h. */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11754 /* Override any gcc2 internal prototype to avoid an error. */
11755 #ifdef __cplusplus
11756 extern "C"
11757 #endif
11758 /* We use char because int might match the return type of a gcc2
11759 builtin and then its argument prototype would still apply. */
11760 char EGifPutExtensionLast ();
11762 main ()
11764 EGifPutExtensionLast ();
11766 return 0;
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771 (eval $ac_link) 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 ac_cv_lib_ungif_EGifPutExtensionLast=yes
11792 else
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_cv_lib_ungif_EGifPutExtensionLast=no
11798 rm -f conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11802 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11803 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11804 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11805 HAVE_GIF=yes
11813 if test "${HAVE_GIF}" = "yes"; then
11815 cat >>confdefs.h <<\_ACEOF
11816 #define HAVE_GIF 1
11817 _ACEOF
11822 ### Use Mac OS X Carbon API to implement GUI.
11823 HAVE_CARBON=no
11824 if test "${with_carbon}" != "no"; then
11825 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11826 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11827 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11828 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11832 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11833 else
11834 # Is the header compilable?
11835 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11836 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 $ac_includes_default
11844 #include <Carbon/Carbon.h>
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_header_compiler=yes
11869 else
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_header_compiler=no
11875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11877 echo "${ECHO_T}$ac_header_compiler" >&6
11879 # Is the header present?
11880 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11881 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 #include <Carbon/Carbon.h>
11889 _ACEOF
11890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } >/dev/null; then
11898 if test -s conftest.err; then
11899 ac_cpp_err=$ac_c_preproc_warn_flag
11900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11901 else
11902 ac_cpp_err=
11904 else
11905 ac_cpp_err=yes
11907 if test -z "$ac_cpp_err"; then
11908 ac_header_preproc=yes
11909 else
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_header_preproc=no
11915 rm -f conftest.err conftest.$ac_ext
11916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11917 echo "${ECHO_T}$ac_header_preproc" >&6
11919 # So? What about this header?
11920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11921 yes:no: )
11922 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11923 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11925 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11926 ac_header_preproc=yes
11928 no:yes:* )
11929 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11930 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11932 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11934 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11936 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11938 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11939 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11940 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11942 cat <<\_ASBOX
11943 ## ------------------------------------------ ##
11944 ## Report this to the AC_PACKAGE_NAME lists. ##
11945 ## ------------------------------------------ ##
11946 _ASBOX
11948 sed "s/^/$as_me: WARNING: /" >&2
11950 esac
11951 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11952 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11953 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
11958 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11959 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11962 if test $ac_cv_header_Carbon_Carbon_h = yes; then
11963 HAVE_CARBON=yes
11969 if test "${HAVE_CARBON}" = "yes"; then
11971 cat >>confdefs.h <<\_ACEOF
11972 #define HAVE_CARBON 1
11973 _ACEOF
11975 window_system=mac
11976 ## Specify the install directory
11977 carbon_appdir=
11978 if test "${carbon_appdir_x}" != ""; then
11979 case ${carbon_appdir_x} in
11980 y | ye | yes) carbon_appdir=/Applications ;;
11981 * ) carbon_appdir=${carbon_appdir_x} ;;
11982 esac
11984 # We also have mouse menus.
11985 HAVE_MENUS=yes
11988 ### Use session management (-lSM -lICE) if available
11989 HAVE_X_SM=no
11990 if test "${HAVE_X11}" = "yes"; then
11991 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11992 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11993 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11994 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11998 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11999 else
12000 # Is the header compilable?
12001 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12002 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 $ac_includes_default
12010 #include <X11/SM/SMlib.h>
12011 _ACEOF
12012 rm -f conftest.$ac_objext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_c_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest.$ac_objext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_header_compiler=yes
12035 else
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_header_compiler=no
12041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12043 echo "${ECHO_T}$ac_header_compiler" >&6
12045 # Is the header present?
12046 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12047 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h. */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 #include <X11/SM/SMlib.h>
12055 _ACEOF
12056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } >/dev/null; then
12064 if test -s conftest.err; then
12065 ac_cpp_err=$ac_c_preproc_warn_flag
12066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12067 else
12068 ac_cpp_err=
12070 else
12071 ac_cpp_err=yes
12073 if test -z "$ac_cpp_err"; then
12074 ac_header_preproc=yes
12075 else
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 ac_header_preproc=no
12081 rm -f conftest.err conftest.$ac_ext
12082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083 echo "${ECHO_T}$ac_header_preproc" >&6
12085 # So? What about this header?
12086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12087 yes:no: )
12088 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12089 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12091 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12092 ac_header_preproc=yes
12094 no:yes:* )
12095 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12096 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12098 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12100 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12102 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12104 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12106 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12108 cat <<\_ASBOX
12109 ## ------------------------------------------ ##
12110 ## Report this to the AC_PACKAGE_NAME lists. ##
12111 ## ------------------------------------------ ##
12112 _ASBOX
12114 sed "s/^/$as_me: WARNING: /" >&2
12116 esac
12117 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12118 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12119 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12124 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12125 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12128 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12129 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12130 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12131 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-lSM -lICE $LIBS"
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12143 /* Override any gcc2 internal prototype to avoid an error. */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 /* We use char because int might match the return type of a gcc2
12148 builtin and then its argument prototype would still apply. */
12149 char SmcOpenConnection ();
12151 main ()
12153 SmcOpenConnection ();
12155 return 0;
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest$ac_exeext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_cv_lib_SM_SmcOpenConnection=yes
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 ac_cv_lib_SM_SmcOpenConnection=no
12187 rm -f conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12192 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12193 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12194 HAVE_X_SM=yes
12201 if test "${HAVE_X_SM}" = "yes"; then
12203 cat >>confdefs.h <<\_ACEOF
12204 #define HAVE_X_SM 1
12205 _ACEOF
12207 case "$LIBS" in
12208 *-lSM*) ;;
12209 *) LIBS="-lSM -lICE $LIBS" ;;
12210 esac
12214 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12215 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12216 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12217 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 #include <netdb.h>
12228 main ()
12230 return h_errno;
12232 return 0;
12234 _ACEOF
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag"
12245 || test ! -s conftest.err'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } &&
12251 { ac_try='test -s conftest$ac_exeext'
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 emacs_cv_netdb_declares_h_errno=yes
12258 else
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12262 emacs_cv_netdb_declares_h_errno=no
12264 rm -f conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext conftest.$ac_ext
12267 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12268 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12269 if test $emacs_cv_netdb_declares_h_errno = yes; then
12271 cat >>confdefs.h <<\_ACEOF
12272 #define HAVE_H_ERRNO 1
12273 _ACEOF
12277 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12278 # for constant arguments. Useless!
12279 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12280 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12281 if test "${ac_cv_working_alloca_h+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <alloca.h>
12292 main ()
12294 char *p = (char *) alloca (2 * sizeof (int));
12296 return 0;
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -z "$ac_c_werror_flag"
12309 || test ! -s conftest.err'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_working_alloca_h=yes
12322 else
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_cv_working_alloca_h=no
12328 rm -f conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12331 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12332 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12333 if test $ac_cv_working_alloca_h = yes; then
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_ALLOCA_H 1
12337 _ACEOF
12341 echo "$as_me:$LINENO: checking for alloca" >&5
12342 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12343 if test "${ac_cv_func_alloca_works+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h. */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #ifdef __GNUC__
12353 # define alloca __builtin_alloca
12354 #else
12355 # ifdef _MSC_VER
12356 # include <malloc.h>
12357 # define alloca _alloca
12358 # else
12359 # if HAVE_ALLOCA_H
12360 # include <alloca.h>
12361 # else
12362 # ifdef _AIX
12363 #pragma alloca
12364 # else
12365 # ifndef alloca /* predefined by HP cc +Olibcalls */
12366 char *alloca ();
12367 # endif
12368 # endif
12369 # endif
12370 # endif
12371 #endif
12374 main ()
12376 char *p = (char *) alloca (1);
12378 return 0;
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383 (eval $ac_link) 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_func_alloca_works=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_func_alloca_works=no
12410 rm -f conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12413 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12414 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12416 if test $ac_cv_func_alloca_works = yes; then
12418 cat >>confdefs.h <<\_ACEOF
12419 #define HAVE_ALLOCA 1
12420 _ACEOF
12422 else
12423 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12424 # that cause trouble. Some versions do not even contain alloca or
12425 # contain a buggy version. If you still want to use their alloca,
12426 # use ar to extract alloca.o from them instead of compiling alloca.c.
12428 ALLOCA=alloca.$ac_objext
12430 cat >>confdefs.h <<\_ACEOF
12431 #define C_ALLOCA 1
12432 _ACEOF
12435 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12436 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12437 if test "${ac_cv_os_cray+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 #if defined(CRAY) && ! defined(CRAY2)
12447 webecray
12448 #else
12449 wenotbecray
12450 #endif
12452 _ACEOF
12453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12454 $EGREP "webecray" >/dev/null 2>&1; then
12455 ac_cv_os_cray=yes
12456 else
12457 ac_cv_os_cray=no
12459 rm -f conftest*
12462 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12463 echo "${ECHO_T}$ac_cv_os_cray" >&6
12464 if test $ac_cv_os_cray = yes; then
12465 for ac_func in _getb67 GETB67 getb67; do
12466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12467 echo "$as_me:$LINENO: checking for $ac_func" >&5
12468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12469 if eval "test \"\${$as_ac_var+set}\" = set"; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480 #define $ac_func innocuous_$ac_func
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char $ac_func (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12487 #ifdef __STDC__
12488 # include <limits.h>
12489 #else
12490 # include <assert.h>
12491 #endif
12493 #undef $ac_func
12495 /* Override any gcc2 internal prototype to avoid an error. */
12496 #ifdef __cplusplus
12497 extern "C"
12499 #endif
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char $ac_func ();
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12507 choke me
12508 #else
12509 char (*f) () = $ac_func;
12510 #endif
12511 #ifdef __cplusplus
12513 #endif
12516 main ()
12518 return f != $ac_func;
12520 return 0;
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 eval "$as_ac_var=yes"
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 eval "$as_ac_var=no"
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12557 if test `eval echo '${'$as_ac_var'}'` = yes; then
12559 cat >>confdefs.h <<_ACEOF
12560 #define CRAY_STACKSEG_END $ac_func
12561 _ACEOF
12563 break
12566 done
12569 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12570 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12571 if test "${ac_cv_c_stack_direction+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574 if test "$cross_compiling" = yes; then
12575 ac_cv_c_stack_direction=0
12576 else
12577 cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h. */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12584 find_stack_direction ()
12586 static char *addr = 0;
12587 auto char dummy;
12588 if (addr == 0)
12590 addr = &dummy;
12591 return find_stack_direction ();
12593 else
12594 return (&dummy > addr) ? 1 : -1;
12598 main ()
12600 exit (find_stack_direction () < 0);
12602 _ACEOF
12603 rm -f conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_c_stack_direction=1
12615 else
12616 echo "$as_me: program exited with status $ac_status" >&5
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 ( exit $ac_status )
12621 ac_cv_c_stack_direction=-1
12623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12626 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12627 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12629 cat >>confdefs.h <<_ACEOF
12630 #define STACK_DIRECTION $ac_cv_c_stack_direction
12631 _ACEOF
12637 # fmod, logb, and frexp are found in -lm on most systems.
12638 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12640 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12641 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12642 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645 ac_check_lib_save_LIBS=$LIBS
12646 LIBS="-lm $LIBS"
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 /* Override any gcc2 internal prototype to avoid an error. */
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658 /* We use char because int might match the return type of a gcc2
12659 builtin and then its argument prototype would still apply. */
12660 char sqrt ();
12662 main ()
12664 sqrt ();
12666 return 0;
12668 _ACEOF
12669 rm -f conftest.$ac_objext conftest$ac_exeext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671 (eval $ac_link) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_cv_lib_m_sqrt=yes
12692 else
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_cv_lib_m_sqrt=no
12698 rm -f conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700 LIBS=$ac_check_lib_save_LIBS
12702 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12703 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12704 if test $ac_cv_lib_m_sqrt = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define HAVE_LIBM 1
12707 _ACEOF
12709 LIBS="-lm $LIBS"
12714 # Check for mail-locking functions in a "mail" library. Probably this should
12715 # have the same check as for liblockfile below.
12717 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12718 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12719 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lmail $LIBS"
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12731 /* Override any gcc2 internal prototype to avoid an error. */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 /* We use char because int might match the return type of a gcc2
12736 builtin and then its argument prototype would still apply. */
12737 char maillock ();
12739 main ()
12741 maillock ();
12743 return 0;
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag"
12756 || test ! -s conftest.err'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_cv_lib_mail_maillock=yes
12769 else
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 ac_cv_lib_mail_maillock=no
12775 rm -f conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12779 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12780 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12781 if test $ac_cv_lib_mail_maillock = yes; then
12782 cat >>confdefs.h <<_ACEOF
12783 #define HAVE_LIBMAIL 1
12784 _ACEOF
12786 LIBS="-lmail $LIBS"
12791 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12792 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12793 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796 ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-llockfile $LIBS"
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h. */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any gcc2 internal prototype to avoid an error. */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 /* We use char because int might match the return type of a gcc2
12810 builtin and then its argument prototype would still apply. */
12811 char maillock ();
12813 main ()
12815 maillock ();
12817 return 0;
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822 (eval $ac_link) 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -z "$ac_c_werror_flag"
12830 || test ! -s conftest.err'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest$ac_exeext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_lib_lockfile_maillock=yes
12843 else
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12847 ac_cv_lib_lockfile_maillock=no
12849 rm -f conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12854 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12855 if test $ac_cv_lib_lockfile_maillock = yes; then
12856 cat >>confdefs.h <<_ACEOF
12857 #define HAVE_LIBLOCKFILE 1
12858 _ACEOF
12860 LIBS="-llockfile $LIBS"
12864 # If we have the shared liblockfile, assume we must use it for mail
12865 # locking (e.g. Debian). If we couldn't link against liblockfile
12866 # (no liblockfile.a installed), ensure that we don't need to.
12867 if test "$ac_cv_lib_lockfile_maillock" = no; then
12868 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12869 set dummy liblockfile.so; ac_word=$2
12870 echo "$as_me:$LINENO: checking for $ac_word" >&5
12871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12872 if test "${ac_cv_prog_liblockfile+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 if test -n "$liblockfile"; then
12876 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12877 else
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12880 for as_dir in $as_dummy
12882 IFS=$as_save_IFS
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886 ac_cv_prog_liblockfile="yes"
12887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 break 2
12890 done
12891 done
12893 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12896 liblockfile=$ac_cv_prog_liblockfile
12897 if test -n "$liblockfile"; then
12898 echo "$as_me:$LINENO: result: $liblockfile" >&5
12899 echo "${ECHO_T}$liblockfile" >&6
12900 else
12901 echo "$as_me:$LINENO: result: no" >&5
12902 echo "${ECHO_T}no" >&6
12905 if test $ac_cv_prog_liblockfile = yes; then
12906 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12907 This probably means that movemail could lose mail.
12908 There may be a \`development' package to install containing liblockfile." >&5
12909 echo "$as_me: error: Shared liblockfile found but can't link against it.
12910 This probably means that movemail could lose mail.
12911 There may be a \`development' package to install containing liblockfile." >&2;}
12912 { (exit 1); exit 1; }; }
12913 else :
12917 for ac_func in touchlock
12919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12920 echo "$as_me:$LINENO: checking for $ac_func" >&5
12921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12922 if eval "test \"\${$as_ac_var+set}\" = set"; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 else
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933 #define $ac_func innocuous_$ac_func
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12940 #ifdef __STDC__
12941 # include <limits.h>
12942 #else
12943 # include <assert.h>
12944 #endif
12946 #undef $ac_func
12948 /* Override any gcc2 internal prototype to avoid an error. */
12949 #ifdef __cplusplus
12950 extern "C"
12952 #endif
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12955 char $ac_func ();
12956 /* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12960 choke me
12961 #else
12962 char (*f) () = $ac_func;
12963 #endif
12964 #ifdef __cplusplus
12966 #endif
12969 main ()
12971 return f != $ac_func;
12973 return 0;
12975 _ACEOF
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 eval "$as_ac_var=yes"
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 eval "$as_ac_var=no"
13005 rm -f conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13010 if test `eval echo '${'$as_ac_var'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 _ACEOF
13016 done
13019 for ac_header in maillock.h
13021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13023 echo "$as_me:$LINENO: checking for $ac_header" >&5
13024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13030 else
13031 # Is the header compilable?
13032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h. */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h. */
13040 $ac_includes_default
13041 #include <$ac_header>
13042 _ACEOF
13043 rm -f conftest.$ac_objext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045 (eval $ac_compile) 2>conftest.er1
13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } &&
13052 { ac_try='test -z "$ac_c_werror_flag"
13053 || test ! -s conftest.err'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest.$ac_objext'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 ac_header_compiler=yes
13066 else
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 ac_header_compiler=no
13072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13074 echo "${ECHO_T}$ac_header_compiler" >&6
13076 # Is the header present?
13077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 #include <$ac_header>
13086 _ACEOF
13087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } >/dev/null; then
13095 if test -s conftest.err; then
13096 ac_cpp_err=$ac_c_preproc_warn_flag
13097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13098 else
13099 ac_cpp_err=
13101 else
13102 ac_cpp_err=yes
13104 if test -z "$ac_cpp_err"; then
13105 ac_header_preproc=yes
13106 else
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_header_preproc=no
13112 rm -f conftest.err conftest.$ac_ext
13113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13114 echo "${ECHO_T}$ac_header_preproc" >&6
13116 # So? What about this header?
13117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13118 yes:no: )
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13123 ac_header_preproc=yes
13125 no:yes:* )
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13139 cat <<\_ASBOX
13140 ## ------------------------------------------ ##
13141 ## Report this to the AC_PACKAGE_NAME lists. ##
13142 ## ------------------------------------------ ##
13143 _ASBOX
13145 sed "s/^/$as_me: WARNING: /" >&2
13147 esac
13148 echo "$as_me:$LINENO: checking for $ac_header" >&5
13149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153 eval "$as_ac_Header=\$ac_header_preproc"
13155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13160 cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13162 _ACEOF
13166 done
13236 for ac_func in gethostname getdomainname dup2 \
13237 rename closedir mkdir rmdir sysinfo \
13238 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13239 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13240 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13241 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13242 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13243 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13244 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
13246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 echo "$as_me:$LINENO: checking for $ac_func" >&5
13248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_var+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 else
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13260 #define $ac_func innocuous_$ac_func
13262 /* System header to define __stub macros and hopefully few prototypes,
13263 which can conflict with char $ac_func (); below.
13264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13265 <limits.h> exists even on freestanding compilers. */
13267 #ifdef __STDC__
13268 # include <limits.h>
13269 #else
13270 # include <assert.h>
13271 #endif
13273 #undef $ac_func
13275 /* Override any gcc2 internal prototype to avoid an error. */
13276 #ifdef __cplusplus
13277 extern "C"
13279 #endif
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13282 char $ac_func ();
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13287 choke me
13288 #else
13289 char (*f) () = $ac_func;
13290 #endif
13291 #ifdef __cplusplus
13293 #endif
13296 main ()
13298 return f != $ac_func;
13300 return 0;
13302 _ACEOF
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 eval "$as_ac_var=yes"
13326 else
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 eval "$as_ac_var=no"
13332 rm -f conftest.err conftest.$ac_objext \
13333 conftest$ac_exeext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13337 if test `eval echo '${'$as_ac_var'}'` = yes; then
13338 cat >>confdefs.h <<_ACEOF
13339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13340 _ACEOF
13343 done
13347 for ac_header in sys/un.h
13349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13351 echo "$as_me:$LINENO: checking for $ac_header" >&5
13352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13358 else
13359 # Is the header compilable?
13360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 $ac_includes_default
13369 #include <$ac_header>
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373 (eval $ac_compile) 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_c_werror_flag"
13381 || test ! -s conftest.err'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest.$ac_objext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_header_compiler=yes
13394 else
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 ac_header_compiler=no
13400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13402 echo "${ECHO_T}$ac_header_compiler" >&6
13404 # Is the header present?
13405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13407 cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h. */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 #include <$ac_header>
13414 _ACEOF
13415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } >/dev/null; then
13423 if test -s conftest.err; then
13424 ac_cpp_err=$ac_c_preproc_warn_flag
13425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13426 else
13427 ac_cpp_err=
13429 else
13430 ac_cpp_err=yes
13432 if test -z "$ac_cpp_err"; then
13433 ac_header_preproc=yes
13434 else
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ac_header_preproc=no
13440 rm -f conftest.err conftest.$ac_ext
13441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13442 echo "${ECHO_T}$ac_header_preproc" >&6
13444 # So? What about this header?
13445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13446 yes:no: )
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13451 ac_header_preproc=yes
13453 no:yes:* )
13454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13467 cat <<\_ASBOX
13468 ## ------------------------------------------ ##
13469 ## Report this to the AC_PACKAGE_NAME lists. ##
13470 ## ------------------------------------------ ##
13471 _ASBOX
13473 sed "s/^/$as_me: WARNING: /" >&2
13475 esac
13476 echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481 eval "$as_ac_Header=\$ac_header_preproc"
13483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13490 _ACEOF
13494 done
13500 for ac_header in stdlib.h sys/time.h unistd.h
13502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13504 echo "$as_me:$LINENO: checking for $ac_header" >&5
13505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13511 else
13512 # Is the header compilable?
13513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13522 #include <$ac_header>
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag"
13534 || test ! -s conftest.err'
13535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536 (eval $ac_try) 2>&5
13537 ac_status=$?
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; } &&
13540 { ac_try='test -s conftest.$ac_objext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_header_compiler=yes
13547 else
13548 echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13551 ac_header_compiler=no
13553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6
13557 # Is the header present?
13558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 #include <$ac_header>
13567 _ACEOF
13568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13570 ac_status=$?
13571 grep -v '^ *+' conftest.er1 >conftest.err
13572 rm -f conftest.er1
13573 cat conftest.err >&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } >/dev/null; then
13576 if test -s conftest.err; then
13577 ac_cpp_err=$ac_c_preproc_warn_flag
13578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13579 else
13580 ac_cpp_err=
13582 else
13583 ac_cpp_err=yes
13585 if test -z "$ac_cpp_err"; then
13586 ac_header_preproc=yes
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_header_preproc=no
13593 rm -f conftest.err conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6
13597 # So? What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13599 yes:no: )
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13604 ac_header_preproc=yes
13606 no:yes:* )
13607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13620 cat <<\_ASBOX
13621 ## ------------------------------------------ ##
13622 ## Report this to the AC_PACKAGE_NAME lists. ##
13623 ## ------------------------------------------ ##
13624 _ASBOX
13626 sed "s/^/$as_me: WARNING: /" >&2
13628 esac
13629 echo "$as_me:$LINENO: checking for $ac_header" >&5
13630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 eval "$as_ac_Header=\$ac_header_preproc"
13636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13641 cat >>confdefs.h <<_ACEOF
13642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13643 _ACEOF
13647 done
13650 for ac_func in alarm
13652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13653 echo "$as_me:$LINENO: checking for $ac_func" >&5
13654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13655 if eval "test \"\${$as_ac_var+set}\" = set"; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13666 #define $ac_func innocuous_$ac_func
13668 /* System header to define __stub macros and hopefully few prototypes,
13669 which can conflict with char $ac_func (); below.
13670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13671 <limits.h> exists even on freestanding compilers. */
13673 #ifdef __STDC__
13674 # include <limits.h>
13675 #else
13676 # include <assert.h>
13677 #endif
13679 #undef $ac_func
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 #ifdef __cplusplus
13683 extern "C"
13685 #endif
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13688 char $ac_func ();
13689 /* The GNU C library defines this for functions which it implements
13690 to always fail with ENOSYS. Some functions are actually named
13691 something starting with __ and the normal name is an alias. */
13692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13693 choke me
13694 #else
13695 char (*f) () = $ac_func;
13696 #endif
13697 #ifdef __cplusplus
13699 #endif
13702 main ()
13704 return f != $ac_func;
13706 return 0;
13708 _ACEOF
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13711 (eval $ac_link) 2>conftest.er1
13712 ac_status=$?
13713 grep -v '^ *+' conftest.er1 >conftest.err
13714 rm -f conftest.er1
13715 cat conftest.err >&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } &&
13718 { ac_try='test -z "$ac_c_werror_flag"
13719 || test ! -s conftest.err'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; } &&
13725 { ac_try='test -s conftest$ac_exeext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$as_ac_var=yes"
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 eval "$as_ac_var=no"
13738 rm -f conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
13741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13743 if test `eval echo '${'$as_ac_var'}'` = yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13746 _ACEOF
13749 done
13751 echo "$as_me:$LINENO: checking for working mktime" >&5
13752 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13753 if test "${ac_cv_func_working_mktime+set}" = set; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756 if test "$cross_compiling" = yes; then
13757 ac_cv_func_working_mktime=no
13758 else
13759 cat >conftest.$ac_ext <<_ACEOF
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 /* Test program from Paul Eggert and Tony Leneis. */
13766 #if TIME_WITH_SYS_TIME
13767 # include <sys/time.h>
13768 # include <time.h>
13769 #else
13770 # if HAVE_SYS_TIME_H
13771 # include <sys/time.h>
13772 # else
13773 # include <time.h>
13774 # endif
13775 #endif
13777 #if HAVE_STDLIB_H
13778 # include <stdlib.h>
13779 #endif
13781 #if HAVE_UNISTD_H
13782 # include <unistd.h>
13783 #endif
13785 #if !HAVE_ALARM
13786 # define alarm(X) /* empty */
13787 #endif
13789 /* Work around redefinition to rpl_putenv by other config tests. */
13790 #undef putenv
13792 static time_t time_t_max;
13793 static time_t time_t_min;
13795 /* Values we'll use to set the TZ environment variable. */
13796 static char *tz_strings[] = {
13797 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13798 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13800 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13802 /* Fail if mktime fails to convert a date in the spring-forward gap.
13803 Based on a problem report from Andreas Jaeger. */
13804 static void
13805 spring_forward_gap ()
13807 /* glibc (up to about 1998-10-07) failed this test. */
13808 struct tm tm;
13810 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13811 instead of "TZ=America/Vancouver" in order to detect the bug even
13812 on systems that don't support the Olson extension, or don't have the
13813 full zoneinfo tables installed. */
13814 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13816 tm.tm_year = 98;
13817 tm.tm_mon = 3;
13818 tm.tm_mday = 5;
13819 tm.tm_hour = 2;
13820 tm.tm_min = 0;
13821 tm.tm_sec = 0;
13822 tm.tm_isdst = -1;
13823 if (mktime (&tm) == (time_t)-1)
13824 exit (1);
13827 static void
13828 mktime_test1 (now)
13829 time_t now;
13831 struct tm *lt;
13832 if ((lt = localtime (&now)) && mktime (lt) != now)
13833 exit (1);
13836 static void
13837 mktime_test (now)
13838 time_t now;
13840 mktime_test1 (now);
13841 mktime_test1 ((time_t) (time_t_max - now));
13842 mktime_test1 ((time_t) (time_t_min + now));
13845 static void
13846 irix_6_4_bug ()
13848 /* Based on code from Ariel Faigon. */
13849 struct tm tm;
13850 tm.tm_year = 96;
13851 tm.tm_mon = 3;
13852 tm.tm_mday = 0;
13853 tm.tm_hour = 0;
13854 tm.tm_min = 0;
13855 tm.tm_sec = 0;
13856 tm.tm_isdst = -1;
13857 mktime (&tm);
13858 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13859 exit (1);
13862 static void
13863 bigtime_test (j)
13864 int j;
13866 struct tm tm;
13867 time_t now;
13868 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13869 now = mktime (&tm);
13870 if (now != (time_t) -1)
13872 struct tm *lt = localtime (&now);
13873 if (! (lt
13874 && lt->tm_year == tm.tm_year
13875 && lt->tm_mon == tm.tm_mon
13876 && lt->tm_mday == tm.tm_mday
13877 && lt->tm_hour == tm.tm_hour
13878 && lt->tm_min == tm.tm_min
13879 && lt->tm_sec == tm.tm_sec
13880 && lt->tm_yday == tm.tm_yday
13881 && lt->tm_wday == tm.tm_wday
13882 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13883 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13884 exit (1);
13889 main ()
13891 time_t t, delta;
13892 int i, j;
13894 /* This test makes some buggy mktime implementations loop.
13895 Give up after 60 seconds; a mktime slower than that
13896 isn't worth using anyway. */
13897 alarm (60);
13899 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13900 continue;
13901 time_t_max--;
13902 if ((time_t) -1 < 0)
13903 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13904 continue;
13905 delta = time_t_max / 997; /* a suitable prime number */
13906 for (i = 0; i < N_STRINGS; i++)
13908 if (tz_strings[i])
13909 putenv (tz_strings[i]);
13911 for (t = 0; t <= time_t_max - delta; t += delta)
13912 mktime_test (t);
13913 mktime_test ((time_t) 1);
13914 mktime_test ((time_t) (60 * 60));
13915 mktime_test ((time_t) (60 * 60 * 24));
13917 for (j = 1; 0 < j; j *= 2)
13918 bigtime_test (j);
13919 bigtime_test (j - 1);
13921 irix_6_4_bug ();
13922 spring_forward_gap ();
13923 exit (0);
13925 _ACEOF
13926 rm -f conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_cv_func_working_mktime=yes
13938 else
13939 echo "$as_me: program exited with status $ac_status" >&5
13940 echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 ( exit $ac_status )
13944 ac_cv_func_working_mktime=no
13946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13950 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13951 if test $ac_cv_func_working_mktime = no; then
13952 case $LIBOBJS in
13953 "mktime.$ac_objext" | \
13954 *" mktime.$ac_objext" | \
13955 "mktime.$ac_objext "* | \
13956 *" mktime.$ac_objext "* ) ;;
13957 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
13958 esac
13962 if test "$ac_cv_func_working_mktime" = no; then
13964 cat >>confdefs.h <<\_ACEOF
13965 #define BROKEN_MKTIME 1
13966 _ACEOF
13970 ac_have_func=no # yes means we've found a way to get the load average.
13972 # Make sure getloadavg.c is where it belongs, at configure-time.
13973 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13974 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13975 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13976 { (exit 1); exit 1; }; }
13978 ac_save_LIBS=$LIBS
13980 # Check for getloadavg, but be sure not to touch the cache variable.
13981 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13982 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13983 if test "${ac_cv_func_getloadavg+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h. */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13994 #define getloadavg innocuous_getloadavg
13996 /* System header to define __stub macros and hopefully few prototypes,
13997 which can conflict with char getloadavg (); below.
13998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13999 <limits.h> exists even on freestanding compilers. */
14001 #ifdef __STDC__
14002 # include <limits.h>
14003 #else
14004 # include <assert.h>
14005 #endif
14007 #undef getloadavg
14009 /* Override any gcc2 internal prototype to avoid an error. */
14010 #ifdef __cplusplus
14011 extern "C"
14013 #endif
14014 /* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14016 char getloadavg ();
14017 /* The GNU C library defines this for functions which it implements
14018 to always fail with ENOSYS. Some functions are actually named
14019 something starting with __ and the normal name is an alias. */
14020 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14021 choke me
14022 #else
14023 char (*f) () = getloadavg;
14024 #endif
14025 #ifdef __cplusplus
14027 #endif
14030 main ()
14032 return f != getloadavg;
14034 return 0;
14036 _ACEOF
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14039 (eval $ac_link) 2>conftest.er1
14040 ac_status=$?
14041 grep -v '^ *+' conftest.er1 >conftest.err
14042 rm -f conftest.er1
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -z "$ac_c_werror_flag"
14047 || test ! -s conftest.err'
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; } &&
14053 { ac_try='test -s conftest$ac_exeext'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; }; then
14059 ac_cv_func_getloadavg=yes
14060 else
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_cv_func_getloadavg=no
14066 rm -f conftest.err conftest.$ac_objext \
14067 conftest$ac_exeext conftest.$ac_ext
14069 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14070 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14071 if test $ac_cv_func_getloadavg = yes; then
14072 exit 0
14073 else
14074 exit 1
14076 ) && ac_have_func=yes
14078 # On HPUX9, an unprivileged user can get load averages through this function.
14080 for ac_func in pstat_getdynamic
14082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14083 echo "$as_me:$LINENO: checking for $ac_func" >&5
14084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14085 if eval "test \"\${$as_ac_var+set}\" = set"; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h. */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14096 #define $ac_func innocuous_$ac_func
14098 /* System header to define __stub macros and hopefully few prototypes,
14099 which can conflict with char $ac_func (); below.
14100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14101 <limits.h> exists even on freestanding compilers. */
14103 #ifdef __STDC__
14104 # include <limits.h>
14105 #else
14106 # include <assert.h>
14107 #endif
14109 #undef $ac_func
14111 /* Override any gcc2 internal prototype to avoid an error. */
14112 #ifdef __cplusplus
14113 extern "C"
14115 #endif
14116 /* We use char because int might match the return type of a gcc2
14117 builtin and then its argument prototype would still apply. */
14118 char $ac_func ();
14119 /* The GNU C library defines this for functions which it implements
14120 to always fail with ENOSYS. Some functions are actually named
14121 something starting with __ and the normal name is an alias. */
14122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14123 choke me
14124 #else
14125 char (*f) () = $ac_func;
14126 #endif
14127 #ifdef __cplusplus
14129 #endif
14132 main ()
14134 return f != $ac_func;
14136 return 0;
14138 _ACEOF
14139 rm -f conftest.$ac_objext conftest$ac_exeext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest$ac_exeext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 eval "$as_ac_var=yes"
14162 else
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 eval "$as_ac_var=no"
14168 rm -f conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14173 if test `eval echo '${'$as_ac_var'}'` = yes; then
14174 cat >>confdefs.h <<_ACEOF
14175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14176 _ACEOF
14179 done
14182 # Solaris has libkstat which does not require root.
14184 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14185 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14186 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 else
14189 ac_check_lib_save_LIBS=$LIBS
14190 LIBS="-lkstat $LIBS"
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h. */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14198 /* Override any gcc2 internal prototype to avoid an error. */
14199 #ifdef __cplusplus
14200 extern "C"
14201 #endif
14202 /* We use char because int might match the return type of a gcc2
14203 builtin and then its argument prototype would still apply. */
14204 char kstat_open ();
14206 main ()
14208 kstat_open ();
14210 return 0;
14212 _ACEOF
14213 rm -f conftest.$ac_objext conftest$ac_exeext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14215 (eval $ac_link) 2>conftest.er1
14216 ac_status=$?
14217 grep -v '^ *+' conftest.er1 >conftest.err
14218 rm -f conftest.er1
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -z "$ac_c_werror_flag"
14223 || test ! -s conftest.err'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest$ac_exeext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_lib_kstat_kstat_open=yes
14236 else
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_cv_lib_kstat_kstat_open=no
14242 rm -f conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS
14246 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14247 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14248 if test $ac_cv_lib_kstat_kstat_open = yes; then
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_LIBKSTAT 1
14251 _ACEOF
14253 LIBS="-lkstat $LIBS"
14257 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14259 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14260 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14261 # to get the right answer into the cache.
14262 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14263 if test $ac_have_func = no; then
14264 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14265 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14266 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269 ac_check_lib_save_LIBS=$LIBS
14270 LIBS="-lelf $LIBS"
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14278 /* Override any gcc2 internal prototype to avoid an error. */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 /* We use char because int might match the return type of a gcc2
14283 builtin and then its argument prototype would still apply. */
14284 char elf_begin ();
14286 main ()
14288 elf_begin ();
14290 return 0;
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14295 (eval $ac_link) 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } &&
14302 { ac_try='test -z "$ac_c_werror_flag"
14303 || test ! -s conftest.err'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; } &&
14309 { ac_try='test -s conftest$ac_exeext'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; }; then
14315 ac_cv_lib_elf_elf_begin=yes
14316 else
14317 echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_cv_lib_elf_elf_begin=no
14322 rm -f conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
14324 LIBS=$ac_check_lib_save_LIBS
14326 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14327 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14328 if test $ac_cv_lib_elf_elf_begin = yes; then
14329 LIBS="-lelf $LIBS"
14333 if test $ac_have_func = no; then
14334 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14335 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14336 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339 ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lkvm $LIBS"
14341 cat >conftest.$ac_ext <<_ACEOF
14342 /* confdefs.h. */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14348 /* Override any gcc2 internal prototype to avoid an error. */
14349 #ifdef __cplusplus
14350 extern "C"
14351 #endif
14352 /* We use char because int might match the return type of a gcc2
14353 builtin and then its argument prototype would still apply. */
14354 char kvm_open ();
14356 main ()
14358 kvm_open ();
14360 return 0;
14362 _ACEOF
14363 rm -f conftest.$ac_objext conftest$ac_exeext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14365 (eval $ac_link) 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
14372 { ac_try='test -z "$ac_c_werror_flag"
14373 || test ! -s conftest.err'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest$ac_exeext'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_cv_lib_kvm_kvm_open=yes
14386 else
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 ac_cv_lib_kvm_kvm_open=no
14392 rm -f conftest.err conftest.$ac_objext \
14393 conftest$ac_exeext conftest.$ac_ext
14394 LIBS=$ac_check_lib_save_LIBS
14396 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14397 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14398 if test $ac_cv_lib_kvm_kvm_open = yes; then
14399 LIBS="-lkvm $LIBS"
14402 # Check for the 4.4BSD definition of getloadavg.
14403 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14404 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14405 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 ac_check_lib_save_LIBS=$LIBS
14409 LIBS="-lutil $LIBS"
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h. */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14417 /* Override any gcc2 internal prototype to avoid an error. */
14418 #ifdef __cplusplus
14419 extern "C"
14420 #endif
14421 /* We use char because int might match the return type of a gcc2
14422 builtin and then its argument prototype would still apply. */
14423 char getloadavg ();
14425 main ()
14427 getloadavg ();
14429 return 0;
14431 _ACEOF
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14434 (eval $ac_link) 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest$ac_exeext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_cv_lib_util_getloadavg=yes
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_cv_lib_util_getloadavg=no
14461 rm -f conftest.err conftest.$ac_objext \
14462 conftest$ac_exeext conftest.$ac_ext
14463 LIBS=$ac_check_lib_save_LIBS
14465 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14466 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14467 if test $ac_cv_lib_util_getloadavg = yes; then
14468 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
14473 if test $ac_have_func = no; then
14474 # There is a commonly available library for RS/6000 AIX.
14475 # Since it is not a standard part of AIX, it might be installed locally.
14476 ac_getloadavg_LIBS=$LIBS
14477 LIBS="-L/usr/local/lib $LIBS"
14478 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14479 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14480 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lgetloadavg $LIBS"
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14492 /* Override any gcc2 internal prototype to avoid an error. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 /* We use char because int might match the return type of a gcc2
14497 builtin and then its argument prototype would still apply. */
14498 char getloadavg ();
14500 main ()
14502 getloadavg ();
14504 return 0;
14506 _ACEOF
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_cv_lib_getloadavg_getloadavg=yes
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_lib_getloadavg_getloadavg=no
14536 rm -f conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14540 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14541 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14542 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14543 LIBS="-lgetloadavg $LIBS"
14544 else
14545 LIBS=$ac_getloadavg_LIBS
14550 # Make sure it is really in the library, if we think we found it,
14551 # otherwise set up the replacement function.
14553 for ac_func in getloadavg
14555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14556 echo "$as_me:$LINENO: checking for $ac_func" >&5
14557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14558 if eval "test \"\${$as_ac_var+set}\" = set"; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h. */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14569 #define $ac_func innocuous_$ac_func
14571 /* System header to define __stub macros and hopefully few prototypes,
14572 which can conflict with char $ac_func (); below.
14573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14574 <limits.h> exists even on freestanding compilers. */
14576 #ifdef __STDC__
14577 # include <limits.h>
14578 #else
14579 # include <assert.h>
14580 #endif
14582 #undef $ac_func
14584 /* Override any gcc2 internal prototype to avoid an error. */
14585 #ifdef __cplusplus
14586 extern "C"
14588 #endif
14589 /* We use char because int might match the return type of a gcc2
14590 builtin and then its argument prototype would still apply. */
14591 char $ac_func ();
14592 /* The GNU C library defines this for functions which it implements
14593 to always fail with ENOSYS. Some functions are actually named
14594 something starting with __ and the normal name is an alias. */
14595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14596 choke me
14597 #else
14598 char (*f) () = $ac_func;
14599 #endif
14600 #ifdef __cplusplus
14602 #endif
14605 main ()
14607 return f != $ac_func;
14609 return 0;
14611 _ACEOF
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest$ac_exeext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 eval "$as_ac_var=yes"
14635 else
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 eval "$as_ac_var=no"
14641 rm -f conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14646 if test `eval echo '${'$as_ac_var'}'` = yes; then
14647 cat >>confdefs.h <<_ACEOF
14648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14649 _ACEOF
14651 else
14652 case $LIBOBJS in
14653 "getloadavg.$ac_objext" | \
14654 *" getloadavg.$ac_objext" | \
14655 "getloadavg.$ac_objext "* | \
14656 *" getloadavg.$ac_objext "* ) ;;
14657 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
14658 esac
14661 cat >>confdefs.h <<\_ACEOF
14662 #define C_GETLOADAVG 1
14663 _ACEOF
14665 # Figure out what our getloadavg.c needs.
14666 ac_have_func=no
14667 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14668 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14669 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14670 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14674 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14675 else
14676 # Is the header compilable?
14677 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14678 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h. */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 $ac_includes_default
14686 #include <sys/dg_sys_info.h>
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14690 (eval $ac_compile) 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try='test -s conftest.$ac_objext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 ac_header_compiler=yes
14711 else
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_header_compiler=no
14717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14719 echo "${ECHO_T}$ac_header_compiler" >&6
14721 # Is the header present?
14722 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14723 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h. */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 #include <sys/dg_sys_info.h>
14731 _ACEOF
14732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev/null; then
14740 if test -s conftest.err; then
14741 ac_cpp_err=$ac_c_preproc_warn_flag
14742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14743 else
14744 ac_cpp_err=
14746 else
14747 ac_cpp_err=yes
14749 if test -z "$ac_cpp_err"; then
14750 ac_header_preproc=yes
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_preproc=no
14757 rm -f conftest.err conftest.$ac_ext
14758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14759 echo "${ECHO_T}$ac_header_preproc" >&6
14761 # So? What about this header?
14762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14763 yes:no: )
14764 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14765 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14767 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14768 ac_header_preproc=yes
14770 no:yes:* )
14771 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14772 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14774 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14776 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14777 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14778 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14780 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14782 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14784 cat <<\_ASBOX
14785 ## ------------------------------------------ ##
14786 ## Report this to the AC_PACKAGE_NAME lists. ##
14787 ## ------------------------------------------ ##
14788 _ASBOX
14790 sed "s/^/$as_me: WARNING: /" >&2
14792 esac
14793 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14794 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14795 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
14800 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14801 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14804 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14805 ac_have_func=yes
14807 cat >>confdefs.h <<\_ACEOF
14808 #define DGUX 1
14809 _ACEOF
14812 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14813 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14814 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-ldgc $LIBS"
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14826 /* Override any gcc2 internal prototype to avoid an error. */
14827 #ifdef __cplusplus
14828 extern "C"
14829 #endif
14830 /* We use char because int might match the return type of a gcc2
14831 builtin and then its argument prototype would still apply. */
14832 char dg_sys_info ();
14834 main ()
14836 dg_sys_info ();
14838 return 0;
14840 _ACEOF
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14843 (eval $ac_link) 2>conftest.er1
14844 ac_status=$?
14845 grep -v '^ *+' conftest.er1 >conftest.err
14846 rm -f conftest.er1
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -z "$ac_c_werror_flag"
14851 || test ! -s conftest.err'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; } &&
14857 { ac_try='test -s conftest$ac_exeext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 ac_cv_lib_dgc_dg_sys_info=yes
14864 else
14865 echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_cv_lib_dgc_dg_sys_info=no
14870 rm -f conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
14872 LIBS=$ac_check_lib_save_LIBS
14874 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14875 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14876 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14877 cat >>confdefs.h <<_ACEOF
14878 #define HAVE_LIBDGC 1
14879 _ACEOF
14881 LIBS="-ldgc $LIBS"
14889 if test "${ac_cv_header_locale_h+set}" = set; then
14890 echo "$as_me:$LINENO: checking for locale.h" >&5
14891 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14892 if test "${ac_cv_header_locale_h+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14896 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14897 else
14898 # Is the header compilable?
14899 echo "$as_me:$LINENO: checking locale.h usability" >&5
14900 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 #include <locale.h>
14909 _ACEOF
14910 rm -f conftest.$ac_objext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -z "$ac_c_werror_flag"
14920 || test ! -s conftest.err'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; } &&
14926 { ac_try='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_header_compiler=yes
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14937 ac_header_compiler=no
14939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6
14943 # Is the header present?
14944 echo "$as_me:$LINENO: checking locale.h presence" >&5
14945 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <locale.h>
14953 _ACEOF
14954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } >/dev/null; then
14962 if test -s conftest.err; then
14963 ac_cpp_err=$ac_c_preproc_warn_flag
14964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14965 else
14966 ac_cpp_err=
14968 else
14969 ac_cpp_err=yes
14971 if test -z "$ac_cpp_err"; then
14972 ac_header_preproc=yes
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_header_preproc=no
14979 rm -f conftest.err conftest.$ac_ext
14980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14981 echo "${ECHO_T}$ac_header_preproc" >&6
14983 # So? What about this header?
14984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14985 yes:no: )
14986 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14987 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
14989 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
14990 ac_header_preproc=yes
14992 no:yes:* )
14993 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14994 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14996 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
14998 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
14999 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15000 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15002 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15004 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15006 cat <<\_ASBOX
15007 ## ------------------------------------------ ##
15008 ## Report this to the AC_PACKAGE_NAME lists. ##
15009 ## ------------------------------------------ ##
15010 _ASBOX
15012 sed "s/^/$as_me: WARNING: /" >&2
15014 esac
15015 echo "$as_me:$LINENO: checking for locale.h" >&5
15016 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15017 if test "${ac_cv_header_locale_h+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 ac_cv_header_locale_h=$ac_header_preproc
15022 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15023 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15029 for ac_func in setlocale
15031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15032 echo "$as_me:$LINENO: checking for $ac_func" >&5
15033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15034 if eval "test \"\${$as_ac_var+set}\" = set"; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15045 #define $ac_func innocuous_$ac_func
15047 /* System header to define __stub macros and hopefully few prototypes,
15048 which can conflict with char $ac_func (); below.
15049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15050 <limits.h> exists even on freestanding compilers. */
15052 #ifdef __STDC__
15053 # include <limits.h>
15054 #else
15055 # include <assert.h>
15056 #endif
15058 #undef $ac_func
15060 /* Override any gcc2 internal prototype to avoid an error. */
15061 #ifdef __cplusplus
15062 extern "C"
15064 #endif
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15067 char $ac_func ();
15068 /* The GNU C library defines this for functions which it implements
15069 to always fail with ENOSYS. Some functions are actually named
15070 something starting with __ and the normal name is an alias. */
15071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15072 choke me
15073 #else
15074 char (*f) () = $ac_func;
15075 #endif
15076 #ifdef __cplusplus
15078 #endif
15081 main ()
15083 return f != $ac_func;
15085 return 0;
15087 _ACEOF
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15090 (eval $ac_link) 2>conftest.er1
15091 ac_status=$?
15092 grep -v '^ *+' conftest.er1 >conftest.err
15093 rm -f conftest.er1
15094 cat conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -z "$ac_c_werror_flag"
15098 || test ! -s conftest.err'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try='test -s conftest$ac_exeext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 eval "$as_ac_var=yes"
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 eval "$as_ac_var=no"
15117 rm -f conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15122 if test `eval echo '${'$as_ac_var'}'` = yes; then
15123 cat >>confdefs.h <<_ACEOF
15124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15125 _ACEOF
15128 done
15131 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15132 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15133 # Irix 4.0.5F has the header but not the library.
15134 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15135 ac_have_func=yes
15137 cat >>confdefs.h <<\_ACEOF
15138 #define SVR4 1
15139 _ACEOF
15143 if test $ac_have_func = no; then
15144 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15145 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15146 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15147 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15152 else
15153 # Is the header compilable?
15154 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15155 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 $ac_includes_default
15163 #include <inq_stats/cpustats.h>
15164 _ACEOF
15165 rm -f conftest.$ac_objext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167 (eval $ac_compile) 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_compiler=no
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15196 echo "${ECHO_T}$ac_header_compiler" >&6
15198 # Is the header present?
15199 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15200 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 #include <inq_stats/cpustats.h>
15208 _ACEOF
15209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } >/dev/null; then
15217 if test -s conftest.err; then
15218 ac_cpp_err=$ac_c_preproc_warn_flag
15219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15220 else
15221 ac_cpp_err=
15223 else
15224 ac_cpp_err=yes
15226 if test -z "$ac_cpp_err"; then
15227 ac_header_preproc=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_header_preproc=no
15234 rm -f conftest.err conftest.$ac_ext
15235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15236 echo "${ECHO_T}$ac_header_preproc" >&6
15238 # So? What about this header?
15239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15240 yes:no: )
15241 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15242 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15244 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15245 ac_header_preproc=yes
15247 no:yes:* )
15248 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15249 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15251 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15253 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15255 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15257 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15259 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15261 cat <<\_ASBOX
15262 ## ------------------------------------------ ##
15263 ## Report this to the AC_PACKAGE_NAME lists. ##
15264 ## ------------------------------------------ ##
15265 _ASBOX
15267 sed "s/^/$as_me: WARNING: /" >&2
15269 esac
15270 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15271 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15272 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 else
15275 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
15277 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15278 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15281 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15282 ac_have_func=yes
15284 cat >>confdefs.h <<\_ACEOF
15285 #define UMAX 1
15286 _ACEOF
15289 cat >>confdefs.h <<\_ACEOF
15290 #define UMAX4_3 1
15291 _ACEOF
15298 if test $ac_have_func = no; then
15299 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15300 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15301 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15302 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15306 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15307 else
15308 # Is the header compilable?
15309 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15310 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15311 cat >conftest.$ac_ext <<_ACEOF
15312 /* confdefs.h. */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317 $ac_includes_default
15318 #include <sys/cpustats.h>
15319 _ACEOF
15320 rm -f conftest.$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try='test -z "$ac_c_werror_flag"
15330 || test ! -s conftest.err'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_header_compiler=yes
15343 else
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 ac_header_compiler=no
15349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15351 echo "${ECHO_T}$ac_header_compiler" >&6
15353 # Is the header present?
15354 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15355 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h. */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <sys/cpustats.h>
15363 _ACEOF
15364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev/null; then
15372 if test -s conftest.err; then
15373 ac_cpp_err=$ac_c_preproc_warn_flag
15374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15375 else
15376 ac_cpp_err=
15378 else
15379 ac_cpp_err=yes
15381 if test -z "$ac_cpp_err"; then
15382 ac_header_preproc=yes
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_header_preproc=no
15389 rm -f conftest.err conftest.$ac_ext
15390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15391 echo "${ECHO_T}$ac_header_preproc" >&6
15393 # So? What about this header?
15394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15395 yes:no: )
15396 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15397 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15399 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15400 ac_header_preproc=yes
15402 no:yes:* )
15403 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15404 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15406 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15408 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15410 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15412 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15414 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15416 cat <<\_ASBOX
15417 ## ------------------------------------------ ##
15418 ## Report this to the AC_PACKAGE_NAME lists. ##
15419 ## ------------------------------------------ ##
15420 _ASBOX
15422 sed "s/^/$as_me: WARNING: /" >&2
15424 esac
15425 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15426 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15427 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 ac_cv_header_sys_cpustats_h=$ac_header_preproc
15432 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15433 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15436 if test $ac_cv_header_sys_cpustats_h = yes; then
15437 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
15438 #define UMAX 1
15439 _ACEOF
15446 if test $ac_have_func = no; then
15448 for ac_header in mach/mach.h
15450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15452 echo "$as_me:$LINENO: checking for $ac_header" >&5
15453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15459 else
15460 # Is the header compilable?
15461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 $ac_includes_default
15470 #include <$ac_header>
15471 _ACEOF
15472 rm -f conftest.$ac_objext
15473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15474 (eval $ac_compile) 2>conftest.er1
15475 ac_status=$?
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_header_compiler=yes
15495 else
15496 echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_header_compiler=no
15501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15503 echo "${ECHO_T}$ac_header_compiler" >&6
15505 # Is the header present?
15506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 #include <$ac_header>
15515 _ACEOF
15516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15518 ac_status=$?
15519 grep -v '^ *+' conftest.er1 >conftest.err
15520 rm -f conftest.er1
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } >/dev/null; then
15524 if test -s conftest.err; then
15525 ac_cpp_err=$ac_c_preproc_warn_flag
15526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15527 else
15528 ac_cpp_err=
15530 else
15531 ac_cpp_err=yes
15533 if test -z "$ac_cpp_err"; then
15534 ac_header_preproc=yes
15535 else
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_header_preproc=no
15541 rm -f conftest.err conftest.$ac_ext
15542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15543 echo "${ECHO_T}$ac_header_preproc" >&6
15545 # So? What about this header?
15546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15547 yes:no: )
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15552 ac_header_preproc=yes
15554 no:yes:* )
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15568 cat <<\_ASBOX
15569 ## ------------------------------------------ ##
15570 ## Report this to the AC_PACKAGE_NAME lists. ##
15571 ## ------------------------------------------ ##
15572 _ASBOX
15574 sed "s/^/$as_me: WARNING: /" >&2
15576 esac
15577 echo "$as_me:$LINENO: checking for $ac_header" >&5
15578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15580 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582 eval "$as_ac_Header=\$ac_header_preproc"
15584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15591 _ACEOF
15595 done
15600 for ac_header in nlist.h
15602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604 echo "$as_me:$LINENO: checking for $ac_header" >&5
15605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15611 else
15612 # Is the header compilable?
15613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h. */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 $ac_includes_default
15622 #include <$ac_header>
15623 _ACEOF
15624 rm -f conftest.$ac_objext
15625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15626 (eval $ac_compile) 2>conftest.er1
15627 ac_status=$?
15628 grep -v '^ *+' conftest.er1 >conftest.err
15629 rm -f conftest.er1
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -z "$ac_c_werror_flag"
15634 || test ! -s conftest.err'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest.$ac_objext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 ac_header_compiler=yes
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_header_compiler=no
15653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15654 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15655 echo "${ECHO_T}$ac_header_compiler" >&6
15657 # Is the header present?
15658 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h. */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 #include <$ac_header>
15667 _ACEOF
15668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } >/dev/null; then
15676 if test -s conftest.err; then
15677 ac_cpp_err=$ac_c_preproc_warn_flag
15678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15679 else
15680 ac_cpp_err=
15682 else
15683 ac_cpp_err=yes
15685 if test -z "$ac_cpp_err"; then
15686 ac_header_preproc=yes
15687 else
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_header_preproc=no
15693 rm -f conftest.err conftest.$ac_ext
15694 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15695 echo "${ECHO_T}$ac_header_preproc" >&6
15697 # So? What about this header?
15698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15699 yes:no: )
15700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15704 ac_header_preproc=yes
15706 no:yes:* )
15707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15720 cat <<\_ASBOX
15721 ## ------------------------------------------ ##
15722 ## Report this to the AC_PACKAGE_NAME lists. ##
15723 ## ------------------------------------------ ##
15724 _ASBOX
15726 sed "s/^/$as_me: WARNING: /" >&2
15728 esac
15729 echo "$as_me:$LINENO: checking for $ac_header" >&5
15730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 else
15734 eval "$as_ac_Header=\$ac_header_preproc"
15736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15741 cat >>confdefs.h <<_ACEOF
15742 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15743 _ACEOF
15744 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15745 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15746 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h. */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 #include <nlist.h>
15758 main ()
15760 static struct nlist ac_aggr;
15761 if (ac_aggr.n_un.n_name)
15762 return 0;
15764 return 0;
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
15776 { ac_try='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_cv_member_struct_nlist_n_un_n_name=yes
15790 else
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <nlist.h>
15803 main ()
15805 static struct nlist ac_aggr;
15806 if (sizeof ac_aggr.n_un.n_name)
15807 return 0;
15809 return 0;
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814 (eval $ac_compile) 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -z "$ac_c_werror_flag"
15822 || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
15834 ac_cv_member_struct_nlist_n_un_n_name=yes
15835 else
15836 echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 ac_cv_member_struct_nlist_n_un_n_name=no
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15846 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15847 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15849 cat >>confdefs.h <<_ACEOF
15850 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15851 _ACEOF
15854 cat >>confdefs.h <<\_ACEOF
15855 #define NLIST_NAME_UNION 1
15856 _ACEOF
15863 done
15866 done
15869 # Some definitions of getloadavg require that the program be installed setgid.
15870 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15871 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15872 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15873 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875 cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h. */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15882 #ifdef LDAV_PRIVILEGED
15883 Yowza Am I SETGID yet
15884 #endif
15885 _ACEOF
15886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15887 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
15888 ac_cv_func_getloadavg_setgid=yes
15889 else
15890 ac_cv_func_getloadavg_setgid=no
15892 rm -f conftest*
15895 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15896 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15897 if test $ac_cv_func_getloadavg_setgid = yes; then
15898 NEED_SETGID=true
15900 cat >>confdefs.h <<\_ACEOF
15901 #define GETLOADAVG_PRIVILEGED 1
15902 _ACEOF
15904 else
15905 NEED_SETGID=false
15908 if test $ac_cv_func_getloadavg_setgid = yes; then
15909 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15910 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15911 if test "${ac_cv_group_kmem+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15915 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15916 # If we got an error (system does not support symlinks), try without -L.
15917 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15918 ac_cv_group_kmem=`echo $ac_ls_output \
15919 | sed -ne 's/[ ][ ]*/ /g;
15920 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15921 / /s/.* //;p;'`
15924 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15925 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15926 KMEM_GROUP=$ac_cv_group_kmem
15928 if test "x$ac_save_LIBS" = x; then
15929 GETLOADAVG_LIBS=$LIBS
15930 else
15931 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15933 LIBS=$ac_save_LIBS
15937 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15938 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15939 if test "${ac_cv_sys_largefile_source+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 else
15942 while :; do
15943 ac_cv_sys_largefile_source=no
15944 cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h. */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 #include <stdio.h>
15952 main ()
15954 return !fseeko;
15956 return 0;
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>conftest.er1
15962 ac_status=$?
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 break
15982 else
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h. */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 #define _LARGEFILE_SOURCE 1
15995 #include <stdio.h>
15997 main ()
15999 return !fseeko;
16001 return 0;
16003 _ACEOF
16004 rm -f conftest.$ac_objext
16005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16006 (eval $ac_compile) 2>conftest.er1
16007 ac_status=$?
16008 grep -v '^ *+' conftest.er1 >conftest.err
16009 rm -f conftest.er1
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } &&
16013 { ac_try='test -z "$ac_c_werror_flag"
16014 || test ! -s conftest.err'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; } &&
16020 { ac_try='test -s conftest.$ac_objext'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_sys_largefile_source=1; break
16027 else
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16033 break
16034 done
16036 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16037 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16038 if test "$ac_cv_sys_largefile_source" != no; then
16040 cat >>confdefs.h <<_ACEOF
16041 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16042 _ACEOF
16045 rm -f conftest*
16047 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16048 # in glibc 2.1.3, but that breaks too many other things.
16049 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16050 echo "$as_me:$LINENO: checking for fseeko" >&5
16051 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16052 if test "${ac_cv_func_fseeko+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055 cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h. */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 #include <stdio.h>
16063 main ()
16065 return fseeko && fseeko (stdin, 0, 0);
16067 return 0;
16069 _ACEOF
16070 rm -f conftest.$ac_objext conftest$ac_exeext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16072 (eval $ac_link) 2>conftest.er1
16073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest$ac_exeext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_cv_func_fseeko=yes
16093 else
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_cv_func_fseeko=no
16099 rm -f conftest.err conftest.$ac_objext \
16100 conftest$ac_exeext conftest.$ac_ext
16102 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16103 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16104 if test $ac_cv_func_fseeko = yes; then
16106 cat >>confdefs.h <<\_ACEOF
16107 #define HAVE_FSEEKO 1
16108 _ACEOF
16113 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16114 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16115 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118 # Use it with a single arg.
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 $ac_includes_default
16127 main ()
16129 getpgrp (0);
16131 return 0;
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_cv_func_getpgrp_void=no
16157 else
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 ac_cv_func_getpgrp_void=yes
16163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16167 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16168 if test $ac_cv_func_getpgrp_void = yes; then
16170 cat >>confdefs.h <<\_ACEOF
16171 #define GETPGRP_VOID 1
16172 _ACEOF
16178 for ac_func in strftime
16180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16181 echo "$as_me:$LINENO: checking for $ac_func" >&5
16182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16183 if eval "test \"\${$as_ac_var+set}\" = set"; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 else
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16194 #define $ac_func innocuous_$ac_func
16196 /* System header to define __stub macros and hopefully few prototypes,
16197 which can conflict with char $ac_func (); below.
16198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16199 <limits.h> exists even on freestanding compilers. */
16201 #ifdef __STDC__
16202 # include <limits.h>
16203 #else
16204 # include <assert.h>
16205 #endif
16207 #undef $ac_func
16209 /* Override any gcc2 internal prototype to avoid an error. */
16210 #ifdef __cplusplus
16211 extern "C"
16213 #endif
16214 /* We use char because int might match the return type of a gcc2
16215 builtin and then its argument prototype would still apply. */
16216 char $ac_func ();
16217 /* The GNU C library defines this for functions which it implements
16218 to always fail with ENOSYS. Some functions are actually named
16219 something starting with __ and the normal name is an alias. */
16220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16221 choke me
16222 #else
16223 char (*f) () = $ac_func;
16224 #endif
16225 #ifdef __cplusplus
16227 #endif
16230 main ()
16232 return f != $ac_func;
16234 return 0;
16236 _ACEOF
16237 rm -f conftest.$ac_objext conftest$ac_exeext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16239 (eval $ac_link) 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest$ac_exeext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 eval "$as_ac_var=yes"
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16264 eval "$as_ac_var=no"
16266 rm -f conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272 cat >>confdefs.h <<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16274 _ACEOF
16276 else
16277 # strftime is in -lintl on SCO UNIX.
16278 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16279 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16280 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 else
16283 ac_check_lib_save_LIBS=$LIBS
16284 LIBS="-lintl $LIBS"
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h. */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16292 /* Override any gcc2 internal prototype to avoid an error. */
16293 #ifdef __cplusplus
16294 extern "C"
16295 #endif
16296 /* We use char because int might match the return type of a gcc2
16297 builtin and then its argument prototype would still apply. */
16298 char strftime ();
16300 main ()
16302 strftime ();
16304 return 0;
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16309 (eval $ac_link) 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -z "$ac_c_werror_flag"
16317 || test ! -s conftest.err'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try='test -s conftest$ac_exeext'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_lib_intl_strftime=yes
16330 else
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_cv_lib_intl_strftime=no
16336 rm -f conftest.err conftest.$ac_objext \
16337 conftest$ac_exeext conftest.$ac_ext
16338 LIBS=$ac_check_lib_save_LIBS
16340 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16341 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16342 if test $ac_cv_lib_intl_strftime = yes; then
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_STRFTIME 1
16345 _ACEOF
16347 LIBS="-lintl $LIBS"
16351 done
16354 # UNIX98 PTYs.
16356 for ac_func in grantpt
16358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16359 echo "$as_me:$LINENO: checking for $ac_func" >&5
16360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16361 if eval "test \"\${$as_ac_var+set}\" = set"; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364 cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h. */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16372 #define $ac_func innocuous_$ac_func
16374 /* System header to define __stub macros and hopefully few prototypes,
16375 which can conflict with char $ac_func (); below.
16376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16377 <limits.h> exists even on freestanding compilers. */
16379 #ifdef __STDC__
16380 # include <limits.h>
16381 #else
16382 # include <assert.h>
16383 #endif
16385 #undef $ac_func
16387 /* Override any gcc2 internal prototype to avoid an error. */
16388 #ifdef __cplusplus
16389 extern "C"
16391 #endif
16392 /* We use char because int might match the return type of a gcc2
16393 builtin and then its argument prototype would still apply. */
16394 char $ac_func ();
16395 /* The GNU C library defines this for functions which it implements
16396 to always fail with ENOSYS. Some functions are actually named
16397 something starting with __ and the normal name is an alias. */
16398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16399 choke me
16400 #else
16401 char (*f) () = $ac_func;
16402 #endif
16403 #ifdef __cplusplus
16405 #endif
16408 main ()
16410 return f != $ac_func;
16412 return 0;
16414 _ACEOF
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16417 (eval $ac_link) 2>conftest.er1
16418 ac_status=$?
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try='test -z "$ac_c_werror_flag"
16425 || test ! -s conftest.err'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16428 ac_status=$?
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest$ac_exeext'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 eval "$as_ac_var=yes"
16438 else
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 eval "$as_ac_var=no"
16444 rm -f conftest.err conftest.$ac_objext \
16445 conftest$ac_exeext conftest.$ac_ext
16447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16449 if test `eval echo '${'$as_ac_var'}'` = yes; then
16450 cat >>confdefs.h <<_ACEOF
16451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16452 _ACEOF
16455 done
16458 # PTY-related GNU extensions.
16460 for ac_func in getpt
16462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16463 echo "$as_me:$LINENO: checking for $ac_func" >&5
16464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16465 if eval "test \"\${$as_ac_var+set}\" = set"; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16476 #define $ac_func innocuous_$ac_func
16478 /* System header to define __stub macros and hopefully few prototypes,
16479 which can conflict with char $ac_func (); below.
16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481 <limits.h> exists even on freestanding compilers. */
16483 #ifdef __STDC__
16484 # include <limits.h>
16485 #else
16486 # include <assert.h>
16487 #endif
16489 #undef $ac_func
16491 /* Override any gcc2 internal prototype to avoid an error. */
16492 #ifdef __cplusplus
16493 extern "C"
16495 #endif
16496 /* We use char because int might match the return type of a gcc2
16497 builtin and then its argument prototype would still apply. */
16498 char $ac_func ();
16499 /* The GNU C library defines this for functions which it implements
16500 to always fail with ENOSYS. Some functions are actually named
16501 something starting with __ and the normal name is an alias. */
16502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16503 choke me
16504 #else
16505 char (*f) () = $ac_func;
16506 #endif
16507 #ifdef __cplusplus
16509 #endif
16512 main ()
16514 return f != $ac_func;
16516 return 0;
16518 _ACEOF
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 eval "$as_ac_var=yes"
16542 else
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 eval "$as_ac_var=no"
16548 rm -f conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16553 if test `eval echo '${'$as_ac_var'}'` = yes; then
16554 cat >>confdefs.h <<_ACEOF
16555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16556 _ACEOF
16559 done
16562 # Check this now, so that we will NOT find the above functions in ncurses.
16563 # That is because we have not set up to link ncurses in lib-src.
16564 # It's better to believe a function is not available
16565 # than to expect to find it in ncurses.
16567 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16568 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16569 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572 ac_check_lib_save_LIBS=$LIBS
16573 LIBS="-lncurses $LIBS"
16574 cat >conftest.$ac_ext <<_ACEOF
16575 /* confdefs.h. */
16576 _ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h. */
16581 /* Override any gcc2 internal prototype to avoid an error. */
16582 #ifdef __cplusplus
16583 extern "C"
16584 #endif
16585 /* We use char because int might match the return type of a gcc2
16586 builtin and then its argument prototype would still apply. */
16587 char tparm ();
16589 main ()
16591 tparm ();
16593 return 0;
16595 _ACEOF
16596 rm -f conftest.$ac_objext conftest$ac_exeext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16598 (eval $ac_link) 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag"
16606 || test ! -s conftest.err'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; } &&
16612 { ac_try='test -s conftest$ac_exeext'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_lib_ncurses_tparm=yes
16619 else
16620 echo "$as_me: failed program was:" >&5
16621 sed 's/^/| /' conftest.$ac_ext >&5
16623 ac_cv_lib_ncurses_tparm=no
16625 rm -f conftest.err conftest.$ac_objext \
16626 conftest$ac_exeext conftest.$ac_ext
16627 LIBS=$ac_check_lib_save_LIBS
16629 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16630 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16631 if test $ac_cv_lib_ncurses_tparm = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_LIBNCURSES 1
16634 _ACEOF
16636 LIBS="-lncurses $LIBS"
16641 # Do we need the Hesiod library to provide the support routines?
16642 if test "$with_hesiod" = yes ; then
16643 # Don't set $LIBS here -- see comments above.
16644 resolv=no
16645 echo "$as_me:$LINENO: checking for res_send" >&5
16646 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16647 if test "${ac_cv_func_res_send+set}" = set; then
16648 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16658 #define res_send innocuous_res_send
16660 /* System header to define __stub macros and hopefully few prototypes,
16661 which can conflict with char res_send (); below.
16662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16663 <limits.h> exists even on freestanding compilers. */
16665 #ifdef __STDC__
16666 # include <limits.h>
16667 #else
16668 # include <assert.h>
16669 #endif
16671 #undef res_send
16673 /* Override any gcc2 internal prototype to avoid an error. */
16674 #ifdef __cplusplus
16675 extern "C"
16677 #endif
16678 /* We use char because int might match the return type of a gcc2
16679 builtin and then its argument prototype would still apply. */
16680 char res_send ();
16681 /* The GNU C library defines this for functions which it implements
16682 to always fail with ENOSYS. Some functions are actually named
16683 something starting with __ and the normal name is an alias. */
16684 #if defined (__stub_res_send) || defined (__stub___res_send)
16685 choke me
16686 #else
16687 char (*f) () = res_send;
16688 #endif
16689 #ifdef __cplusplus
16691 #endif
16694 main ()
16696 return f != res_send;
16698 return 0;
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703 (eval $ac_link) 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest$ac_exeext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ac_cv_func_res_send=yes
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ac_cv_func_res_send=no
16730 rm -f conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
16733 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16734 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16735 if test $ac_cv_func_res_send = yes; then
16737 else
16738 echo "$as_me:$LINENO: checking for __res_send" >&5
16739 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16740 if test "${ac_cv_func___res_send+set}" = set; then
16741 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743 cat >conftest.$ac_ext <<_ACEOF
16744 /* confdefs.h. */
16745 _ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16751 #define __res_send innocuous___res_send
16753 /* System header to define __stub macros and hopefully few prototypes,
16754 which can conflict with char __res_send (); below.
16755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16756 <limits.h> exists even on freestanding compilers. */
16758 #ifdef __STDC__
16759 # include <limits.h>
16760 #else
16761 # include <assert.h>
16762 #endif
16764 #undef __res_send
16766 /* Override any gcc2 internal prototype to avoid an error. */
16767 #ifdef __cplusplus
16768 extern "C"
16770 #endif
16771 /* We use char because int might match the return type of a gcc2
16772 builtin and then its argument prototype would still apply. */
16773 char __res_send ();
16774 /* The GNU C library defines this for functions which it implements
16775 to always fail with ENOSYS. Some functions are actually named
16776 something starting with __ and the normal name is an alias. */
16777 #if defined (__stub___res_send) || defined (__stub_____res_send)
16778 choke me
16779 #else
16780 char (*f) () = __res_send;
16781 #endif
16782 #ifdef __cplusplus
16784 #endif
16787 main ()
16789 return f != __res_send;
16791 return 0;
16793 _ACEOF
16794 rm -f conftest.$ac_objext conftest$ac_exeext
16795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796 (eval $ac_link) 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
16803 { ac_try='test -z "$ac_c_werror_flag"
16804 || test ! -s conftest.err'
16805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16807 ac_status=$?
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); }; } &&
16810 { ac_try='test -s conftest$ac_exeext'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; }; then
16816 ac_cv_func___res_send=yes
16817 else
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_cv_func___res_send=no
16823 rm -f conftest.err conftest.$ac_objext \
16824 conftest$ac_exeext conftest.$ac_ext
16826 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16827 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16828 if test $ac_cv_func___res_send = yes; then
16830 else
16831 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16832 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16833 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836 ac_check_lib_save_LIBS=$LIBS
16837 LIBS="-lresolv $LIBS"
16838 cat >conftest.$ac_ext <<_ACEOF
16839 /* confdefs.h. */
16840 _ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16845 /* Override any gcc2 internal prototype to avoid an error. */
16846 #ifdef __cplusplus
16847 extern "C"
16848 #endif
16849 /* We use char because int might match the return type of a gcc2
16850 builtin and then its argument prototype would still apply. */
16851 char res_send ();
16853 main ()
16855 res_send ();
16857 return 0;
16859 _ACEOF
16860 rm -f conftest.$ac_objext conftest$ac_exeext
16861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862 (eval $ac_link) 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -z "$ac_c_werror_flag"
16870 || test ! -s conftest.err'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; } &&
16876 { ac_try='test -s conftest$ac_exeext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_cv_lib_resolv_res_send=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_cv_lib_resolv_res_send=no
16889 rm -f conftest.err conftest.$ac_objext \
16890 conftest$ac_exeext conftest.$ac_ext
16891 LIBS=$ac_check_lib_save_LIBS
16893 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16894 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16895 if test $ac_cv_lib_resolv_res_send = yes; then
16896 resolv=yes
16897 else
16898 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16899 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16900 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903 ac_check_lib_save_LIBS=$LIBS
16904 LIBS="-lresolv $LIBS"
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 /* Override any gcc2 internal prototype to avoid an error. */
16913 #ifdef __cplusplus
16914 extern "C"
16915 #endif
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16918 char __res_send ();
16920 main ()
16922 __res_send ();
16924 return 0;
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag"
16937 || test ! -s conftest.err'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest$ac_exeext'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16949 ac_cv_lib_resolv___res_send=yes
16950 else
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16954 ac_cv_lib_resolv___res_send=no
16956 rm -f conftest.err conftest.$ac_objext \
16957 conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16960 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16961 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16962 if test $ac_cv_lib_resolv___res_send = yes; then
16963 resolv=yes
16972 if test "$resolv" = yes ; then
16973 RESOLVLIB=-lresolv
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_LIBRESOLV 1
16977 _ACEOF
16979 else
16980 RESOLVLIB=
16982 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16983 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16984 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 cat >conftest.$ac_ext <<_ACEOF
16988 /* confdefs.h. */
16989 _ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
16994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16995 #define hes_getmailhost innocuous_hes_getmailhost
16997 /* System header to define __stub macros and hopefully few prototypes,
16998 which can conflict with char hes_getmailhost (); below.
16999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17000 <limits.h> exists even on freestanding compilers. */
17002 #ifdef __STDC__
17003 # include <limits.h>
17004 #else
17005 # include <assert.h>
17006 #endif
17008 #undef hes_getmailhost
17010 /* Override any gcc2 internal prototype to avoid an error. */
17011 #ifdef __cplusplus
17012 extern "C"
17014 #endif
17015 /* We use char because int might match the return type of a gcc2
17016 builtin and then its argument prototype would still apply. */
17017 char hes_getmailhost ();
17018 /* The GNU C library defines this for functions which it implements
17019 to always fail with ENOSYS. Some functions are actually named
17020 something starting with __ and the normal name is an alias. */
17021 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17022 choke me
17023 #else
17024 char (*f) () = hes_getmailhost;
17025 #endif
17026 #ifdef __cplusplus
17028 #endif
17031 main ()
17033 return f != hes_getmailhost;
17035 return 0;
17037 _ACEOF
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17040 (eval $ac_link) 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest$ac_exeext'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_cv_func_hes_getmailhost=yes
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 ac_cv_func_hes_getmailhost=no
17067 rm -f conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
17070 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17071 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17072 if test $ac_cv_func_hes_getmailhost = yes; then
17074 else
17075 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17076 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17077 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080 ac_check_lib_save_LIBS=$LIBS
17081 LIBS="-lhesiod $RESOLVLIB $LIBS"
17082 cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h. */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 /* Override any gcc2 internal prototype to avoid an error. */
17090 #ifdef __cplusplus
17091 extern "C"
17092 #endif
17093 /* We use char because int might match the return type of a gcc2
17094 builtin and then its argument prototype would still apply. */
17095 char hes_getmailhost ();
17097 main ()
17099 hes_getmailhost ();
17101 return 0;
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17107 ac_status=$?
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_lib_hesiod_hes_getmailhost=yes
17127 else
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 ac_cv_lib_hesiod_hes_getmailhost=no
17133 rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17137 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17138 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17139 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_LIBHESIOD 1
17143 _ACEOF
17145 else
17153 # These tell us which Kerberos-related libraries to use.
17154 if test "${with_kerberos+set}" = set; then
17156 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17157 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17158 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161 ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-lcom_err $LIBS"
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any gcc2 internal prototype to avoid an error. */
17171 #ifdef __cplusplus
17172 extern "C"
17173 #endif
17174 /* We use char because int might match the return type of a gcc2
17175 builtin and then its argument prototype would still apply. */
17176 char com_err ();
17178 main ()
17180 com_err ();
17182 return 0;
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>conftest.er1
17188 ac_status=$?
17189 grep -v '^ *+' conftest.er1 >conftest.err
17190 rm -f conftest.er1
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try='test -z "$ac_c_werror_flag"
17195 || test ! -s conftest.err'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } &&
17201 { ac_try='test -s conftest$ac_exeext'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; }; then
17207 ac_cv_lib_com_err_com_err=yes
17208 else
17209 echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 ac_cv_lib_com_err_com_err=no
17214 rm -f conftest.err conftest.$ac_objext \
17215 conftest$ac_exeext conftest.$ac_ext
17216 LIBS=$ac_check_lib_save_LIBS
17218 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17219 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17220 if test $ac_cv_lib_com_err_com_err = yes; then
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_LIBCOM_ERR 1
17223 _ACEOF
17225 LIBS="-lcom_err $LIBS"
17230 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17231 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17232 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235 ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lk5crypto $LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h. */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any gcc2 internal prototype to avoid an error. */
17245 #ifdef __cplusplus
17246 extern "C"
17247 #endif
17248 /* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250 char mit_des_cbc_encrypt ();
17252 main ()
17254 mit_des_cbc_encrypt ();
17256 return 0;
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>conftest.er1
17262 ac_status=$?
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag"
17269 || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17282 else
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17288 rm -f conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
17290 LIBS=$ac_check_lib_save_LIBS
17292 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17293 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17294 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17295 cat >>confdefs.h <<_ACEOF
17296 #define HAVE_LIBK5CRYPTO 1
17297 _ACEOF
17299 LIBS="-lk5crypto $LIBS"
17304 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17305 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17306 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17307 echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309 ac_check_lib_save_LIBS=$LIBS
17310 LIBS="-lcrypto $LIBS"
17311 cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h. */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17318 /* Override any gcc2 internal prototype to avoid an error. */
17319 #ifdef __cplusplus
17320 extern "C"
17321 #endif
17322 /* We use char because int might match the return type of a gcc2
17323 builtin and then its argument prototype would still apply. */
17324 char mit_des_cbc_encrypt ();
17326 main ()
17328 mit_des_cbc_encrypt ();
17330 return 0;
17332 _ACEOF
17333 rm -f conftest.$ac_objext conftest$ac_exeext
17334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17335 (eval $ac_link) 2>conftest.er1
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } &&
17342 { ac_try='test -z "$ac_c_werror_flag"
17343 || test ! -s conftest.err'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest$ac_exeext'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17356 else
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17362 rm -f conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17364 LIBS=$ac_check_lib_save_LIBS
17366 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17367 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17368 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_LIBCRYPTO 1
17371 _ACEOF
17373 LIBS="-lcrypto $LIBS"
17378 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17379 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17380 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382 else
17383 ac_check_lib_save_LIBS=$LIBS
17384 LIBS="-lkrb5 $LIBS"
17385 cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17392 /* Override any gcc2 internal prototype to avoid an error. */
17393 #ifdef __cplusplus
17394 extern "C"
17395 #endif
17396 /* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
17398 char krb5_init_context ();
17400 main ()
17402 krb5_init_context ();
17404 return 0;
17406 _ACEOF
17407 rm -f conftest.$ac_objext conftest$ac_exeext
17408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17409 (eval $ac_link) 2>conftest.er1
17410 ac_status=$?
17411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try='test -z "$ac_c_werror_flag"
17417 || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest$ac_exeext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_lib_krb5_krb5_init_context=yes
17430 else
17431 echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_cv_lib_krb5_krb5_init_context=no
17436 rm -f conftest.err conftest.$ac_objext \
17437 conftest$ac_exeext conftest.$ac_ext
17438 LIBS=$ac_check_lib_save_LIBS
17440 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17441 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17442 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17443 cat >>confdefs.h <<_ACEOF
17444 #define HAVE_LIBKRB5 1
17445 _ACEOF
17447 LIBS="-lkrb5 $LIBS"
17451 if test "${with_kerberos5+set}" != set; then
17453 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17454 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17455 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458 ac_check_lib_save_LIBS=$LIBS
17459 LIBS="-ldes425 $LIBS"
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h. */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17467 /* Override any gcc2 internal prototype to avoid an error. */
17468 #ifdef __cplusplus
17469 extern "C"
17470 #endif
17471 /* We use char because int might match the return type of a gcc2
17472 builtin and then its argument prototype would still apply. */
17473 char des_cbc_encrypt ();
17475 main ()
17477 des_cbc_encrypt ();
17479 return 0;
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_cv_lib_des425_des_cbc_encrypt=yes
17505 else
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 ac_cv_lib_des425_des_cbc_encrypt=no
17511 rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17515 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17516 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17517 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17518 cat >>confdefs.h <<_ACEOF
17519 #define HAVE_LIBDES425 1
17520 _ACEOF
17522 LIBS="-ldes425 $LIBS"
17524 else
17526 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17527 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17528 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 else
17531 ac_check_lib_save_LIBS=$LIBS
17532 LIBS="-ldes $LIBS"
17533 cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h. */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17540 /* Override any gcc2 internal prototype to avoid an error. */
17541 #ifdef __cplusplus
17542 extern "C"
17543 #endif
17544 /* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17546 char des_cbc_encrypt ();
17548 main ()
17550 des_cbc_encrypt ();
17552 return 0;
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>conftest.er1
17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try='test -z "$ac_c_werror_flag"
17565 || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_lib_des_des_cbc_encrypt=yes
17578 else
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_cv_lib_des_des_cbc_encrypt=no
17584 rm -f conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17588 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17589 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17590 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define HAVE_LIBDES 1
17593 _ACEOF
17595 LIBS="-ldes $LIBS"
17602 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17603 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17604 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607 ac_check_lib_save_LIBS=$LIBS
17608 LIBS="-lkrb4 $LIBS"
17609 cat >conftest.$ac_ext <<_ACEOF
17610 /* confdefs.h. */
17611 _ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 /* Override any gcc2 internal prototype to avoid an error. */
17617 #ifdef __cplusplus
17618 extern "C"
17619 #endif
17620 /* We use char because int might match the return type of a gcc2
17621 builtin and then its argument prototype would still apply. */
17622 char krb_get_cred ();
17624 main ()
17626 krb_get_cred ();
17628 return 0;
17630 _ACEOF
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17633 (eval $ac_link) 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try='test -z "$ac_c_werror_flag"
17641 || test ! -s conftest.err'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest$ac_exeext'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 ac_cv_lib_krb4_krb_get_cred=yes
17654 else
17655 echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 ac_cv_lib_krb4_krb_get_cred=no
17660 rm -f conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17662 LIBS=$ac_check_lib_save_LIBS
17664 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17665 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17666 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_LIBKRB4 1
17669 _ACEOF
17671 LIBS="-lkrb4 $LIBS"
17673 else
17675 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17676 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17677 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680 ac_check_lib_save_LIBS=$LIBS
17681 LIBS="-lkrb $LIBS"
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h. */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 /* Override any gcc2 internal prototype to avoid an error. */
17690 #ifdef __cplusplus
17691 extern "C"
17692 #endif
17693 /* We use char because int might match the return type of a gcc2
17694 builtin and then its argument prototype would still apply. */
17695 char krb_get_cred ();
17697 main ()
17699 krb_get_cred ();
17701 return 0;
17703 _ACEOF
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706 (eval $ac_link) 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -z "$ac_c_werror_flag"
17714 || test ! -s conftest.err'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest$ac_exeext'
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_cv_lib_krb_krb_get_cred=yes
17727 else
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_cv_lib_krb_krb_get_cred=no
17733 rm -f conftest.err conftest.$ac_objext \
17734 conftest$ac_exeext conftest.$ac_ext
17735 LIBS=$ac_check_lib_save_LIBS
17737 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17738 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17739 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17740 cat >>confdefs.h <<_ACEOF
17741 #define HAVE_LIBKRB 1
17742 _ACEOF
17744 LIBS="-lkrb $LIBS"
17752 if test "${with_kerberos5+set}" = set; then
17754 for ac_header in krb5.h
17756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17758 echo "$as_me:$LINENO: checking for $ac_header" >&5
17759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17765 else
17766 # Is the header compilable?
17767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h. */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 $ac_includes_default
17776 #include <$ac_header>
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>conftest.er1
17781 ac_status=$?
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest.$ac_objext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 ac_header_compiler=yes
17801 else
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_header_compiler=no
17807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17809 echo "${ECHO_T}$ac_header_compiler" >&6
17811 # Is the header present?
17812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 #include <$ac_header>
17821 _ACEOF
17822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } >/dev/null; then
17830 if test -s conftest.err; then
17831 ac_cpp_err=$ac_c_preproc_warn_flag
17832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17833 else
17834 ac_cpp_err=
17836 else
17837 ac_cpp_err=yes
17839 if test -z "$ac_cpp_err"; then
17840 ac_header_preproc=yes
17841 else
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_header_preproc=no
17847 rm -f conftest.err conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17849 echo "${ECHO_T}$ac_header_preproc" >&6
17851 # So? What about this header?
17852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17853 yes:no: )
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17858 ac_header_preproc=yes
17860 no:yes:* )
17861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17874 cat <<\_ASBOX
17875 ## ------------------------------------------ ##
17876 ## Report this to the AC_PACKAGE_NAME lists. ##
17877 ## ------------------------------------------ ##
17878 _ASBOX
17880 sed "s/^/$as_me: WARNING: /" >&2
17882 esac
17883 echo "$as_me:$LINENO: checking for $ac_header" >&5
17884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 else
17888 eval "$as_ac_Header=\$ac_header_preproc"
17890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17895 cat >>confdefs.h <<_ACEOF
17896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17897 _ACEOF
17901 done
17903 else
17905 for ac_header in des.h
17907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17909 echo "$as_me:$LINENO: checking for $ac_header" >&5
17910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17916 else
17917 # Is the header compilable?
17918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17920 cat >conftest.$ac_ext <<_ACEOF
17921 /* confdefs.h. */
17922 _ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17926 $ac_includes_default
17927 #include <$ac_header>
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931 (eval $ac_compile) 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } &&
17938 { ac_try='test -z "$ac_c_werror_flag"
17939 || test ! -s conftest.err'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; } &&
17945 { ac_try='test -s conftest.$ac_objext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_header_compiler=yes
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 ac_header_compiler=no
17958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17960 echo "${ECHO_T}$ac_header_compiler" >&6
17962 # Is the header present?
17963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 #include <$ac_header>
17972 _ACEOF
17973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } >/dev/null; then
17981 if test -s conftest.err; then
17982 ac_cpp_err=$ac_c_preproc_warn_flag
17983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17984 else
17985 ac_cpp_err=
17987 else
17988 ac_cpp_err=yes
17990 if test -z "$ac_cpp_err"; then
17991 ac_header_preproc=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ac_header_preproc=no
17998 rm -f conftest.err conftest.$ac_ext
17999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18000 echo "${ECHO_T}$ac_header_preproc" >&6
18002 # So? What about this header?
18003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18004 yes:no: )
18005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18009 ac_header_preproc=yes
18011 no:yes:* )
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18025 cat <<\_ASBOX
18026 ## ------------------------------------------ ##
18027 ## Report this to the AC_PACKAGE_NAME lists. ##
18028 ## ------------------------------------------ ##
18029 _ASBOX
18031 sed "s/^/$as_me: WARNING: /" >&2
18033 esac
18034 echo "$as_me:$LINENO: checking for $ac_header" >&5
18035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 else
18039 eval "$as_ac_Header=\$ac_header_preproc"
18041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18046 cat >>confdefs.h <<_ACEOF
18047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18048 _ACEOF
18050 else
18052 for ac_header in kerberosIV/des.h
18054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18056 echo "$as_me:$LINENO: checking for $ac_header" >&5
18057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18063 else
18064 # Is the header compilable?
18065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18067 cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h. */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18073 $ac_includes_default
18074 #include <$ac_header>
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18078 (eval $ac_compile) 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
18098 ac_header_compiler=yes
18099 else
18100 echo "$as_me: failed program was:" >&5
18101 sed 's/^/| /' conftest.$ac_ext >&5
18103 ac_header_compiler=no
18105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18107 echo "${ECHO_T}$ac_header_compiler" >&6
18109 # Is the header present?
18110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18112 cat >conftest.$ac_ext <<_ACEOF
18113 /* confdefs.h. */
18114 _ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 #include <$ac_header>
18119 _ACEOF
18120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18122 ac_status=$?
18123 grep -v '^ *+' conftest.er1 >conftest.err
18124 rm -f conftest.er1
18125 cat conftest.err >&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } >/dev/null; then
18128 if test -s conftest.err; then
18129 ac_cpp_err=$ac_c_preproc_warn_flag
18130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18131 else
18132 ac_cpp_err=
18134 else
18135 ac_cpp_err=yes
18137 if test -z "$ac_cpp_err"; then
18138 ac_header_preproc=yes
18139 else
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_header_preproc=no
18145 rm -f conftest.err conftest.$ac_ext
18146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18147 echo "${ECHO_T}$ac_header_preproc" >&6
18149 # So? What about this header?
18150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18151 yes:no: )
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18156 ac_header_preproc=yes
18158 no:yes:* )
18159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18172 cat <<\_ASBOX
18173 ## ------------------------------------------ ##
18174 ## Report this to the AC_PACKAGE_NAME lists. ##
18175 ## ------------------------------------------ ##
18176 _ASBOX
18178 sed "s/^/$as_me: WARNING: /" >&2
18180 esac
18181 echo "$as_me:$LINENO: checking for $ac_header" >&5
18182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 else
18186 eval "$as_ac_Header=\$ac_header_preproc"
18188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18193 cat >>confdefs.h <<_ACEOF
18194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18195 _ACEOF
18197 else
18199 for ac_header in kerberos/des.h
18201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18203 echo "$as_me:$LINENO: checking for $ac_header" >&5
18204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18206 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18210 else
18211 # Is the header compilable?
18212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 $ac_includes_default
18221 #include <$ac_header>
18222 _ACEOF
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>conftest.er1
18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_header_compiler=yes
18246 else
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18250 ac_header_compiler=no
18252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18254 echo "${ECHO_T}$ac_header_compiler" >&6
18256 # Is the header present?
18257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 #include <$ac_header>
18266 _ACEOF
18267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } >/dev/null; then
18275 if test -s conftest.err; then
18276 ac_cpp_err=$ac_c_preproc_warn_flag
18277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18278 else
18279 ac_cpp_err=
18281 else
18282 ac_cpp_err=yes
18284 if test -z "$ac_cpp_err"; then
18285 ac_header_preproc=yes
18286 else
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_header_preproc=no
18292 rm -f conftest.err conftest.$ac_ext
18293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18294 echo "${ECHO_T}$ac_header_preproc" >&6
18296 # So? What about this header?
18297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18298 yes:no: )
18299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18303 ac_header_preproc=yes
18305 no:yes:* )
18306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18319 cat <<\_ASBOX
18320 ## ------------------------------------------ ##
18321 ## Report this to the AC_PACKAGE_NAME lists. ##
18322 ## ------------------------------------------ ##
18323 _ASBOX
18325 sed "s/^/$as_me: WARNING: /" >&2
18327 esac
18328 echo "$as_me:$LINENO: checking for $ac_header" >&5
18329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 else
18333 eval "$as_ac_Header=\$ac_header_preproc"
18335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18340 cat >>confdefs.h <<_ACEOF
18341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18342 _ACEOF
18346 done
18350 done
18354 done
18357 for ac_header in krb.h
18359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18361 echo "$as_me:$LINENO: checking for $ac_header" >&5
18362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18364 echo $ECHO_N "(cached) $ECHO_C" >&6
18366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18368 else
18369 # Is the header compilable?
18370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18372 cat >conftest.$ac_ext <<_ACEOF
18373 /* confdefs.h. */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 $ac_includes_default
18379 #include <$ac_header>
18380 _ACEOF
18381 rm -f conftest.$ac_objext
18382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18383 (eval $ac_compile) 2>conftest.er1
18384 ac_status=$?
18385 grep -v '^ *+' conftest.er1 >conftest.err
18386 rm -f conftest.er1
18387 cat conftest.err >&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } &&
18390 { ac_try='test -z "$ac_c_werror_flag"
18391 || test ! -s conftest.err'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ac_header_compiler=yes
18404 else
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18408 ac_header_compiler=no
18410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18412 echo "${ECHO_T}$ac_header_compiler" >&6
18414 # Is the header present?
18415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h. */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 #include <$ac_header>
18424 _ACEOF
18425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18427 ac_status=$?
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } >/dev/null; then
18433 if test -s conftest.err; then
18434 ac_cpp_err=$ac_c_preproc_warn_flag
18435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18436 else
18437 ac_cpp_err=
18439 else
18440 ac_cpp_err=yes
18442 if test -z "$ac_cpp_err"; then
18443 ac_header_preproc=yes
18444 else
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 ac_header_preproc=no
18450 rm -f conftest.err conftest.$ac_ext
18451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18452 echo "${ECHO_T}$ac_header_preproc" >&6
18454 # So? What about this header?
18455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18456 yes:no: )
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18461 ac_header_preproc=yes
18463 no:yes:* )
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18477 cat <<\_ASBOX
18478 ## ------------------------------------------ ##
18479 ## Report this to the AC_PACKAGE_NAME lists. ##
18480 ## ------------------------------------------ ##
18481 _ASBOX
18483 sed "s/^/$as_me: WARNING: /" >&2
18485 esac
18486 echo "$as_me:$LINENO: checking for $ac_header" >&5
18487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491 eval "$as_ac_Header=\$ac_header_preproc"
18493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18498 cat >>confdefs.h <<_ACEOF
18499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18500 _ACEOF
18502 else
18504 for ac_header in kerberosIV/krb.h
18506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18508 echo "$as_me:$LINENO: checking for $ac_header" >&5
18509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18515 else
18516 # Is the header compilable?
18517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h. */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 $ac_includes_default
18526 #include <$ac_header>
18527 _ACEOF
18528 rm -f conftest.$ac_objext
18529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530 (eval $ac_compile) 2>conftest.er1
18531 ac_status=$?
18532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag"
18538 || test ! -s conftest.err'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest.$ac_objext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_header_compiler=yes
18551 else
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18555 ac_header_compiler=no
18557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18559 echo "${ECHO_T}$ac_header_compiler" >&6
18561 # Is the header present?
18562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18564 cat >conftest.$ac_ext <<_ACEOF
18565 /* confdefs.h. */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 #include <$ac_header>
18571 _ACEOF
18572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } >/dev/null; then
18580 if test -s conftest.err; then
18581 ac_cpp_err=$ac_c_preproc_warn_flag
18582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18583 else
18584 ac_cpp_err=
18586 else
18587 ac_cpp_err=yes
18589 if test -z "$ac_cpp_err"; then
18590 ac_header_preproc=yes
18591 else
18592 echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18595 ac_header_preproc=no
18597 rm -f conftest.err conftest.$ac_ext
18598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18599 echo "${ECHO_T}$ac_header_preproc" >&6
18601 # So? What about this header?
18602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18603 yes:no: )
18604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18608 ac_header_preproc=yes
18610 no:yes:* )
18611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18624 cat <<\_ASBOX
18625 ## ------------------------------------------ ##
18626 ## Report this to the AC_PACKAGE_NAME lists. ##
18627 ## ------------------------------------------ ##
18628 _ASBOX
18630 sed "s/^/$as_me: WARNING: /" >&2
18632 esac
18633 echo "$as_me:$LINENO: checking for $ac_header" >&5
18634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 else
18638 eval "$as_ac_Header=\$ac_header_preproc"
18640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18645 cat >>confdefs.h <<_ACEOF
18646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18647 _ACEOF
18649 else
18651 for ac_header in kerberos/krb.h
18653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18655 echo "$as_me:$LINENO: checking for $ac_header" >&5
18656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18662 else
18663 # Is the header compilable?
18664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 $ac_includes_default
18673 #include <$ac_header>
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677 (eval $ac_compile) 2>conftest.er1
18678 ac_status=$?
18679 grep -v '^ *+' conftest.er1 >conftest.err
18680 rm -f conftest.er1
18681 cat conftest.err >&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try='test -z "$ac_c_werror_flag"
18685 || test ! -s conftest.err'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest.$ac_objext'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_header_compiler=yes
18698 else
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ac_header_compiler=no
18704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18706 echo "${ECHO_T}$ac_header_compiler" >&6
18708 # Is the header present?
18709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h. */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 #include <$ac_header>
18718 _ACEOF
18719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18721 ac_status=$?
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } >/dev/null; then
18727 if test -s conftest.err; then
18728 ac_cpp_err=$ac_c_preproc_warn_flag
18729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18730 else
18731 ac_cpp_err=
18733 else
18734 ac_cpp_err=yes
18736 if test -z "$ac_cpp_err"; then
18737 ac_header_preproc=yes
18738 else
18739 echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18742 ac_header_preproc=no
18744 rm -f conftest.err conftest.$ac_ext
18745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18746 echo "${ECHO_T}$ac_header_preproc" >&6
18748 # So? What about this header?
18749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18750 yes:no: )
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18755 ac_header_preproc=yes
18757 no:yes:* )
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18771 cat <<\_ASBOX
18772 ## ------------------------------------------ ##
18773 ## Report this to the AC_PACKAGE_NAME lists. ##
18774 ## ------------------------------------------ ##
18775 _ASBOX
18777 sed "s/^/$as_me: WARNING: /" >&2
18779 esac
18780 echo "$as_me:$LINENO: checking for $ac_header" >&5
18781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785 eval "$as_ac_Header=\$ac_header_preproc"
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18792 cat >>confdefs.h <<_ACEOF
18793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18794 _ACEOF
18798 done
18802 done
18806 done
18810 for ac_header in com_err.h
18812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18814 echo "$as_me:$LINENO: checking for $ac_header" >&5
18815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18821 else
18822 # Is the header compilable?
18823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h. */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 $ac_includes_default
18832 #include <$ac_header>
18833 _ACEOF
18834 rm -f conftest.$ac_objext
18835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18836 (eval $ac_compile) 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag"
18844 || test ! -s conftest.err'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_header_compiler=yes
18857 else
18858 echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_header_compiler=no
18863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18865 echo "${ECHO_T}$ac_header_compiler" >&6
18867 # Is the header present?
18868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h. */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 #include <$ac_header>
18877 _ACEOF
18878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } >/dev/null; then
18886 if test -s conftest.err; then
18887 ac_cpp_err=$ac_c_preproc_warn_flag
18888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18889 else
18890 ac_cpp_err=
18892 else
18893 ac_cpp_err=yes
18895 if test -z "$ac_cpp_err"; then
18896 ac_header_preproc=yes
18897 else
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_preproc=no
18903 rm -f conftest.err conftest.$ac_ext
18904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18905 echo "${ECHO_T}$ac_header_preproc" >&6
18907 # So? What about this header?
18908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18909 yes:no: )
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18914 ac_header_preproc=yes
18916 no:yes:* )
18917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18930 cat <<\_ASBOX
18931 ## ------------------------------------------ ##
18932 ## Report this to the AC_PACKAGE_NAME lists. ##
18933 ## ------------------------------------------ ##
18934 _ASBOX
18936 sed "s/^/$as_me: WARNING: /" >&2
18938 esac
18939 echo "$as_me:$LINENO: checking for $ac_header" >&5
18940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944 eval "$as_ac_Header=\$ac_header_preproc"
18946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18951 cat >>confdefs.h <<_ACEOF
18952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18953 _ACEOF
18957 done
18961 # Solaris requires -lintl if you want strerror (which calls dgettext)
18962 # to return localized messages.
18964 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18965 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18966 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969 ac_check_lib_save_LIBS=$LIBS
18970 LIBS="-lintl $LIBS"
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h. */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18978 /* Override any gcc2 internal prototype to avoid an error. */
18979 #ifdef __cplusplus
18980 extern "C"
18981 #endif
18982 /* We use char because int might match the return type of a gcc2
18983 builtin and then its argument prototype would still apply. */
18984 char dgettext ();
18986 main ()
18988 dgettext ();
18990 return 0;
18992 _ACEOF
18993 rm -f conftest.$ac_objext conftest$ac_exeext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18995 (eval $ac_link) 2>conftest.er1
18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } &&
19002 { ac_try='test -z "$ac_c_werror_flag"
19003 || test ! -s conftest.err'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; } &&
19009 { ac_try='test -s conftest$ac_exeext'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 ac_cv_lib_intl_dgettext=yes
19016 else
19017 echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_lib_intl_dgettext=no
19022 rm -f conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19027 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19028 if test $ac_cv_lib_intl_dgettext = yes; then
19029 cat >>confdefs.h <<_ACEOF
19030 #define HAVE_LIBINTL 1
19031 _ACEOF
19033 LIBS="-lintl $LIBS"
19038 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19039 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19040 if test "${emacs_cv_localtime_cache+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043 if test x$ac_cv_func_tzset = xyes; then
19044 if test "$cross_compiling" = yes; then
19045 # If we have tzset, assume the worst when cross-compiling.
19046 emacs_cv_localtime_cache=yes
19047 else
19048 cat >conftest.$ac_ext <<_ACEOF
19049 /* confdefs.h. */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19054 #include <time.h>
19055 extern char **environ;
19056 unset_TZ ()
19058 char **from, **to;
19059 for (to = from = environ; (*to = *from); from++)
19060 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19061 to++;
19063 char TZ_GMT0[] = "TZ=GMT0";
19064 char TZ_PST8[] = "TZ=PST8";
19065 main()
19067 time_t now = time ((time_t *) 0);
19068 int hour_GMT0, hour_unset;
19069 if (putenv (TZ_GMT0) != 0)
19070 exit (1);
19071 hour_GMT0 = localtime (&now)->tm_hour;
19072 unset_TZ ();
19073 hour_unset = localtime (&now)->tm_hour;
19074 if (putenv (TZ_PST8) != 0)
19075 exit (1);
19076 if (localtime (&now)->tm_hour == hour_GMT0)
19077 exit (1);
19078 unset_TZ ();
19079 if (localtime (&now)->tm_hour != hour_unset)
19080 exit (1);
19081 exit (0);
19083 _ACEOF
19084 rm -f conftest$ac_exeext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086 (eval $ac_link) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 emacs_cv_localtime_cache=no
19096 else
19097 echo "$as_me: program exited with status $ac_status" >&5
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ( exit $ac_status )
19102 emacs_cv_localtime_cache=yes
19104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19106 else
19107 # If we lack tzset, report that localtime does not cache TZ,
19108 # since we can't invalidate the cache if we don't have tzset.
19109 emacs_cv_localtime_cache=no
19112 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19113 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19114 if test $emacs_cv_localtime_cache = yes; then
19116 cat >>confdefs.h <<\_ACEOF
19117 #define LOCALTIME_CACHE 1
19118 _ACEOF
19122 if test "x$HAVE_TIMEVAL" = xyes; then
19124 for ac_func in gettimeofday
19126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19127 echo "$as_me:$LINENO: checking for $ac_func" >&5
19128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19129 if eval "test \"\${$as_ac_var+set}\" = set"; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140 #define $ac_func innocuous_$ac_func
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char $ac_func (); below.
19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145 <limits.h> exists even on freestanding compilers. */
19147 #ifdef __STDC__
19148 # include <limits.h>
19149 #else
19150 # include <assert.h>
19151 #endif
19153 #undef $ac_func
19155 /* Override any gcc2 internal prototype to avoid an error. */
19156 #ifdef __cplusplus
19157 extern "C"
19159 #endif
19160 /* We use char because int might match the return type of a gcc2
19161 builtin and then its argument prototype would still apply. */
19162 char $ac_func ();
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19167 choke me
19168 #else
19169 char (*f) () = $ac_func;
19170 #endif
19171 #ifdef __cplusplus
19173 #endif
19176 main ()
19178 return f != $ac_func;
19180 return 0;
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185 (eval $ac_link) 2>conftest.er1
19186 ac_status=$?
19187 grep -v '^ *+' conftest.er1 >conftest.err
19188 rm -f conftest.er1
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
19192 { ac_try='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 eval "$as_ac_var=yes"
19206 else
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 eval "$as_ac_var=no"
19212 rm -f conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19217 if test `eval echo '${'$as_ac_var'}'` = yes; then
19218 cat >>confdefs.h <<_ACEOF
19219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19220 _ACEOF
19223 done
19225 if test $ac_cv_func_gettimeofday = yes; then
19226 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19227 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19228 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19238 #ifdef TIME_WITH_SYS_TIME
19239 #include <sys/time.h>
19240 #include <time.h>
19241 #else
19242 #ifdef HAVE_SYS_TIME_H
19243 #include <sys/time.h>
19244 #else
19245 #include <time.h>
19246 #endif
19247 #endif
19249 main ()
19251 struct timeval time;
19252 gettimeofday (&time, 0);
19254 return 0;
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 emacs_cv_gettimeofday_two_arguments=yes
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 emacs_cv_gettimeofday_two_arguments=no
19286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19288 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19289 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19290 if test $emacs_cv_gettimeofday_two_arguments = no; then
19292 cat >>confdefs.h <<\_ACEOF
19293 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19294 _ACEOF
19300 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19301 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19302 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19303 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19305 else
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 #include <sys/types.h>
19313 #include <$ac_cv_struct_tm>
19317 main ()
19319 static struct tm ac_aggr;
19320 if (ac_aggr.tm_zone)
19321 return 0;
19323 return 0;
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19328 (eval $ac_compile) 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest.$ac_objext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_cv_member_struct_tm_tm_zone=yes
19349 else
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 #include <sys/types.h>
19360 #include <$ac_cv_struct_tm>
19364 main ()
19366 static struct tm ac_aggr;
19367 if (sizeof ac_aggr.tm_zone)
19368 return 0;
19370 return 0;
19372 _ACEOF
19373 rm -f conftest.$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
19382 { ac_try='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_cv_member_struct_tm_tm_zone=yes
19396 else
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_cv_member_struct_tm_tm_zone=no
19402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19407 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19408 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19410 cat >>confdefs.h <<_ACEOF
19411 #define HAVE_STRUCT_TM_TM_ZONE 1
19412 _ACEOF
19417 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE_TM_ZONE 1
19421 _ACEOF
19423 else
19424 echo "$as_me:$LINENO: checking for tzname" >&5
19425 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19426 if test "${ac_cv_var_tzname+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19428 else
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 #include <time.h>
19436 #ifndef tzname /* For SGI. */
19437 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19438 #endif
19441 main ()
19443 atoi(*tzname);
19445 return 0;
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450 (eval $ac_link) 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -z "$ac_c_werror_flag"
19458 || test ! -s conftest.err'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try='test -s conftest$ac_exeext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_cv_var_tzname=yes
19471 else
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 ac_cv_var_tzname=no
19477 rm -f conftest.err conftest.$ac_objext \
19478 conftest$ac_exeext conftest.$ac_ext
19480 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19481 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19482 if test $ac_cv_var_tzname = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_TZNAME 1
19486 _ACEOF
19492 if test "$ac_cv_func_gettimeofday" = yes; then
19493 echo "$as_me:$LINENO: checking for struct timezone" >&5
19494 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19495 if test "${emacs_cv_struct_timezone+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 else
19498 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h. */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 #include <sys/time.h>
19506 main ()
19508 struct timezone tz;
19510 return 0;
19512 _ACEOF
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest.$ac_objext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19535 if test "$cross_compiling" = yes; then
19536 emacs_cv_struct_timezone=yes
19537 else
19538 cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h. */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19545 #ifdef TIME_WITH_SYS_TIME
19546 #include <sys/time.h>
19547 #include <time.h>
19548 #else
19549 #ifdef HAVE_SYS_TIME_H
19550 #include <sys/time.h>
19551 #else
19552 #include <time.h>
19553 #endif
19554 #endif
19555 main () {
19556 struct timeval time;
19557 struct timezone dummy;
19558 exit (gettimeofday (&time, &dummy));
19560 _ACEOF
19561 rm -f conftest$ac_exeext
19562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19563 (eval $ac_link) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 emacs_cv_struct_timezone=yes
19573 else
19574 echo "$as_me: program exited with status $ac_status" >&5
19575 echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19578 ( exit $ac_status )
19579 emacs_cv_struct_timezone=no
19581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19583 else
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 emacs_cv_struct_timezone=no
19589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19591 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19592 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19595 ok_so_far=yes
19596 echo "$as_me:$LINENO: checking for socket" >&5
19597 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19598 if test "${ac_cv_func_socket+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h. */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19609 #define socket innocuous_socket
19611 /* System header to define __stub macros and hopefully few prototypes,
19612 which can conflict with char socket (); below.
19613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19614 <limits.h> exists even on freestanding compilers. */
19616 #ifdef __STDC__
19617 # include <limits.h>
19618 #else
19619 # include <assert.h>
19620 #endif
19622 #undef socket
19624 /* Override any gcc2 internal prototype to avoid an error. */
19625 #ifdef __cplusplus
19626 extern "C"
19628 #endif
19629 /* We use char because int might match the return type of a gcc2
19630 builtin and then its argument prototype would still apply. */
19631 char socket ();
19632 /* The GNU C library defines this for functions which it implements
19633 to always fail with ENOSYS. Some functions are actually named
19634 something starting with __ and the normal name is an alias. */
19635 #if defined (__stub_socket) || defined (__stub___socket)
19636 choke me
19637 #else
19638 char (*f) () = socket;
19639 #endif
19640 #ifdef __cplusplus
19642 #endif
19645 main ()
19647 return f != socket;
19649 return 0;
19651 _ACEOF
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654 (eval $ac_link) 2>conftest.er1
19655 ac_status=$?
19656 grep -v '^ *+' conftest.er1 >conftest.err
19657 rm -f conftest.er1
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest$ac_exeext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_cv_func_socket=yes
19675 else
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_cv_func_socket=no
19681 rm -f conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19685 echo "${ECHO_T}$ac_cv_func_socket" >&6
19686 if test $ac_cv_func_socket = yes; then
19688 else
19689 ok_so_far=no
19692 if test $ok_so_far = yes; then
19693 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19694 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19695 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19696 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19700 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19701 else
19702 # Is the header compilable?
19703 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19704 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h. */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 $ac_includes_default
19712 #include <netinet/in.h>
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716 (eval $ac_compile) 2>conftest.er1
19717 ac_status=$?
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_header_compiler=yes
19737 else
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_header_compiler=no
19743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19745 echo "${ECHO_T}$ac_header_compiler" >&6
19747 # Is the header present?
19748 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19749 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h. */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 #include <netinet/in.h>
19757 _ACEOF
19758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19760 ac_status=$?
19761 grep -v '^ *+' conftest.er1 >conftest.err
19762 rm -f conftest.er1
19763 cat conftest.err >&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } >/dev/null; then
19766 if test -s conftest.err; then
19767 ac_cpp_err=$ac_c_preproc_warn_flag
19768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19769 else
19770 ac_cpp_err=
19772 else
19773 ac_cpp_err=yes
19775 if test -z "$ac_cpp_err"; then
19776 ac_header_preproc=yes
19777 else
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19781 ac_header_preproc=no
19783 rm -f conftest.err conftest.$ac_ext
19784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19785 echo "${ECHO_T}$ac_header_preproc" >&6
19787 # So? What about this header?
19788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19789 yes:no: )
19790 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19791 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19792 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19793 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19794 ac_header_preproc=yes
19796 no:yes:* )
19797 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19798 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19799 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19800 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19801 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19802 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19803 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19804 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19805 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19806 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19808 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19810 cat <<\_ASBOX
19811 ## ------------------------------------------ ##
19812 ## Report this to the AC_PACKAGE_NAME lists. ##
19813 ## ------------------------------------------ ##
19814 _ASBOX
19816 sed "s/^/$as_me: WARNING: /" >&2
19818 esac
19819 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19820 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19821 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824 ac_cv_header_netinet_in_h=$ac_header_preproc
19826 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19827 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19830 if test $ac_cv_header_netinet_in_h = yes; then
19832 else
19833 ok_so_far=no
19838 if test $ok_so_far = yes; then
19839 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19840 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19841 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19842 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19846 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19847 else
19848 # Is the header compilable?
19849 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19850 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h. */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19858 #include <arpa/inet.h>
19859 _ACEOF
19860 rm -f conftest.$ac_objext
19861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862 (eval $ac_compile) 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
19869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest.$ac_objext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_header_compiler=yes
19883 else
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_header_compiler=no
19889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19891 echo "${ECHO_T}$ac_header_compiler" >&6
19893 # Is the header present?
19894 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19895 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19897 /* confdefs.h. */
19898 _ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 #include <arpa/inet.h>
19903 _ACEOF
19904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19906 ac_status=$?
19907 grep -v '^ *+' conftest.er1 >conftest.err
19908 rm -f conftest.er1
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null; then
19912 if test -s conftest.err; then
19913 ac_cpp_err=$ac_c_preproc_warn_flag
19914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19915 else
19916 ac_cpp_err=
19918 else
19919 ac_cpp_err=yes
19921 if test -z "$ac_cpp_err"; then
19922 ac_header_preproc=yes
19923 else
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_header_preproc=no
19929 rm -f conftest.err conftest.$ac_ext
19930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19931 echo "${ECHO_T}$ac_header_preproc" >&6
19933 # So? What about this header?
19934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19935 yes:no: )
19936 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19937 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19939 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19940 ac_header_preproc=yes
19942 no:yes:* )
19943 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19944 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19945 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19946 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19947 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19948 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19950 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19952 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19954 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19956 cat <<\_ASBOX
19957 ## ------------------------------------------ ##
19958 ## Report this to the AC_PACKAGE_NAME lists. ##
19959 ## ------------------------------------------ ##
19960 _ASBOX
19962 sed "s/^/$as_me: WARNING: /" >&2
19964 esac
19965 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19966 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19967 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970 ac_cv_header_arpa_inet_h=$ac_header_preproc
19972 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19973 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19976 if test $ac_cv_header_arpa_inet_h = yes; then
19978 else
19979 ok_so_far=no
19984 if test $ok_so_far = yes; then
19986 cat >>confdefs.h <<\_ACEOF
19987 #define HAVE_INET_SOCKETS 1
19988 _ACEOF
19993 for ac_header in sys/ioctl.h
19995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19997 echo "$as_me:$LINENO: checking for $ac_header" >&5
19998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20004 else
20005 # Is the header compilable?
20006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 $ac_includes_default
20015 #include <$ac_header>
20016 _ACEOF
20017 rm -f conftest.$ac_objext
20018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019 (eval $ac_compile) 2>conftest.er1
20020 ac_status=$?
20021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
20026 { ac_try='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_header_compiler=yes
20040 else
20041 echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ac_header_compiler=no
20046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20048 echo "${ECHO_T}$ac_header_compiler" >&6
20050 # Is the header present?
20051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h. */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 #include <$ac_header>
20060 _ACEOF
20061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20063 ac_status=$?
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } >/dev/null; then
20069 if test -s conftest.err; then
20070 ac_cpp_err=$ac_c_preproc_warn_flag
20071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20072 else
20073 ac_cpp_err=
20075 else
20076 ac_cpp_err=yes
20078 if test -z "$ac_cpp_err"; then
20079 ac_header_preproc=yes
20080 else
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20084 ac_header_preproc=no
20086 rm -f conftest.err conftest.$ac_ext
20087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20088 echo "${ECHO_T}$ac_header_preproc" >&6
20090 # So? What about this header?
20091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20092 yes:no: )
20093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20097 ac_header_preproc=yes
20099 no:yes:* )
20100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20113 cat <<\_ASBOX
20114 ## ------------------------------------------ ##
20115 ## Report this to the AC_PACKAGE_NAME lists. ##
20116 ## ------------------------------------------ ##
20117 _ASBOX
20119 sed "s/^/$as_me: WARNING: /" >&2
20121 esac
20122 echo "$as_me:$LINENO: checking for $ac_header" >&5
20123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127 eval "$as_ac_Header=\$ac_header_preproc"
20129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20134 cat >>confdefs.h <<_ACEOF
20135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20136 _ACEOF
20140 done
20143 if test -f /usr/lpp/X11/bin/smt.exp; then
20145 cat >>confdefs.h <<\_ACEOF
20146 #define HAVE_AIX_SMT_EXP 1
20147 _ACEOF
20151 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20152 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20153 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20154 echo "$as_me:$LINENO: result: yes" >&5
20155 echo "${ECHO_T}yes" >&6
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE_DEV_PTMX 1
20159 _ACEOF
20161 else
20162 echo "$as_me:$LINENO: result: no" >&5
20163 echo "${ECHO_T}no" >&6
20166 echo "$as_me:$LINENO: checking for pid_t" >&5
20167 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20168 if test "${ac_cv_type_pid_t+set}" = set; then
20169 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 else
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h. */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 $ac_includes_default
20179 main ()
20181 if ((pid_t *) 0)
20182 return 0;
20183 if (sizeof (pid_t))
20184 return 0;
20186 return 0;
20188 _ACEOF
20189 rm -f conftest.$ac_objext
20190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20191 (eval $ac_compile) 2>conftest.er1
20192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
20198 { ac_try='test -z "$ac_c_werror_flag"
20199 || test ! -s conftest.err'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; } &&
20205 { ac_try='test -s conftest.$ac_objext'
20206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207 (eval $ac_try) 2>&5
20208 ac_status=$?
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); }; }; then
20211 ac_cv_type_pid_t=yes
20212 else
20213 echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20216 ac_cv_type_pid_t=no
20218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20220 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20221 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20222 if test $ac_cv_type_pid_t = yes; then
20224 else
20226 cat >>confdefs.h <<_ACEOF
20227 #define pid_t int
20228 _ACEOF
20234 for ac_header in unistd.h vfork.h
20236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20238 echo "$as_me:$LINENO: checking for $ac_header" >&5
20239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20245 else
20246 # Is the header compilable?
20247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h. */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20256 #include <$ac_header>
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260 (eval $ac_compile) 2>conftest.er1
20261 ac_status=$?
20262 grep -v '^ *+' conftest.er1 >conftest.err
20263 rm -f conftest.er1
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try='test -z "$ac_c_werror_flag"
20268 || test ! -s conftest.err'
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; } &&
20274 { ac_try='test -s conftest.$ac_objext'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ac_header_compiler=yes
20281 else
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ac_header_compiler=no
20287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20289 echo "${ECHO_T}$ac_header_compiler" >&6
20291 # Is the header present?
20292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 #include <$ac_header>
20301 _ACEOF
20302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } >/dev/null; then
20310 if test -s conftest.err; then
20311 ac_cpp_err=$ac_c_preproc_warn_flag
20312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20313 else
20314 ac_cpp_err=
20316 else
20317 ac_cpp_err=yes
20319 if test -z "$ac_cpp_err"; then
20320 ac_header_preproc=yes
20321 else
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_header_preproc=no
20327 rm -f conftest.err conftest.$ac_ext
20328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20329 echo "${ECHO_T}$ac_header_preproc" >&6
20331 # So? What about this header?
20332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20333 yes:no: )
20334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20338 ac_header_preproc=yes
20340 no:yes:* )
20341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20354 cat <<\_ASBOX
20355 ## ------------------------------------------ ##
20356 ## Report this to the AC_PACKAGE_NAME lists. ##
20357 ## ------------------------------------------ ##
20358 _ASBOX
20360 sed "s/^/$as_me: WARNING: /" >&2
20362 esac
20363 echo "$as_me:$LINENO: checking for $ac_header" >&5
20364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368 eval "$as_ac_Header=\$ac_header_preproc"
20370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20375 cat >>confdefs.h <<_ACEOF
20376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20377 _ACEOF
20381 done
20385 for ac_func in fork vfork
20387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20388 echo "$as_me:$LINENO: checking for $ac_func" >&5
20389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20390 if eval "test \"\${$as_ac_var+set}\" = set"; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h. */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20401 #define $ac_func innocuous_$ac_func
20403 /* System header to define __stub macros and hopefully few prototypes,
20404 which can conflict with char $ac_func (); below.
20405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20406 <limits.h> exists even on freestanding compilers. */
20408 #ifdef __STDC__
20409 # include <limits.h>
20410 #else
20411 # include <assert.h>
20412 #endif
20414 #undef $ac_func
20416 /* Override any gcc2 internal prototype to avoid an error. */
20417 #ifdef __cplusplus
20418 extern "C"
20420 #endif
20421 /* We use char because int might match the return type of a gcc2
20422 builtin and then its argument prototype would still apply. */
20423 char $ac_func ();
20424 /* The GNU C library defines this for functions which it implements
20425 to always fail with ENOSYS. Some functions are actually named
20426 something starting with __ and the normal name is an alias. */
20427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20428 choke me
20429 #else
20430 char (*f) () = $ac_func;
20431 #endif
20432 #ifdef __cplusplus
20434 #endif
20437 main ()
20439 return f != $ac_func;
20441 return 0;
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446 (eval $ac_link) 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest$ac_exeext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 eval "$as_ac_var=yes"
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 eval "$as_ac_var=no"
20473 rm -f conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20478 if test `eval echo '${'$as_ac_var'}'` = yes; then
20479 cat >>confdefs.h <<_ACEOF
20480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20481 _ACEOF
20484 done
20486 if test "x$ac_cv_func_fork" = xyes; then
20487 echo "$as_me:$LINENO: checking for working fork" >&5
20488 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20489 if test "${ac_cv_func_fork_works+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492 if test "$cross_compiling" = yes; then
20493 ac_cv_func_fork_works=cross
20494 else
20495 cat >conftest.$ac_ext <<_ACEOF
20496 /* By Ruediger Kuhlmann. */
20497 #include <sys/types.h>
20498 #if HAVE_UNISTD_H
20499 # include <unistd.h>
20500 #endif
20501 /* Some systems only have a dummy stub for fork() */
20502 int main ()
20504 if (fork() < 0)
20505 exit (1);
20506 exit (0);
20508 _ACEOF
20509 rm -f conftest$ac_exeext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20511 (eval $ac_link) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && { ac_try='./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 ac_cv_func_fork_works=yes
20521 else
20522 echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ( exit $ac_status )
20527 ac_cv_func_fork_works=no
20529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20532 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20533 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20535 else
20536 ac_cv_func_fork_works=$ac_cv_func_fork
20538 if test "x$ac_cv_func_fork_works" = xcross; then
20539 case $host in
20540 *-*-amigaos* | *-*-msdosdjgpp*)
20541 # Override, as these systems have only a dummy fork() stub
20542 ac_cv_func_fork_works=no
20545 ac_cv_func_fork_works=yes
20547 esac
20548 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20549 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20551 ac_cv_func_vfork_works=$ac_cv_func_vfork
20552 if test "x$ac_cv_func_vfork" = xyes; then
20553 echo "$as_me:$LINENO: checking for working vfork" >&5
20554 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20555 if test "${ac_cv_func_vfork_works+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558 if test "$cross_compiling" = yes; then
20559 ac_cv_func_vfork_works=cross
20560 else
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h. */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 /* Thanks to Paul Eggert for this test. */
20568 #include <stdio.h>
20569 #include <stdlib.h>
20570 #include <sys/types.h>
20571 #include <sys/stat.h>
20572 #include <sys/wait.h>
20573 #if HAVE_UNISTD_H
20574 # include <unistd.h>
20575 #endif
20576 #if HAVE_VFORK_H
20577 # include <vfork.h>
20578 #endif
20579 /* On some sparc systems, changes by the child to local and incoming
20580 argument registers are propagated back to the parent. The compiler
20581 is told about this with #include <vfork.h>, but some compilers
20582 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20583 static variable whose address is put into a register that is
20584 clobbered by the vfork. */
20585 static void
20586 #ifdef __cplusplus
20587 sparc_address_test (int arg)
20588 # else
20589 sparc_address_test (arg) int arg;
20590 #endif
20592 static pid_t child;
20593 if (!child) {
20594 child = vfork ();
20595 if (child < 0) {
20596 perror ("vfork");
20597 _exit(2);
20599 if (!child) {
20600 arg = getpid();
20601 write(-1, "", 0);
20602 _exit (arg);
20608 main ()
20610 pid_t parent = getpid ();
20611 pid_t child;
20613 sparc_address_test (0);
20615 child = vfork ();
20617 if (child == 0) {
20618 /* Here is another test for sparc vfork register problems. This
20619 test uses lots of local variables, at least as many local
20620 variables as main has allocated so far including compiler
20621 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20622 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20623 reuse the register of parent for one of the local variables,
20624 since it will think that parent can't possibly be used any more
20625 in this routine. Assigning to the local variable will thus
20626 munge parent in the parent process. */
20627 pid_t
20628 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20629 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20630 /* Convince the compiler that p..p7 are live; otherwise, it might
20631 use the same hardware register for all 8 local variables. */
20632 if (p != p1 || p != p2 || p != p3 || p != p4
20633 || p != p5 || p != p6 || p != p7)
20634 _exit(1);
20636 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20637 from child file descriptors. If the child closes a descriptor
20638 before it execs or exits, this munges the parent's descriptor
20639 as well. Test for this by closing stdout in the child. */
20640 _exit(close(fileno(stdout)) != 0);
20641 } else {
20642 int status;
20643 struct stat st;
20645 while (wait(&status) != child)
20647 exit(
20648 /* Was there some problem with vforking? */
20649 child < 0
20651 /* Did the child fail? (This shouldn't happen.) */
20652 || status
20654 /* Did the vfork/compiler bug occur? */
20655 || parent != getpid()
20657 /* Did the file descriptor bug occur? */
20658 || fstat(fileno(stdout), &st) != 0
20662 _ACEOF
20663 rm -f conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665 (eval $ac_link) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_func_vfork_works=yes
20675 else
20676 echo "$as_me: program exited with status $ac_status" >&5
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ( exit $ac_status )
20681 ac_cv_func_vfork_works=no
20683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20686 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20687 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20690 if test "x$ac_cv_func_fork_works" = xcross; then
20691 ac_cv_func_vfork_works=$ac_cv_func_vfork
20692 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20693 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20696 if test "x$ac_cv_func_vfork_works" = xyes; then
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE_WORKING_VFORK 1
20700 _ACEOF
20702 else
20704 cat >>confdefs.h <<\_ACEOF
20705 #define vfork fork
20706 _ACEOF
20709 if test "x$ac_cv_func_fork_works" = xyes; then
20711 cat >>confdefs.h <<\_ACEOF
20712 #define HAVE_WORKING_FORK 1
20713 _ACEOF
20718 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20719 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20720 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723 cat >conftest.$ac_ext <<_ACEOF
20724 /* confdefs.h. */
20725 _ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <langinfo.h>
20731 main ()
20733 char* cs = nl_langinfo(CODESET);
20735 return 0;
20737 _ACEOF
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 emacs_cv_langinfo_codeset=yes
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 emacs_cv_langinfo_codeset=no
20767 rm -f conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20771 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20772 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20773 if test $emacs_cv_langinfo_codeset = yes; then
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_LANGINFO_CODESET 1
20777 _ACEOF
20781 echo "$as_me:$LINENO: checking for size_t" >&5
20782 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20783 if test "${ac_cv_type_size_t+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 $ac_includes_default
20794 main ()
20796 if ((size_t *) 0)
20797 return 0;
20798 if (sizeof (size_t))
20799 return 0;
20801 return 0;
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20806 (eval $ac_compile) 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } &&
20813 { ac_try='test -z "$ac_c_werror_flag"
20814 || test ! -s conftest.err'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_cv_type_size_t=yes
20827 else
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 ac_cv_type_size_t=no
20833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20835 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20836 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20837 if test $ac_cv_type_size_t = yes; then
20839 cat >>confdefs.h <<_ACEOF
20840 #define HAVE_SIZE_T 1
20841 _ACEOF
20847 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20848 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20849 if test "${ac_cv_type_mbstate_t+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852 cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h. */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 $ac_includes_default
20859 # include <wchar.h>
20861 main ()
20863 mbstate_t x; return sizeof x;
20865 return 0;
20867 _ACEOF
20868 rm -f conftest.$ac_objext
20869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20870 (eval $ac_compile) 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } &&
20877 { ac_try='test -z "$ac_c_werror_flag"
20878 || test ! -s conftest.err'
20879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880 (eval $ac_try) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; } &&
20884 { ac_try='test -s conftest.$ac_objext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 ac_cv_type_mbstate_t=yes
20891 else
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_cv_type_mbstate_t=no
20897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20899 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20900 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20901 if test $ac_cv_type_mbstate_t = yes; then
20903 cat >>confdefs.h <<\_ACEOF
20904 #define HAVE_MBSTATE_T 1
20905 _ACEOF
20907 else
20909 cat >>confdefs.h <<\_ACEOF
20910 #define mbstate_t int
20911 _ACEOF
20915 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20916 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20917 if test "${emacs_cv_c_restrict+set}" = set; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 else
20920 cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h. */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 void fred (int *restrict x);
20928 main ()
20932 return 0;
20934 _ACEOF
20935 rm -f conftest.$ac_objext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20937 (eval $ac_compile) 2>conftest.er1
20938 ac_status=$?
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
20944 { ac_try='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try='test -s conftest.$ac_objext'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 emacs_cv_c_restrict=yes
20958 else
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962 cat >conftest.$ac_ext <<_ACEOF
20963 /* confdefs.h. */
20964 _ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 void fred (int *__restrict x);
20970 main ()
20974 return 0;
20976 _ACEOF
20977 rm -f conftest.$ac_objext
20978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20979 (eval $ac_compile) 2>conftest.er1
20980 ac_status=$?
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
20986 { ac_try='test -z "$ac_c_werror_flag"
20987 || test ! -s conftest.err'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } &&
20993 { ac_try='test -s conftest.$ac_objext'
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 emacs_cv_c_restrict=__restrict
21000 else
21001 echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 emacs_cv_c_restrict=no
21006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21010 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21011 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21012 case "$emacs_cv_c_restrict" in
21013 yes) emacs_restrict=restrict;;
21014 no) emacs_restrict="";;
21015 *) emacs_restrict="$emacs_cv_c_restrict";;
21016 esac
21017 if test "$emacs_restrict" != __restrict; then
21019 cat >>confdefs.h <<_ACEOF
21020 #define __restrict $emacs_restrict
21021 _ACEOF
21025 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21026 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21027 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030 cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h. */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21036 void fred (int x[__restrict]);
21038 main ()
21042 return 0;
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047 (eval $ac_compile) 2>conftest.er1
21048 ac_status=$?
21049 grep -v '^ *+' conftest.er1 >conftest.err
21050 rm -f conftest.er1
21051 cat conftest.err >&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } &&
21054 { ac_try='test -z "$ac_c_werror_flag"
21055 || test ! -s conftest.err'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; } &&
21061 { ac_try='test -s conftest.$ac_objext'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; }; then
21067 emacs_cv_c_restrict_arr=yes
21068 else
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 emacs_cv_c_restrict_arr=no
21074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21076 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21077 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21078 if test "$emacs_cv_c_restrict_arr" = yes; then
21080 cat >>confdefs.h <<\_ACEOF
21081 #define __restrict_arr __restrict
21082 _ACEOF
21088 # Set up the CFLAGS for real compilation, so we can substitute it.
21089 CFLAGS="$REAL_CFLAGS"
21090 CPPFLAGS="$REAL_CPPFLAGS"
21092 #### Find out which version of Emacs this is.
21093 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21094 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21095 if test x"${version}" = x; then
21096 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21097 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21098 { (exit 1); exit 1; }; }
21101 ### Specify what sort of things we'll be editing into Makefile and config.h.
21102 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21138 cat >>confdefs.h <<_ACEOF
21139 #define EMACS_CONFIGURATION "${canonical}"
21140 _ACEOF
21143 cat >>confdefs.h <<_ACEOF
21144 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21145 _ACEOF
21148 cat >>confdefs.h <<_ACEOF
21149 #define config_machfile "${machfile}"
21150 _ACEOF
21153 cat >>confdefs.h <<_ACEOF
21154 #define config_opsysfile "${opsysfile}"
21155 _ACEOF
21158 cat >>confdefs.h <<_ACEOF
21159 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21160 _ACEOF
21163 cat >>confdefs.h <<_ACEOF
21164 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21165 _ACEOF
21168 cat >>confdefs.h <<_ACEOF
21169 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21170 _ACEOF
21173 cat >>confdefs.h <<_ACEOF
21174 #define UNEXEC_SRC ${UNEXEC_SRC}
21175 _ACEOF
21178 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_X_WINDOWS 1
21182 _ACEOF
21185 if test "${USE_X_TOOLKIT}" != "none" ; then
21187 cat >>confdefs.h <<\_ACEOF
21188 #define USE_X_TOOLKIT 1
21189 _ACEOF
21192 if test "${HAVE_X11}" = "yes" ; then
21194 cat >>confdefs.h <<\_ACEOF
21195 #define HAVE_X11 1
21196 _ACEOF
21199 if test "${HAVE_XFREE386}" = "yes" ; then
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_XFREE386 1
21203 _ACEOF
21206 if test "${HAVE_MENUS}" = "yes" ; then
21208 cat >>confdefs.h <<\_ACEOF
21209 #define HAVE_MENUS 1
21210 _ACEOF
21213 if test "${GNU_MALLOC}" = "yes" ; then
21215 cat >>confdefs.h <<\_ACEOF
21216 #define GNU_MALLOC 1
21217 _ACEOF
21220 if test "${REL_ALLOC}" = "yes" ; then
21222 cat >>confdefs.h <<\_ACEOF
21223 #define REL_ALLOC 1
21224 _ACEOF
21232 #### Report on what we decided to do.
21233 #### Report GTK as a toolkit, even if it doesn't use Xt.
21234 #### It makes printing result more understandable as using GTK sets
21235 #### toolkit_scroll_bars to yes by default.
21236 if test "${HAVE_GTK}" = "yes"; then
21237 USE_X_TOOLKIT=GTK
21240 echo "
21241 Configured for \`${canonical}'.
21243 Where should the build process find the source code? ${srcdir}
21244 What operating system and machine description files should Emacs use?
21245 \`${opsysfile}' and \`${machfile}'
21246 What compiler should emacs be built with? ${CC} ${CFLAGS}
21247 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21248 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21249 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21250 What window system should Emacs use? ${window_system}
21251 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21253 if test -n "${x_includes}"; then
21254 echo " Where do we find X Windows header files? ${x_includes}"
21255 else
21256 echo " Where do we find X Windows header files? Standard dirs"
21258 if test -n "${x_libraries}"; then
21259 echo " Where do we find X Windows libraries? ${x_libraries}"
21260 else
21261 echo " Where do we find X Windows libraries? Standard dirs"
21264 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21265 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21266 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21267 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21268 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21269 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21270 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21271 echo
21273 # Remove any trailing slashes in these variables.
21274 test "${prefix}" != NONE &&
21275 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21276 test "${exec_prefix}" != NONE &&
21277 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21279 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21280 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21281 ## from Makefile.c can correctly provide the arg `-traditional' to the
21282 ## C preprocessor.
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h. */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 yes..yes
21291 _ACEOF
21292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21293 $EGREP "yes..yes" >/dev/null 2>&1; then
21294 CPP_NEED_TRADITIONAL=no
21295 else
21296 CPP_NEED_TRADITIONAL=yes
21298 rm -f conftest*
21301 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"
21302 ac_config_commands="$ac_config_commands default"
21303 cat >confcache <<\_ACEOF
21304 # This file is a shell script that caches the results of configure
21305 # tests run on this system so they can be shared between configure
21306 # scripts and configure runs, see configure's option --config-cache.
21307 # It is not useful on other systems. If it contains results you don't
21308 # want to keep, you may remove or edit it.
21310 # config.status only pays attention to the cache file if you give it
21311 # the --recheck option to rerun configure.
21313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21315 # following values.
21317 _ACEOF
21319 # The following way of writing the cache mishandles newlines in values,
21320 # but we know of no workaround that is simple, portable, and efficient.
21321 # So, don't put newlines in cache variables' values.
21322 # Ultrix sh set writes to stderr and can't be redirected directly,
21323 # and sets the high bit in the cache file unless we assign to the vars.
21325 (set) 2>&1 |
21326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21327 *ac_space=\ *)
21328 # `set' does not quote correctly, so add quotes (double-quote
21329 # substitution turns \\\\ into \\, and sed turns \\ into \).
21330 sed -n \
21331 "s/'/'\\\\''/g;
21332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21335 # `set' quotes correctly as required by POSIX, so do not add quotes.
21336 sed -n \
21337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21339 esac;
21341 sed '
21342 t clear
21343 : clear
21344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21345 t end
21346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21347 : end' >>confcache
21348 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21349 if test -w $cache_file; then
21350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21351 cat confcache >$cache_file
21352 else
21353 echo "not updating unwritable cache $cache_file"
21356 rm -f confcache
21358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21359 # Let make expand exec_prefix.
21360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21364 # trailing colons and then remove the whole line if VPATH becomes empty
21365 # (actually we leave an empty line to preserve line numbers).
21366 if test "x$srcdir" = x.; then
21367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21368 s/:*\$(srcdir):*/:/;
21369 s/:*\${srcdir}:*/:/;
21370 s/:*@srcdir@:*/:/;
21371 s/^\([^=]*=[ ]*\):*/\1/;
21372 s/:*$//;
21373 s/^[^=]*=[ ]*$//;
21377 DEFS=-DHAVE_CONFIG_H
21379 ac_libobjs=
21380 ac_ltlibobjs=
21381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21382 # 1. Remove the extension, and $U if already installed.
21383 ac_i=`echo "$ac_i" |
21384 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21385 # 2. Add them.
21386 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21387 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21388 done
21389 LIBOBJS=$ac_libobjs
21391 LTLIBOBJS=$ac_ltlibobjs
21395 : ${CONFIG_STATUS=./config.status}
21396 ac_clean_files_save=$ac_clean_files
21397 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21398 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21399 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21400 cat >$CONFIG_STATUS <<_ACEOF
21401 #! $SHELL
21402 # Generated by $as_me.
21403 # Run this file to recreate the current configuration.
21404 # Compiler output produced by configure, useful for debugging
21405 # configure, is in config.log if it exists.
21407 debug=false
21408 ac_cs_recheck=false
21409 ac_cs_silent=false
21410 SHELL=\${CONFIG_SHELL-$SHELL}
21411 _ACEOF
21413 cat >>$CONFIG_STATUS <<\_ACEOF
21414 ## --------------------- ##
21415 ## M4sh Initialization. ##
21416 ## --------------------- ##
21418 # Be Bourne compatible
21419 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21420 emulate sh
21421 NULLCMD=:
21422 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21423 # is contrary to our usage. Disable this feature.
21424 alias -g '${1+"$@"}'='"$@"'
21425 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21426 set -o posix
21428 DUALCASE=1; export DUALCASE # for MKS sh
21430 # Support unset when possible.
21431 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21432 as_unset=unset
21433 else
21434 as_unset=false
21438 # Work around bugs in pre-3.0 UWIN ksh.
21439 $as_unset ENV MAIL MAILPATH
21440 PS1='$ '
21441 PS2='> '
21442 PS4='+ '
21444 # NLS nuisances.
21445 for as_var in \
21446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21448 LC_TELEPHONE LC_TIME
21450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21451 eval $as_var=C; export $as_var
21452 else
21453 $as_unset $as_var
21455 done
21457 # Required to use basename.
21458 if expr a : '\(a\)' >/dev/null 2>&1; then
21459 as_expr=expr
21460 else
21461 as_expr=false
21464 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21465 as_basename=basename
21466 else
21467 as_basename=false
21471 # Name of the executable.
21472 as_me=`$as_basename "$0" ||
21473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21474 X"$0" : 'X\(//\)$' \| \
21475 X"$0" : 'X\(/\)$' \| \
21476 . : '\(.\)' 2>/dev/null ||
21477 echo X/"$0" |
21478 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21479 /^X\/\(\/\/\)$/{ s//\1/; q; }
21480 /^X\/\(\/\).*/{ s//\1/; q; }
21481 s/.*/./; q'`
21484 # PATH needs CR, and LINENO needs CR and PATH.
21485 # Avoid depending upon Character Ranges.
21486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21489 as_cr_digits='0123456789'
21490 as_cr_alnum=$as_cr_Letters$as_cr_digits
21492 # The user is always right.
21493 if test "${PATH_SEPARATOR+set}" != set; then
21494 echo "#! /bin/sh" >conf$$.sh
21495 echo "exit 0" >>conf$$.sh
21496 chmod +x conf$$.sh
21497 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21498 PATH_SEPARATOR=';'
21499 else
21500 PATH_SEPARATOR=:
21502 rm -f conf$$.sh
21506 as_lineno_1=$LINENO
21507 as_lineno_2=$LINENO
21508 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21509 test "x$as_lineno_1" != "x$as_lineno_2" &&
21510 test "x$as_lineno_3" = "x$as_lineno_2" || {
21511 # Find who we are. Look in the path if we contain no path at all
21512 # relative or not.
21513 case $0 in
21514 *[\\/]* ) as_myself=$0 ;;
21515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21516 for as_dir in $PATH
21518 IFS=$as_save_IFS
21519 test -z "$as_dir" && as_dir=.
21520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21521 done
21524 esac
21525 # We did not find ourselves, most probably we were run as `sh COMMAND'
21526 # in which case we are not to be found in the path.
21527 if test "x$as_myself" = x; then
21528 as_myself=$0
21530 if test ! -f "$as_myself"; then
21531 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21532 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21533 { (exit 1); exit 1; }; }
21535 case $CONFIG_SHELL in
21537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21540 IFS=$as_save_IFS
21541 test -z "$as_dir" && as_dir=.
21542 for as_base in sh bash ksh sh5; do
21543 case $as_dir in
21545 if ("$as_dir/$as_base" -c '
21546 as_lineno_1=$LINENO
21547 as_lineno_2=$LINENO
21548 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21549 test "x$as_lineno_1" != "x$as_lineno_2" &&
21550 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21551 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21552 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21553 CONFIG_SHELL=$as_dir/$as_base
21554 export CONFIG_SHELL
21555 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21556 fi;;
21557 esac
21558 done
21559 done
21561 esac
21563 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21564 # uniformly replaced by the line number. The first 'sed' inserts a
21565 # line-number line before each line; the second 'sed' does the real
21566 # work. The second script uses 'N' to pair each line-number line
21567 # with the numbered line, and appends trailing '-' during
21568 # substitution so that $LINENO is not a special case at line end.
21569 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21570 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21571 sed '=' <$as_myself |
21572 sed '
21574 s,$,-,
21575 : loop
21576 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21577 t loop
21578 s,-$,,
21579 s,^['$as_cr_digits']*\n,,
21580 ' >$as_me.lineno &&
21581 chmod +x $as_me.lineno ||
21582 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21583 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21584 { (exit 1); exit 1; }; }
21586 # Don't try to exec as it changes $[0], causing all sort of problems
21587 # (the dirname of $[0] is not the place where we might find the
21588 # original and so on. Autoconf is especially sensible to this).
21589 . ./$as_me.lineno
21590 # Exit status is that of the last command.
21591 exit
21595 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21596 *c*,-n*) ECHO_N= ECHO_C='
21597 ' ECHO_T=' ' ;;
21598 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21599 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21600 esac
21602 if expr a : '\(a\)' >/dev/null 2>&1; then
21603 as_expr=expr
21604 else
21605 as_expr=false
21608 rm -f conf$$ conf$$.exe conf$$.file
21609 echo >conf$$.file
21610 if ln -s conf$$.file conf$$ 2>/dev/null; then
21611 # We could just check for DJGPP; but this test a) works b) is more generic
21612 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21613 if test -f conf$$.exe; then
21614 # Don't use ln at all; we don't have any links
21615 as_ln_s='cp -p'
21616 else
21617 as_ln_s='ln -s'
21619 elif ln conf$$.file conf$$ 2>/dev/null; then
21620 as_ln_s=ln
21621 else
21622 as_ln_s='cp -p'
21624 rm -f conf$$ conf$$.exe conf$$.file
21626 if mkdir -p . 2>/dev/null; then
21627 as_mkdir_p=:
21628 else
21629 test -d ./-p && rmdir ./-p
21630 as_mkdir_p=false
21633 as_executable_p="test -f"
21635 # Sed expression to map a string onto a valid CPP name.
21636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21638 # Sed expression to map a string onto a valid variable name.
21639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21642 # IFS
21643 # We need space, tab and new line, in precisely that order.
21644 as_nl='
21646 IFS=" $as_nl"
21648 # CDPATH.
21649 $as_unset CDPATH
21651 exec 6>&1
21653 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21654 # report actual input values of CONFIG_FILES etc. instead of their
21655 # values after options handling. Logging --version etc. is OK.
21656 exec 5>>config.log
21658 echo
21659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21660 ## Running $as_me. ##
21661 _ASBOX
21662 } >&5
21663 cat >&5 <<_CSEOF
21665 This file was extended by $as_me, which was
21666 generated by GNU Autoconf 2.59. Invocation command line was
21668 CONFIG_FILES = $CONFIG_FILES
21669 CONFIG_HEADERS = $CONFIG_HEADERS
21670 CONFIG_LINKS = $CONFIG_LINKS
21671 CONFIG_COMMANDS = $CONFIG_COMMANDS
21672 $ $0 $@
21674 _CSEOF
21675 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21676 echo >&5
21677 _ACEOF
21679 # Files that config.status was made for.
21680 if test -n "$ac_config_files"; then
21681 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21684 if test -n "$ac_config_headers"; then
21685 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21688 if test -n "$ac_config_links"; then
21689 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21692 if test -n "$ac_config_commands"; then
21693 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21696 cat >>$CONFIG_STATUS <<\_ACEOF
21698 ac_cs_usage="\
21699 \`$as_me' instantiates files from templates according to the
21700 current configuration.
21702 Usage: $0 [OPTIONS] [FILE]...
21704 -h, --help print this help, then exit
21705 -V, --version print version number, then exit
21706 -q, --quiet do not print progress messages
21707 -d, --debug don't remove temporary files
21708 --recheck update $as_me by reconfiguring in the same conditions
21709 --file=FILE[:TEMPLATE]
21710 instantiate the configuration file FILE
21711 --header=FILE[:TEMPLATE]
21712 instantiate the configuration header FILE
21714 Configuration files:
21715 $config_files
21717 Configuration headers:
21718 $config_headers
21720 Configuration commands:
21721 $config_commands
21723 Report bugs to <bug-autoconf@gnu.org>."
21724 _ACEOF
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 ac_cs_version="\\
21728 config.status
21729 configured by $0, generated by GNU Autoconf 2.59,
21730 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21732 Copyright (C) 2003 Free Software Foundation, Inc.
21733 This config.status script is free software; the Free Software Foundation
21734 gives unlimited permission to copy, distribute and modify it."
21735 srcdir=$srcdir
21736 INSTALL="$INSTALL"
21737 _ACEOF
21739 cat >>$CONFIG_STATUS <<\_ACEOF
21740 # If no file are specified by the user, then we need to provide default
21741 # value. By we need to know if files were specified by the user.
21742 ac_need_defaults=:
21743 while test $# != 0
21745 case $1 in
21746 --*=*)
21747 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21748 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21749 ac_shift=:
21752 ac_option=$1
21753 ac_optarg=$2
21754 ac_shift=shift
21756 *) # This is not an option, so the user has probably given explicit
21757 # arguments.
21758 ac_option=$1
21759 ac_need_defaults=false;;
21760 esac
21762 case $ac_option in
21763 # Handling of the options.
21764 _ACEOF
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21767 ac_cs_recheck=: ;;
21768 --version | --vers* | -V )
21769 echo "$ac_cs_version"; exit 0 ;;
21770 --he | --h)
21771 # Conflict between --help and --header
21772 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21773 Try \`$0 --help' for more information." >&5
21774 echo "$as_me: error: ambiguous option: $1
21775 Try \`$0 --help' for more information." >&2;}
21776 { (exit 1); exit 1; }; };;
21777 --help | --hel | -h )
21778 echo "$ac_cs_usage"; exit 0 ;;
21779 --debug | --d* | -d )
21780 debug=: ;;
21781 --file | --fil | --fi | --f )
21782 $ac_shift
21783 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21784 ac_need_defaults=false;;
21785 --header | --heade | --head | --hea )
21786 $ac_shift
21787 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21788 ac_need_defaults=false;;
21789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21790 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21791 ac_cs_silent=: ;;
21793 # This is an error.
21794 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21795 Try \`$0 --help' for more information." >&5
21796 echo "$as_me: error: unrecognized option: $1
21797 Try \`$0 --help' for more information." >&2;}
21798 { (exit 1); exit 1; }; } ;;
21800 *) ac_config_targets="$ac_config_targets $1" ;;
21802 esac
21803 shift
21804 done
21806 ac_configure_extra_args=
21808 if $ac_cs_silent; then
21809 exec 6>/dev/null
21810 ac_configure_extra_args="$ac_configure_extra_args --silent"
21813 _ACEOF
21814 cat >>$CONFIG_STATUS <<_ACEOF
21815 if \$ac_cs_recheck; then
21816 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21817 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21820 _ACEOF
21822 cat >>$CONFIG_STATUS <<_ACEOF
21824 # INIT-COMMANDS section.
21827 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21829 _ACEOF
21833 cat >>$CONFIG_STATUS <<\_ACEOF
21834 for ac_config_target in $ac_config_targets
21836 case "$ac_config_target" in
21837 # Handling of arguments.
21838 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21839 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21840 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21841 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21842 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21843 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21844 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21845 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
21846 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
21847 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21848 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21849 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21851 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21852 { (exit 1); exit 1; }; };;
21853 esac
21854 done
21856 # If the user did not use the arguments to specify the items to instantiate,
21857 # then the envvar interface is used. Set only those that are not.
21858 # We use the long form for the default assignment because of an extremely
21859 # bizarre bug on SunOS 4.1.3.
21860 if $ac_need_defaults; then
21861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21866 # Have a temporary directory for convenience. Make it in the build tree
21867 # simply because there is no reason to put it here, and in addition,
21868 # creating and moving files from /tmp can sometimes cause problems.
21869 # Create a temporary directory, and hook for its removal unless debugging.
21870 $debug ||
21872 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21873 trap '{ (exit 1); exit 1; }' 1 2 13 15
21876 # Create a (secure) tmp directory for tmp files.
21879 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21880 test -n "$tmp" && test -d "$tmp"
21881 } ||
21883 tmp=./confstat$$-$RANDOM
21884 (umask 077 && mkdir $tmp)
21885 } ||
21887 echo "$me: cannot create a temporary directory in ." >&2
21888 { (exit 1); exit 1; }
21891 _ACEOF
21893 cat >>$CONFIG_STATUS <<_ACEOF
21896 # CONFIG_FILES section.
21899 # No need to generate the scripts if there are no CONFIG_FILES.
21900 # This happens for instance when ./config.status config.h
21901 if test -n "\$CONFIG_FILES"; then
21902 # Protect against being on the right side of a sed subst in config.status.
21903 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21904 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21905 s,@SHELL@,$SHELL,;t t
21906 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21907 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21908 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21909 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21910 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21911 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21912 s,@exec_prefix@,$exec_prefix,;t t
21913 s,@prefix@,$prefix,;t t
21914 s,@program_transform_name@,$program_transform_name,;t t
21915 s,@bindir@,$bindir,;t t
21916 s,@sbindir@,$sbindir,;t t
21917 s,@libexecdir@,$libexecdir,;t t
21918 s,@datadir@,$datadir,;t t
21919 s,@sysconfdir@,$sysconfdir,;t t
21920 s,@sharedstatedir@,$sharedstatedir,;t t
21921 s,@localstatedir@,$localstatedir,;t t
21922 s,@libdir@,$libdir,;t t
21923 s,@includedir@,$includedir,;t t
21924 s,@oldincludedir@,$oldincludedir,;t t
21925 s,@infodir@,$infodir,;t t
21926 s,@mandir@,$mandir,;t t
21927 s,@build_alias@,$build_alias,;t t
21928 s,@host_alias@,$host_alias,;t t
21929 s,@target_alias@,$target_alias,;t t
21930 s,@DEFS@,$DEFS,;t t
21931 s,@ECHO_C@,$ECHO_C,;t t
21932 s,@ECHO_N@,$ECHO_N,;t t
21933 s,@ECHO_T@,$ECHO_T,;t t
21934 s,@LIBS@,$LIBS,;t t
21935 s,@MAINT@,$MAINT,;t t
21936 s,@build@,$build,;t t
21937 s,@build_cpu@,$build_cpu,;t t
21938 s,@build_vendor@,$build_vendor,;t t
21939 s,@build_os@,$build_os,;t t
21940 s,@host@,$host,;t t
21941 s,@host_cpu@,$host_cpu,;t t
21942 s,@host_vendor@,$host_vendor,;t t
21943 s,@host_os@,$host_os,;t t
21944 s,@CC@,$CC,;t t
21945 s,@CFLAGS@,$CFLAGS,;t t
21946 s,@LDFLAGS@,$LDFLAGS,;t t
21947 s,@CPPFLAGS@,$CPPFLAGS,;t t
21948 s,@ac_ct_CC@,$ac_ct_CC,;t t
21949 s,@EXEEXT@,$EXEEXT,;t t
21950 s,@OBJEXT@,$OBJEXT,;t t
21951 s,@LN_S@,$LN_S,;t t
21952 s,@CPP@,$CPP,;t t
21953 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21954 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21955 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21956 s,@RANLIB@,$RANLIB,;t t
21957 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21958 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21959 s,@EGREP@,$EGREP,;t t
21960 s,@LIBSOUND@,$LIBSOUND,;t t
21961 s,@SET_MAKE@,$SET_MAKE,;t t
21962 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21963 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21964 s,@GTK_LIBS@,$GTK_LIBS,;t t
21965 s,@ALLOCA@,$ALLOCA,;t t
21966 s,@liblockfile@,$liblockfile,;t t
21967 s,@LIBOBJS@,$LIBOBJS,;t t
21968 s,@NEED_SETGID@,$NEED_SETGID,;t t
21969 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21970 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21971 s,@version@,$version,;t t
21972 s,@configuration@,$configuration,;t t
21973 s,@canonical@,$canonical,;t t
21974 s,@srcdir@,$srcdir,;t t
21975 s,@lispdir@,$lispdir,;t t
21976 s,@locallisppath@,$locallisppath,;t t
21977 s,@lisppath@,$lisppath,;t t
21978 s,@x_default_search_path@,$x_default_search_path,;t t
21979 s,@etcdir@,$etcdir,;t t
21980 s,@archlibdir@,$archlibdir,;t t
21981 s,@docdir@,$docdir,;t t
21982 s,@bitmapdir@,$bitmapdir,;t t
21983 s,@gamedir@,$gamedir,;t t
21984 s,@gameuser@,$gameuser,;t t
21985 s,@c_switch_system@,$c_switch_system,;t t
21986 s,@c_switch_machine@,$c_switch_machine,;t t
21987 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21988 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21989 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21990 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21991 s,@machfile@,$machfile,;t t
21992 s,@opsysfile@,$opsysfile,;t t
21993 s,@carbon_appdir@,$carbon_appdir,;t t
21994 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21995 CEOF
21997 _ACEOF
21999 cat >>$CONFIG_STATUS <<\_ACEOF
22000 # Split the substitutions into bite-sized pieces for seds with
22001 # small command number limits, like on Digital OSF/1 and HP-UX.
22002 ac_max_sed_lines=48
22003 ac_sed_frag=1 # Number of current file.
22004 ac_beg=1 # First line for current file.
22005 ac_end=$ac_max_sed_lines # Line after last line for current file.
22006 ac_more_lines=:
22007 ac_sed_cmds=
22008 while $ac_more_lines; do
22009 if test $ac_beg -gt 1; then
22010 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22011 else
22012 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22014 if test ! -s $tmp/subs.frag; then
22015 ac_more_lines=false
22016 else
22017 # The purpose of the label and of the branching condition is to
22018 # speed up the sed processing (if there are no `@' at all, there
22019 # is no need to browse any of the substitutions).
22020 # These are the two extra sed commands mentioned above.
22021 (echo ':t
22022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22023 if test -z "$ac_sed_cmds"; then
22024 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22025 else
22026 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22028 ac_sed_frag=`expr $ac_sed_frag + 1`
22029 ac_beg=$ac_end
22030 ac_end=`expr $ac_end + $ac_max_sed_lines`
22032 done
22033 if test -z "$ac_sed_cmds"; then
22034 ac_sed_cmds=cat
22036 fi # test -n "$CONFIG_FILES"
22038 _ACEOF
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22042 case $ac_file in
22043 - | *:- | *:-:* ) # input from stdin
22044 cat >$tmp/stdin
22045 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22047 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22048 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22049 * ) ac_file_in=$ac_file.in ;;
22050 esac
22052 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22053 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22055 X"$ac_file" : 'X\(//\)[^/]' \| \
22056 X"$ac_file" : 'X\(//\)$' \| \
22057 X"$ac_file" : 'X\(/\)' \| \
22058 . : '\(.\)' 2>/dev/null ||
22059 echo X"$ac_file" |
22060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22062 /^X\(\/\/\)$/{ s//\1/; q; }
22063 /^X\(\/\).*/{ s//\1/; q; }
22064 s/.*/./; q'`
22065 { if $as_mkdir_p; then
22066 mkdir -p "$ac_dir"
22067 else
22068 as_dir="$ac_dir"
22069 as_dirs=
22070 while test ! -d "$as_dir"; do
22071 as_dirs="$as_dir $as_dirs"
22072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074 X"$as_dir" : 'X\(//\)[^/]' \| \
22075 X"$as_dir" : 'X\(//\)$' \| \
22076 X"$as_dir" : 'X\(/\)' \| \
22077 . : '\(.\)' 2>/dev/null ||
22078 echo X"$as_dir" |
22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22081 /^X\(\/\/\)$/{ s//\1/; q; }
22082 /^X\(\/\).*/{ s//\1/; q; }
22083 s/.*/./; q'`
22084 done
22085 test ! -n "$as_dirs" || mkdir $as_dirs
22086 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22087 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22088 { (exit 1); exit 1; }; }; }
22090 ac_builddir=.
22092 if test "$ac_dir" != .; then
22093 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22094 # A "../" for each directory in $ac_dir_suffix.
22095 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22096 else
22097 ac_dir_suffix= ac_top_builddir=
22100 case $srcdir in
22101 .) # No --srcdir option. We are building in place.
22102 ac_srcdir=.
22103 if test -z "$ac_top_builddir"; then
22104 ac_top_srcdir=.
22105 else
22106 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22107 fi ;;
22108 [\\/]* | ?:[\\/]* ) # Absolute path.
22109 ac_srcdir=$srcdir$ac_dir_suffix;
22110 ac_top_srcdir=$srcdir ;;
22111 *) # Relative path.
22112 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22113 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22114 esac
22116 # Do not use `cd foo && pwd` to compute absolute paths, because
22117 # the directories may not exist.
22118 case `pwd` in
22119 .) ac_abs_builddir="$ac_dir";;
22121 case "$ac_dir" in
22122 .) ac_abs_builddir=`pwd`;;
22123 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22124 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22125 esac;;
22126 esac
22127 case $ac_abs_builddir in
22128 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22130 case ${ac_top_builddir}. in
22131 .) ac_abs_top_builddir=$ac_abs_builddir;;
22132 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22133 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22134 esac;;
22135 esac
22136 case $ac_abs_builddir in
22137 .) ac_abs_srcdir=$ac_srcdir;;
22139 case $ac_srcdir in
22140 .) ac_abs_srcdir=$ac_abs_builddir;;
22141 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22142 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22143 esac;;
22144 esac
22145 case $ac_abs_builddir in
22146 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22148 case $ac_top_srcdir in
22149 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22150 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22151 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22152 esac;;
22153 esac
22156 case $INSTALL in
22157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22158 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22159 esac
22161 if test x"$ac_file" != x-; then
22162 { echo "$as_me:$LINENO: creating $ac_file" >&5
22163 echo "$as_me: creating $ac_file" >&6;}
22164 rm -f "$ac_file"
22166 # Let's still pretend it is `configure' which instantiates (i.e., don't
22167 # use $as_me), people would be surprised to read:
22168 # /* config.h. Generated by config.status. */
22169 if test x"$ac_file" = x-; then
22170 configure_input=
22171 else
22172 configure_input="$ac_file. "
22174 configure_input=$configure_input"Generated from `echo $ac_file_in |
22175 sed 's,.*/,,'` by configure."
22177 # First look for the input files in the build tree, otherwise in the
22178 # src tree.
22179 ac_file_inputs=`IFS=:
22180 for f in $ac_file_in; do
22181 case $f in
22182 -) echo $tmp/stdin ;;
22183 [\\/$]*)
22184 # Absolute (can't be DOS-style, as IFS=:)
22185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22186 echo "$as_me: error: cannot find input file: $f" >&2;}
22187 { (exit 1); exit 1; }; }
22188 echo "$f";;
22189 *) # Relative
22190 if test -f "$f"; then
22191 # Build tree
22192 echo "$f"
22193 elif test -f "$srcdir/$f"; then
22194 # Source tree
22195 echo "$srcdir/$f"
22196 else
22197 # /dev/null tree
22198 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22199 echo "$as_me: error: cannot find input file: $f" >&2;}
22200 { (exit 1); exit 1; }; }
22201 fi;;
22202 esac
22203 done` || { (exit 1); exit 1; }
22204 _ACEOF
22205 cat >>$CONFIG_STATUS <<_ACEOF
22206 sed "$ac_vpsub
22207 $extrasub
22208 _ACEOF
22209 cat >>$CONFIG_STATUS <<\_ACEOF
22211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22212 s,@configure_input@,$configure_input,;t t
22213 s,@srcdir@,$ac_srcdir,;t t
22214 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22215 s,@top_srcdir@,$ac_top_srcdir,;t t
22216 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22217 s,@builddir@,$ac_builddir,;t t
22218 s,@abs_builddir@,$ac_abs_builddir,;t t
22219 s,@top_builddir@,$ac_top_builddir,;t t
22220 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22221 s,@INSTALL@,$ac_INSTALL,;t t
22222 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22223 rm -f $tmp/stdin
22224 if test x"$ac_file" != x-; then
22225 mv $tmp/out $ac_file
22226 else
22227 cat $tmp/out
22228 rm -f $tmp/out
22231 done
22232 _ACEOF
22233 cat >>$CONFIG_STATUS <<\_ACEOF
22236 # CONFIG_HEADER section.
22239 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22240 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22242 # ac_d sets the value in "#define NAME VALUE" lines.
22243 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22244 ac_dB='[ ].*$,\1#\2'
22245 ac_dC=' '
22246 ac_dD=',;t'
22247 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22248 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22249 ac_uB='$,\1#\2define\3'
22250 ac_uC=' '
22251 ac_uD=',;t'
22253 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22255 case $ac_file in
22256 - | *:- | *:-:* ) # input from stdin
22257 cat >$tmp/stdin
22258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22262 * ) ac_file_in=$ac_file.in ;;
22263 esac
22265 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22266 echo "$as_me: creating $ac_file" >&6;}
22268 # First look for the input files in the build tree, otherwise in the
22269 # src tree.
22270 ac_file_inputs=`IFS=:
22271 for f in $ac_file_in; do
22272 case $f in
22273 -) echo $tmp/stdin ;;
22274 [\\/$]*)
22275 # Absolute (can't be DOS-style, as IFS=:)
22276 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22277 echo "$as_me: error: cannot find input file: $f" >&2;}
22278 { (exit 1); exit 1; }; }
22279 # Do quote $f, to prevent DOS paths from being IFS'd.
22280 echo "$f";;
22281 *) # Relative
22282 if test -f "$f"; then
22283 # Build tree
22284 echo "$f"
22285 elif test -f "$srcdir/$f"; then
22286 # Source tree
22287 echo "$srcdir/$f"
22288 else
22289 # /dev/null tree
22290 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22291 echo "$as_me: error: cannot find input file: $f" >&2;}
22292 { (exit 1); exit 1; }; }
22293 fi;;
22294 esac
22295 done` || { (exit 1); exit 1; }
22296 # Remove the trailing spaces.
22297 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22299 _ACEOF
22301 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22302 # `conftest.undefs', that substitutes the proper values into
22303 # config.h.in to produce config.h. The first handles `#define'
22304 # templates, and the second `#undef' templates.
22305 # And first: Protect against being on the right side of a sed subst in
22306 # config.status. Protect against being in an unquoted here document
22307 # in config.status.
22308 rm -f conftest.defines conftest.undefs
22309 # Using a here document instead of a string reduces the quoting nightmare.
22310 # Putting comments in sed scripts is not portable.
22312 # `end' is used to avoid that the second main sed command (meant for
22313 # 0-ary CPP macros) applies to n-ary macro definitions.
22314 # See the Autoconf documentation for `clear'.
22315 cat >confdef2sed.sed <<\_ACEOF
22316 s/[\\&,]/\\&/g
22317 s,[\\$`],\\&,g
22318 t clear
22319 : clear
22320 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22321 t end
22322 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22323 : end
22324 _ACEOF
22325 # If some macros were called several times there might be several times
22326 # the same #defines, which is useless. Nevertheless, we may not want to
22327 # sort them, since we want the *last* AC-DEFINE to be honored.
22328 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22329 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22330 rm -f confdef2sed.sed
22332 # This sed command replaces #undef with comments. This is necessary, for
22333 # example, in the case of _POSIX_SOURCE, which is predefined and required
22334 # on some systems where configure will not decide to define it.
22335 cat >>conftest.undefs <<\_ACEOF
22336 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22337 _ACEOF
22339 # Break up conftest.defines because some shells have a limit on the size
22340 # of here documents, and old seds have small limits too (100 cmds).
22341 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22342 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22343 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22344 echo ' :' >>$CONFIG_STATUS
22345 rm -f conftest.tail
22346 while grep . conftest.defines >/dev/null
22348 # Write a limited-size here document to $tmp/defines.sed.
22349 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22350 # Speed up: don't consider the non `#define' lines.
22351 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22352 # Work around the forget-to-reset-the-flag bug.
22353 echo 't clr' >>$CONFIG_STATUS
22354 echo ': clr' >>$CONFIG_STATUS
22355 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22356 echo 'CEOF
22357 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22358 rm -f $tmp/in
22359 mv $tmp/out $tmp/in
22360 ' >>$CONFIG_STATUS
22361 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22362 rm -f conftest.defines
22363 mv conftest.tail conftest.defines
22364 done
22365 rm -f conftest.defines
22366 echo ' fi # grep' >>$CONFIG_STATUS
22367 echo >>$CONFIG_STATUS
22369 # Break up conftest.undefs because some shells have a limit on the size
22370 # of here documents, and old seds have small limits too (100 cmds).
22371 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22372 rm -f conftest.tail
22373 while grep . conftest.undefs >/dev/null
22375 # Write a limited-size here document to $tmp/undefs.sed.
22376 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22377 # Speed up: don't consider the non `#undef'
22378 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22379 # Work around the forget-to-reset-the-flag bug.
22380 echo 't clr' >>$CONFIG_STATUS
22381 echo ': clr' >>$CONFIG_STATUS
22382 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22383 echo 'CEOF
22384 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22385 rm -f $tmp/in
22386 mv $tmp/out $tmp/in
22387 ' >>$CONFIG_STATUS
22388 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22389 rm -f conftest.undefs
22390 mv conftest.tail conftest.undefs
22391 done
22392 rm -f conftest.undefs
22394 cat >>$CONFIG_STATUS <<\_ACEOF
22395 # Let's still pretend it is `configure' which instantiates (i.e., don't
22396 # use $as_me), people would be surprised to read:
22397 # /* config.h. Generated by config.status. */
22398 if test x"$ac_file" = x-; then
22399 echo "/* Generated by configure. */" >$tmp/config.h
22400 else
22401 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22403 cat $tmp/in >>$tmp/config.h
22404 rm -f $tmp/in
22405 if test x"$ac_file" != x-; then
22406 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22407 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22408 echo "$as_me: $ac_file is unchanged" >&6;}
22409 else
22410 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412 X"$ac_file" : 'X\(//\)[^/]' \| \
22413 X"$ac_file" : 'X\(//\)$' \| \
22414 X"$ac_file" : 'X\(/\)' \| \
22415 . : '\(.\)' 2>/dev/null ||
22416 echo X"$ac_file" |
22417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22418 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22419 /^X\(\/\/\)$/{ s//\1/; q; }
22420 /^X\(\/\).*/{ s//\1/; q; }
22421 s/.*/./; q'`
22422 { if $as_mkdir_p; then
22423 mkdir -p "$ac_dir"
22424 else
22425 as_dir="$ac_dir"
22426 as_dirs=
22427 while test ! -d "$as_dir"; do
22428 as_dirs="$as_dir $as_dirs"
22429 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22430 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22431 X"$as_dir" : 'X\(//\)[^/]' \| \
22432 X"$as_dir" : 'X\(//\)$' \| \
22433 X"$as_dir" : 'X\(/\)' \| \
22434 . : '\(.\)' 2>/dev/null ||
22435 echo X"$as_dir" |
22436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22438 /^X\(\/\/\)$/{ s//\1/; q; }
22439 /^X\(\/\).*/{ s//\1/; q; }
22440 s/.*/./; q'`
22441 done
22442 test ! -n "$as_dirs" || mkdir $as_dirs
22443 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22444 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22445 { (exit 1); exit 1; }; }; }
22447 rm -f $ac_file
22448 mv $tmp/config.h $ac_file
22450 else
22451 cat $tmp/config.h
22452 rm -f $tmp/config.h
22454 done
22455 _ACEOF
22456 cat >>$CONFIG_STATUS <<\_ACEOF
22459 # CONFIG_COMMANDS section.
22461 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22462 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22463 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22464 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22465 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22466 X"$ac_dest" : 'X\(//\)[^/]' \| \
22467 X"$ac_dest" : 'X\(//\)$' \| \
22468 X"$ac_dest" : 'X\(/\)' \| \
22469 . : '\(.\)' 2>/dev/null ||
22470 echo X"$ac_dest" |
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 ac_builddir=.
22503 if test "$ac_dir" != .; then
22504 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22505 # A "../" for each directory in $ac_dir_suffix.
22506 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22507 else
22508 ac_dir_suffix= ac_top_builddir=
22511 case $srcdir in
22512 .) # No --srcdir option. We are building in place.
22513 ac_srcdir=.
22514 if test -z "$ac_top_builddir"; then
22515 ac_top_srcdir=.
22516 else
22517 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22518 fi ;;
22519 [\\/]* | ?:[\\/]* ) # Absolute path.
22520 ac_srcdir=$srcdir$ac_dir_suffix;
22521 ac_top_srcdir=$srcdir ;;
22522 *) # Relative path.
22523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22525 esac
22527 # Do not use `cd foo && pwd` to compute absolute paths, because
22528 # the directories may not exist.
22529 case `pwd` in
22530 .) ac_abs_builddir="$ac_dir";;
22532 case "$ac_dir" in
22533 .) ac_abs_builddir=`pwd`;;
22534 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22535 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22536 esac;;
22537 esac
22538 case $ac_abs_builddir in
22539 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22541 case ${ac_top_builddir}. in
22542 .) ac_abs_top_builddir=$ac_abs_builddir;;
22543 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22544 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22545 esac;;
22546 esac
22547 case $ac_abs_builddir in
22548 .) ac_abs_srcdir=$ac_srcdir;;
22550 case $ac_srcdir in
22551 .) ac_abs_srcdir=$ac_abs_builddir;;
22552 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22553 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22554 esac;;
22555 esac
22556 case $ac_abs_builddir in
22557 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22559 case $ac_top_srcdir in
22560 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22561 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22562 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22563 esac;;
22564 esac
22567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22568 echo "$as_me: executing $ac_dest commands" >&6;}
22569 case $ac_dest in
22570 default )
22572 ### Make the necessary directories, if they don't exist.
22573 for dir in etc lisp ; do
22574 test -d ${dir} || mkdir ${dir}
22575 done
22577 # Build src/Makefile from ${srcdir}/src/Makefile.c
22578 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22579 # This must be done after src/config.h is built, since we rely on that file.
22581 # Now get this: Some word that is part of the ${srcdir} directory name
22582 # or the ${configuration} value might, just might, happen to be an
22583 # identifier like `sun4' or `i386' or something, and be predefined by
22584 # the C preprocessor to some helpful value like 1, or maybe the empty
22585 # string. Needless to say consequent macro substitutions are less
22586 # than conducive to the makefile finding the correct directory.
22587 undefs="`echo $top_srcdir $configuration $canonical |
22588 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22589 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22592 echo creating src/epaths.h
22593 ${MAKE-make} epaths-force
22595 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22596 # `..' to `. .' unless invoked with -traditional
22598 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
22599 CPPFLAGS="$CPPFLAGS -traditional"
22602 echo creating lib-src/Makefile
22603 ( cd lib-src
22604 rm -f junk.c junk1.c junk2.c
22605 sed -e '/start of cpp stuff/q' \
22606 < Makefile.c > junk1.c
22607 sed -e '1,/start of cpp stuff/d'\
22608 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22609 < Makefile.c > junk.c
22610 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22611 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22612 cat junk1.c junk2.c > Makefile.new
22613 rm -f junk.c junk1.c junk2.c
22614 chmod 444 Makefile.new
22615 mv -f Makefile.new Makefile
22618 echo creating src/Makefile
22619 ( cd src
22620 rm -f junk.c junk1.c junk2.c
22621 sed -e '/start of cpp stuff/q' \
22622 < Makefile.c > junk1.c
22623 sed -e '1,/start of cpp stuff/d'\
22624 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22625 < Makefile.c > junk.c
22626 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
22627 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22628 cat junk1.c junk2.c > Makefile.new
22629 rm -f junk.c junk1.c junk2.c
22630 chmod 444 Makefile.new
22631 mv -f Makefile.new Makefile
22634 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22635 echo creating src/.gdbinit
22636 echo source $srcdir/src/.gdbinit > src/.gdbinit
22639 # This is how we know whether to re-run configure in certain cases.
22640 touch src/config.stamp
22643 esac
22644 done
22645 _ACEOF
22647 cat >>$CONFIG_STATUS <<\_ACEOF
22649 { (exit 0); exit 0; }
22650 _ACEOF
22651 chmod +x $CONFIG_STATUS
22652 ac_clean_files=$ac_clean_files_save
22655 # configure is writing to config.log, and then calls config.status.
22656 # config.status does its own redirection, appending to config.log.
22657 # Unfortunately, on DOS this fails, as config.log is still kept open
22658 # by configure, so config.status won't be able to write to it; its
22659 # output is simply discarded. So we exec the FD to /dev/null,
22660 # effectively closing config.log, so it can be properly (re)opened and
22661 # appended to by config.status. When coming back to configure, we
22662 # need to make the FD available again.
22663 if test "$no_create" != yes; then
22664 ac_cs_success=:
22665 ac_config_status_args=
22666 test "$silent" = yes &&
22667 ac_config_status_args="$ac_config_status_args --quiet"
22668 exec 5>/dev/null
22669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22670 exec 5>>config.log
22671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22672 # would make configure fail if this is the last instruction.
22673 $ac_cs_success || { (exit 1); exit 1; }