(Old Versions): Delete duplicate words.
[emacs.git] / configure
blob04887f104876ffff9d65b955af451178ff492f6b
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-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-locallisppath=PATH
863 directories Emacs should search for lisp files
864 specific to this site
865 --disable-largefile omit support for large files
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-gcc don't use GCC to compile Emacs if GCC is found
871 --without-pop don't support POP mail retrieval with movemail
872 --with-kerberos support Kerberos-authenticated POP
873 --with-kerberos5 support Kerberos version 5 authenticated POP
874 --with-hesiod support Hesiod to get the POP server host
875 --without-sound don't compile with sound support
876 --with-x-toolkit=KIT use an X toolkit
877 (KIT = yes/lucid/athena/motif/gtk/no)
878 --with-xpm use -lXpm for displaying XPM images
879 --with-jpeg use -ljpeg for displaying JPEG images
880 --with-tiff use -ltiff for displaying TIFF images
881 --with-gif use -lungif for displaying GIF images
882 --with-png use -lpng for displaying PNG images
883 --with-gtk use GTK (same as --with-x-toolkit=gtk)
884 --with-pkg-config-prog Path to pkg-config to use for finding GTK
885 --without-toolkit-scroll-bars
886 don't use Motif or Xaw3d scroll bars
887 --without-xim don't use X11 XIM
888 --without-carbon don't use Carbon GUI on Mac OS X
889 --with-x use the X Window System
891 Some influential environment variables:
892 CC C compiler command
893 CFLAGS C compiler flags
894 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
895 nonstandard directory <lib dir>
896 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
897 headers in a nonstandard directory <include dir>
898 CPP C preprocessor
900 Use these variables to override the choices made by `configure' or to help
901 it to find libraries and programs with nonstandard names/locations.
903 _ACEOF
906 if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
908 ac_popdir=`pwd`
909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
910 test -d $ac_dir || continue
911 ac_builddir=.
913 if test "$ac_dir" != .; then
914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917 else
918 ac_dir_suffix= ac_top_builddir=
921 case $srcdir in
922 .) # No --srcdir option. We are building in place.
923 ac_srcdir=.
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
930 ac_srcdir=$srcdir$ac_dir_suffix;
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935 esac
937 # Do not use `cd foo && pwd` to compute absolute paths, because
938 # the directories may not exist.
939 case `pwd` in
940 .) ac_abs_builddir="$ac_dir";;
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_builddir=${ac_top_builddir}.;;
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_srcdir=$ac_srcdir;;
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_top_srcdir=$ac_top_srcdir;;
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
974 esac
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 cd "$ac_popdir"
992 done
995 test -n "$ac_init_help" && exit 0
996 if $ac_init_version; then
997 cat <<\_ACEOF
999 Copyright (C) 2003 Free Software Foundation, Inc.
1000 This configure script is free software; the Free Software Foundation
1001 gives unlimited permission to copy, distribute and modify it.
1002 _ACEOF
1003 exit 0
1005 exec 5>config.log
1006 cat >&5 <<_ACEOF
1007 This file contains any messages produced by compilers while
1008 running configure, to aid debugging if configure makes a mistake.
1010 It was created by $as_me, which was
1011 generated by GNU Autoconf 2.59. Invocation command line was
1013 $ $0 $@
1015 _ACEOF
1017 cat <<_ASUNAME
1018 ## --------- ##
1019 ## Platform. ##
1020 ## --------- ##
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 _ASUNAME
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 for as_dir in $PATH
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047 done
1049 } >&5
1051 cat >&5 <<_ACEOF
1054 ## ----------- ##
1055 ## Core tests. ##
1056 ## ----------- ##
1058 _ACEOF
1061 # Keep a trace of the command line.
1062 # Strip out --no-create and --no-recursion so they do not pile up.
1063 # Strip out --silent because we don't want to record it for future runs.
1064 # Also quote any args containing shell meta-characters.
1065 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_configure_args=
1067 ac_configure_args0=
1068 ac_configure_args1=
1069 ac_sep=
1070 ac_must_keep_next=false
1071 for ac_pass in 1 2
1073 for ac_arg
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
1106 esac
1107 done
1108 done
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1112 # When interrupted or exit'd, cleanup temporary files, and complete
1113 # config.log. We remove comments because anyway the quotes in there
1114 # would cause problems or look ugly.
1115 # WARNING: Be sure not to use single quotes in there, as some shells,
1116 # such as our DU 5.0 friend, will then `close' the trap.
1117 trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1120 echo
1122 cat <<\_ASBOX
1123 ## ---------------- ##
1124 ## Cache variables. ##
1125 ## ---------------- ##
1126 _ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
1130 (set) 2>&1 |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
1133 sed -n \
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1141 esac;
1143 echo
1145 cat <<\_ASBOX
1146 ## ----------------- ##
1147 ## Output variables. ##
1148 ## ----------------- ##
1149 _ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
1160 ## ------------- ##
1161 ## Output files. ##
1162 ## ------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175 ## ----------- ##
1176 ## confdefs.h. ##
1177 ## ----------- ##
1178 _ASBOX
1179 echo
1180 sed "/^$/d" confdefs.h | sort
1181 echo
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 exit $exit_status
1191 for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 done
1194 ac_signal=0
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1197 rm -rf conftest* confdefs.h
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 echo >confdefs.h
1201 # Predefined preprocessor variables.
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 _ACEOF
1228 # Let the site file select an alternate cache file if it wants to.
1229 # Prefer explicitly selected file to automatically selected ones.
1230 if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1237 for ac_site_file in $CONFIG_SITE; do
1238 if test -r "$ac_site_file"; then
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240 echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
1242 . "$ac_site_file"
1244 done
1246 if test -r "$cache_file"; then
1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251 echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
1255 esac
1257 else
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259 echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1341 test "$program_prefix" != NONE &&
1342 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1343 # Use a double $ so make ignores it.
1344 test "$program_suffix" != NONE &&
1345 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1346 # Double any \ or $. echo might interpret backslashes.
1347 # By default was `s,x,x', remove it if useless.
1348 cat <<\_ACEOF >conftest.sed
1349 s/[\\$]/&&/g;s/;s,x,x,$//
1350 _ACEOF
1351 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1352 rm conftest.sed
1355 lispdir='${datadir}/emacs/${version}/lisp'
1356 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1357 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1358 lisppath='${locallisppath}:${lispdir}'
1359 etcdir='${datadir}/emacs/${version}/etc'
1360 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1361 docdir='${datadir}/emacs/${version}/etc'
1362 gamedir='${localstatedir}/games/emacs'
1364 gameuser=games
1367 # Check whether --with-gcc or --without-gcc was given.
1368 if test "${with_gcc+set}" = set; then
1369 withval="$with_gcc"
1373 # Check whether --with-pop or --without-pop was given.
1374 if test "${with_pop+set}" = set; then
1375 withval="$with_pop"
1376 if test "$withval" = yes; then
1377 cat >>confdefs.h <<\_ACEOF
1378 #define MAIL_USE_POP 1
1379 _ACEOF
1381 else :
1383 else
1384 cat >>confdefs.h <<\_ACEOF
1385 #define MAIL_USE_POP 1
1386 _ACEOF
1391 # Check whether --with-kerberos or --without-kerberos was given.
1392 if test "${with_kerberos+set}" = set; then
1393 withval="$with_kerberos"
1394 cat >>confdefs.h <<\_ACEOF
1395 #define KERBEROS 1
1396 _ACEOF
1401 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1402 if test "${with_kerberos5+set}" = set; then
1403 withval="$with_kerberos5"
1404 if test "${with_kerberos5+set}" = set; then
1405 if test "${with_kerberos+set}" != set; then
1406 with_kerberos=yes
1407 cat >>confdefs.h <<\_ACEOF
1408 #define KERBEROS 1
1409 _ACEOF
1414 cat >>confdefs.h <<\_ACEOF
1415 #define KERBEROS5 1
1416 _ACEOF
1420 # Check whether --with-hesiod or --without-hesiod was given.
1421 if test "${with_hesiod+set}" = set; then
1422 withval="$with_hesiod"
1424 cat >>confdefs.h <<\_ACEOF
1425 #define HESIOD 1
1426 _ACEOF
1431 # Check whether --with-sound or --without-sound was given.
1432 if test "${with_sound+set}" = set; then
1433 withval="$with_sound"
1438 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1439 if test "${with_x_toolkit+set}" = set; then
1440 withval="$with_x_toolkit"
1441 case "${withval}" in
1442 y | ye | yes ) val=athena ;;
1443 n | no ) val=no ;;
1444 l | lu | luc | luci | lucid ) val=lucid ;;
1445 a | at | ath | athe | athen | athena ) val=athena ;;
1446 m | mo | mot | moti | motif ) val=motif ;;
1447 g | gt | gtk ) val=gtk ;;
1449 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1452 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1455 { (exit 1); exit 1; }; }
1457 esac
1458 with_x_toolkit=$val
1462 # Check whether --with-xpm or --without-xpm was given.
1463 if test "${with_xpm+set}" = set; then
1464 withval="$with_xpm"
1468 # Check whether --with-jpeg or --without-jpeg was given.
1469 if test "${with_jpeg+set}" = set; then
1470 withval="$with_jpeg"
1474 # Check whether --with-tiff or --without-tiff was given.
1475 if test "${with_tiff+set}" = set; then
1476 withval="$with_tiff"
1480 # Check whether --with-gif or --without-gif was given.
1481 if test "${with_gif+set}" = set; then
1482 withval="$with_gif"
1486 # Check whether --with-png or --without-png was given.
1487 if test "${with_png+set}" = set; then
1488 withval="$with_png"
1492 # Check whether --with-gtk or --without-gtk was given.
1493 if test "${with_gtk+set}" = set; then
1494 withval="$with_gtk"
1498 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1499 if test "${with_pkg_config_prog+set}" = set; then
1500 withval="$with_pkg_config_prog"
1504 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1505 if test "${with_toolkit_scroll_bars+set}" = set; then
1506 withval="$with_toolkit_scroll_bars"
1510 # Check whether --with-xim or --without-xim was given.
1511 if test "${with_xim+set}" = set; then
1512 withval="$with_xim"
1516 # Check whether --with-carbon or --without-carbon was given.
1517 if test "${with_carbon+set}" = set; then
1518 withval="$with_carbon"
1521 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1522 if test "${enable_carbon_app+set}" = set; then
1523 enableval="$enable_carbon_app"
1524 carbon_appdir_x=${enableval}
1527 # Check whether --enable-asserts or --disable-asserts was given.
1528 if test "${enable_asserts+set}" = set; then
1529 enableval="$enable_asserts"
1530 USE_XASSERTS=$enableval
1531 else
1532 USE_XASSERTS=no
1535 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1536 if test "${enable_maintainer_mode+set}" = set; then
1537 enableval="$enable_maintainer_mode"
1538 USE_MAINTAINER_MODE=$enableval
1539 else
1540 USE_MAINTAINER_MODE=no
1542 if test $USE_MAINTAINER_MODE = yes; then
1543 MAINT=
1544 else
1545 MAINT=#
1549 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1550 if test "${enable_locallisppath+set}" = set; then
1551 enableval="$enable_locallisppath"
1552 if test "${enableval}" = "no"; then
1553 locallisppath=
1554 elif test "${enableval}" != "yes"; then
1555 locallisppath=${enableval}
1559 #### Make srcdir absolute, if it isn't already. It's important to
1560 #### avoid running the path through pwd unnecessarily, since pwd can
1561 #### give you automounter prefixes, which can go away. We do all this
1562 #### so Emacs can find its files when run uninstalled.
1563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1564 unset CDPATH
1565 case "${srcdir}" in
1566 /* ) ;;
1568 ## We may be able to use the $PWD environment variable to make this
1569 ## absolute. But sometimes PWD is inaccurate.
1570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1571 ## but that tested only for a well-formed and valid PWD,
1572 ## it did not object when PWD was well-formed and valid but just wrong.
1573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1574 then
1575 srcdir="$PWD"
1576 else
1577 srcdir="`(cd ${srcdir}; pwd)`"
1580 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
1581 esac
1583 #### Check if the source directory already has a configured system in it.
1584 if test `pwd` != `(cd ${srcdir} && pwd)` \
1585 && test -f "${srcdir}/src/config.h" ; then
1586 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1587 as a build directory right now; it has been configured in its own
1588 right. To configure in another directory as well, you MUST
1589 use GNU make. If you do not have GNU make, then you must
1590 now do \`make distclean' in ${srcdir},
1591 and then run $0 again." >&5
1592 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1593 as a build directory right now; it has been configured in its own
1594 right. To configure in another directory as well, you MUST
1595 use GNU make. If you do not have GNU make, then you must
1596 now do \`make distclean' in ${srcdir},
1597 and then run $0 again." >&2;}
1600 #### Given the configuration name, set machfile and opsysfile to the
1601 #### names of the m/*.h and s/*.h files we should use.
1603 ### Canonicalize the configuration name.
1605 ac_aux_dir=
1606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1607 if test -f $ac_dir/install-sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install-sh -c"
1610 break
1611 elif test -f $ac_dir/install.sh; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/install.sh -c"
1614 break
1615 elif test -f $ac_dir/shtool; then
1616 ac_aux_dir=$ac_dir
1617 ac_install_sh="$ac_aux_dir/shtool install -c"
1618 break
1620 done
1621 if test -z "$ac_aux_dir"; then
1622 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1623 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1624 { (exit 1); exit 1; }; }
1626 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1627 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1628 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643 ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647 { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669 ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 canonical=$host
1685 configuration=${host_alias-$host}
1689 ### If you add support for a new configuration, add code to this
1690 ### switch statement to recognize your configuration name and select
1691 ### the appropriate operating system and machine description files.
1693 ### You would hope that you could choose an m/*.h file pretty much
1694 ### based on the machine portion of the configuration name, and an s-
1695 ### file based on the operating system portion. However, it turns out
1696 ### that each m/*.h file is pretty manufacturer-specific - for
1697 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1698 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1699 ### machines. So we basically have to have a special case for each
1700 ### configuration name.
1702 ### As far as handling version numbers on operating systems is
1703 ### concerned, make sure things will fail in a fixable way. If
1704 ### /etc/MACHINES doesn't say anything about version numbers, be
1705 ### prepared to handle anything reasonably. If version numbers
1706 ### matter, be sure /etc/MACHINES says something about it.
1708 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1709 ### "System V Release 4"; he writes, "The old convention encouraged
1710 ### confusion between `system' and `release' levels'."
1712 machine='' opsys='' unported=no
1713 case "${canonical}" in
1715 ## FreeBSD ports
1716 *-*-freebsd* )
1717 opsys=freebsd
1718 case "${canonical}" in
1719 alpha*-*-freebsd*) machine=alpha ;;
1720 i[3456]86-*-freebsd*) machine=intel386 ;;
1721 esac
1724 ## NetBSD ports
1725 *-*-netbsd* )
1726 opsys=netbsd
1727 if test -f /usr/lib/crti.o; then
1729 cat >>confdefs.h <<\_ACEOF
1730 #define HAVE_CRTIN
1731 _ACEOF
1735 case "${canonical}" in
1736 alpha*-*-netbsd*) machine=alpha ;;
1737 i[3456]86-*-netbsd*) machine=intel386 ;;
1738 m68k-*-netbsd*)
1739 # This is somewhat bogus.
1740 machine=hp9000s300 ;;
1741 powerpc-apple-netbsd*) machine=macppc ;;
1742 mips-*-netbsd*) machine=pmax ;;
1743 mipsel-*-netbsd*) machine=pmax ;;
1744 mipseb-*-netbsd*) machine=pmax ;;
1745 ns32k-*-netbsd*) machine=ns32000 ;;
1746 powerpc-*-netbsd*) machine=macppc ;;
1747 sparc*-*-netbsd*) machine=sparc ;;
1748 vax-*-netbsd*) machine=vax ;;
1749 arm-*-netbsd*) machine=arm ;;
1750 esac
1753 ## OpenBSD ports
1754 *-*-openbsd* )
1755 opsys=openbsd
1756 case "${canonical}" in
1757 alpha*-*-openbsd*) machine=alpha ;;
1758 i386-*-openbsd*) machine=intel386 ;;
1759 m68k-*-openbsd*) machine=hp9000s300 ;;
1760 mipsel-*-openbsd*) machine=pmax ;;
1761 ns32k-*-openbsd*) machine=ns32000 ;;
1762 sparc-*-openbsd*) machine=sparc ;;
1763 vax-*-openbsd*) machine=vax ;;
1764 esac
1767 ## Acorn RISCiX:
1768 arm-acorn-riscix1.1* )
1769 machine=acorn opsys=riscix1-1
1771 arm-acorn-riscix1.2* | arm-acorn-riscix )
1772 ## This name is riscix12 instead of riscix1.2
1773 ## to avoid a file name conflict on MSDOS.
1774 machine=acorn opsys=riscix12
1777 ## BSDI ports
1778 *-*-bsdi* )
1779 opsys=bsdi
1780 case "${canonical}" in
1781 i[345]86-*-bsdi*) machine=intel386 ;;
1782 sparc-*-bsdi*) machine=sparc ;;
1783 powerpc-*-bsdi*) machine=macppc ;;
1784 esac
1785 case "${canonical}" in
1786 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1787 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1788 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1789 *-*-bsdi3* ) opsys=bsdos3 ;;
1790 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1791 esac
1794 ## Alliant machines
1795 ## Strictly speaking, we need the version of the alliant operating
1796 ## system to choose the right machine file, but currently the
1797 ## configuration name doesn't tell us enough to choose the right
1798 ## one; we need to give alliants their own operating system name to
1799 ## do this right. When someone cares, they can help us.
1800 fx80-alliant-* )
1801 machine=alliant4 opsys=bsd4-2
1803 i860-alliant-* )
1804 machine=alliant-2800 opsys=bsd4-3
1807 ## Alpha (DEC) machines.
1808 alpha*-dec-osf* )
1809 machine=alpha opsys=osf1
1810 # This is needed to find X11R6.1 libraries for certain tests.
1811 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1812 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1813 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1814 # due to non-traditional preprocessing with the current compiler
1815 # defaults. OSF 4 can also have that compiler version, and there
1816 # seems always to have been a usable /usr/bin/cpp.
1817 NON_GNU_CPP=/usr/bin/cpp
1818 case "${canonical}" in
1819 alpha*-dec-osf[5-9]*)
1820 opsys=osf5-0 ;;
1821 esac
1824 alpha*-*-linux-gnu* )
1825 machine=alpha opsys=gnu-linux
1828 arm*-*-linux-gnu* )
1829 machine=arm opsys=gnu-linux
1832 ## Altos 3068
1833 m68*-altos-sysv* )
1834 machine=altos opsys=usg5-2
1837 ## Amdahl UTS
1838 580-amdahl-sysv* )
1839 machine=amdahl opsys=usg5-2-2
1842 ## Apollo, Domain/OS
1843 m68*-apollo-* )
1844 machine=apollo opsys=bsd4-3
1847 ## AT&T 3b2, 3b5, 3b15, 3b20
1848 we32k-att-sysv* )
1849 machine=att3b opsys=usg5-2-2
1852 ## AT&T 3b1 - The Mighty Unix PC!
1853 m68*-att-sysv* )
1854 machine=7300 opsys=usg5-2-2
1857 ## Bull dpx20
1858 rs6000-bull-bosx* )
1859 machine=ibmrs6000 opsys=aix3-2
1862 ## Bull dpx2
1863 m68*-bull-sysv3* )
1864 machine=dpx2 opsys=usg5-3
1867 ## Bull sps7
1868 m68*-bull-sysv2* )
1869 machine=sps7 opsys=usg5-2
1872 ## CCI 5/32, 6/32 -- see "Tahoe".
1874 ## Celerity
1875 ## I don't know what configuration name to use for this; config.sub
1876 ## doesn't seem to know anything about it. Hey, Celerity users, get
1877 ## in touch with us!
1878 celerity-celerity-bsd* )
1879 machine=celerity opsys=bsd4-2
1882 ## Clipper
1883 ## What operating systems does this chip run that Emacs has been
1884 ## tested on?
1885 clipper-* )
1886 machine=clipper
1887 ## We'll use the catch-all code at the bottom to guess the
1888 ## operating system.
1891 ## Compaq Nonstop
1892 mips-compaq-nonstopux* )
1893 machine=nonstopux opsys=nonstopux
1896 ## Convex
1897 *-convex-bsd* | *-convex-convexos* )
1898 machine=convex opsys=bsd4-3
1899 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1900 NON_GNU_CPP="cc -E -P"
1903 ## Cubix QBx/386
1904 i[3456]86-cubix-sysv* )
1905 machine=intel386 opsys=usg5-3
1908 ## Cydra 5
1909 cydra*-cydrome-sysv* )
1910 machine=cydra5 opsys=usg5-3
1913 ## Data General AViiON Machines
1914 ## DG changed naming conventions with the release of 5.4.4.10, they
1915 ## dropped the initial 5.4 but left the intervening R. Because of the
1916 ## R this shouldn't conflict with older versions of the OS (which I
1917 ## think were named like dgux4.*). In addition, DG new AViiONs series
1918 ## uses either Motorola M88k or Intel Pentium CPUs.
1919 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1920 machine=aviion opsys=dgux4
1922 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1923 ## This name is dgux5-4-3 instead of dgux5-4r3
1924 ## to avoid a file name conflict on MSDOS.
1925 machine=aviion opsys=dgux5-4-3
1927 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1928 machine=aviion opsys=dgux5-4r2
1930 m88k-dg-dgux* )
1931 machine=aviion opsys=dgux
1934 ## Data General AViiON Intel (x86) Machines
1935 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1936 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1937 i[345]86-dg-dguxR4* )
1938 machine=aviion-intel opsys=dgux4
1941 ## DECstations
1942 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1943 machine=pmax opsys=bsd4-2
1945 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1946 machine=pmax opsys=bsd4-3
1948 mips-dec-ultrix* )
1949 machine=pmax opsys=ultrix4-3
1951 mips-dec-osf* )
1952 machine=pmax opsys=osf1
1954 mips-dec-mach_bsd4.3* )
1955 machine=pmax opsys=mach-bsd4-3
1958 ## Motorola Delta machines
1959 m68k-motorola-sysv* | m68000-motorola-sysv* )
1960 machine=delta opsys=usg5-3
1961 if test -z "`type gnucc | grep 'not found'`"
1962 then
1963 if test -s /etc/167config
1964 then CC="gnucc -m68040"
1965 else CC="gnucc -m68881"
1967 else
1968 if test -z "`type gcc | grep 'not found'`"
1969 then CC=gcc
1970 else CC=cc
1974 m88k-motorola-sysv4* )
1975 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1976 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1977 # I hope there are not other 4.0 versions for this machine
1978 # which really need usg5-4 instead.
1979 machine=delta88k opsys=usg5-4-2
1981 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1982 machine=delta88k opsys=usg5-3
1985 ## Dual machines
1986 m68*-dual-sysv* )
1987 machine=dual opsys=usg5-2
1989 m68*-dual-uniplus* )
1990 machine=dual opsys=unipl5-2
1993 ## Elxsi 6400
1994 elxsi-elxsi-sysv* )
1995 machine=elxsi opsys=usg5-2
1998 ## Encore machines
1999 ns16k-encore-bsd* )
2000 machine=ns16000 opsys=umax
2003 ## The GEC 63 - apparently, this port isn't really finished yet.
2004 # I'm sure we finished off the last of the machines, though. -- fx
2006 ## Gould Power Node and NP1
2007 pn-gould-bsd4.2* )
2008 machine=gould opsys=bsd4-2
2010 pn-gould-bsd4.3* )
2011 machine=gould opsys=bsd4-3
2013 np1-gould-bsd* )
2014 machine=gould-np1 opsys=bsd4-3
2017 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2018 ## as far as Emacs is concerned).
2019 m88k-harris-cxux* )
2020 # Build needs to be different on 7.0 and later releases
2021 case "`uname -r`" in
2022 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2023 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2024 esac
2025 NON_GNU_CPP="/lib/cpp"
2027 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2028 m68k-harris-cxux* )
2029 machine=nh3000 opsys=cxux
2031 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2032 powerpc-harris-powerunix )
2033 machine=nh6000 opsys=powerunix
2034 NON_GNU_CPP="cc -Xo -E -P"
2036 ## SR2001/SR2201 running HI-UX/MPP
2037 hppa1.1-hitachi-hiuxmpp* )
2038 machine=sr2k opsys=hiuxmpp
2040 hppa1.1-hitachi-hiuxwe2* )
2041 machine=sr2k opsys=hiuxwe2
2043 ## Honeywell XPS100
2044 xps*-honeywell-sysv* )
2045 machine=xps100 opsys=usg5-2
2048 ## HP 9000 series 200 or 300
2049 m68*-hp-bsd* )
2050 machine=hp9000s300 opsys=bsd4-3
2052 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2053 m68*-hp-hpux* )
2054 case "`uname -r`" in
2055 ## Someone's system reports A.B8.05 for this.
2056 ## I wonder what other possibilities there are.
2057 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2058 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2059 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2060 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2061 *) machine=hp9000s300 opsys=hpux ;;
2062 esac
2065 ## HP 9000 series 700 and 800, running HP/UX
2066 hppa*-hp-hpux7* )
2067 machine=hp800 opsys=hpux
2069 hppa*-hp-hpux8* )
2070 machine=hp800 opsys=hpux8
2072 hppa*-hp-hpux9shr* )
2073 machine=hp800 opsys=hpux9shr
2075 hppa*-hp-hpux9* )
2076 machine=hp800 opsys=hpux9
2078 hppa*-hp-hpux10.2* )
2079 machine=hp800 opsys=hpux10-20
2081 hppa*-hp-hpux10* )
2082 machine=hp800 opsys=hpux10
2084 hppa*-hp-hpux1[1-9]* )
2085 machine=hp800 opsys=hpux11
2088 hppa*-*-linux-gnu* )
2089 machine=hp800 opsys=gnu-linux
2092 ## HP 9000 series 700 and 800, running HP/UX
2093 hppa*-hp-hpux* )
2094 ## Cross-compilation? Nah!
2095 case "`uname -r`" in
2096 ## Someone's system reports A.B8.05 for this.
2097 ## I wonder what other possibilities there are.
2098 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2099 *.08.* ) machine=hp800 opsys=hpux8 ;;
2100 *.09.* ) machine=hp800 opsys=hpux9 ;;
2101 *) machine=hp800 opsys=hpux10 ;;
2102 esac
2104 hppa*-*-nextstep* )
2105 machine=hp800 opsys=nextstep
2108 ## Orion machines
2109 orion-orion-bsd* )
2110 machine=orion opsys=bsd4-2
2112 clipper-orion-bsd* )
2113 machine=orion105 opsys=bsd4-2
2116 ## IBM machines
2117 i[3456]86-ibm-aix1.1* )
2118 machine=ibmps2-aix opsys=usg5-2-2
2120 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2121 machine=ibmps2-aix opsys=usg5-3
2123 i370-ibm-aix*)
2124 machine=ibm370aix opsys=usg5-3
2126 s390-*-linux-gnu* )
2127 machine=ibms390 opsys=gnu-linux
2129 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2130 machine=ibmrs6000 opsys=aix3-1
2132 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2133 machine=ibmrs6000 opsys=aix3-2-5
2135 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2136 machine=ibmrs6000 opsys=aix4-1
2138 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2139 machine=ibmrs6000 opsys=aix4-2
2141 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2142 machine=ibmrs6000 opsys=aix4-2
2144 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2145 machine=ibmrs6000 opsys=aix4
2147 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2148 machine=ibmrs6000 opsys=aix4-1
2150 rs6000-ibm-aix* | powerpc-ibm-aix* )
2151 machine=ibmrs6000 opsys=aix3-2
2153 romp-ibm-bsd4.3* )
2154 machine=ibmrt opsys=bsd4-3
2156 romp-ibm-bsd4.2* )
2157 machine=ibmrt opsys=bsd4-2
2159 romp-ibm-aos4.3* )
2160 machine=ibmrt opsys=bsd4-3
2162 romp-ibm-aos4.2* )
2163 machine=ibmrt opsys=bsd4-2
2165 romp-ibm-aos* )
2166 machine=ibmrt opsys=bsd4-3
2168 romp-ibm-bsd* )
2169 machine=ibmrt opsys=bsd4-3
2171 romp-ibm-aix* )
2172 machine=ibmrt-aix opsys=usg5-2-2
2175 ## Integrated Solutions `Optimum V'
2176 m68*-isi-bsd4.2* )
2177 machine=isi-ov opsys=bsd4-2
2179 m68*-isi-bsd4.3* )
2180 machine=isi-ov opsys=bsd4-3
2183 ## Intel 386 machines where we do care about the manufacturer
2184 i[3456]86-intsys-sysv* )
2185 machine=is386 opsys=usg5-2-2
2188 ## Prime EXL
2189 i[3456]86-prime-sysv* )
2190 machine=i386 opsys=usg5-3
2193 ## Sequent Symmetry running Dynix
2194 i[3456]86-sequent-bsd* )
2195 machine=symmetry opsys=bsd4-3
2198 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2199 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2200 machine=sequent-ptx opsys=ptx4
2201 NON_GNU_CPP=/lib/cpp
2204 ## Sequent Symmetry running DYNIX/ptx
2205 ## Use the old cpp rather than the newer ANSI one.
2206 i[3456]86-sequent-ptx* )
2207 machine=sequent-ptx opsys=ptx
2208 NON_GNU_CPP="/lib/cpp"
2211 ## ncr machine running svr4.3.
2212 i[3456]86-ncr-sysv4.3 )
2213 machine=ncr386 opsys=usg5-4-3
2216 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2217 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2218 i[3456]86-ncr-sysv* )
2219 machine=ncr386 opsys=usg5-4-2
2222 ## Intel Paragon OSF/1
2223 i860-intel-osf1* )
2224 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2227 ## Intel 860
2228 i860-*-sysv4* )
2229 machine=i860 opsys=usg5-4
2230 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2231 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2234 ## Macintosh PowerPC
2235 powerpc*-*-linux-gnu* )
2236 machine=macppc opsys=gnu-linux
2239 ## Masscomp machines
2240 m68*-masscomp-rtu* )
2241 machine=masscomp opsys=rtu
2244 ## Megatest machines
2245 m68*-megatest-bsd* )
2246 machine=mega68 opsys=bsd4-2
2249 ## Workstations sold by MIPS
2250 ## This is not necessarily all workstations using the MIPS processor -
2251 ## Irises are produced by SGI, and DECstations by DEC.
2253 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2254 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2255 ## it gives for choosing between the alternatives seems to be "Use
2256 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2257 ## the BSD world." I'll assume that these are instructions for
2258 ## handling two odd situations, and that every other situation
2259 ## should use mips.h and usg5-2-2, they being listed first.
2260 mips-mips-usg* )
2261 machine=mips4
2262 ## Fall through to the general code at the bottom to decide on the OS.
2264 mips-mips-riscos4* )
2265 machine=mips4 opsys=bsd4-3
2266 NON_GNU_CC="cc -systype bsd43"
2267 NON_GNU_CPP="cc -systype bsd43 -E"
2269 mips-mips-riscos5* )
2270 machine=mips4 opsys=riscos5
2271 NON_GNU_CC="cc -systype bsd43"
2272 NON_GNU_CPP="cc -systype bsd43 -E"
2274 mips-mips-bsd* )
2275 machine=mips opsys=bsd4-3
2277 mips-mips-* )
2278 machine=mips opsys=usg5-2-2
2281 ## NeXT
2282 m68*-next-* | m68k-*-nextstep* )
2283 machine=m68k opsys=nextstep
2286 ## The complete machine from National Semiconductor
2287 ns32k-ns-genix* )
2288 machine=ns32000 opsys=usg5-2
2291 ## NCR machines
2292 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2293 machine=tower32 opsys=usg5-2-2
2295 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2296 machine=tower32v3 opsys=usg5-3
2299 ## NEC EWS4800
2300 mips-nec-sysv4*)
2301 machine=ews4800 opsys=ux4800
2304 ## Nixdorf Targon 31
2305 m68*-nixdorf-sysv* )
2306 machine=targon31 opsys=usg5-2-2
2309 ## Nu (TI or LMI)
2310 m68*-nu-sysv* )
2311 machine=nu opsys=usg5-2
2314 ## Plexus
2315 m68*-plexus-sysv* )
2316 machine=plexus opsys=usg5-2
2319 ## Pyramid machines
2320 ## I don't really have any idea what sort of processor the Pyramid has,
2321 ## so I'm assuming it is its own architecture.
2322 pyramid-pyramid-bsd* )
2323 machine=pyramid opsys=bsd4-2
2326 ## Sequent Balance
2327 ns32k-sequent-bsd4.2* )
2328 machine=sequent opsys=bsd4-2
2330 ns32k-sequent-bsd4.3* )
2331 machine=sequent opsys=bsd4-3
2334 ## Siemens Nixdorf
2335 mips-siemens-sysv* | mips-sni-sysv*)
2336 machine=mips-siemens opsys=usg5-4
2337 NON_GNU_CC=/usr/ccs/bin/cc
2338 NON_GNU_CPP=/usr/ccs/lib/cpp
2341 ## Silicon Graphics machines
2342 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2343 m68*-sgi-iris3.5* )
2344 machine=irist opsys=iris3-5
2346 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2347 machine=irist opsys=iris3-6
2349 ## Iris 4D
2350 mips-sgi-irix3* )
2351 machine=iris4d opsys=irix3-3
2353 mips-sgi-irix4* )
2354 machine=iris4d opsys=irix4-0
2356 mips-sgi-irix6.5 )
2357 machine=iris4d opsys=irix6-5
2358 # Without defining _LANGUAGE_C, things get masked out in the headers
2359 # so that, for instance, grepping for `free' in stdlib.h fails and
2360 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2361 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2362 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2364 mips-sgi-irix6* )
2365 machine=iris4d opsys=irix6-0
2366 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2367 # but presumably it does no harm.
2368 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2369 # -32 probably isn't necessary in later v.6s -- anyone know which?
2370 NON_GCC_TEST_OPTIONS=-32
2372 mips-sgi-irix5.[01]* )
2373 machine=iris4d opsys=irix5-0
2375 mips-sgi-irix5* | mips-sgi-irix* )
2376 machine=iris4d opsys=irix5-2
2379 ## SONY machines
2380 m68*-sony-bsd4.2* )
2381 machine=news opsys=bsd4-2
2383 m68*-sony-bsd4.3* )
2384 machine=news opsys=bsd4-3
2386 m68*-sony-newsos3* | m68*-sony-news3*)
2387 machine=news opsys=bsd4-3
2389 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2390 machine=news-risc opsys=bsd4-3
2392 mips-sony-newsos6* )
2393 machine=news-r6 opsys=newsos6
2395 mips-sony-news* )
2396 machine=news-risc opsys=newsos5
2399 ## Stride
2400 m68*-stride-sysv* )
2401 machine=stride opsys=usg5-2
2404 ## Suns
2405 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2406 machine=sparc opsys=gnu-linux
2409 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2410 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2411 | rs6000-*-solaris2*)
2412 case "${canonical}" in
2413 m68*-sunos1* ) machine=sun1 ;;
2414 m68*-sunos2* ) machine=sun2 ;;
2415 m68* ) machine=sun3 ;;
2416 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2417 i[3456]86-*-* ) machine=intel386 ;;
2418 powerpcle* ) machine=powerpcle ;;
2419 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2420 sparc* ) machine=sparc ;;
2421 * ) unported=yes ;;
2422 esac
2423 case "${canonical}" in
2424 ## The Sun386 didn't get past 4.0.
2425 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2426 *-sunos4.0* ) opsys=sunos4-0 ;;
2427 *-sunos4.1.[3-9]*noshare )
2428 ## This name is sunos413 instead of sunos4-1-3
2429 ## to avoid a file name conflict on MSDOS.
2430 opsys=sunos413
2431 NON_GNU_CPP=/usr/lib/cpp
2432 NON_GCC_TEST_OPTIONS=-Bstatic
2433 GCC_TEST_OPTIONS=-static
2435 *-sunos4.1.[3-9]* | *-sunos4shr*)
2436 opsys=sunos4shr
2437 NON_GNU_CPP=/usr/lib/cpp
2439 *-sunos4* | *-sunos )
2440 opsys=sunos4-1
2441 NON_GCC_TEST_OPTIONS=-Bstatic
2442 GCC_TEST_OPTIONS=-static
2444 *-sunos5.3* | *-solaris2.3* )
2445 opsys=sol2-3
2446 NON_GNU_CPP=/usr/ccs/lib/cpp
2448 *-sunos5.4* | *-solaris2.4* )
2449 opsys=sol2-4
2450 NON_GNU_CPP=/usr/ccs/lib/cpp
2451 RANLIB="ar -ts"
2453 *-sunos5.5* | *-solaris2.5* )
2454 opsys=sol2-5
2455 NON_GNU_CPP=/usr/ccs/lib/cpp
2456 RANLIB="ar -ts"
2458 *-sunos5.6* | *-solaris2.6* )
2459 opsys=sol2-6
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 RANLIB="ar -ts"
2463 *-sunos5* | *-solaris* )
2464 opsys=sol2-6
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2467 * ) opsys=bsd4-2 ;;
2468 esac
2469 ## Watch out for a compiler that we know will not work.
2470 case "${canonical}" in
2471 *-solaris* | *-sunos5* )
2472 if [ "x$CC" = x/usr/ucb/cc ]; then
2473 ## /usr/ucb/cc doesn't work;
2474 ## we should find some other compiler that does work.
2475 unset CC
2478 *) ;;
2479 esac
2481 sparc-*-nextstep* )
2482 machine=sparc opsys=nextstep
2485 ## Tadpole 68k
2486 m68*-tadpole-sysv* )
2487 machine=tad68k opsys=usg5-3
2490 ## Tahoe machines
2491 tahoe-tahoe-bsd4.2* )
2492 machine=tahoe opsys=bsd4-2
2494 tahoe-tahoe-bsd4.3* )
2495 machine=tahoe opsys=bsd4-3
2498 ## Tandem Integrity S2
2499 mips-tandem-sysv* )
2500 machine=tandem-s2 opsys=usg5-3
2503 ## Tektronix XD88
2504 m88k-tektronix-sysv3* )
2505 machine=tekxd88 opsys=usg5-3
2508 ## Tektronix 16000 box (6130?)
2509 ns16k-tektronix-bsd* )
2510 machine=ns16000 opsys=bsd4-2
2512 ## Tektronix 4300
2513 ## src/m/tek4300.h hints that this is a m68k machine.
2514 m68*-tektronix-bsd* )
2515 machine=tek4300 opsys=bsd4-3
2518 ## Titan P2 or P3
2519 ## We seem to have lost the machine-description file titan.h!
2520 titan-titan-sysv* )
2521 machine=titan opsys=usg5-3
2524 ## Ustation E30 (SS5E)
2525 m68*-unisys-uniplus* )
2526 machine=ustation opsystem=unipl5-2
2529 ## Vaxen.
2530 vax-dec-* )
2531 machine=vax
2532 case "${canonical}" in
2533 *-bsd4.1* ) opsys=bsd4-1 ;;
2534 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2535 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2536 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2537 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2538 *-vms* ) opsys=vms ;;
2539 * ) unported=yes
2540 esac
2543 ## Whitechapel MG1
2544 ns16k-whitechapel-* )
2545 machine=mg1
2546 ## We don't know what sort of OS runs on these; we'll let the
2547 ## operating system guessing code below try.
2550 ## Wicat
2551 m68*-wicat-sysv* )
2552 machine=wicat opsys=usg5-2
2555 ## IA-64
2556 ia64*-*-linux* )
2557 machine=ia64 opsys=gnu-linux
2560 ## Intel 386 machines where we don't care about the manufacturer
2561 i[3456]86-*-* )
2562 machine=intel386
2563 case "${canonical}" in
2564 *-cygwin ) opsys=cygwin ;;
2565 *-darwin ) opsys=darwin
2566 CPP="${CC-cc} -E -no-cpp-precomp"
2568 *-lynxos* ) opsys=lynxos ;;
2569 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2570 *-isc2.2* ) opsys=isc2-2 ;;
2571 *-isc4.0* ) opsys=isc4-0 ;;
2572 *-isc4.* ) opsys=isc4-1
2573 GCC_TEST_OPTIONS=-posix
2574 NON_GCC_TEST_OPTIONS=-Xp
2576 *-isc* ) opsys=isc3-0 ;;
2577 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2578 *-esix* ) opsys=esix ;;
2579 *-xenix* ) opsys=xenix ;;
2580 *-linux-gnu* ) opsys=gnu-linux ;;
2581 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2582 *-sco3.2v5* ) opsys=sco5
2583 NON_GNU_CPP=/lib/cpp
2584 # Prevent -belf from being passed to $CPP.
2585 # /lib/cpp does not accept it.
2586 OVERRIDE_CPPFLAGS=" "
2588 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2589 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2590 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2591 *-386bsd* ) opsys=386bsd ;;
2592 *-nextstep* ) opsys=nextstep ;;
2593 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2594 esac
2597 ## m68k Linux-based GNU system
2598 m68k-*-linux-gnu* )
2599 machine=m68k opsys=gnu-linux
2602 ## Mips Linux-based GNU system
2603 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2604 machine=mips opsys=gnu-linux
2607 ## UXP/DS
2608 sparc-fujitsu-sysv4* )
2609 machine=sparc opsys=uxpds
2610 NON_GNU_CPP=/usr/ccs/lib/cpp
2611 RANLIB="ar -ts"
2614 ## UXP/V
2615 f301-fujitsu-uxpv4.1)
2616 machine=f301 opsys=uxpv
2619 ## Darwin / Mac OS X
2620 powerpc-apple-darwin* )
2621 machine=powermac opsys=darwin
2622 # Define CPP as follows to make autoconf work correctly.
2623 CPP="${CC-cc} -E -no-cpp-precomp"
2624 # Use fink packages if available.
2625 if test -d /sw/include && test -d /sw/lib; then
2626 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2627 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2628 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2632 ## AMD x86-64 Linux-based GNU system
2633 x86_64-*-linux-gnu* )
2634 machine=amdx86-64 opsys=gnu-linux
2638 unported=yes
2640 esac
2642 ### If the code above didn't choose an operating system, just choose
2643 ### an operating system based on the configuration name. You really
2644 ### only want to use this when you have no idea what the right
2645 ### operating system is; if you know what operating systems a machine
2646 ### runs, it's cleaner to make it explicit in the case statement
2647 ### above.
2648 if test x"${opsys}" = x; then
2649 case "${canonical}" in
2650 *-gnu* ) opsys=gnu ;;
2651 *-bsd4.[01] ) opsys=bsd4-1 ;;
2652 *-bsd4.2 ) opsys=bsd4-2 ;;
2653 *-bsd4.3 ) opsys=bsd4-3 ;;
2654 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2655 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2656 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2657 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2658 *-sysv4.2uw* ) opsys=unixware ;;
2659 *-sysv5uw* ) opsys=unixware ;;
2660 *-sysv5OpenUNIX* ) opsys=unixware ;;
2661 *-sysv4.1* | *-sysvr4.1* )
2662 NON_GNU_CPP=/usr/lib/cpp
2663 opsys=usg5-4 ;;
2664 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2665 if [ x$NON_GNU_CPP = x ]; then
2666 if [ -f /usr/ccs/lib/cpp ]; then
2667 NON_GNU_CPP=/usr/ccs/lib/cpp
2668 else
2669 NON_GNU_CPP=/lib/cpp
2672 opsys=usg5-4-2 ;;
2673 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2675 unported=yes
2677 esac
2682 if test $unported = yes; then
2683 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2684 Check \`etc/MACHINES' for recognized configuration names." >&5
2685 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2686 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2687 { (exit 1); exit 1; }; }
2690 machfile="m/${machine}.h"
2691 opsysfile="s/${opsys}.h"
2694 #### Choose a compiler.
2695 test -n "$CC" && cc_specified=yes
2697 # Save the value of CFLAGS that the user specified.
2698 SPECIFIED_CFLAGS="$CFLAGS"
2700 case ${with_gcc} in
2701 "yes" ) CC="gcc" GCC=yes ;;
2702 "no" ) : ${CC=cc} ;;
2704 esac
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2732 done
2733 done
2737 CC=$ac_cv_prog_CC
2738 if test -n "$CC"; then
2739 echo "$as_me:$LINENO: result: $CC" >&5
2740 echo "${ECHO_T}$CC" >&6
2741 else
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2747 if test -z "$ac_cv_prog_CC"; then
2748 ac_ct_CC=$CC
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_ac_ct_CC="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2778 echo "${ECHO_T}$ac_ct_CC" >&6
2779 else
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2784 CC=$ac_ct_CC
2785 else
2786 CC="$ac_cv_prog_CC"
2789 if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}cc; ac_word=$2
2793 echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_CC="${ac_tool_prefix}cc"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 echo "$as_me:$LINENO: result: $CC" >&5
2820 echo "${ECHO_T}$CC" >&6
2821 else
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2827 if test -z "$ac_cv_prog_CC"; then
2828 ac_ct_CC=$CC
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc; ac_word=$2
2831 echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_ac_ct_CC="cc"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2850 done
2851 done
2855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2856 if test -n "$ac_ct_CC"; then
2857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2858 echo "${ECHO_T}$ac_ct_CC" >&6
2859 else
2860 echo "$as_me:$LINENO: result: no" >&5
2861 echo "${ECHO_T}no" >&6
2864 CC=$ac_ct_CC
2865 else
2866 CC="$ac_cv_prog_CC"
2870 if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872 set dummy cc; ac_word=$2
2873 echo "$as_me:$LINENO: checking for $ac_word" >&5
2874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875 if test "${ac_cv_prog_CC+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 ac_prog_rejected=no
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected=yes
2891 continue
2893 ac_cv_prog_CC="cc"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2900 if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy $ac_cv_prog_CC
2903 shift
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2908 shift
2909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 echo "$as_me:$LINENO: result: $CC" >&5
2917 echo "${ECHO_T}$CC" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 for ac_prog in cl
2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930 echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2954 CC=$ac_cv_prog_CC
2955 if test -n "$CC"; then
2956 echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2963 test -n "$CC" && break
2964 done
2966 if test -z "$CC"; then
2967 ac_ct_CC=$CC
2968 for ac_prog in cl
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 echo "$as_me:$LINENO: checking for $ac_word" >&5
2973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2974 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 if test -n "$ac_ct_CC"; then
2978 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_prog_ac_ct_CC="$ac_prog"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2991 done
2992 done
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2999 echo "${ECHO_T}$ac_ct_CC" >&6
3000 else
3001 echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3005 test -n "$ac_ct_CC" && break
3006 done
3008 CC=$ac_ct_CC
3014 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3015 See \`config.log' for more details." >&5
3016 echo "$as_me: error: no acceptable C compiler found in \$PATH
3017 See \`config.log' for more details." >&2;}
3018 { (exit 1); exit 1; }; }
3020 # Provide some information about the compiler.
3021 echo "$as_me:$LINENO:" \
3022 "checking for C compiler version" >&5
3023 ac_compiler=`set X $ac_compile; echo $2`
3024 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3025 (eval $ac_compiler --version </dev/null >&5) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }
3029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3030 (eval $ac_compiler -v </dev/null >&5) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3035 (eval $ac_compiler -V </dev/null >&5) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3048 main ()
3052 return 0;
3054 _ACEOF
3055 ac_clean_files_save=$ac_clean_files
3056 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3057 # Try to create an executable without -o first, disregard a.out.
3058 # It will help us diagnose broken compilers, and finding out an intuition
3059 # of exeext.
3060 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3061 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3062 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3064 (eval $ac_link_default) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; then
3068 # Find the output, starting from the most likely. This scheme is
3069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3070 # resort.
3072 # Be careful to initialize this variable, since it used to be cached.
3073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3074 ac_cv_exeext=
3075 # b.out is created by i960 compilers.
3076 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3078 test -f "$ac_file" || continue
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3082 conftest.$ac_ext )
3083 # This is the source file.
3085 [ab].out )
3086 # We found the default executable, but exeext='' is most
3087 # certainly right.
3088 break;;
3089 *.* )
3090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 # FIXME: I believe we export ac_cv_exeext for Libtool,
3092 # but it would be cool to find out if it's true. Does anybody
3093 # maintain Libtool? --akim.
3094 export ac_cv_exeext
3095 break;;
3097 break;;
3098 esac
3099 done
3100 else
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C compiler cannot create executables
3107 See \`config.log' for more details." >&2;}
3108 { (exit 77); exit 77; }; }
3111 ac_exeext=$ac_cv_exeext
3112 echo "$as_me:$LINENO: result: $ac_file" >&5
3113 echo "${ECHO_T}$ac_file" >&6
3115 # Check the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3118 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3119 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3120 # If not cross compiling, check that we can run a simple program.
3121 if test "$cross_compiling" != yes; then
3122 if { ac_try='./$ac_file'
3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 (eval $ac_try) 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 cross_compiling=no
3129 else
3130 if test "$cross_compiling" = maybe; then
3131 cross_compiling=yes
3132 else
3133 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: cannot run C compiled programs.
3137 If you meant to cross compile, use \`--host'.
3138 See \`config.log' for more details." >&2;}
3139 { (exit 1); exit 1; }; }
3143 echo "$as_me:$LINENO: result: yes" >&5
3144 echo "${ECHO_T}yes" >&6
3146 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3147 ac_clean_files=$ac_clean_files_save
3148 # Check the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3151 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3152 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3153 echo "${ECHO_T}$cross_compiling" >&6
3155 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3156 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3158 (eval $ac_link) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 export ac_cv_exeext
3172 break;;
3173 * ) break;;
3174 esac
3175 done
3176 else
3177 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3180 See \`config.log' for more details." >&2;}
3181 { (exit 1); exit 1; }; }
3184 rm -f conftest$ac_cv_exeext
3185 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3186 echo "${ECHO_T}$ac_cv_exeext" >&6
3188 rm -f conftest.$ac_ext
3189 EXEEXT=$ac_cv_exeext
3190 ac_exeext=$EXEEXT
3191 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3192 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3193 if test "${ac_cv_objext+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3204 main ()
3208 return 0;
3210 _ACEOF
3211 rm -f conftest.o conftest.obj
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; then
3217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 break;;
3222 esac
3223 done
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3228 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3237 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3238 echo "${ECHO_T}$ac_cv_objext" >&6
3239 OBJEXT=$ac_cv_objext
3240 ac_objext=$OBJEXT
3241 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3242 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3243 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 cat >conftest.$ac_ext <<_ACEOF
3247 /* confdefs.h. */
3248 _ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3254 main ()
3256 #ifndef __GNUC__
3257 choke me
3258 #endif
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
3285 ac_compiler_gnu=yes
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 ac_compiler_gnu=no
3292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3296 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3297 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3298 GCC=`test $ac_compiler_gnu = yes && echo yes`
3299 ac_test_CFLAGS=${CFLAGS+set}
3300 ac_save_CFLAGS=$CFLAGS
3301 CFLAGS="-g"
3302 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3303 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3304 if test "${ac_cv_prog_cc_g+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3315 main ()
3319 return 0;
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 ac_cv_prog_cc_g=yes
3344 else
3345 echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3348 ac_cv_prog_cc_g=no
3350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3353 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3358 CFLAGS="-g -O2"
3359 else
3360 CFLAGS="-g"
3362 else
3363 if test "$GCC" = yes; then
3364 CFLAGS="-O2"
3365 else
3366 CFLAGS=
3369 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3370 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3371 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374 ac_cv_prog_cc_stdc=no
3375 ac_save_CC=$CC
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 #include <stdarg.h>
3383 #include <stdio.h>
3384 #include <sys/types.h>
3385 #include <sys/stat.h>
3386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3387 struct buf { int x; };
3388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3389 static char *e (p, i)
3390 char **p;
3391 int i;
3393 return p[i];
3395 static char *f (char * (*g) (char **, int), char **p, ...)
3397 char *s;
3398 va_list v;
3399 va_start (v,p);
3400 s = g (p, va_arg (v,int));
3401 va_end (v);
3402 return s;
3405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3406 function prototypes and stuff, but not '\xHH' hex character constants.
3407 These don't provoke an error unfortunately, instead are silently treated
3408 as 'x'. The following induces an error, until -std1 is added to get
3409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3410 array size at least. It's necessary to write '\x00'==0 to get something
3411 that's true only with -std1. */
3412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3414 int test (int i, double x);
3415 struct s1 {int (*f) (int a);};
3416 struct s2 {int (*f) (double a);};
3417 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3418 int argc;
3419 char **argv;
3421 main ()
3423 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3425 return 0;
3427 _ACEOF
3428 # Don't try gcc -ansi; that turns off useful extensions and
3429 # breaks some systems' header files.
3430 # AIX -qlanglvl=ansi
3431 # Ultrix and OSF/1 -std1
3432 # HP-UX 10.20 and later -Ae
3433 # HP-UX older versions -Aa -D_HPUX_SOURCE
3434 # SVR4 -Xc -D__EXTENSIONS__
3435 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3437 CC="$ac_save_CC $ac_arg"
3438 rm -f conftest.$ac_objext
3439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 ac_cv_prog_cc_stdc=$ac_arg
3460 break
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f conftest.err conftest.$ac_objext
3467 done
3468 rm -f conftest.$ac_ext conftest.$ac_objext
3469 CC=$ac_save_CC
3473 case "x$ac_cv_prog_cc_stdc" in
3474 x|xno)
3475 echo "$as_me:$LINENO: result: none needed" >&5
3476 echo "${ECHO_T}none needed" >&6 ;;
3478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3479 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3480 CC="$CC $ac_cv_prog_cc_stdc" ;;
3481 esac
3483 # Some people use a C++ compiler to compile C. Since we use `exit',
3484 # in C++ we need to declare it. In case someone uses the same compiler
3485 # for both compiling C and C++ we need to have the C++ compiler decide
3486 # the declaration of exit, since it's the most demanding environment.
3487 cat >conftest.$ac_ext <<_ACEOF
3488 #ifndef __cplusplus
3489 choke me
3490 #endif
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 for ac_declaration in \
3514 '' \
3515 'extern "C" void std::exit (int) throw (); using std::exit;' \
3516 'extern "C" void std::exit (int); using std::exit;' \
3517 'extern "C" void exit (int) throw ();' \
3518 'extern "C" void exit (int);' \
3519 'void exit (int);'
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 $ac_declaration
3528 #include <stdlib.h>
3530 main ()
3532 exit (42);
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest.$ac_objext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 continue
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 $ac_declaration
3574 main ()
3576 exit (42);
3578 return 0;
3580 _ACEOF
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 (eval $ac_try) 2>&5
3599 ac_status=$?
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 break
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3609 done
3610 rm -f conftest*
3611 if test -n "$ac_declaration"; then
3612 echo '#ifdef __cplusplus' >>confdefs.h
3613 echo $ac_declaration >>confdefs.h
3614 echo '#endif' >>confdefs.h
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 # On Suns, sometimes $CPP names a directory.
3631 if test -n "$CPP" && test -d "$CPP"; then
3632 CPP=
3635 #### Some systems specify a CPP to use unless we are using GCC.
3636 #### Now that we know whether we are using GCC, we can decide whether
3637 #### to use that one.
3638 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3639 then
3640 CPP="$NON_GNU_CPP"
3643 #### Some systems specify a CC to use unless we are using GCC.
3644 #### Now that we know whether we are using GCC, we can decide whether
3645 #### to use that one.
3646 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3647 test x$cc_specified != xyes
3648 then
3649 CC="$NON_GNU_CC"
3652 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3653 then
3654 CC="$CC $GCC_TEST_OPTIONS"
3657 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3658 then
3659 CC="$CC $NON_GCC_TEST_OPTIONS"
3662 #### Some other nice autoconf tests.
3664 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3665 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3666 LN_S=$as_ln_s
3667 if test "$LN_S" = "ln -s"; then
3668 echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6
3670 else
3671 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3672 echo "${ECHO_T}no, using $LN_S" >&6
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3681 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3682 # On Suns, sometimes $CPP names a directory.
3683 if test -n "$CPP" && test -d "$CPP"; then
3684 CPP=
3686 if test -z "$CPP"; then
3687 if test "${ac_cv_prog_CPP+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 # Double quotes because CPP needs to be expanded
3691 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3693 ac_preproc_ok=false
3694 for ac_c_preproc_warn_flag in '' yes
3696 # Use a header file that comes with gcc, so configuring glibc
3697 # with a fresh cross-compiler works.
3698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 # <limits.h> exists even on freestanding compilers.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp. "Syntax error" is here to catch this case.
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708 #ifdef __STDC__
3709 # include <limits.h>
3710 #else
3711 # include <assert.h>
3712 #endif
3713 Syntax error
3714 _ACEOF
3715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } >/dev/null; then
3723 if test -s conftest.err; then
3724 ac_cpp_err=$ac_c_preproc_warn_flag
3725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3726 else
3727 ac_cpp_err=
3729 else
3730 ac_cpp_err=yes
3732 if test -z "$ac_cpp_err"; then
3734 else
3735 echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 # Broken: fails on valid input.
3739 continue
3741 rm -f conftest.err conftest.$ac_ext
3743 # OK, works on sane cases. Now check whether non-existent headers
3744 # can be detected and how.
3745 cat >conftest.$ac_ext <<_ACEOF
3746 /* confdefs.h. */
3747 _ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3751 #include <ac_nonexistent.h>
3752 _ACEOF
3753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } >/dev/null; then
3761 if test -s conftest.err; then
3762 ac_cpp_err=$ac_c_preproc_warn_flag
3763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3764 else
3765 ac_cpp_err=
3767 else
3768 ac_cpp_err=yes
3770 if test -z "$ac_cpp_err"; then
3771 # Broken: success on invalid input.
3772 continue
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 # Passes both tests.
3778 ac_preproc_ok=:
3779 break
3781 rm -f conftest.err conftest.$ac_ext
3783 done
3784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3785 rm -f conftest.err conftest.$ac_ext
3786 if $ac_preproc_ok; then
3787 break
3790 done
3791 ac_cv_prog_CPP=$CPP
3794 CPP=$ac_cv_prog_CPP
3795 else
3796 ac_cv_prog_CPP=$CPP
3798 echo "$as_me:$LINENO: result: $CPP" >&5
3799 echo "${ECHO_T}$CPP" >&6
3800 ac_preproc_ok=false
3801 for ac_c_preproc_warn_flag in '' yes
3803 # Use a header file that comes with gcc, so configuring glibc
3804 # with a fresh cross-compiler works.
3805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 # <limits.h> exists even on freestanding compilers.
3807 # On the NeXT, cc -E runs the code through the compiler's parser,
3808 # not just through cpp. "Syntax error" is here to catch this case.
3809 cat >conftest.$ac_ext <<_ACEOF
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 #ifdef __STDC__
3816 # include <limits.h>
3817 #else
3818 # include <assert.h>
3819 #endif
3820 Syntax error
3821 _ACEOF
3822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } >/dev/null; then
3830 if test -s conftest.err; then
3831 ac_cpp_err=$ac_c_preproc_warn_flag
3832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3833 else
3834 ac_cpp_err=
3836 else
3837 ac_cpp_err=yes
3839 if test -z "$ac_cpp_err"; then
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 # Broken: fails on valid input.
3846 continue
3848 rm -f conftest.err conftest.$ac_ext
3850 # OK, works on sane cases. Now check whether non-existent headers
3851 # can be detected and how.
3852 cat >conftest.$ac_ext <<_ACEOF
3853 /* confdefs.h. */
3854 _ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ac_nonexistent.h>
3859 _ACEOF
3860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } >/dev/null; then
3868 if test -s conftest.err; then
3869 ac_cpp_err=$ac_c_preproc_warn_flag
3870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3871 else
3872 ac_cpp_err=
3874 else
3875 ac_cpp_err=yes
3877 if test -z "$ac_cpp_err"; then
3878 # Broken: success on invalid input.
3879 continue
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3888 rm -f conftest.err conftest.$ac_ext
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then
3895 else
3896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3897 See \`config.log' for more details." >&5
3898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3899 See \`config.log' for more details." >&2;}
3900 { (exit 1); exit 1; }; }
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 # Find a good install program. We prefer a C program (faster),
3910 # so one script is as good as another. But avoid the broken or
3911 # incompatible versions:
3912 # SysV /etc/install, /usr/sbin/install
3913 # SunOS /usr/etc/install
3914 # IRIX /sbin/install
3915 # AIX /bin/install
3916 # AmigaOS /C/install, which installs bootblocks on floppy discs
3917 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3918 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3919 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3920 # OS/2's system install, which has a completely different semantic
3921 # ./install, which can be erroneously created by make from ./install.sh.
3922 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3923 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3924 if test -z "$INSTALL"; then
3925 if test "${ac_cv_path_install+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 # Account for people who put trailing slashes in PATH elements.
3934 case $as_dir/ in
3935 ./ | .// | /cC/* | \
3936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3937 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3938 /usr/ucb/* ) ;;
3940 # OSF1 and SCO ODT 3.0 have their own names for install.
3941 # Don't use installbsd from OSF since it installs stuff as root
3942 # by default.
3943 for ac_prog in ginstall scoinst install; do
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3946 if test $ac_prog = install &&
3947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3948 # AIX install. It has an incompatible calling convention.
3950 elif test $ac_prog = install &&
3951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3952 # program-specific install script used by HP pwplus--don't use.
3954 else
3955 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3956 break 3
3959 done
3960 done
3962 esac
3963 done
3967 if test "${ac_cv_path_install+set}" = set; then
3968 INSTALL=$ac_cv_path_install
3969 else
3970 # As a last resort, use the slow shell script. We don't cache a
3971 # path for INSTALL within a source directory, because that will
3972 # break other packages using the cache if that directory is
3973 # removed, or if the path is relative.
3974 INSTALL=$ac_install_sh
3977 echo "$as_me:$LINENO: result: $INSTALL" >&5
3978 echo "${ECHO_T}$INSTALL" >&6
3980 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3981 # It thinks the first close brace ends the variable substitution.
3982 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3984 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3986 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3988 if test "x$RANLIB" = x; then
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_prog_RANLIB+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 if test -n "$RANLIB"; then
3998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4016 RANLIB=$ac_cv_prog_RANLIB
4017 if test -n "$RANLIB"; then
4018 echo "$as_me:$LINENO: result: $RANLIB" >&5
4019 echo "${ECHO_T}$RANLIB" >&6
4020 else
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4026 if test -z "$ac_cv_prog_RANLIB"; then
4027 ac_ct_RANLIB=$RANLIB
4028 # Extract the first word of "ranlib", so it can be a program name with args.
4029 set dummy ranlib; ac_word=$2
4030 echo "$as_me:$LINENO: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035 if test -n "$ac_ct_RANLIB"; then
4036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4045 ac_cv_prog_ac_ct_RANLIB="ranlib"
4046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4049 done
4050 done
4052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4056 if test -n "$ac_ct_RANLIB"; then
4057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4059 else
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4064 RANLIB=$ac_ct_RANLIB
4065 else
4066 RANLIB="$ac_cv_prog_RANLIB"
4070 # Extract the first word of "install-info", so it can be a program name with args.
4071 set dummy install-info; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077 case $INSTALL_INFO in
4078 [\\/]* | ?:[\\/]*)
4079 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4093 done
4094 done
4097 esac
4099 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4101 if test -n "$INSTALL_INFO"; then
4102 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4103 echo "${ECHO_T}$INSTALL_INFO" >&6
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4109 # Extract the first word of "install-info", so it can be a program name with args.
4110 set dummy install-info; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 case $INSTALL_INFO in
4117 [\\/]* | ?:[\\/]*)
4118 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in /usr/sbin
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4132 done
4133 done
4136 esac
4138 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4140 if test -n "$INSTALL_INFO"; then
4141 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4142 echo "${ECHO_T}$INSTALL_INFO" >&6
4143 else
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4148 # Extract the first word of "install-info", so it can be a program name with args.
4149 set dummy install-info; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 case $INSTALL_INFO in
4156 [\\/]* | ?:[\\/]*)
4157 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in /sbin
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4174 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4176 esac
4178 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4180 if test -n "$INSTALL_INFO"; then
4181 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4182 echo "${ECHO_T}$INSTALL_INFO" >&6
4183 else
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4190 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4191 then
4192 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4195 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4196 then
4197 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4201 late_LDFLAGS=$LDFLAGS
4202 if test "$GCC" = yes; then
4203 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4204 else
4205 LDFLAGS="$LDFLAGS -znocombreloc"
4208 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4209 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4211 cat >conftest.$ac_ext <<_ACEOF
4212 main(){return 0;}
4213 _ACEOF
4214 rm -f conftest.$ac_objext conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 echo "$as_me:$LINENO: result: yes" >&5
4236 echo "${ECHO_T}yes" >&6
4237 else
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 LDFLAGS=$late_LDFLAGS
4242 echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6
4245 rm -f conftest.err conftest.$ac_objext \
4246 conftest$ac_exeext conftest.$ac_ext
4249 echo "$as_me:$LINENO: checking for egrep" >&5
4250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4251 if test "${ac_cv_prog_egrep+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4255 then ac_cv_prog_egrep='grep -E'
4256 else ac_cv_prog_egrep='egrep'
4259 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4260 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4261 EGREP=$ac_cv_prog_egrep
4265 echo "$as_me:$LINENO: checking for AIX" >&5
4266 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h. */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 #ifdef _AIX
4275 #endif
4277 _ACEOF
4278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4279 $EGREP "yes" >/dev/null 2>&1; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281 echo "${ECHO_T}yes" >&6
4282 cat >>confdefs.h <<\_ACEOF
4283 #define _ALL_SOURCE 1
4284 _ACEOF
4286 else
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4290 rm -f conftest*
4295 #### Extract some information from the operating system and machine files.
4297 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4298 - which libraries the lib-src programs will want, and
4299 - whether the GNU malloc routines are usable..." >&5
4300 echo "$as_me: checking the machine- and system-dependent files to find out
4301 - which libraries the lib-src programs will want, and
4302 - whether the GNU malloc routines are usable..." >&6;}
4304 ### First figure out CFLAGS (which we use for running the compiler here)
4305 ### and REAL_CFLAGS (which we use for real compilation).
4306 ### The two are the same except on a few systems, where they are made
4307 ### different to work around various lossages. For example,
4308 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4309 ### as implying static linking.
4311 ### If the CFLAGS env var is specified, we use that value
4312 ### instead of the default.
4314 ### It's not important that this name contain the PID; you can't run
4315 ### two configures in the same directory and have anything work
4316 ### anyway.
4317 tempcname="conftest.c"
4319 echo '
4320 #include "'${srcdir}'/src/'${opsysfile}'"
4321 #include "'${srcdir}'/src/'${machfile}'"
4322 #ifndef LIBS_MACHINE
4323 #define LIBS_MACHINE
4324 #endif
4325 #ifndef LIBS_SYSTEM
4326 #define LIBS_SYSTEM
4327 #endif
4328 #ifndef C_SWITCH_SYSTEM
4329 #define C_SWITCH_SYSTEM
4330 #endif
4331 #ifndef C_SWITCH_MACHINE
4332 #define C_SWITCH_MACHINE
4333 #endif
4334 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4335 configure___ c_switch_system=C_SWITCH_SYSTEM
4336 configure___ c_switch_machine=C_SWITCH_MACHINE
4338 #ifndef LIB_X11_LIB
4339 #define LIB_X11_LIB -lX11
4340 #endif
4342 #ifndef LIBX11_MACHINE
4343 #define LIBX11_MACHINE
4344 #endif
4346 #ifndef LIBX11_SYSTEM
4347 #define LIBX11_SYSTEM
4348 #endif
4349 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4351 #ifdef UNEXEC
4352 configure___ unexec=UNEXEC
4353 #else
4354 configure___ unexec=unexec.o
4355 #endif
4357 #ifdef SYSTEM_MALLOC
4358 configure___ system_malloc=yes
4359 #else
4360 configure___ system_malloc=no
4361 #endif
4363 #ifdef USE_MMAP_FOR_BUFFERS
4364 configure___ use_mmap_for_buffers=yes
4365 #else
4366 configure___ use_mmap_for_buffers=no
4367 #endif
4369 #ifndef C_DEBUG_SWITCH
4370 #define C_DEBUG_SWITCH -g
4371 #endif
4373 #ifndef C_OPTIMIZE_SWITCH
4374 #ifdef __GNUC__
4375 #define C_OPTIMIZE_SWITCH -O2
4376 #else
4377 #define C_OPTIMIZE_SWITCH -O
4378 #endif
4379 #endif
4381 #ifndef LD_SWITCH_MACHINE
4382 #define LD_SWITCH_MACHINE
4383 #endif
4385 #ifndef LD_SWITCH_SYSTEM
4386 #define LD_SWITCH_SYSTEM
4387 #endif
4389 #ifndef LD_SWITCH_X_SITE_AUX
4390 #define LD_SWITCH_X_SITE_AUX
4391 #endif
4393 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4394 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4396 #ifdef THIS_IS_CONFIGURE
4398 /* Get the CFLAGS for tests in configure. */
4399 #ifdef __GNUC__
4400 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4401 #else
4402 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4403 #endif
4405 #else /* not THIS_IS_CONFIGURE */
4407 /* Get the CFLAGS for real compilation. */
4408 #ifdef __GNUC__
4409 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4410 #else
4411 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4412 #endif
4414 #endif /* not THIS_IS_CONFIGURE */
4415 ' > ${tempcname}
4417 # The value of CPP is a quoted variable reference, so we need to do this
4418 # to get its actual value...
4419 CPP=`eval "echo $CPP"`
4420 eval `${CPP} -Isrc ${tempcname} \
4421 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4422 if test "x$SPECIFIED_CFLAGS" = x; then
4423 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4424 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4425 else
4426 REAL_CFLAGS="$CFLAGS"
4428 rm ${tempcname}
4430 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4432 ### Make sure subsequent tests use flags consistent with the build flags.
4434 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4435 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4436 else
4437 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4443 cat >>confdefs.h <<\_ACEOF
4444 #define _GNU_SOURCE 1
4445 _ACEOF
4449 # Check whether --enable-largefile or --disable-largefile was given.
4450 if test "${enable_largefile+set}" = set; then
4451 enableval="$enable_largefile"
4454 if test "$enable_largefile" != no; then
4456 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4457 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4458 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 else
4461 ac_cv_sys_largefile_CC=no
4462 if test "$GCC" != yes; then
4463 ac_save_CC=$CC
4464 while :; do
4465 # IRIX 6.2 and later do not support large files by default,
4466 # so use the C compiler's -n32 option if that helps.
4467 cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h. */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <sys/types.h>
4474 /* Check that off_t can represent 2**63 - 1 correctly.
4475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4476 since some C++ compilers masquerading as C compilers
4477 incorrectly reject 9223372036854775807. */
4478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4480 && LARGE_OFF_T % 2147483647 == 1)
4481 ? 1 : -1];
4483 main ()
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492 (eval $ac_compile) 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 (eval $ac_try) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; } &&
4505 { ac_try='test -s conftest.$ac_objext'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; }; then
4511 break
4512 else
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4517 rm -f conftest.err conftest.$ac_objext
4518 CC="$CC -n32"
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_sys_largefile_CC=' -n32'; break
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4546 rm -f conftest.err conftest.$ac_objext
4547 break
4548 done
4549 CC=$ac_save_CC
4550 rm -f conftest.$ac_ext
4553 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4554 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4555 if test "$ac_cv_sys_largefile_CC" != no; then
4556 CC=$CC$ac_cv_sys_largefile_CC
4559 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4560 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564 while :; do
4565 ac_cv_sys_file_offset_bits=no
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 /* Check that off_t can represent 2**63 - 1 correctly.
4574 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4575 since some C++ compilers masquerading as C compilers
4576 incorrectly reject 9223372036854775807. */
4577 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4578 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4579 && LARGE_OFF_T % 2147483647 == 1)
4580 ? 1 : -1];
4582 main ()
4586 return 0;
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>conftest.er1
4592 ac_status=$?
4593 grep -v '^ *+' conftest.er1 >conftest.err
4594 rm -f conftest.er1
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest.$ac_objext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 break
4611 else
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #define _FILE_OFFSET_BITS 64
4624 #include <sys/types.h>
4625 /* Check that off_t can represent 2**63 - 1 correctly.
4626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4627 since some C++ compilers masquerading as C compilers
4628 incorrectly reject 9223372036854775807. */
4629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4631 && LARGE_OFF_T % 2147483647 == 1)
4632 ? 1 : -1];
4634 main ()
4638 return 0;
4640 _ACEOF
4641 rm -f conftest.$ac_objext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4643 (eval $ac_compile) 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_sys_file_offset_bits=64; break
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 break
4670 done
4672 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4674 if test "$ac_cv_sys_file_offset_bits" != no; then
4676 cat >>confdefs.h <<_ACEOF
4677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4678 _ACEOF
4681 rm -f conftest*
4682 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4683 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4684 if test "${ac_cv_sys_large_files+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687 while :; do
4688 ac_cv_sys_large_files=no
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4703 ? 1 : -1];
4705 main ()
4709 return 0;
4711 _ACEOF
4712 rm -f conftest.$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4715 ac_status=$?
4716 grep -v '^ *+' conftest.er1 >conftest.err
4717 rm -f conftest.er1
4718 cat conftest.err >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 break
4734 else
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740 cat >conftest.$ac_ext <<_ACEOF
4741 /* confdefs.h. */
4742 _ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #define _LARGE_FILES 1
4747 #include <sys/types.h>
4748 /* Check that off_t can represent 2**63 - 1 correctly.
4749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4750 since some C++ compilers masquerading as C compilers
4751 incorrectly reject 9223372036854775807. */
4752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4754 && LARGE_OFF_T % 2147483647 == 1)
4755 ? 1 : -1];
4757 main ()
4761 return 0;
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766 (eval $ac_compile) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_sys_large_files=1; break
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792 break
4793 done
4795 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4796 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4797 if test "$ac_cv_sys_large_files" != no; then
4799 cat >>confdefs.h <<_ACEOF
4800 #define _LARGE_FILES $ac_cv_sys_large_files
4801 _ACEOF
4804 rm -f conftest*
4808 if test "${with_sound}" != "no"; then
4809 # Sound support for GNU/Linux and the free BSDs.
4810 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4811 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4812 if test "${ac_cv_header_stdc+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #include <stdlib.h>
4822 #include <stdarg.h>
4823 #include <string.h>
4824 #include <float.h>
4827 main ()
4831 return 0;
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>conftest.er1
4837 ac_status=$?
4838 grep -v '^ *+' conftest.er1 >conftest.err
4839 rm -f conftest.er1
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_header_stdc=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_cv_header_stdc=no
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4864 if test $ac_cv_header_stdc = yes; then
4865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <string.h>
4874 _ACEOF
4875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4876 $EGREP "memchr" >/dev/null 2>&1; then
4878 else
4879 ac_cv_header_stdc=no
4881 rm -f conftest*
4885 if test $ac_cv_header_stdc = yes; then
4886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4887 cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #include <stdlib.h>
4895 _ACEOF
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897 $EGREP "free" >/dev/null 2>&1; then
4899 else
4900 ac_cv_header_stdc=no
4902 rm -f conftest*
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then
4910 else
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <ctype.h>
4918 #if ((' ' & 0x0FF) == 0x020)
4919 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4920 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4921 #else
4922 # define ISLOWER(c) \
4923 (('a' <= (c) && (c) <= 'i') \
4924 || ('j' <= (c) && (c) <= 'r') \
4925 || ('s' <= (c) && (c) <= 'z'))
4926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4927 #endif
4929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4931 main ()
4933 int i;
4934 for (i = 0; i < 256; i++)
4935 if (XOR (islower (i), ISLOWER (i))
4936 || toupper (i) != TOUPPER (i))
4937 exit(2);
4938 exit (0);
4940 _ACEOF
4941 rm -f conftest$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4953 else
4954 echo "$as_me: program exited with status $ac_status" >&5
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 ( exit $ac_status )
4959 ac_cv_header_stdc=no
4961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4966 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4967 if test $ac_cv_header_stdc = yes; then
4969 cat >>confdefs.h <<\_ACEOF
4970 #define STDC_HEADERS 1
4971 _ACEOF
4975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4985 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4986 inttypes.h stdint.h unistd.h
4988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989 echo "$as_me:$LINENO: checking for $ac_header" >&5
4990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5000 $ac_includes_default
5002 #include <$ac_header>
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006 (eval $ac_compile) 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } &&
5013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 (eval $ac_try) 2>&5
5016 ac_status=$?
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 eval "$as_ac_Header=yes"
5026 else
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 eval "$as_ac_Header=no"
5032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5037 cat >>confdefs.h <<_ACEOF
5038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5039 _ACEOF
5043 done
5049 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5053 echo "$as_me:$LINENO: checking for $ac_header" >&5
5054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 else
5061 # Is the header compilable?
5062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 #include <$ac_header>
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest.$ac_objext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_header_compiler=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_header_compiler=no
5101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5103 echo "${ECHO_T}$ac_header_compiler" >&6
5105 # Is the header present?
5106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <$ac_header>
5115 _ACEOF
5116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 else
5128 ac_cpp_err=
5130 else
5131 ac_cpp_err=yes
5133 if test -z "$ac_cpp_err"; then
5134 ac_header_preproc=yes
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ac_header_preproc=no
5141 rm -f conftest.err conftest.$ac_ext
5142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5143 echo "${ECHO_T}$ac_header_preproc" >&6
5145 # So? What about this header?
5146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5147 yes:no: )
5148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5152 ac_header_preproc=yes
5154 no:yes:* )
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5168 cat <<\_ASBOX
5169 ## ------------------------------------------ ##
5170 ## Report this to the AC_PACKAGE_NAME lists. ##
5171 ## ------------------------------------------ ##
5172 _ASBOX
5174 sed "s/^/$as_me: WARNING: /" >&2
5176 esac
5177 echo "$as_me:$LINENO: checking for $ac_header" >&5
5178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 eval "$as_ac_Header=\$ac_header_preproc"
5184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5189 cat >>confdefs.h <<_ACEOF
5190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5191 _ACEOF
5195 done
5197 # Emulation library used on NetBSD.
5198 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5199 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5200 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203 ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lossaudio $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 #ifdef __cplusplus
5214 extern "C"
5215 #endif
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5218 char _oss_ioctl ();
5220 main ()
5222 _oss_ioctl ();
5224 return 0;
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try='test -s conftest$ac_exeext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_lib_ossaudio__oss_ioctl=yes
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 ac_cv_lib_ossaudio__oss_ioctl=no
5255 rm -f conftest.err conftest.$ac_objext \
5256 conftest$ac_exeext conftest.$ac_ext
5257 LIBS=$ac_check_lib_save_LIBS
5259 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5260 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5261 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5262 LIBSOUND=-lossaudio
5263 else
5264 LIBSOUND=
5295 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5296 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5297 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5298 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5299 sys/utsname.h pwd.h
5301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5303 echo "$as_me:$LINENO: checking for $ac_header" >&5
5304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5310 else
5311 # Is the header compilable?
5312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5314 cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 $ac_includes_default
5321 #include <$ac_header>
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5325 (eval $ac_compile) 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_header_compiler=yes
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_header_compiler=no
5351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <$ac_header>
5365 _ACEOF
5366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } >/dev/null; then
5374 if test -s conftest.err; then
5375 ac_cpp_err=$ac_c_preproc_warn_flag
5376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5377 else
5378 ac_cpp_err=
5380 else
5381 ac_cpp_err=yes
5383 if test -z "$ac_cpp_err"; then
5384 ac_header_preproc=yes
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ac_header_preproc=no
5391 rm -f conftest.err conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5393 echo "${ECHO_T}$ac_header_preproc" >&6
5395 # So? What about this header?
5396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5397 yes:no: )
5398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5402 ac_header_preproc=yes
5404 no:yes:* )
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5418 cat <<\_ASBOX
5419 ## ------------------------------------------ ##
5420 ## Report this to the AC_PACKAGE_NAME lists. ##
5421 ## ------------------------------------------ ##
5422 _ASBOX
5424 sed "s/^/$as_me: WARNING: /" >&2
5426 esac
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432 eval "$as_ac_Header=\$ac_header_preproc"
5434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5439 cat >>confdefs.h <<_ACEOF
5440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5441 _ACEOF
5445 done
5448 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5449 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5450 cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h. */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 #include <sys/personality.h>
5458 main ()
5460 personality (PER_LINUX32)
5462 return 0;
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
5474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 (eval $ac_try) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 emacs_cv_personality_linux32=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 emacs_cv_personality_linux32=no
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5495 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5497 if test $emacs_cv_personality_linux32 = yes; then
5499 cat >>confdefs.h <<\_ACEOF
5500 #define HAVE_PERSONALITY_LINUX32 1
5501 _ACEOF
5506 for ac_header in term.h
5508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #include <$ac_header>
5521 _ACEOF
5522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } >/dev/null; then
5530 if test -s conftest.err; then
5531 ac_cpp_err=$ac_c_preproc_warn_flag
5532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5533 else
5534 ac_cpp_err=
5536 else
5537 ac_cpp_err=yes
5539 if test -z "$ac_cpp_err"; then
5540 eval "$as_ac_Header=yes"
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5545 eval "$as_ac_Header=no"
5547 rm -f conftest.err conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5552 cat >>confdefs.h <<_ACEOF
5553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5554 _ACEOF
5558 done
5560 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5561 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5562 if test "${ac_cv_header_stdc+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h. */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <stdlib.h>
5572 #include <stdarg.h>
5573 #include <string.h>
5574 #include <float.h>
5577 main ()
5581 return 0;
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } &&
5593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_header_stdc=yes
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_cv_header_stdc=no
5612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5614 if test $ac_cv_header_stdc = yes; then
5615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <string.h>
5624 _ACEOF
5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5626 $EGREP "memchr" >/dev/null 2>&1; then
5628 else
5629 ac_cv_header_stdc=no
5631 rm -f conftest*
5635 if test $ac_cv_header_stdc = yes; then
5636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h. */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5643 #include <stdlib.h>
5645 _ACEOF
5646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5647 $EGREP "free" >/dev/null 2>&1; then
5649 else
5650 ac_cv_header_stdc=no
5652 rm -f conftest*
5656 if test $ac_cv_header_stdc = yes; then
5657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5658 if test "$cross_compiling" = yes; then
5660 else
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <ctype.h>
5668 #if ((' ' & 0x0FF) == 0x020)
5669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5671 #else
5672 # define ISLOWER(c) \
5673 (('a' <= (c) && (c) <= 'i') \
5674 || ('j' <= (c) && (c) <= 'r') \
5675 || ('s' <= (c) && (c) <= 'z'))
5676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5677 #endif
5679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5681 main ()
5683 int i;
5684 for (i = 0; i < 256; i++)
5685 if (XOR (islower (i), ISLOWER (i))
5686 || toupper (i) != TOUPPER (i))
5687 exit(2);
5688 exit (0);
5690 _ACEOF
5691 rm -f conftest$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5703 else
5704 echo "$as_me: program exited with status $ac_status" >&5
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 ( exit $ac_status )
5709 ac_cv_header_stdc=no
5711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5716 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5717 if test $ac_cv_header_stdc = yes; then
5719 cat >>confdefs.h <<\_ACEOF
5720 #define STDC_HEADERS 1
5721 _ACEOF
5725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5727 if test "${ac_cv_header_time+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 #include <sys/time.h>
5738 #include <time.h>
5741 main ()
5743 if ((struct tm *) 0)
5744 return 0;
5746 return 0;
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_header_time=yes
5771 else
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ac_cv_header_time=no
5777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5780 echo "${ECHO_T}$ac_cv_header_time" >&6
5781 if test $ac_cv_header_time = yes; then
5783 cat >>confdefs.h <<\_ACEOF
5784 #define TIME_WITH_SYS_TIME 1
5785 _ACEOF
5789 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5790 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5791 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 $ac_includes_default
5802 main ()
5804 #ifndef sys_siglist
5805 char *p = (char *) sys_siglist;
5806 #endif
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_have_decl_sys_siglist=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_cv_have_decl_sys_siglist=no
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5843 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5844 if test $ac_cv_have_decl_sys_siglist = yes; then
5846 cat >>confdefs.h <<_ACEOF
5847 #define HAVE_DECL_SYS_SIGLIST 1
5848 _ACEOF
5851 else
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_DECL_SYS_SIGLIST 0
5854 _ACEOF
5860 if test $ac_cv_have_decl_sys_siglist != yes; then
5861 # For Tru64, at least:
5862 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5863 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5864 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 $ac_includes_default
5875 main ()
5877 #ifndef __sys_siglist
5878 char *p = (char *) __sys_siglist;
5879 #endif
5882 return 0;
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } &&
5894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest.$ac_objext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_have_decl___sys_siglist=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911 ac_cv_have_decl___sys_siglist=no
5913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5916 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5917 if test $ac_cv_have_decl___sys_siglist = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define HAVE_DECL___SYS_SIGLIST 1
5921 _ACEOF
5924 else
5925 cat >>confdefs.h <<_ACEOF
5926 #define HAVE_DECL___SYS_SIGLIST 0
5927 _ACEOF
5933 if test $ac_cv_have_decl___sys_siglist = yes; then
5935 cat >>confdefs.h <<\_ACEOF
5936 #define sys_siglist __sys_siglist
5937 _ACEOF
5941 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5942 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5943 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 #include <sys/wait.h>
5954 #ifndef WEXITSTATUS
5955 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5956 #endif
5957 #ifndef WIFEXITED
5958 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5959 #endif
5962 main ()
5964 int s;
5965 wait (&s);
5966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5968 return 0;
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_header_sys_wait_h=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_header_sys_wait_h=no
5999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6003 if test $ac_cv_header_sys_wait_h = yes; then
6005 cat >>confdefs.h <<\_ACEOF
6006 #define HAVE_SYS_WAIT_H 1
6007 _ACEOF
6012 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6013 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6014 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #ifdef TIME_WITH_SYS_TIME
6024 #include <sys/time.h>
6025 #include <time.h>
6026 #else
6027 #ifdef HAVE_SYS_TIME_H
6028 #include <sys/time.h>
6029 #else
6030 #include <time.h>
6031 #endif
6032 #endif
6033 #ifdef HAVE_UTIME_H
6034 #include <utime.h>
6035 #endif
6037 main ()
6039 static struct utimbuf x; x.actime = x.modtime;
6041 return 0;
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest.$ac_objext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 emacs_cv_struct_utimbuf=yes
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 emacs_cv_struct_utimbuf=no
6072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6075 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6076 if test $emacs_cv_struct_utimbuf = yes; then
6078 cat >>confdefs.h <<\_ACEOF
6079 #define HAVE_STRUCT_UTIMBUF 1
6080 _ACEOF
6084 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6085 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6086 if test "${ac_cv_type_signal+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <signal.h>
6097 #ifdef signal
6098 # undef signal
6099 #endif
6100 #ifdef __cplusplus
6101 extern "C" void (*signal (int, void (*)(int)))(int);
6102 #else
6103 void (*signal ()) ();
6104 #endif
6107 main ()
6109 int i;
6111 return 0;
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_type_signal=void
6136 else
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_cv_type_signal=int
6142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6145 echo "${ECHO_T}$ac_cv_type_signal" >&6
6147 cat >>confdefs.h <<_ACEOF
6148 #define RETSIGTYPE $ac_cv_type_signal
6149 _ACEOF
6153 echo "$as_me:$LINENO: checking for speed_t" >&5
6154 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6155 if test "${emacs_cv_speed_t+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 /* confdefs.h. */
6160 _ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 #include <termios.h>
6166 main ()
6168 speed_t x = 1;
6170 return 0;
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; } &&
6188 { ac_try='test -s conftest.$ac_objext'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 (eval $ac_try) 2>&5
6191 ac_status=$?
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; }; then
6194 emacs_cv_speed_t=yes
6195 else
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 emacs_cv_speed_t=no
6201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6203 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6204 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6205 if test $emacs_cv_speed_t = yes; then
6207 cat >>confdefs.h <<\_ACEOF
6208 #define HAVE_SPEED_T 1
6209 _ACEOF
6213 echo "$as_me:$LINENO: checking for struct timeval" >&5
6214 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6215 if test "${emacs_cv_struct_timeval+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 #ifdef TIME_WITH_SYS_TIME
6225 #include <sys/time.h>
6226 #include <time.h>
6227 #else
6228 #ifdef HAVE_SYS_TIME_H
6229 #include <sys/time.h>
6230 #else
6231 #include <time.h>
6232 #endif
6233 #endif
6235 main ()
6237 static struct timeval x; x.tv_sec = x.tv_usec;
6239 return 0;
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest.$ac_objext'
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 emacs_cv_struct_timeval=yes
6264 else
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 emacs_cv_struct_timeval=no
6270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6273 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6274 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6275 if test $emacs_cv_struct_timeval = yes; then
6277 cat >>confdefs.h <<\_ACEOF
6278 #define HAVE_TIMEVAL 1
6279 _ACEOF
6283 echo "$as_me:$LINENO: checking for struct exception" >&5
6284 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6285 if test "${emacs_cv_struct_exception+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <math.h>
6296 main ()
6298 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6300 return 0;
6302 _ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 emacs_cv_struct_exception=yes
6325 else
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 emacs_cv_struct_exception=no
6331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6333 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6334 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6335 HAVE_EXCEPTION=$emacs_cv_struct_exception
6336 if test $emacs_cv_struct_exception != yes; then
6338 cat >>confdefs.h <<\_ACEOF
6339 #define NO_MATHERR 1
6340 _ACEOF
6345 for ac_header in sys/socket.h
6347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6349 echo "$as_me:$LINENO: checking for $ac_header" >&5
6350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6356 else
6357 # Is the header compilable?
6358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h. */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6367 #include <$ac_header>
6368 _ACEOF
6369 rm -f conftest.$ac_objext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest.$ac_objext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_header_compiler=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_compiler=no
6397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6399 echo "${ECHO_T}$ac_header_compiler" >&6
6401 # Is the header present?
6402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
6411 _ACEOF
6412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } >/dev/null; then
6420 if test -s conftest.err; then
6421 ac_cpp_err=$ac_c_preproc_warn_flag
6422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6423 else
6424 ac_cpp_err=
6426 else
6427 ac_cpp_err=yes
6429 if test -z "$ac_cpp_err"; then
6430 ac_header_preproc=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_header_preproc=no
6437 rm -f conftest.err conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6443 yes:no: )
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc=yes
6450 no:yes:* )
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6464 cat <<\_ASBOX
6465 ## ------------------------------------------ ##
6466 ## Report this to the AC_PACKAGE_NAME lists. ##
6467 ## ------------------------------------------ ##
6468 _ASBOX
6470 sed "s/^/$as_me: WARNING: /" >&2
6472 esac
6473 echo "$as_me:$LINENO: checking for $ac_header" >&5
6474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 eval "$as_ac_Header=\$ac_header_preproc"
6480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6487 _ACEOF
6491 done
6494 for ac_header in net/if.h
6496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 else
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6509 #if HAVE_SYS_SOCKET_H
6510 #include <sys/socket.h>
6511 #endif
6513 #include <$ac_header>
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 eval "$as_ac_Header=yes"
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 eval "$as_ac_Header=no"
6543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6548 cat >>confdefs.h <<_ACEOF
6549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6550 _ACEOF
6554 done
6557 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6559 if test "${ac_cv_struct_tm+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <sys/types.h>
6569 #include <time.h>
6572 main ()
6574 struct tm *tp; tp->tm_sec;
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6581 (eval $ac_compile) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_struct_tm=time.h
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 ac_cv_struct_tm=sys/time.h
6607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6610 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6611 if test $ac_cv_struct_tm = sys/time.h; then
6613 cat >>confdefs.h <<\_ACEOF
6614 #define TM_IN_SYS_TIME 1
6615 _ACEOF
6619 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6620 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6621 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <sys/types.h>
6631 #include <$ac_cv_struct_tm>
6635 main ()
6637 static struct tm ac_aggr;
6638 if (ac_aggr.tm_zone)
6639 return 0;
6641 return 0;
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 (eval $ac_compile) 2>conftest.er1
6647 ac_status=$?
6648 grep -v '^ *+' conftest.er1 >conftest.err
6649 rm -f conftest.er1
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } &&
6653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 ac_cv_member_struct_tm_tm_zone=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h. */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <sys/types.h>
6677 #include <$ac_cv_struct_tm>
6681 main ()
6683 static struct tm ac_aggr;
6684 if (sizeof ac_aggr.tm_zone)
6685 return 0;
6687 return 0;
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>conftest.er1
6693 ac_status=$?
6694 grep -v '^ *+' conftest.er1 >conftest.err
6695 rm -f conftest.er1
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_member_struct_tm_tm_zone=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6716 ac_cv_member_struct_tm_tm_zone=no
6718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6722 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6723 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6724 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6726 cat >>confdefs.h <<_ACEOF
6727 #define HAVE_STRUCT_TM_TM_ZONE 1
6728 _ACEOF
6733 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6735 cat >>confdefs.h <<\_ACEOF
6736 #define HAVE_TM_ZONE 1
6737 _ACEOF
6739 else
6740 echo "$as_me:$LINENO: checking for tzname" >&5
6741 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6742 if test "${ac_cv_var_tzname+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <time.h>
6752 #ifndef tzname /* For SGI. */
6753 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6754 #endif
6757 main ()
6759 atoi(*tzname);
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6767 ac_status=$?
6768 grep -v '^ *+' conftest.er1 >conftest.err
6769 rm -f conftest.er1
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_var_tzname=yes
6786 else
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 ac_cv_var_tzname=no
6792 rm -f conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6796 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6797 if test $ac_cv_var_tzname = yes; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_TZNAME 1
6801 _ACEOF
6806 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6807 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6808 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #include <time.h>
6820 main ()
6822 static struct tm ac_aggr;
6823 if (ac_aggr.tm_gmtoff)
6824 return 0;
6826 return 0;
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6831 (eval $ac_compile) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest.$ac_objext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_member_struct_tm_tm_gmtoff=yes
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <time.h>
6864 main ()
6866 static struct tm ac_aggr;
6867 if (sizeof ac_aggr.tm_gmtoff)
6868 return 0;
6870 return 0;
6872 _ACEOF
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>conftest.er1
6876 ac_status=$?
6877 grep -v '^ *+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_member_struct_tm_tm_gmtoff=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 ac_cv_member_struct_tm_tm_gmtoff=no
6901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6906 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6907 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_TM_GMTOFF 1
6911 _ACEOF
6915 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6916 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6917 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 $ac_includes_default
6927 #if HAVE_SYS_SOCKET_H
6928 #include <sys/socket.h>
6929 #endif
6930 #if HAVE_NET_IF_H
6931 #include <net/if.h>
6932 #endif
6935 main ()
6937 static struct ifreq ac_aggr;
6938 if (ac_aggr.ifr_flags)
6939 return 0;
6941 return 0;
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; } &&
6959 { ac_try='test -s conftest.$ac_objext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 (eval $ac_try) 2>&5
6962 ac_status=$?
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 ac_cv_member_struct_ifreq_ifr_flags=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6977 #if HAVE_SYS_SOCKET_H
6978 #include <sys/socket.h>
6979 #endif
6980 #if HAVE_NET_IF_H
6981 #include <net/if.h>
6982 #endif
6985 main ()
6987 static struct ifreq ac_aggr;
6988 if (sizeof ac_aggr.ifr_flags)
6989 return 0;
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_member_struct_ifreq_ifr_flags=yes
7016 else
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_cv_member_struct_ifreq_ifr_flags=no
7022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7027 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7028 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7030 cat >>confdefs.h <<_ACEOF
7031 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7032 _ACEOF
7036 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7037 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7038 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 #if HAVE_SYS_SOCKET_H
7049 #include <sys/socket.h>
7050 #endif
7051 #if HAVE_NET_IF_H
7052 #include <net/if.h>
7053 #endif
7056 main ()
7058 static struct ifreq ac_aggr;
7059 if (ac_aggr.ifr_hwaddr)
7060 return 0;
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7068 ac_status=$?
7069 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7087 else
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7098 #if HAVE_SYS_SOCKET_H
7099 #include <sys/socket.h>
7100 #endif
7101 #if HAVE_NET_IF_H
7102 #include <net/if.h>
7103 #endif
7106 main ()
7108 static struct ifreq ac_aggr;
7109 if (sizeof ac_aggr.ifr_hwaddr)
7110 return 0;
7112 return 0;
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7137 else
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7147 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7148 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7149 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7151 cat >>confdefs.h <<_ACEOF
7152 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7153 _ACEOF
7157 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7158 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7159 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7169 #if HAVE_SYS_SOCKET_H
7170 #include <sys/socket.h>
7171 #endif
7172 #if HAVE_NET_IF_H
7173 #include <net/if.h>
7174 #endif
7177 main ()
7179 static struct ifreq ac_aggr;
7180 if (ac_aggr.ifr_netmask)
7181 return 0;
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_member_struct_ifreq_ifr_netmask=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 $ac_includes_default
7219 #if HAVE_SYS_SOCKET_H
7220 #include <sys/socket.h>
7221 #endif
7222 #if HAVE_NET_IF_H
7223 #include <net/if.h>
7224 #endif
7227 main ()
7229 static struct ifreq ac_aggr;
7230 if (sizeof ac_aggr.ifr_netmask)
7231 return 0;
7233 return 0;
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238 (eval $ac_compile) 2>conftest.er1
7239 ac_status=$?
7240 grep -v '^ *+' conftest.er1 >conftest.err
7241 rm -f conftest.er1
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_member_struct_ifreq_ifr_netmask=yes
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 ac_cv_member_struct_ifreq_ifr_netmask=no
7264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7269 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7270 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7272 cat >>confdefs.h <<_ACEOF
7273 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7274 _ACEOF
7278 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7279 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7280 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 #if HAVE_SYS_SOCKET_H
7291 #include <sys/socket.h>
7292 #endif
7293 #if HAVE_NET_IF_H
7294 #include <net/if.h>
7295 #endif
7298 main ()
7300 static struct ifreq ac_aggr;
7301 if (ac_aggr.ifr_broadaddr)
7302 return 0;
7304 return 0;
7306 _ACEOF
7307 rm -f conftest.$ac_objext
7308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309 (eval $ac_compile) 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; } &&
7322 { ac_try='test -s conftest.$ac_objext'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h. */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7340 #if HAVE_SYS_SOCKET_H
7341 #include <sys/socket.h>
7342 #endif
7343 #if HAVE_NET_IF_H
7344 #include <net/if.h>
7345 #endif
7348 main ()
7350 static struct ifreq ac_aggr;
7351 if (sizeof ac_aggr.ifr_broadaddr)
7352 return 0;
7354 return 0;
7356 _ACEOF
7357 rm -f conftest.$ac_objext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
7366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7390 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7391 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7393 cat >>confdefs.h <<_ACEOF
7394 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7395 _ACEOF
7399 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7400 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7401 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 $ac_includes_default
7411 #if HAVE_SYS_SOCKET_H
7412 #include <sys/socket.h>
7413 #endif
7414 #if HAVE_NET_IF_H
7415 #include <net/if.h>
7416 #endif
7419 main ()
7421 static struct ifreq ac_aggr;
7422 if (ac_aggr.ifr_addr)
7423 return 0;
7425 return 0;
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430 (eval $ac_compile) 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; } &&
7443 { ac_try='test -s conftest.$ac_objext'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_member_struct_ifreq_ifr_addr=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 $ac_includes_default
7461 #if HAVE_SYS_SOCKET_H
7462 #include <sys/socket.h>
7463 #endif
7464 #if HAVE_NET_IF_H
7465 #include <net/if.h>
7466 #endif
7469 main ()
7471 static struct ifreq ac_aggr;
7472 if (sizeof ac_aggr.ifr_addr)
7473 return 0;
7475 return 0;
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>conftest.er1
7481 ac_status=$?
7482 grep -v '^ *+' conftest.er1 >conftest.err
7483 rm -f conftest.er1
7484 cat conftest.err >&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } &&
7487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; } &&
7493 { ac_try='test -s conftest.$ac_objext'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 (eval $ac_try) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; }; then
7499 ac_cv_member_struct_ifreq_ifr_addr=yes
7500 else
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_cv_member_struct_ifreq_ifr_addr=no
7506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7511 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7512 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7514 cat >>confdefs.h <<_ACEOF
7515 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7516 _ACEOF
7523 echo "$as_me:$LINENO: checking for function prototypes" >&5
7524 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7525 if test "$ac_cv_prog_cc_stdc" != no; then
7526 echo "$as_me:$LINENO: result: yes" >&5
7527 echo "${ECHO_T}yes" >&6
7529 cat >>confdefs.h <<\_ACEOF
7530 #define PROTOTYPES 1
7531 _ACEOF
7534 cat >>confdefs.h <<\_ACEOF
7535 #define __PROTOTYPES 1
7536 _ACEOF
7538 else
7539 echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6
7543 echo "$as_me:$LINENO: checking for working volatile" >&5
7544 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7545 if test "${ac_cv_c_volatile+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7556 main ()
7559 volatile int x;
7560 int * volatile y;
7562 return 0;
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>conftest.er1
7568 ac_status=$?
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } &&
7574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; } &&
7580 { ac_try='test -s conftest.$ac_objext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_c_volatile=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_cv_c_volatile=no
7593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7596 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7597 if test $ac_cv_c_volatile = no; then
7599 cat >>confdefs.h <<\_ACEOF
7600 #define volatile
7601 _ACEOF
7605 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7606 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7607 if test "${ac_cv_c_const+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7618 main ()
7620 /* FIXME: Include the comments suggested by Paul. */
7621 #ifndef __cplusplus
7622 /* Ultrix mips cc rejects this. */
7623 typedef int charset[2];
7624 const charset x;
7625 /* SunOS 4.1.1 cc rejects this. */
7626 char const *const *ccp;
7627 char **p;
7628 /* NEC SVR4.0.2 mips cc rejects this. */
7629 struct point {int x, y;};
7630 static struct point const zero = {0,0};
7631 /* AIX XL C 1.02.0.0 rejects this.
7632 It does not let you subtract one const X* pointer from another in
7633 an arm of an if-expression whose if-part is not a constant
7634 expression */
7635 const char *g = "string";
7636 ccp = &g + (g ? g-g : 0);
7637 /* HPUX 7.0 cc rejects these. */
7638 ++ccp;
7639 p = (char**) ccp;
7640 ccp = (char const *const *) p;
7641 { /* SCO 3.2v4 cc rejects this. */
7642 char *t;
7643 char const *s = 0 ? (char *) 0 : (char const *) 0;
7645 *t++ = 0;
7647 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7648 int x[] = {25, 17};
7649 const int *foo = &x[0];
7650 ++foo;
7652 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7653 typedef const int *iptr;
7654 iptr p = 0;
7655 ++p;
7657 { /* AIX XL C 1.02.0.0 rejects this saying
7658 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7659 struct s { int j; const int *ap[3]; };
7660 struct s *b; b->j = 5;
7662 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7663 const int foo = 10;
7665 #endif
7668 return 0;
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7673 (eval $ac_compile) 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } &&
7680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682 (eval $ac_try) 2>&5
7683 ac_status=$?
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_c_const=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_cv_c_const=no
7699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7701 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7702 echo "${ECHO_T}$ac_cv_c_const" >&6
7703 if test $ac_cv_c_const = no; then
7705 cat >>confdefs.h <<\_ACEOF
7706 #define const
7707 _ACEOF
7711 echo "$as_me:$LINENO: checking for void * support" >&5
7712 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7713 if test "${emacs_cv_void_star+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7724 main ()
7726 void * foo;
7728 return 0;
7730 _ACEOF
7731 rm -f conftest.$ac_objext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7733 (eval $ac_compile) 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; } &&
7746 { ac_try='test -s conftest.$ac_objext'
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; }; then
7752 emacs_cv_void_star=yes
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 emacs_cv_void_star=no
7759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7761 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7762 echo "${ECHO_T}$emacs_cv_void_star" >&6
7763 if test $emacs_cv_void_star = yes; then
7764 cat >>confdefs.h <<\_ACEOF
7765 #define POINTER_TYPE void
7766 _ACEOF
7768 else
7769 cat >>confdefs.h <<\_ACEOF
7770 #define POINTER_TYPE char
7771 _ACEOF
7779 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7781 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7782 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785 cat >conftest.make <<\_ACEOF
7786 all:
7787 @echo 'ac_maketemp="$(MAKE)"'
7788 _ACEOF
7789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7790 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7791 if test -n "$ac_maketemp"; then
7792 eval ac_cv_prog_make_${ac_make}_set=yes
7793 else
7794 eval ac_cv_prog_make_${ac_make}_set=no
7796 rm -f conftest.make
7798 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7799 echo "$as_me:$LINENO: result: yes" >&5
7800 echo "${ECHO_T}yes" >&6
7801 SET_MAKE=
7802 else
7803 echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7805 SET_MAKE="MAKE=${MAKE-make}"
7809 echo "$as_me:$LINENO: checking for long file names" >&5
7810 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7811 if test "${ac_cv_sys_long_file_names+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814 ac_cv_sys_long_file_names=yes
7815 # Test for long file names in all the places we know might matter:
7816 # . the current directory, where building will happen
7817 # $prefix/lib where we will be installing things
7818 # $exec_prefix/lib likewise
7819 # eval it to expand exec_prefix.
7820 # $TMPDIR if set, where it might want to write temporary files
7821 # if $TMPDIR is not set:
7822 # /tmp where it might want to write temporary files
7823 # /var/tmp likewise
7824 # /usr/tmp likewise
7825 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7826 ac_tmpdirs=$TMPDIR
7827 else
7828 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7830 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7831 test -d $ac_dir || continue
7832 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7833 ac_xdir=$ac_dir/cf$$
7834 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7835 ac_tf1=$ac_xdir/conftest9012345
7836 ac_tf2=$ac_xdir/conftest9012346
7837 (echo 1 >$ac_tf1) 2>/dev/null
7838 (echo 2 >$ac_tf2) 2>/dev/null
7839 ac_val=`cat $ac_tf1 2>/dev/null`
7840 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7841 ac_cv_sys_long_file_names=no
7842 rm -rf $ac_xdir 2>/dev/null
7843 break
7845 rm -rf $ac_xdir 2>/dev/null
7846 done
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7849 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7850 if test $ac_cv_sys_long_file_names = yes; then
7852 cat >>confdefs.h <<\_ACEOF
7853 #define HAVE_LONG_FILE_NAMES 1
7854 _ACEOF
7859 #### Choose a window system.
7861 echo "$as_me:$LINENO: checking for X" >&5
7862 echo $ECHO_N "checking for X... $ECHO_C" >&6
7864 ac_path_x_has_been_run=yes
7866 # Check whether --with-x or --without-x was given.
7867 if test "${with_x+set}" = set; then
7868 withval="$with_x"
7871 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7872 if test "x$with_x" = xno; then
7873 # The user explicitly disabled X.
7874 have_x=disabled
7875 else
7876 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7877 # Both variables are already set.
7878 have_x=yes
7879 else
7880 if test "${ac_cv_have_x+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 # One or both of the vars are not set, and there is no cached value.
7884 ac_x_includes=no ac_x_libraries=no
7885 rm -fr conftest.dir
7886 if mkdir conftest.dir; then
7887 cd conftest.dir
7888 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7889 cat >Imakefile <<'_ACEOF'
7890 acfindx:
7891 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7892 _ACEOF
7893 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7895 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7896 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7897 for ac_extension in a so sl; do
7898 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7899 test -f $ac_im_libdir/libX11.$ac_extension; then
7900 ac_im_usrlibdir=$ac_im_libdir; break
7902 done
7903 # Screen out bogus values from the imake configuration. They are
7904 # bogus both because they are the default anyway, and because
7905 # using them would break gcc on systems where it needs fixed includes.
7906 case $ac_im_incroot in
7907 /usr/include) ;;
7908 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7909 esac
7910 case $ac_im_usrlibdir in
7911 /usr/lib | /lib) ;;
7912 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7913 esac
7915 cd ..
7916 rm -fr conftest.dir
7919 # Standard set of common directories for X headers.
7920 # Check X11 before X11Rn because it is often a symlink to the current release.
7921 ac_x_header_dirs='
7922 /usr/X11/include
7923 /usr/X11R6/include
7924 /usr/X11R5/include
7925 /usr/X11R4/include
7927 /usr/include/X11
7928 /usr/include/X11R6
7929 /usr/include/X11R5
7930 /usr/include/X11R4
7932 /usr/local/X11/include
7933 /usr/local/X11R6/include
7934 /usr/local/X11R5/include
7935 /usr/local/X11R4/include
7937 /usr/local/include/X11
7938 /usr/local/include/X11R6
7939 /usr/local/include/X11R5
7940 /usr/local/include/X11R4
7942 /usr/X386/include
7943 /usr/x386/include
7944 /usr/XFree86/include/X11
7946 /usr/include
7947 /usr/local/include
7948 /usr/unsupported/include
7949 /usr/athena/include
7950 /usr/local/x11r5/include
7951 /usr/lpp/Xamples/include
7953 /usr/openwin/include
7954 /usr/openwin/share/include'
7956 if test "$ac_x_includes" = no; then
7957 # Guess where to find include files, by looking for a specified header file.
7958 # First, try using that file with no special directory specified.
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 #include <X11/Intrinsic.h>
7966 _ACEOF
7967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } >/dev/null; then
7975 if test -s conftest.err; then
7976 ac_cpp_err=$ac_c_preproc_warn_flag
7977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7978 else
7979 ac_cpp_err=
7981 else
7982 ac_cpp_err=yes
7984 if test -z "$ac_cpp_err"; then
7985 # We can compile using X headers with no special include directory.
7986 ac_x_includes=
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 for ac_dir in $ac_x_header_dirs; do
7992 if test -r "$ac_dir/X11/Intrinsic.h"; then
7993 ac_x_includes=$ac_dir
7994 break
7996 done
7998 rm -f conftest.err conftest.$ac_ext
7999 fi # $ac_x_includes = no
8001 if test "$ac_x_libraries" = no; then
8002 # Check for the libraries.
8003 # See if we find them without any special options.
8004 # Don't add to $LIBS permanently.
8005 ac_save_LIBS=$LIBS
8006 LIBS="-lXt $LIBS"
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 #include <X11/Intrinsic.h>
8015 main ()
8017 XtMalloc (0)
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try='test -s conftest$ac_exeext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 (eval $ac_try) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 LIBS=$ac_save_LIBS
8044 # We can link X programs with no special library path.
8045 ac_x_libraries=
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 LIBS=$ac_save_LIBS
8051 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8053 # Don't even attempt the hair of trying to link an X program!
8054 for ac_extension in a so sl; do
8055 if test -r $ac_dir/libXt.$ac_extension; then
8056 ac_x_libraries=$ac_dir
8057 break 2
8059 done
8060 done
8062 rm -f conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 fi # $ac_x_libraries = no
8066 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8067 # Didn't find X anywhere. Cache the known absence of X.
8068 ac_cv_have_x="have_x=no"
8069 else
8070 # Record where we found X for the cache.
8071 ac_cv_have_x="have_x=yes \
8072 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8077 eval "$ac_cv_have_x"
8078 fi # $with_x != no
8080 if test "$have_x" != yes; then
8081 echo "$as_me:$LINENO: result: $have_x" >&5
8082 echo "${ECHO_T}$have_x" >&6
8083 no_x=yes
8084 else
8085 # If each of the values was on the command line, it overrides each guess.
8086 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8087 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8088 # Update the cache value to reflect the command line values.
8089 ac_cv_have_x="have_x=yes \
8090 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8091 # It might be that x_includes is empty (headers are found in the
8092 # standard search path. Then output the corresponding message
8093 ac_out_x_includes=$x_includes
8094 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8095 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8096 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8099 if test "$no_x" = yes; then
8100 window_system=none
8101 else
8102 window_system=x11
8105 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8106 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8107 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8108 x_default_search_path=""
8109 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8110 x_search_path="\
8111 ${x_library}/X11/%L/%T/%N%C%S:\
8112 ${x_library}/X11/%l/%T/%N%C%S:\
8113 ${x_library}/X11/%T/%N%C%S:\
8114 ${x_library}/X11/%L/%T/%N%S:\
8115 ${x_library}/X11/%l/%T/%N%S:\
8116 ${x_library}/X11/%T/%N%S"
8117 if test x"${x_default_search_path}" = x; then
8118 x_default_search_path=${x_search_path}
8119 else
8120 x_default_search_path="${x_search_path}:${x_default_search_path}"
8122 done
8124 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8125 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8128 if test x"${x_includes}" = x; then
8129 bitmapdir=/usr/include/X11/bitmaps
8130 else
8131 # accumulate include directories that have X11 bitmap subdirectories
8132 bmd_acc="dummyval"
8133 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8134 if test -d "${bmd}/X11/bitmaps"; then
8135 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8137 if test -d "${bmd}/bitmaps"; then
8138 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8140 done
8141 if test ${bmd_acc} != "dummyval"; then
8142 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8146 case "${window_system}" in
8147 x11 )
8148 HAVE_X_WINDOWS=yes
8149 HAVE_X11=yes
8150 case "${with_x_toolkit}" in
8151 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8152 motif ) USE_X_TOOLKIT=MOTIF ;;
8153 gtk ) with_gtk=yes
8154 USE_X_TOOLKIT=none ;;
8155 no ) USE_X_TOOLKIT=none ;;
8156 * ) USE_X_TOOLKIT=maybe ;;
8157 esac
8159 none )
8160 HAVE_X_WINDOWS=no
8161 HAVE_X11=no
8162 USE_X_TOOLKIT=none
8164 esac
8166 ### If we're using X11, we should use the X menu package.
8167 HAVE_MENUS=no
8168 case ${HAVE_X11} in
8169 yes ) HAVE_MENUS=yes ;;
8170 esac
8172 if test "${opsys}" = "hpux9"; then
8173 case "${x_libraries}" in
8174 *X11R4* )
8175 opsysfile="s/hpux9-x11r4.h"
8177 esac
8180 if test "${opsys}" = "hpux9shr"; then
8181 case "${x_libraries}" in
8182 *X11R4* )
8183 opsysfile="s/hpux9shxr4.h"
8185 esac
8188 HAVE_CARBON=no
8189 if test "${HAVE_X11}" != "yes"; then
8190 if test "${with_carbon}" != "no"; then
8191 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8192 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8193 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8194 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8198 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8199 else
8200 # Is the header compilable?
8201 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8202 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #include <Carbon/Carbon.h>
8211 _ACEOF
8212 rm -f conftest.$ac_objext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8214 (eval $ac_compile) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest.$ac_objext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_header_compiler=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_header_compiler=no
8240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8242 echo "${ECHO_T}$ac_header_compiler" >&6
8244 # Is the header present?
8245 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8246 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #include <Carbon/Carbon.h>
8254 _ACEOF
8255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } >/dev/null; then
8263 if test -s conftest.err; then
8264 ac_cpp_err=$ac_c_preproc_warn_flag
8265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8266 else
8267 ac_cpp_err=
8269 else
8270 ac_cpp_err=yes
8272 if test -z "$ac_cpp_err"; then
8273 ac_header_preproc=yes
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8278 ac_header_preproc=no
8280 rm -f conftest.err conftest.$ac_ext
8281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8282 echo "${ECHO_T}$ac_header_preproc" >&6
8284 # So? What about this header?
8285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8286 yes:no: )
8287 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8288 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8289 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8290 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8291 ac_header_preproc=yes
8293 no:yes:* )
8294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8295 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8296 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8297 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8299 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8301 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8303 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8304 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8305 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8307 cat <<\_ASBOX
8308 ## ------------------------------------------ ##
8309 ## Report this to the AC_PACKAGE_NAME lists. ##
8310 ## ------------------------------------------ ##
8311 _ASBOX
8313 sed "s/^/$as_me: WARNING: /" >&2
8315 esac
8316 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8317 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8318 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8323 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8324 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8327 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8328 HAVE_CARBON=yes
8335 ### Compute the unexec source name from the object name.
8336 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8338 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8339 # Assume not, until told otherwise.
8340 GNU_MALLOC=yes
8341 doug_lea_malloc=yes
8342 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8343 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8344 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8355 #define malloc_get_state innocuous_malloc_get_state
8357 /* System header to define __stub macros and hopefully few prototypes,
8358 which can conflict with char malloc_get_state (); below.
8359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8360 <limits.h> exists even on freestanding compilers. */
8362 #ifdef __STDC__
8363 # include <limits.h>
8364 #else
8365 # include <assert.h>
8366 #endif
8368 #undef malloc_get_state
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 #ifdef __cplusplus
8372 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377 char malloc_get_state ();
8378 /* The GNU C library defines this for functions which it implements
8379 to always fail with ENOSYS. Some functions are actually named
8380 something starting with __ and the normal name is an alias. */
8381 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8382 choke me
8383 #else
8384 char (*f) () = malloc_get_state;
8385 #endif
8386 #ifdef __cplusplus
8388 #endif
8391 main ()
8393 return f != malloc_get_state;
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8400 (eval $ac_link) 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 (eval $ac_try) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_func_malloc_get_state=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_func_malloc_get_state=no
8426 rm -f conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8430 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8431 if test $ac_cv_func_malloc_get_state = yes; then
8433 else
8434 doug_lea_malloc=no
8437 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8438 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8439 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8450 #define malloc_set_state innocuous_malloc_set_state
8452 /* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char malloc_set_state (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8457 #ifdef __STDC__
8458 # include <limits.h>
8459 #else
8460 # include <assert.h>
8461 #endif
8463 #undef malloc_set_state
8465 /* Override any gcc2 internal prototype to avoid an error. */
8466 #ifdef __cplusplus
8467 extern "C"
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472 char malloc_set_state ();
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8477 choke me
8478 #else
8479 char (*f) () = malloc_set_state;
8480 #endif
8481 #ifdef __cplusplus
8483 #endif
8486 main ()
8488 return f != malloc_set_state;
8490 return 0;
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_func_malloc_set_state=yes
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_cv_func_malloc_set_state=no
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8525 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8526 if test $ac_cv_func_malloc_set_state = yes; then
8528 else
8529 doug_lea_malloc=no
8532 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8533 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8534 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 extern void (* __after_morecore_hook)();
8545 main ()
8547 __after_morecore_hook = 0
8549 return 0;
8551 _ACEOF
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8554 (eval $ac_link) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 (eval $ac_try) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 emacs_cv_var___after_morecore_hook=yes
8574 else
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 emacs_cv_var___after_morecore_hook=no
8580 rm -f conftest.err conftest.$ac_objext \
8581 conftest$ac_exeext conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8584 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8585 if test $emacs_cv_var___after_morecore_hook = no; then
8586 doug_lea_malloc=no
8588 if test "${system_malloc}" = "yes"; then
8589 GNU_MALLOC=no
8590 GNU_MALLOC_reason="
8591 (The GNU allocators don't work with this system configuration.)"
8593 if test "$doug_lea_malloc" = "yes" ; then
8594 if test "$GNU_MALLOC" = yes ; then
8595 GNU_MALLOC_reason="
8596 (Using Doug Lea's new malloc from the GNU C Library.)"
8599 cat >>confdefs.h <<\_ACEOF
8600 #define DOUG_LEA_MALLOC 1
8601 _ACEOF
8605 if test x"${REL_ALLOC}" = x; then
8606 REL_ALLOC=${GNU_MALLOC}
8612 for ac_header in stdlib.h unistd.h
8614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo "$as_me:$LINENO: checking for $ac_header" >&5
8617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8623 else
8624 # Is the header compilable?
8625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h. */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8634 #include <$ac_header>
8635 _ACEOF
8636 rm -f conftest.$ac_objext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 (eval $ac_try) 2>&5
8648 ac_status=$?
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 (eval $ac_try) 2>&5
8654 ac_status=$?
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_header_compiler=yes
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 ac_header_compiler=no
8664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8666 echo "${ECHO_T}$ac_header_compiler" >&6
8668 # Is the header present?
8669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h. */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 #include <$ac_header>
8678 _ACEOF
8679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8681 ac_status=$?
8682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } >/dev/null; then
8687 if test -s conftest.err; then
8688 ac_cpp_err=$ac_c_preproc_warn_flag
8689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8690 else
8691 ac_cpp_err=
8693 else
8694 ac_cpp_err=yes
8696 if test -z "$ac_cpp_err"; then
8697 ac_header_preproc=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8702 ac_header_preproc=no
8704 rm -f conftest.err conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8706 echo "${ECHO_T}$ac_header_preproc" >&6
8708 # So? What about this header?
8709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8710 yes:no: )
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8715 ac_header_preproc=yes
8717 no:yes:* )
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8731 cat <<\_ASBOX
8732 ## ------------------------------------------ ##
8733 ## Report this to the AC_PACKAGE_NAME lists. ##
8734 ## ------------------------------------------ ##
8735 _ASBOX
8737 sed "s/^/$as_me: WARNING: /" >&2
8739 esac
8740 echo "$as_me:$LINENO: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 eval "$as_ac_Header=\$ac_header_preproc"
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752 cat >>confdefs.h <<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8754 _ACEOF
8758 done
8761 for ac_func in getpagesize
8763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764 echo "$as_me:$LINENO: checking for $ac_func" >&5
8765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_var+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8777 #define $ac_func innocuous_$ac_func
8779 /* System header to define __stub macros and hopefully few prototypes,
8780 which can conflict with char $ac_func (); below.
8781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8782 <limits.h> exists even on freestanding compilers. */
8784 #ifdef __STDC__
8785 # include <limits.h>
8786 #else
8787 # include <assert.h>
8788 #endif
8790 #undef $ac_func
8792 /* Override any gcc2 internal prototype to avoid an error. */
8793 #ifdef __cplusplus
8794 extern "C"
8796 #endif
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8799 char $ac_func ();
8800 /* The GNU C library defines this for functions which it implements
8801 to always fail with ENOSYS. Some functions are actually named
8802 something starting with __ and the normal name is an alias. */
8803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8804 choke me
8805 #else
8806 char (*f) () = $ac_func;
8807 #endif
8808 #ifdef __cplusplus
8810 #endif
8813 main ()
8815 return f != $ac_func;
8817 return 0;
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 eval "$as_ac_var=yes"
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 eval "$as_ac_var=no"
8848 rm -f conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8853 if test `eval echo '${'$as_ac_var'}'` = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8856 _ACEOF
8859 done
8861 echo "$as_me:$LINENO: checking for working mmap" >&5
8862 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8863 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 if test "$cross_compiling" = yes; then
8867 ac_cv_func_mmap_fixed_mapped=no
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 $ac_includes_default
8876 /* malloc might have been renamed as rpl_malloc. */
8877 #undef malloc
8879 /* Thanks to Mike Haertel and Jim Avera for this test.
8880 Here is a matrix of mmap possibilities:
8881 mmap private not fixed
8882 mmap private fixed at somewhere currently unmapped
8883 mmap private fixed at somewhere already mapped
8884 mmap shared not fixed
8885 mmap shared fixed at somewhere currently unmapped
8886 mmap shared fixed at somewhere already mapped
8887 For private mappings, we should verify that changes cannot be read()
8888 back from the file, nor mmap's back from the file at a different
8889 address. (There have been systems where private was not correctly
8890 implemented like the infamous i386 svr4.0, and systems where the
8891 VM page cache was not coherent with the file system buffer cache
8892 like early versions of FreeBSD and possibly contemporary NetBSD.)
8893 For shared mappings, we should conversely verify that changes get
8894 propagated back to all the places they're supposed to be.
8896 Grep wants private fixed already mapped.
8897 The main things grep needs to know about mmap are:
8898 * does it exist and is it safe to write into the mmap'd area
8899 * how to use it (BSD variants) */
8901 #include <fcntl.h>
8902 #include <sys/mman.h>
8904 #if !STDC_HEADERS && !HAVE_STDLIB_H
8905 char *malloc ();
8906 #endif
8908 /* This mess was copied from the GNU getpagesize.h. */
8909 #if !HAVE_GETPAGESIZE
8910 /* Assume that all systems that can run configure have sys/param.h. */
8911 # if !HAVE_SYS_PARAM_H
8912 # define HAVE_SYS_PARAM_H 1
8913 # endif
8915 # ifdef _SC_PAGESIZE
8916 # define getpagesize() sysconf(_SC_PAGESIZE)
8917 # else /* no _SC_PAGESIZE */
8918 # if HAVE_SYS_PARAM_H
8919 # include <sys/param.h>
8920 # ifdef EXEC_PAGESIZE
8921 # define getpagesize() EXEC_PAGESIZE
8922 # else /* no EXEC_PAGESIZE */
8923 # ifdef NBPG
8924 # define getpagesize() NBPG * CLSIZE
8925 # ifndef CLSIZE
8926 # define CLSIZE 1
8927 # endif /* no CLSIZE */
8928 # else /* no NBPG */
8929 # ifdef NBPC
8930 # define getpagesize() NBPC
8931 # else /* no NBPC */
8932 # ifdef PAGESIZE
8933 # define getpagesize() PAGESIZE
8934 # endif /* PAGESIZE */
8935 # endif /* no NBPC */
8936 # endif /* no NBPG */
8937 # endif /* no EXEC_PAGESIZE */
8938 # else /* no HAVE_SYS_PARAM_H */
8939 # define getpagesize() 8192 /* punt totally */
8940 # endif /* no HAVE_SYS_PARAM_H */
8941 # endif /* no _SC_PAGESIZE */
8943 #endif /* no HAVE_GETPAGESIZE */
8946 main ()
8948 char *data, *data2, *data3;
8949 int i, pagesize;
8950 int fd;
8952 pagesize = getpagesize ();
8954 /* First, make a file with some known garbage in it. */
8955 data = (char *) malloc (pagesize);
8956 if (!data)
8957 exit (1);
8958 for (i = 0; i < pagesize; ++i)
8959 *(data + i) = rand ();
8960 umask (0);
8961 fd = creat ("conftest.mmap", 0600);
8962 if (fd < 0)
8963 exit (1);
8964 if (write (fd, data, pagesize) != pagesize)
8965 exit (1);
8966 close (fd);
8968 /* Next, try to mmap the file at a fixed address which already has
8969 something else allocated at it. If we can, also make sure that
8970 we see the same garbage. */
8971 fd = open ("conftest.mmap", O_RDWR);
8972 if (fd < 0)
8973 exit (1);
8974 data2 = (char *) malloc (2 * pagesize);
8975 if (!data2)
8976 exit (1);
8977 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8978 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8979 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8980 exit (1);
8981 for (i = 0; i < pagesize; ++i)
8982 if (*(data + i) != *(data2 + i))
8983 exit (1);
8985 /* Finally, make sure that changes to the mapped area do not
8986 percolate back to the file as seen by read(). (This is a bug on
8987 some variants of i386 svr4.0.) */
8988 for (i = 0; i < pagesize; ++i)
8989 *(data2 + i) = *(data2 + i) + 1;
8990 data3 = (char *) malloc (pagesize);
8991 if (!data3)
8992 exit (1);
8993 if (read (fd, data3, pagesize) != pagesize)
8994 exit (1);
8995 for (i = 0; i < pagesize; ++i)
8996 if (*(data + i) != *(data3 + i))
8997 exit (1);
8998 close (fd);
8999 exit (0);
9001 _ACEOF
9002 rm -f conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
9013 ac_cv_func_mmap_fixed_mapped=yes
9014 else
9015 echo "$as_me: program exited with status $ac_status" >&5
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ( exit $ac_status )
9020 ac_cv_func_mmap_fixed_mapped=no
9022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9025 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9026 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9027 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9029 cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_MMAP 1
9031 _ACEOF
9034 rm -f conftest.mmap
9036 if test $use_mmap_for_buffers = yes; then
9037 REL_ALLOC=no
9040 LIBS="$libsrc_libs $LIBS"
9043 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9044 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9045 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048 ac_check_lib_save_LIBS=$LIBS
9049 LIBS="-ldnet $LIBS"
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9057 /* Override any gcc2 internal prototype to avoid an error. */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9063 char dnet_ntoa ();
9065 main ()
9067 dnet_ntoa ();
9069 return 0;
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_cv_lib_dnet_dnet_ntoa=yes
9094 else
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_cv_lib_dnet_dnet_ntoa=no
9100 rm -f conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9105 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9106 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108 #define HAVE_LIBDNET 1
9109 _ACEOF
9111 LIBS="-ldnet $LIBS"
9116 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9117 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9118 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lXbsd $LIBS"
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h. */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9132 main ()
9134 main ();
9136 return 0;
9138 _ACEOF
9139 rm -f conftest.$ac_objext conftest$ac_exeext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9141 (eval $ac_link) 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_lib_Xbsd_main=yes
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_cv_lib_Xbsd_main=no
9167 rm -f conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 LIBS=$ac_check_lib_save_LIBS
9171 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9172 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9173 if test $ac_cv_lib_Xbsd_main = yes; then
9174 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9179 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9180 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9181 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lpthreads $LIBS"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9193 /* Override any gcc2 internal prototype to avoid an error. */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 /* We use char because int might match the return type of a gcc2
9198 builtin and then its argument prototype would still apply. */
9199 char cma_open ();
9201 main ()
9203 cma_open ();
9205 return 0;
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_pthreads_cma_open=yes
9230 else
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 ac_cv_lib_pthreads_cma_open=no
9236 rm -f conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9241 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9242 if test $ac_cv_lib_pthreads_cma_open = yes; then
9243 cat >>confdefs.h <<_ACEOF
9244 #define HAVE_LIBPTHREADS 1
9245 _ACEOF
9247 LIBS="-lpthreads $LIBS"
9252 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9253 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9254 if test -d /usr/X386/include; then
9255 HAVE_XFREE386=yes
9256 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9257 else
9258 HAVE_XFREE386=no
9260 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9261 echo "${ECHO_T}$HAVE_XFREE386" >&6
9264 case ${host_os} in
9265 aix*)
9266 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9267 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9268 if test "${gdb_cv_bigtoc+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9272 case $GCC in
9273 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9274 *) gdb_cv_bigtoc=-bbigtoc ;;
9275 esac
9277 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9286 main ()
9288 int i;
9290 return 0;
9292 _ACEOF
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
9302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304 (eval $ac_try) 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest$ac_exeext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 gdb_cv_bigtoc=
9321 rm -f conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9325 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9326 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9328 esac
9330 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9331 # used for the tests that follow. We set them back to REAL_CFLAGS and
9332 # REAL_CPPFLAGS later on.
9334 REAL_CPPFLAGS="$CPPFLAGS"
9336 if test "${HAVE_X11}" = "yes"; then
9337 DEFS="$C_SWITCH_X_SITE $DEFS"
9338 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9339 LIBS="$LIBX $LIBS"
9340 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9341 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9343 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9344 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9345 # but it's more convenient here to set LD_RUN_PATH
9346 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9347 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9348 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9349 export LD_RUN_PATH
9352 if test "${opsys}" = "gnu-linux"; then
9353 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9354 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9363 main ()
9365 XOpenDisplay ("foo");
9367 return 0;
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 (eval $ac_try) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; }; then
9391 xlinux_first_failure=no
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 xlinux_first_failure=yes
9398 rm -f conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 if test "${xlinux_first_failure}" = "yes"; then
9401 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9402 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9403 OLD_CPPFLAGS="$CPPFLAGS"
9404 OLD_LIBS="$LIBS"
9405 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9406 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9407 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9408 LIBS="$LIBS -b i486-linuxaout"
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9417 main ()
9419 XOpenDisplay ("foo");
9421 return 0;
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>conftest.er1
9427 ac_status=$?
9428 grep -v '^ *+' conftest.er1 >conftest.err
9429 rm -f conftest.er1
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435 (eval $ac_try) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; } &&
9439 { ac_try='test -s conftest$ac_exeext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 xlinux_second_failure=no
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 xlinux_second_failure=yes
9452 rm -f conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test "${xlinux_second_failure}" = "yes"; then
9455 # If we get the same failure with -b, there is no use adding -b.
9456 # So take it out. This plays safe.
9457 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9458 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9459 CPPFLAGS="$OLD_CPPFLAGS"
9460 LIBS="$OLD_LIBS"
9461 echo "$as_me:$LINENO: result: no" >&5
9462 echo "${ECHO_T}no" >&6
9463 else
9464 echo "$as_me:$LINENO: result: yes" >&5
9465 echo "${ECHO_T}yes" >&6
9467 else
9468 echo "$as_me:$LINENO: result: no" >&5
9469 echo "${ECHO_T}no" >&6
9473 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9474 # header files included from there.
9475 echo "$as_me:$LINENO: checking for Xkb" >&5
9476 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #include <X11/Xlib.h>
9484 #include <X11/XKBlib.h>
9486 main ()
9488 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9490 return 0;
9492 _ACEOF
9493 rm -f conftest.$ac_objext conftest$ac_exeext
9494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 emacs_xkb=yes
9515 else
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 emacs_xkb=no
9521 rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9524 echo "${ECHO_T}$emacs_xkb" >&6
9525 if test $emacs_xkb = yes; then
9527 cat >>confdefs.h <<\_ACEOF
9528 #define HAVE_XKBGETKEYBOARD 1
9529 _ACEOF
9537 for ac_func in XrmSetDatabase XScreenResourceString \
9538 XScreenNumberOfScreen XSetWMProtocols
9540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9541 echo "$as_me:$LINENO: checking for $ac_func" >&5
9542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9543 if eval "test \"\${$as_ac_var+set}\" = set"; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h. */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9554 #define $ac_func innocuous_$ac_func
9556 /* System header to define __stub macros and hopefully few prototypes,
9557 which can conflict with char $ac_func (); below.
9558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9559 <limits.h> exists even on freestanding compilers. */
9561 #ifdef __STDC__
9562 # include <limits.h>
9563 #else
9564 # include <assert.h>
9565 #endif
9567 #undef $ac_func
9569 /* Override any gcc2 internal prototype to avoid an error. */
9570 #ifdef __cplusplus
9571 extern "C"
9573 #endif
9574 /* We use char because int might match the return type of a gcc2
9575 builtin and then its argument prototype would still apply. */
9576 char $ac_func ();
9577 /* The GNU C library defines this for functions which it implements
9578 to always fail with ENOSYS. Some functions are actually named
9579 something starting with __ and the normal name is an alias. */
9580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9581 choke me
9582 #else
9583 char (*f) () = $ac_func;
9584 #endif
9585 #ifdef __cplusplus
9587 #endif
9590 main ()
9592 return f != $ac_func;
9594 return 0;
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 eval "$as_ac_var=yes"
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 eval "$as_ac_var=no"
9625 rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9630 if test `eval echo '${'$as_ac_var'}'` = yes; then
9631 cat >>confdefs.h <<_ACEOF
9632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9633 _ACEOF
9636 done
9640 if test "${window_system}" = "x11"; then
9641 echo "$as_me:$LINENO: checking X11 version 6" >&5
9642 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9643 if test "${emacs_cv_x11_version_6+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h. */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <X11/Xlib.h>
9654 main ()
9656 #if XlibSpecificationRelease < 6
9657 fail;
9658 #endif
9661 return 0;
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9666 (eval $ac_link) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 (eval $ac_try) 2>&5
9682 ac_status=$?
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); }; }; then
9685 emacs_cv_x11_version_6=yes
9686 else
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 emacs_cv_x11_version_6=no
9692 rm -f conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9696 if test $emacs_cv_x11_version_6 = yes; then
9697 echo "$as_me:$LINENO: result: 6 or newer" >&5
9698 echo "${ECHO_T}6 or newer" >&6
9700 cat >>confdefs.h <<\_ACEOF
9701 #define HAVE_X11R6 1
9702 _ACEOF
9704 else
9705 echo "$as_me:$LINENO: result: before 6" >&5
9706 echo "${ECHO_T}before 6" >&6
9710 if test "${window_system}" = "x11"; then
9711 echo "$as_me:$LINENO: checking X11 version 5" >&5
9712 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9713 if test "${emacs_cv_x11_version_5+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <X11/Xlib.h>
9724 main ()
9726 #if XlibSpecificationRelease < 5
9727 fail;
9728 #endif
9731 return 0;
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 emacs_cv_x11_version_5=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 emacs_cv_x11_version_5=no
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9766 if test $emacs_cv_x11_version_5 = yes; then
9767 echo "$as_me:$LINENO: result: 5 or newer" >&5
9768 echo "${ECHO_T}5 or newer" >&6
9769 HAVE_X11R5=yes
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HAVE_X11R5 1
9773 _ACEOF
9775 else
9776 HAVE_X11R5=no
9777 echo "$as_me:$LINENO: result: before 5" >&5
9778 echo "${ECHO_T}before 5" >&6
9784 HAVE_GTK=no
9785 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9786 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9787 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9788 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9789 { (exit 1); exit 1; }; };
9791 GLIB_REQUIRED=2.0.1
9792 GTK_REQUIRED=2.0.1
9793 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9795 if test "X${with_pkg_config_prog}" != X; then
9796 PKG_CONFIG="${with_pkg_config_prog}"
9799 succeeded=no
9801 if test -z "$PKG_CONFIG"; then
9802 # Extract the first word of "pkg-config", so it can be a program name with args.
9803 set dummy pkg-config; ac_word=$2
9804 echo "$as_me:$LINENO: checking for $ac_word" >&5
9805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9806 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 case $PKG_CONFIG in
9810 [\\/]* | ?:[\\/]*)
9811 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9821 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9825 done
9826 done
9828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9830 esac
9832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9834 if test -n "$PKG_CONFIG"; then
9835 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9836 echo "${ECHO_T}$PKG_CONFIG" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839 echo "${ECHO_T}no" >&6
9844 if test "$PKG_CONFIG" = "no" ; then
9845 echo "*** The pkg-config script could not be found. Make sure it is"
9846 echo "*** in your path, or give the full path to pkg-config with"
9847 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9848 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9849 else
9850 PKG_CONFIG_MIN_VERSION=0.9.0
9851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9852 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9853 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9855 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9856 echo "$as_me:$LINENO: result: yes" >&5
9857 echo "${ECHO_T}yes" >&6
9858 succeeded=yes
9860 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9861 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9862 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9863 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9864 echo "${ECHO_T}$GTK_CFLAGS" >&6
9866 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9867 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9868 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9869 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9870 echo "${ECHO_T}$GTK_LIBS" >&6
9871 else
9872 GTK_CFLAGS=""
9873 GTK_LIBS=""
9874 ## If we have a custom action on failure, don't print errors, but
9875 ## do set a variable so people can do so.
9876 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9877 echo $GTK_PKG_ERRORS
9882 else
9883 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9884 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9888 if test $succeeded = yes; then
9890 else
9891 { { 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
9892 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;}
9893 { (exit 1); exit 1; }; }
9898 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
9899 CFLAGS="$CFLAGS $GTK_CFLAGS"
9900 LIBS="$GTK_LIBS $LIBS"
9901 HAVE_GTK=yes
9903 cat >>confdefs.h <<\_ACEOF
9904 #define HAVE_GTK 1
9905 _ACEOF
9907 USE_X_TOOLKIT=none
9909 if test "$with_toolkit_scroll_bars" != no; then
9910 with_toolkit_scroll_bars=yes
9913 HAVE_GTK_MULTIDISPLAY=no
9915 for ac_func in gdk_display_open
9917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9918 echo "$as_me:$LINENO: checking for $ac_func" >&5
9919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9920 if eval "test \"\${$as_ac_var+set}\" = set"; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h. */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9931 #define $ac_func innocuous_$ac_func
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char $ac_func (); below.
9935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936 <limits.h> exists even on freestanding compilers. */
9938 #ifdef __STDC__
9939 # include <limits.h>
9940 #else
9941 # include <assert.h>
9942 #endif
9944 #undef $ac_func
9946 /* Override any gcc2 internal prototype to avoid an error. */
9947 #ifdef __cplusplus
9948 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9953 char $ac_func ();
9954 /* The GNU C library defines this for functions which it implements
9955 to always fail with ENOSYS. Some functions are actually named
9956 something starting with __ and the normal name is an alias. */
9957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9958 choke me
9959 #else
9960 char (*f) () = $ac_func;
9961 #endif
9962 #ifdef __cplusplus
9964 #endif
9967 main ()
9969 return f != $ac_func;
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976 (eval $ac_link) 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 eval "$as_ac_var=yes"
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 eval "$as_ac_var=no"
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10007 if test `eval echo '${'$as_ac_var'}'` = yes; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10010 _ACEOF
10011 HAVE_GTK_MULTIDISPLAY=yes
10013 done
10015 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10017 cat >>confdefs.h <<\_ACEOF
10018 #define HAVE_GTK_MULTIDISPLAY 1
10019 _ACEOF
10022 HAVE_GTK_FILE_SELECTION=no
10024 for ac_func in gtk_file_selection_new
10026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10027 echo "$as_me:$LINENO: checking for $ac_func" >&5
10028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10029 if eval "test \"\${$as_ac_var+set}\" = set"; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 else
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10040 #define $ac_func innocuous_$ac_func
10042 /* System header to define __stub macros and hopefully few prototypes,
10043 which can conflict with char $ac_func (); below.
10044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10045 <limits.h> exists even on freestanding compilers. */
10047 #ifdef __STDC__
10048 # include <limits.h>
10049 #else
10050 # include <assert.h>
10051 #endif
10053 #undef $ac_func
10055 /* Override any gcc2 internal prototype to avoid an error. */
10056 #ifdef __cplusplus
10057 extern "C"
10059 #endif
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10062 char $ac_func ();
10063 /* The GNU C library defines this for functions which it implements
10064 to always fail with ENOSYS. Some functions are actually named
10065 something starting with __ and the normal name is an alias. */
10066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10067 choke me
10068 #else
10069 char (*f) () = $ac_func;
10070 #endif
10071 #ifdef __cplusplus
10073 #endif
10076 main ()
10078 return f != $ac_func;
10080 return 0;
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>conftest.er1
10086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 eval "$as_ac_var=yes"
10105 else
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 eval "$as_ac_var=no"
10111 rm -f conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10116 if test `eval echo '${'$as_ac_var'}'` = yes; then
10117 cat >>confdefs.h <<_ACEOF
10118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10119 _ACEOF
10120 HAVE_GTK_FILE_SELECTION=yes
10122 done
10125 HAVE_GTK_FILE_CHOOSER=no
10127 for ac_func in gtk_file_chooser_dialog_new
10129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10130 echo "$as_me:$LINENO: checking for $ac_func" >&5
10131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10132 if eval "test \"\${$as_ac_var+set}\" = set"; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10143 #define $ac_func innocuous_$ac_func
10145 /* System header to define __stub macros and hopefully few prototypes,
10146 which can conflict with char $ac_func (); below.
10147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10148 <limits.h> exists even on freestanding compilers. */
10150 #ifdef __STDC__
10151 # include <limits.h>
10152 #else
10153 # include <assert.h>
10154 #endif
10156 #undef $ac_func
10158 /* Override any gcc2 internal prototype to avoid an error. */
10159 #ifdef __cplusplus
10160 extern "C"
10162 #endif
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10165 char $ac_func ();
10166 /* The GNU C library defines this for functions which it implements
10167 to always fail with ENOSYS. Some functions are actually named
10168 something starting with __ and the normal name is an alias. */
10169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10170 choke me
10171 #else
10172 char (*f) () = $ac_func;
10173 #endif
10174 #ifdef __cplusplus
10176 #endif
10179 main ()
10181 return f != $ac_func;
10183 return 0;
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 eval "$as_ac_var=yes"
10208 else
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 eval "$as_ac_var=no"
10214 rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10219 if test `eval echo '${'$as_ac_var'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10222 _ACEOF
10223 HAVE_GTK_FILE_CHOOSER=yes
10225 done
10228 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10229 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10231 cat >>confdefs.h <<\_ACEOF
10232 #define HAVE_GTK_FILE_BOTH 1
10233 _ACEOF
10237 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10238 HAVE_GTK_AND_PTHREAD=no
10240 for ac_header in pthread.h
10242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10251 else
10252 # Is the header compilable?
10253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h. */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 $ac_includes_default
10262 #include <$ac_header>
10263 _ACEOF
10264 rm -f conftest.$ac_objext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10266 (eval $ac_compile) 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try='test -s conftest.$ac_objext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_header_compiler=yes
10286 else
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10290 ac_header_compiler=no
10292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294 echo "${ECHO_T}$ac_header_compiler" >&6
10296 # Is the header present?
10297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <$ac_header>
10306 _ACEOF
10307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } >/dev/null; then
10315 if test -s conftest.err; then
10316 ac_cpp_err=$ac_c_preproc_warn_flag
10317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10318 else
10319 ac_cpp_err=
10321 else
10322 ac_cpp_err=yes
10324 if test -z "$ac_cpp_err"; then
10325 ac_header_preproc=yes
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_header_preproc=no
10332 rm -f conftest.err conftest.$ac_ext
10333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10334 echo "${ECHO_T}$ac_header_preproc" >&6
10336 # So? What about this header?
10337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10338 yes:no: )
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10343 ac_header_preproc=yes
10345 no:yes:* )
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10359 cat <<\_ASBOX
10360 ## ------------------------------------------ ##
10361 ## Report this to the AC_PACKAGE_NAME lists. ##
10362 ## ------------------------------------------ ##
10363 _ASBOX
10365 sed "s/^/$as_me: WARNING: /" >&2
10367 esac
10368 echo "$as_me:$LINENO: checking for $ac_header" >&5
10369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 eval "$as_ac_Header=\$ac_header_preproc"
10375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10380 cat >>confdefs.h <<_ACEOF
10381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382 _ACEOF
10386 done
10388 if test "$ac_cv_header_pthread_h"; then
10389 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10390 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10391 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 ac_check_lib_save_LIBS=$LIBS
10395 LIBS="-lpthread $LIBS"
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10403 /* Override any gcc2 internal prototype to avoid an error. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 /* We use char because int might match the return type of a gcc2
10408 builtin and then its argument prototype would still apply. */
10409 char pthread_self ();
10411 main ()
10413 pthread_self ();
10415 return 0;
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_lib_pthread_pthread_self=yes
10440 else
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_cv_lib_pthread_pthread_self=no
10446 rm -f conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LIBS=$ac_check_lib_save_LIBS
10450 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10451 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10452 if test $ac_cv_lib_pthread_pthread_self = yes; then
10453 HAVE_GTK_AND_PTHREAD=yes
10457 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10458 GTK_LIBS="$GTK_LIBS -lpthread"
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_GTK_AND_PTHREAD 1
10462 _ACEOF
10468 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10469 if test x"${HAVE_X11R5}" = xyes; then
10470 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10471 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10472 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10482 #include <X11/Intrinsic.h>
10483 #include <X11/Xaw/Simple.h>
10485 main ()
10489 return 0;
10491 _ACEOF
10492 rm -f conftest.$ac_objext conftest$ac_exeext
10493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494 (eval $ac_link) 2>conftest.er1
10495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } &&
10501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 emacs_cv_x11_version_5_with_xaw=yes
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 emacs_cv_x11_version_5_with_xaw=no
10520 rm -f conftest.err conftest.$ac_objext \
10521 conftest$ac_exeext conftest.$ac_ext
10524 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10525 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10526 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10527 USE_X_TOOLKIT=LUCID
10528 else
10529 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10530 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10531 USE_X_TOOLKIT=none
10533 else
10534 USE_X_TOOLKIT=none
10538 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10540 if test "${USE_X_TOOLKIT}" != "none"; then
10541 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10542 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10543 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 #include <X11/Intrinsic.h>
10554 main ()
10556 #if XtSpecificationRelease < 6
10557 fail;
10558 #endif
10561 return 0;
10563 _ACEOF
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566 (eval $ac_link) 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 emacs_cv_x11_toolkit_version_6=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10590 emacs_cv_x11_toolkit_version_6=no
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10596 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10597 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10598 echo "$as_me:$LINENO: result: 6 or newer" >&5
10599 echo "${ECHO_T}6 or newer" >&6
10601 cat >>confdefs.h <<\_ACEOF
10602 #define HAVE_X11XTR6 1
10603 _ACEOF
10605 else
10606 echo "$as_me:$LINENO: result: before 6" >&5
10607 echo "${ECHO_T}before 6" >&6
10610 OLDLIBS="$LIBS"
10611 if test x$HAVE_X11XTR6 = xyes; then
10612 LIBS="-lXt -lSM -lICE $LIBS"
10613 else
10614 LIBS="-lXt $LIBS"
10617 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10618 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10619 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 else
10622 ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-lXmu $LIBS"
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h. */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10631 /* Override any gcc2 internal prototype to avoid an error. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 /* We use char because int might match the return type of a gcc2
10636 builtin and then its argument prototype would still apply. */
10637 char XmuConvertStandardSelection ();
10639 main ()
10641 XmuConvertStandardSelection ();
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; } &&
10661 { ac_try='test -s conftest$ac_exeext'
10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663 (eval $ac_try) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10668 else
10669 echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10674 rm -f conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10678 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10679 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10680 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_LIBXMU 1
10683 _ACEOF
10685 LIBS="-lXmu $LIBS"
10689 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10692 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10693 if test "${HAVE_X11}" = "yes"; then
10694 if test "${USE_X_TOOLKIT}" != "none"; then
10696 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10697 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10698 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10701 ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-lXext $LIBS"
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h. */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10710 /* Override any gcc2 internal prototype to avoid an error. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10716 char XShapeQueryExtension ();
10718 main ()
10720 XShapeQueryExtension ();
10722 return 0;
10724 _ACEOF
10725 rm -f conftest.$ac_objext conftest$ac_exeext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } &&
10734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_Xext_XShapeQueryExtension=yes
10747 else
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_Xext_XShapeQueryExtension=no
10753 rm -f conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10758 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10759 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define HAVE_LIBXEXT 1
10762 _ACEOF
10764 LIBS="-lXext $LIBS"
10771 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10772 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10773 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10774 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
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. */
10783 #include <Xm/Xm.h>
10785 main ()
10787 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10788 int x = 5;
10789 #else
10790 Motif version prior to 2.1.
10791 #endif
10793 return 0;
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>conftest.er1
10799 ac_status=$?
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 emacs_cv_motif_version_2_1=yes
10818 else
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10822 emacs_cv_motif_version_2_1=no
10824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10826 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10827 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10828 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10829 if test $emacs_cv_motif_version_2_1 = yes; then
10830 HAVE_LIBXP=no
10832 cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_MOTIF_2_1 1
10834 _ACEOF
10836 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10837 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10838 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lXp $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 /* Override any gcc2 internal prototype to avoid an error. */
10851 #ifdef __cplusplus
10852 extern "C"
10853 #endif
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10856 char XpCreateContext ();
10858 main ()
10860 XpCreateContext ();
10862 return 0;
10864 _ACEOF
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10867 (eval $ac_link) 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } &&
10874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest$ac_exeext'
10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882 (eval $ac_try) 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_lib_Xp_XpCreateContext=yes
10887 else
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10891 ac_cv_lib_Xp_XpCreateContext=no
10893 rm -f conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10897 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10898 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10899 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10900 HAVE_LIBXP=yes
10903 if test ${HAVE_LIBXP} = yes; then
10905 cat >>confdefs.h <<\_ACEOF
10906 #define HAVE_LIBXP 1
10907 _ACEOF
10910 else
10911 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10912 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10913 if test "${emacs_cv_lesstif+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 # We put this in CFLAGS temporarily to precede other -I options
10917 # that might be in CFLAGS temporarily.
10918 # We put this in CPPFLAGS where it precedes the other -I options.
10919 OLD_CPPFLAGS=$CPPFLAGS
10920 OLD_CFLAGS=$CFLAGS
10921 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10922 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10923 cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h. */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10931 main ()
10933 int x = 5;
10935 return 0;
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 emacs_cv_lesstif=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 emacs_cv_lesstif=no
10966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10968 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10969 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10970 if test $emacs_cv_lesstif = yes; then
10971 # Make sure this -I option remains in CPPFLAGS after it is set
10972 # back to REAL_CPPFLAGS.
10973 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10974 # have those other -I options anyway. Ultimately, having this
10975 # directory ultimately in CPPFLAGS will be enough.
10976 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10977 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10978 else
10979 CFLAGS=$OLD_CFLAGS
10980 CPPFLAGS=$OLD_CPPFLAGS
10985 ### Is -lXaw3d available?
10986 HAVE_XAW3D=no
10987 if test "${HAVE_X11}" = "yes"; then
10988 if test "${USE_X_TOOLKIT}" != "none"; then
10989 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10990 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10991 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 #include <X11/Xaw3d/Scrollbar.h>
11001 _ACEOF
11002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } >/dev/null; then
11010 if test -s conftest.err; then
11011 ac_cpp_err=$ac_c_preproc_warn_flag
11012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11013 else
11014 ac_cpp_err=
11016 else
11017 ac_cpp_err=yes
11019 if test -z "$ac_cpp_err"; then
11020 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11027 rm -f conftest.err conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11030 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11031 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11032 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11033 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11034 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lXaw3d $LIBS"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11046 /* Override any gcc2 internal prototype to avoid an error. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char XawScrollbarSetThumb ();
11054 main ()
11056 XawScrollbarSetThumb ();
11058 return 0;
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11089 rm -f conftest.err conftest.$ac_objext \
11090 conftest$ac_exeext conftest.$ac_ext
11091 LIBS=$ac_check_lib_save_LIBS
11093 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11094 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11095 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11096 HAVE_XAW3D=yes
11102 if test "${HAVE_XAW3D}" = "yes"; then
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_XAW3D 1
11106 _ACEOF
11114 USE_TOOLKIT_SCROLL_BARS=no
11115 if test "${with_toolkit_scroll_bars}" != "no"; then
11116 if test "${USE_X_TOOLKIT}" != "none"; then
11117 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11118 cat >>confdefs.h <<\_ACEOF
11119 #define USE_TOOLKIT_SCROLL_BARS 1
11120 _ACEOF
11122 HAVE_XAW3D=no
11123 USE_TOOLKIT_SCROLL_BARS=yes
11124 elif test "${HAVE_XAW3D}" = "yes"; then
11125 cat >>confdefs.h <<\_ACEOF
11126 #define USE_TOOLKIT_SCROLL_BARS 1
11127 _ACEOF
11129 USE_TOOLKIT_SCROLL_BARS=yes
11131 elif test "${HAVE_GTK}" = "yes"; then
11132 cat >>confdefs.h <<\_ACEOF
11133 #define USE_TOOLKIT_SCROLL_BARS 1
11134 _ACEOF
11136 USE_TOOLKIT_SCROLL_BARS=yes
11137 elif test "${HAVE_CARBON}" = "yes"; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define USE_TOOLKIT_SCROLL_BARS 1
11140 _ACEOF
11142 USE_TOOLKIT_SCROLL_BARS=yes
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11153 #include <X11/Xlib.h>
11154 #include <X11/Xresource.h>
11156 main ()
11158 XIMProc callback;
11160 return 0;
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" || test ! -s conftest.err'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try='test -s conftest.$ac_objext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 HAVE_XIM=yes
11186 cat >>confdefs.h <<\_ACEOF
11187 #define HAVE_XIM 1
11188 _ACEOF
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 HAVE_XIM=no
11196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11199 if test "${with_xim}" != "no"; then
11201 cat >>confdefs.h <<\_ACEOF
11202 #define USE_XIM 1
11203 _ACEOF
11208 if test "${HAVE_XIM}" != "no"; then
11209 late_CFLAGS=$CFLAGS
11210 if test "$GCC" = yes; then
11211 CFLAGS="$CFLAGS --pedantic-errors"
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11220 #include <X11/Xlib.h>
11221 #include <X11/Xresource.h>
11223 main ()
11225 Display *display;
11226 XrmDatabase db;
11227 char *res_name;
11228 char *res_class;
11229 XIMProc callback;
11230 XPointer *client_data;
11231 #ifndef __GNUC__
11232 /* If we're not using GCC, it's probably not XFree86, and this is
11233 probably right, but we can't use something like --pedantic-errors. */
11234 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11235 char*, XIMProc, XPointer*);
11236 #endif
11237 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11238 client_data);
11240 return 0;
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; } &&
11258 { ac_try='test -s conftest.$ac_objext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 emacs_cv_arg6_star=yes
11265 else
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11272 if test "$emacs_cv_arg6_star" = yes; then
11273 cat >>confdefs.h <<\_ACEOF
11274 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11275 _ACEOF
11277 else
11278 cat >>confdefs.h <<\_ACEOF
11279 #define XRegisterIMInstantiateCallback_arg6 XPointer
11280 _ACEOF
11283 CFLAGS=$late_CFLAGS
11286 ### Use -lXpm if available, unless `--with-xpm=no'.
11287 HAVE_XPM=no
11288 if test "${HAVE_X11}" = "yes"; then
11289 if test "${with_xpm}" != "no"; then
11290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11291 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11292 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11293 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11297 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11298 else
11299 # Is the header compilable?
11300 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11301 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 $ac_includes_default
11309 #include <X11/xpm.h>
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313 (eval $ac_compile) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
11320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; } &&
11326 { ac_try='test -s conftest.$ac_objext'
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; }; then
11332 ac_header_compiler=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_compiler=no
11339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11341 echo "${ECHO_T}$ac_header_compiler" >&6
11343 # Is the header present?
11344 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11345 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <X11/xpm.h>
11353 _ACEOF
11354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11356 ac_status=$?
11357 grep -v '^ *+' conftest.er1 >conftest.err
11358 rm -f conftest.er1
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } >/dev/null; then
11362 if test -s conftest.err; then
11363 ac_cpp_err=$ac_c_preproc_warn_flag
11364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11365 else
11366 ac_cpp_err=
11368 else
11369 ac_cpp_err=yes
11371 if test -z "$ac_cpp_err"; then
11372 ac_header_preproc=yes
11373 else
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_header_preproc=no
11379 rm -f conftest.err conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6
11383 # So? What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385 yes:no: )
11386 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11390 ac_header_preproc=yes
11392 no:yes:* )
11393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11406 cat <<\_ASBOX
11407 ## ------------------------------------------ ##
11408 ## Report this to the AC_PACKAGE_NAME lists. ##
11409 ## ------------------------------------------ ##
11410 _ASBOX
11412 sed "s/^/$as_me: WARNING: /" >&2
11414 esac
11415 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11416 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11417 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 ac_cv_header_X11_xpm_h=$ac_header_preproc
11422 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11423 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11426 if test $ac_cv_header_X11_xpm_h = yes; then
11427 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11428 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11429 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432 ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-lXpm -lX11 $LIBS"
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h. */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any gcc2 internal prototype to avoid an error. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char XpmReadFileToPixmap ();
11449 main ()
11451 XpmReadFileToPixmap ();
11453 return 0;
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11478 else
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11484 rm -f conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LIBS=$ac_check_lib_save_LIBS
11488 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11489 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11490 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11491 HAVE_XPM=yes
11497 if test "${HAVE_XPM}" = "yes"; then
11498 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11499 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include "X11/xpm.h"
11507 #ifndef XpmReturnAllocPixels
11508 no_return_alloc_pixels
11509 #endif
11511 _ACEOF
11512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11513 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11514 HAVE_XPM=no
11515 else
11516 HAVE_XPM=yes
11518 rm -f conftest*
11521 if test "${HAVE_XPM}" = "yes"; then
11522 echo "$as_me:$LINENO: result: yes" >&5
11523 echo "${ECHO_T}yes" >&6
11524 else
11525 echo "$as_me:$LINENO: result: no" >&5
11526 echo "${ECHO_T}no" >&6
11531 if test "${HAVE_XPM}" = "yes"; then
11533 cat >>confdefs.h <<\_ACEOF
11534 #define HAVE_XPM 1
11535 _ACEOF
11540 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11541 HAVE_JPEG=no
11542 if test "${HAVE_X11}" = "yes"; then
11543 if test "${with_jpeg}" != "no"; then
11544 if test "${ac_cv_header_jerror_h+set}" = set; then
11545 echo "$as_me:$LINENO: checking for jerror.h" >&5
11546 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11547 if test "${ac_cv_header_jerror_h+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11551 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11552 else
11553 # Is the header compilable?
11554 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11555 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 $ac_includes_default
11563 #include <jerror.h>
11564 _ACEOF
11565 rm -f conftest.$ac_objext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest.$ac_objext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_header_compiler=yes
11587 else
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_header_compiler=no
11593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11595 echo "${ECHO_T}$ac_header_compiler" >&6
11597 # Is the header present?
11598 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11599 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 #include <jerror.h>
11607 _ACEOF
11608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } >/dev/null; then
11616 if test -s conftest.err; then
11617 ac_cpp_err=$ac_c_preproc_warn_flag
11618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11619 else
11620 ac_cpp_err=
11622 else
11623 ac_cpp_err=yes
11625 if test -z "$ac_cpp_err"; then
11626 ac_header_preproc=yes
11627 else
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_header_preproc=no
11633 rm -f conftest.err conftest.$ac_ext
11634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635 echo "${ECHO_T}$ac_header_preproc" >&6
11637 # So? What about this header?
11638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11639 yes:no: )
11640 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11641 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11643 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11644 ac_header_preproc=yes
11646 no:yes:* )
11647 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11648 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11650 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11652 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11654 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11656 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11658 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11660 cat <<\_ASBOX
11661 ## ------------------------------------------ ##
11662 ## Report this to the AC_PACKAGE_NAME lists. ##
11663 ## ------------------------------------------ ##
11664 _ASBOX
11666 sed "s/^/$as_me: WARNING: /" >&2
11668 esac
11669 echo "$as_me:$LINENO: checking for jerror.h" >&5
11670 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11671 if test "${ac_cv_header_jerror_h+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 ac_cv_header_jerror_h=$ac_header_preproc
11676 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11677 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11680 if test $ac_cv_header_jerror_h = yes; then
11681 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11682 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11683 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686 ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-ljpeg $LIBS"
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h. */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11695 /* Override any gcc2 internal prototype to avoid an error. */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 /* We use char because int might match the return type of a gcc2
11700 builtin and then its argument prototype would still apply. */
11701 char jpeg_destroy_compress ();
11703 main ()
11705 jpeg_destroy_compress ();
11707 return 0;
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712 (eval $ac_link) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest$ac_exeext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
11731 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11732 else
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11738 rm -f conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740 LIBS=$ac_check_lib_save_LIBS
11742 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11743 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11744 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11745 HAVE_JPEG=yes
11754 if test "${HAVE_JPEG}" = "yes"; then
11755 cat >>confdefs.h <<\_ACEOF
11756 #define HAVE_JPEG 1
11757 _ACEOF
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 #include <jpeglib.h>
11766 version=JPEG_LIB_VERSION
11768 _ACEOF
11769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11770 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_JPEG 1
11773 _ACEOF
11775 else
11776 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11777 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11778 HAVE_JPEG=no
11780 rm -f conftest*
11785 ### Use -lpng if available, unless `--with-png=no'.
11786 HAVE_PNG=no
11787 if test "${HAVE_X11}" = "yes"; then
11788 if test "${with_png}" != "no"; then
11789 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11790 # in /usr/include/libpng.
11793 for ac_header in png.h libpng/png.h
11795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11804 else
11805 # Is the header compilable?
11806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 $ac_includes_default
11815 #include <$ac_header>
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_header_compiler=yes
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_header_compiler=no
11845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11847 echo "${ECHO_T}$ac_header_compiler" >&6
11849 # Is the header present?
11850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <$ac_header>
11859 _ACEOF
11860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } >/dev/null; then
11868 if test -s conftest.err; then
11869 ac_cpp_err=$ac_c_preproc_warn_flag
11870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11871 else
11872 ac_cpp_err=
11874 else
11875 ac_cpp_err=yes
11877 if test -z "$ac_cpp_err"; then
11878 ac_header_preproc=yes
11879 else
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 ac_header_preproc=no
11885 rm -f conftest.err conftest.$ac_ext
11886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11887 echo "${ECHO_T}$ac_header_preproc" >&6
11889 # So? What about this header?
11890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11891 yes:no: )
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11896 ac_header_preproc=yes
11898 no:yes:* )
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11912 cat <<\_ASBOX
11913 ## ------------------------------------------ ##
11914 ## Report this to the AC_PACKAGE_NAME lists. ##
11915 ## ------------------------------------------ ##
11916 _ASBOX
11918 sed "s/^/$as_me: WARNING: /" >&2
11920 esac
11921 echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 eval "$as_ac_Header=\$ac_header_preproc"
11928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 _ACEOF
11939 done
11941 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11942 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11943 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11944 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lpng -lz -lm $LIBS"
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11956 /* Override any gcc2 internal prototype to avoid an error. */
11957 #ifdef __cplusplus
11958 extern "C"
11959 #endif
11960 /* We use char because int might match the return type of a gcc2
11961 builtin and then its argument prototype would still apply. */
11962 char png_get_channels ();
11964 main ()
11966 png_get_channels ();
11968 return 0;
11970 _ACEOF
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11973 (eval $ac_link) 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest$ac_exeext'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 ac_cv_lib_png_png_get_channels=yes
11993 else
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11997 ac_cv_lib_png_png_get_channels=no
11999 rm -f conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12003 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12004 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12005 if test $ac_cv_lib_png_png_get_channels = yes; then
12006 HAVE_PNG=yes
12012 if test "${HAVE_PNG}" = "yes"; then
12014 cat >>confdefs.h <<\_ACEOF
12015 #define HAVE_PNG 1
12016 _ACEOF
12021 ### Use -ltiff if available, unless `--with-tiff=no'.
12022 HAVE_TIFF=no
12023 if test "${HAVE_X11}" = "yes"; then
12024 if test "${with_tiff}" != "no"; then
12025 if test "${ac_cv_header_tiffio_h+set}" = set; then
12026 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12027 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12028 if test "${ac_cv_header_tiffio_h+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12032 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12033 else
12034 # Is the header compilable?
12035 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12036 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12037 cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 $ac_includes_default
12044 #include <tiffio.h>
12045 _ACEOF
12046 rm -f conftest.$ac_objext
12047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12048 (eval $ac_compile) 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } &&
12055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest.$ac_objext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_header_compiler=yes
12068 else
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_header_compiler=no
12074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076 echo "${ECHO_T}$ac_header_compiler" >&6
12078 # Is the header present?
12079 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12080 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <tiffio.h>
12088 _ACEOF
12089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } >/dev/null; then
12097 if test -s conftest.err; then
12098 ac_cpp_err=$ac_c_preproc_warn_flag
12099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12100 else
12101 ac_cpp_err=
12103 else
12104 ac_cpp_err=yes
12106 if test -z "$ac_cpp_err"; then
12107 ac_header_preproc=yes
12108 else
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_header_preproc=no
12114 rm -f conftest.err conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12116 echo "${ECHO_T}$ac_header_preproc" >&6
12118 # So? What about this header?
12119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12120 yes:no: )
12121 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12122 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12124 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12125 ac_header_preproc=yes
12127 no:yes:* )
12128 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12129 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12130 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12131 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12133 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12135 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12136 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12137 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12139 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12141 cat <<\_ASBOX
12142 ## ------------------------------------------ ##
12143 ## Report this to the AC_PACKAGE_NAME lists. ##
12144 ## ------------------------------------------ ##
12145 _ASBOX
12147 sed "s/^/$as_me: WARNING: /" >&2
12149 esac
12150 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12151 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12152 if test "${ac_cv_header_tiffio_h+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 ac_cv_header_tiffio_h=$ac_header_preproc
12157 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12158 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12161 if test $ac_cv_header_tiffio_h = yes; then
12162 tifflibs="-lz -lm"
12163 # At least one tiff package requires the jpeg library.
12164 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12165 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12166 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12167 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-ltiff $tifflibs $LIBS"
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12179 /* Override any gcc2 internal prototype to avoid an error. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char TIFFGetVersion ();
12187 main ()
12189 TIFFGetVersion ();
12191 return 0;
12193 _ACEOF
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196 (eval $ac_link) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest$ac_exeext'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; }; then
12215 ac_cv_lib_tiff_TIFFGetVersion=yes
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_cv_lib_tiff_TIFFGetVersion=no
12222 rm -f conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12226 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12227 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12228 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12229 HAVE_TIFF=yes
12237 if test "${HAVE_TIFF}" = "yes"; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_TIFF 1
12241 _ACEOF
12246 ### Use -lgif if available, unless `--with-gif=no'.
12247 HAVE_GIF=no
12248 if test "${HAVE_X11}" = "yes"; then
12249 if test "${with_gif}" != "no"; then
12250 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12251 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12252 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12253 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12257 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12258 else
12259 # Is the header compilable?
12260 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12261 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h. */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h. */
12268 $ac_includes_default
12269 #include <gif_lib.h>
12270 _ACEOF
12271 rm -f conftest.$ac_objext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273 (eval $ac_compile) 2>conftest.er1
12274 ac_status=$?
12275 grep -v '^ *+' conftest.er1 >conftest.err
12276 rm -f conftest.er1
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_header_compiler=yes
12293 else
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_header_compiler=no
12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12301 echo "${ECHO_T}$ac_header_compiler" >&6
12303 # Is the header present?
12304 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12305 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12306 cat >conftest.$ac_ext <<_ACEOF
12307 /* confdefs.h. */
12308 _ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 #include <gif_lib.h>
12313 _ACEOF
12314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } >/dev/null; then
12322 if test -s conftest.err; then
12323 ac_cpp_err=$ac_c_preproc_warn_flag
12324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12325 else
12326 ac_cpp_err=
12328 else
12329 ac_cpp_err=yes
12331 if test -z "$ac_cpp_err"; then
12332 ac_header_preproc=yes
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12337 ac_header_preproc=no
12339 rm -f conftest.err conftest.$ac_ext
12340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12341 echo "${ECHO_T}$ac_header_preproc" >&6
12343 # So? What about this header?
12344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12345 yes:no: )
12346 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12347 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12348 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12349 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12350 ac_header_preproc=yes
12352 no:yes:* )
12353 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12354 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12356 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12358 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12360 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12362 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12364 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12366 cat <<\_ASBOX
12367 ## ------------------------------------------ ##
12368 ## Report this to the AC_PACKAGE_NAME lists. ##
12369 ## ------------------------------------------ ##
12370 _ASBOX
12372 sed "s/^/$as_me: WARNING: /" >&2
12374 esac
12375 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12376 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12377 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 ac_cv_header_gif_lib_h=$ac_header_preproc
12382 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12383 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12386 if test $ac_cv_header_gif_lib_h = yes; then
12387 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12388 # Earlier versions can crash Emacs.
12389 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12390 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12391 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394 ac_check_lib_save_LIBS=$LIBS
12395 LIBS="-lungif $LIBS"
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any gcc2 internal prototype to avoid an error. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char EGifPutExtensionLast ();
12411 main ()
12413 EGifPutExtensionLast ();
12415 return 0;
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest$ac_exeext'
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_cv_lib_ungif_EGifPutExtensionLast=no
12446 rm -f conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 LIBS=$ac_check_lib_save_LIBS
12450 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12451 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12452 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12453 HAVE_GIF=yes
12461 if test "${HAVE_GIF}" = "yes"; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define HAVE_GIF 1
12465 _ACEOF
12470 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12471 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12472 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12473 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12477 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12478 else
12479 # Is the header compilable?
12480 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12481 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h. */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 $ac_includes_default
12489 #include <malloc/malloc.h>
12490 _ACEOF
12491 rm -f conftest.$ac_objext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493 (eval $ac_compile) 2>conftest.er1
12494 ac_status=$?
12495 grep -v '^ *+' conftest.er1 >conftest.err
12496 rm -f conftest.er1
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 ac_header_compiler=yes
12513 else
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_header_compiler=no
12519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12521 echo "${ECHO_T}$ac_header_compiler" >&6
12523 # Is the header present?
12524 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12525 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <malloc/malloc.h>
12533 _ACEOF
12534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } >/dev/null; then
12542 if test -s conftest.err; then
12543 ac_cpp_err=$ac_c_preproc_warn_flag
12544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12545 else
12546 ac_cpp_err=
12548 else
12549 ac_cpp_err=yes
12551 if test -z "$ac_cpp_err"; then
12552 ac_header_preproc=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_header_preproc=no
12559 rm -f conftest.err conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12561 echo "${ECHO_T}$ac_header_preproc" >&6
12563 # So? What about this header?
12564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12565 yes:no: )
12566 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12567 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12569 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12570 ac_header_preproc=yes
12572 no:yes:* )
12573 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12574 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12576 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12577 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12578 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12579 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12580 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12582 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12583 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12584 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12586 cat <<\_ASBOX
12587 ## ------------------------------------------ ##
12588 ## Report this to the AC_PACKAGE_NAME lists. ##
12589 ## ------------------------------------------ ##
12590 _ASBOX
12592 sed "s/^/$as_me: WARNING: /" >&2
12594 esac
12595 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12596 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12597 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 else
12600 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12602 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12603 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12606 if test $ac_cv_header_malloc_malloc_h = yes; then
12608 cat >>confdefs.h <<\_ACEOF
12609 #define HAVE_MALLOC_MALLOC_H 1
12610 _ACEOF
12616 ### Use Mac OS X Carbon API to implement GUI.
12617 if test "${HAVE_CARBON}" = "yes"; then
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_CARBON 1
12621 _ACEOF
12623 window_system=mac
12624 ## Specify the install directory
12625 carbon_appdir=
12626 if test "${carbon_appdir_x}" != ""; then
12627 case ${carbon_appdir_x} in
12628 y | ye | yes) carbon_appdir=/Applications ;;
12629 * ) carbon_appdir=${carbon_appdir_x} ;;
12630 esac
12632 # We also have mouse menus.
12633 HAVE_MENUS=yes
12635 tmp_CFLAGS="$CFLAGS"
12636 CFLAGS="$CFLAGS -framework Carbon"
12637 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12638 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12639 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h. */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12650 #define CancelMenuTracking innocuous_CancelMenuTracking
12652 /* System header to define __stub macros and hopefully few prototypes,
12653 which can conflict with char CancelMenuTracking (); below.
12654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12655 <limits.h> exists even on freestanding compilers. */
12657 #ifdef __STDC__
12658 # include <limits.h>
12659 #else
12660 # include <assert.h>
12661 #endif
12663 #undef CancelMenuTracking
12665 /* Override any gcc2 internal prototype to avoid an error. */
12666 #ifdef __cplusplus
12667 extern "C"
12669 #endif
12670 /* We use char because int might match the return type of a gcc2
12671 builtin and then its argument prototype would still apply. */
12672 char CancelMenuTracking ();
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12677 choke me
12678 #else
12679 char (*f) () = CancelMenuTracking;
12680 #endif
12681 #ifdef __cplusplus
12683 #endif
12686 main ()
12688 return f != CancelMenuTracking;
12690 return 0;
12692 _ACEOF
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695 (eval $ac_link) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } &&
12702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_func_CancelMenuTracking=yes
12715 else
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_func_CancelMenuTracking=no
12721 rm -f conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12724 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12725 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12726 if test $ac_cv_func_CancelMenuTracking = yes; then
12727 have_cmt=yes
12728 else
12729 have_cmt=no
12732 if test "$have_cmt" = yes; then
12734 cat >>confdefs.h <<\_ACEOF
12735 #define HAVE_CANCELMENUTRACKING 1
12736 _ACEOF
12739 CFLAGS="$tmp_CFLAGS"
12742 ### Use session management (-lSM -lICE) if available
12743 HAVE_X_SM=no
12744 if test "${HAVE_X11}" = "yes"; then
12745 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12746 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12747 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12748 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12752 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12753 else
12754 # Is the header compilable?
12755 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12756 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 $ac_includes_default
12764 #include <X11/SM/SMlib.h>
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12768 (eval $ac_compile) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest.$ac_objext'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_header_compiler=yes
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12792 ac_header_compiler=no
12794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12796 echo "${ECHO_T}$ac_header_compiler" >&6
12798 # Is the header present?
12799 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12800 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 #include <X11/SM/SMlib.h>
12808 _ACEOF
12809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } >/dev/null; then
12817 if test -s conftest.err; then
12818 ac_cpp_err=$ac_c_preproc_warn_flag
12819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12820 else
12821 ac_cpp_err=
12823 else
12824 ac_cpp_err=yes
12826 if test -z "$ac_cpp_err"; then
12827 ac_header_preproc=yes
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12832 ac_header_preproc=no
12834 rm -f conftest.err conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12836 echo "${ECHO_T}$ac_header_preproc" >&6
12838 # So? What about this header?
12839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12840 yes:no: )
12841 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12842 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12844 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12845 ac_header_preproc=yes
12847 no:yes:* )
12848 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12849 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12851 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12853 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12855 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12857 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12859 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12861 cat <<\_ASBOX
12862 ## ------------------------------------------ ##
12863 ## Report this to the AC_PACKAGE_NAME lists. ##
12864 ## ------------------------------------------ ##
12865 _ASBOX
12867 sed "s/^/$as_me: WARNING: /" >&2
12869 esac
12870 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12871 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12872 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12877 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12878 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12881 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12882 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12883 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12884 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lSM -lICE $LIBS"
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12896 /* Override any gcc2 internal prototype to avoid an error. */
12897 #ifdef __cplusplus
12898 extern "C"
12899 #endif
12900 /* We use char because int might match the return type of a gcc2
12901 builtin and then its argument prototype would still apply. */
12902 char SmcOpenConnection ();
12904 main ()
12906 SmcOpenConnection ();
12908 return 0;
12910 _ACEOF
12911 rm -f conftest.$ac_objext conftest$ac_exeext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12913 (eval $ac_link) 2>conftest.er1
12914 ac_status=$?
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } &&
12920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_lib_SM_SmcOpenConnection=yes
12933 else
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 ac_cv_lib_SM_SmcOpenConnection=no
12939 rm -f conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 LIBS=$ac_check_lib_save_LIBS
12943 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12944 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12945 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12946 HAVE_X_SM=yes
12953 if test "${HAVE_X_SM}" = "yes"; then
12955 cat >>confdefs.h <<\_ACEOF
12956 #define HAVE_X_SM 1
12957 _ACEOF
12959 case "$LIBS" in
12960 *-lSM*) ;;
12961 *) LIBS="-lSM -lICE $LIBS" ;;
12962 esac
12966 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12967 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12968 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12969 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12970 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 else
12972 cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h. */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 #include <netdb.h>
12980 main ()
12982 return h_errno;
12984 return 0;
12986 _ACEOF
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 emacs_cv_netdb_declares_h_errno=yes
13009 else
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13013 emacs_cv_netdb_declares_h_errno=no
13015 rm -f conftest.err conftest.$ac_objext \
13016 conftest$ac_exeext conftest.$ac_ext
13018 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13019 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13020 if test $emacs_cv_netdb_declares_h_errno = yes; then
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_H_ERRNO 1
13024 _ACEOF
13028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13029 # for constant arguments. Useless!
13030 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13031 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13032 if test "${ac_cv_working_alloca_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include <alloca.h>
13043 main ()
13045 char *p = (char *) alloca (2 * sizeof (int));
13047 return 0;
13049 _ACEOF
13050 rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_working_alloca_h=yes
13072 else
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_cv_working_alloca_h=no
13078 rm -f conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13081 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13082 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13083 if test $ac_cv_working_alloca_h = yes; then
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_ALLOCA_H 1
13087 _ACEOF
13091 echo "$as_me:$LINENO: checking for alloca" >&5
13092 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13093 if test "${ac_cv_func_alloca_works+set}" = set; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 #ifdef __GNUC__
13103 # define alloca __builtin_alloca
13104 #else
13105 # ifdef _MSC_VER
13106 # include <malloc.h>
13107 # define alloca _alloca
13108 # else
13109 # if HAVE_ALLOCA_H
13110 # include <alloca.h>
13111 # else
13112 # ifdef _AIX
13113 #pragma alloca
13114 # else
13115 # ifndef alloca /* predefined by HP cc +Olibcalls */
13116 char *alloca ();
13117 # endif
13118 # endif
13119 # endif
13120 # endif
13121 #endif
13124 main ()
13126 char *p = (char *) alloca (1);
13128 return 0;
13130 _ACEOF
13131 rm -f conftest.$ac_objext conftest$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } &&
13146 { ac_try='test -s conftest$ac_exeext'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; }; then
13152 ac_cv_func_alloca_works=yes
13153 else
13154 echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13157 ac_cv_func_alloca_works=no
13159 rm -f conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13165 if test $ac_cv_func_alloca_works = yes; then
13167 cat >>confdefs.h <<\_ACEOF
13168 #define HAVE_ALLOCA 1
13169 _ACEOF
13171 else
13172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13173 # that cause trouble. Some versions do not even contain alloca or
13174 # contain a buggy version. If you still want to use their alloca,
13175 # use ar to extract alloca.o from them instead of compiling alloca.c.
13177 ALLOCA=alloca.$ac_objext
13179 cat >>confdefs.h <<\_ACEOF
13180 #define C_ALLOCA 1
13181 _ACEOF
13184 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13186 if test "${ac_cv_os_cray+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 #if defined(CRAY) && ! defined(CRAY2)
13196 webecray
13197 #else
13198 wenotbecray
13199 #endif
13201 _ACEOF
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203 $EGREP "webecray" >/dev/null 2>&1; then
13204 ac_cv_os_cray=yes
13205 else
13206 ac_cv_os_cray=no
13208 rm -f conftest*
13211 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13212 echo "${ECHO_T}$ac_cv_os_cray" >&6
13213 if test $ac_cv_os_cray = yes; then
13214 for ac_func in _getb67 GETB67 getb67; do
13215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13216 echo "$as_me:$LINENO: checking for $ac_func" >&5
13217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13218 if eval "test \"\${$as_ac_var+set}\" = set"; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13229 #define $ac_func innocuous_$ac_func
13231 /* System header to define __stub macros and hopefully few prototypes,
13232 which can conflict with char $ac_func (); below.
13233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13234 <limits.h> exists even on freestanding compilers. */
13236 #ifdef __STDC__
13237 # include <limits.h>
13238 #else
13239 # include <assert.h>
13240 #endif
13242 #undef $ac_func
13244 /* Override any gcc2 internal prototype to avoid an error. */
13245 #ifdef __cplusplus
13246 extern "C"
13248 #endif
13249 /* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251 char $ac_func ();
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13256 choke me
13257 #else
13258 char (*f) () = $ac_func;
13259 #endif
13260 #ifdef __cplusplus
13262 #endif
13265 main ()
13267 return f != $ac_func;
13269 return 0;
13271 _ACEOF
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 eval "$as_ac_var=yes"
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 eval "$as_ac_var=no"
13300 rm -f conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13305 if test `eval echo '${'$as_ac_var'}'` = yes; then
13307 cat >>confdefs.h <<_ACEOF
13308 #define CRAY_STACKSEG_END $ac_func
13309 _ACEOF
13311 break
13314 done
13317 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13318 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13319 if test "${ac_cv_c_stack_direction+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322 if test "$cross_compiling" = yes; then
13323 ac_cv_c_stack_direction=0
13324 else
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 find_stack_direction ()
13334 static char *addr = 0;
13335 auto char dummy;
13336 if (addr == 0)
13338 addr = &dummy;
13339 return find_stack_direction ();
13341 else
13342 return (&dummy > addr) ? 1 : -1;
13346 main ()
13348 exit (find_stack_direction () < 0);
13350 _ACEOF
13351 rm -f conftest$ac_exeext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; }; then
13362 ac_cv_c_stack_direction=1
13363 else
13364 echo "$as_me: program exited with status $ac_status" >&5
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ( exit $ac_status )
13369 ac_cv_c_stack_direction=-1
13371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13375 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13377 cat >>confdefs.h <<_ACEOF
13378 #define STACK_DIRECTION $ac_cv_c_stack_direction
13379 _ACEOF
13385 # fmod, logb, and frexp are found in -lm on most systems.
13386 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13388 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13389 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13390 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393 ac_check_lib_save_LIBS=$LIBS
13394 LIBS="-lm $LIBS"
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13402 /* Override any gcc2 internal prototype to avoid an error. */
13403 #ifdef __cplusplus
13404 extern "C"
13405 #endif
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13408 char sqrt ();
13410 main ()
13412 sqrt ();
13414 return 0;
13416 _ACEOF
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13419 (eval $ac_link) 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 ac_cv_lib_m_sqrt=yes
13439 else
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13443 ac_cv_lib_m_sqrt=no
13445 rm -f conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
13447 LIBS=$ac_check_lib_save_LIBS
13449 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13450 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13451 if test $ac_cv_lib_m_sqrt = yes; then
13452 cat >>confdefs.h <<_ACEOF
13453 #define HAVE_LIBM 1
13454 _ACEOF
13456 LIBS="-lm $LIBS"
13461 # Check for mail-locking functions in a "mail" library. Probably this should
13462 # have the same check as for liblockfile below.
13464 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13465 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13466 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469 ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-lmail $LIBS"
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h. */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13478 /* Override any gcc2 internal prototype to avoid an error. */
13479 #ifdef __cplusplus
13480 extern "C"
13481 #endif
13482 /* We use char because int might match the return type of a gcc2
13483 builtin and then its argument prototype would still apply. */
13484 char maillock ();
13486 main ()
13488 maillock ();
13490 return 0;
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>conftest.er1
13496 ac_status=$?
13497 grep -v '^ *+' conftest.er1 >conftest.err
13498 rm -f conftest.er1
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504 (eval $ac_try) 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; } &&
13508 { ac_try='test -s conftest$ac_exeext'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13511 ac_status=$?
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; }; then
13514 ac_cv_lib_mail_maillock=yes
13515 else
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13519 ac_cv_lib_mail_maillock=no
13521 rm -f conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13525 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13526 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13527 if test $ac_cv_lib_mail_maillock = yes; then
13528 cat >>confdefs.h <<_ACEOF
13529 #define HAVE_LIBMAIL 1
13530 _ACEOF
13532 LIBS="-lmail $LIBS"
13537 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13538 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13539 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-llockfile $LIBS"
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13551 /* Override any gcc2 internal prototype to avoid an error. */
13552 #ifdef __cplusplus
13553 extern "C"
13554 #endif
13555 /* We use char because int might match the return type of a gcc2
13556 builtin and then its argument prototype would still apply. */
13557 char maillock ();
13559 main ()
13561 maillock ();
13563 return 0;
13565 _ACEOF
13566 rm -f conftest.$ac_objext conftest$ac_exeext
13567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13568 (eval $ac_link) 2>conftest.er1
13569 ac_status=$?
13570 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_lib_lockfile_maillock=yes
13588 else
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_cv_lib_lockfile_maillock=no
13594 rm -f conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13599 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13600 if test $ac_cv_lib_lockfile_maillock = yes; then
13601 cat >>confdefs.h <<_ACEOF
13602 #define HAVE_LIBLOCKFILE 1
13603 _ACEOF
13605 LIBS="-llockfile $LIBS"
13609 # If we have the shared liblockfile, assume we must use it for mail
13610 # locking (e.g. Debian). If we couldn't link against liblockfile
13611 # (no liblockfile.a installed), ensure that we don't need to.
13612 if test "$ac_cv_lib_lockfile_maillock" = no; then
13613 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13614 set dummy liblockfile.so; ac_word=$2
13615 echo "$as_me:$LINENO: checking for $ac_word" >&5
13616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13617 if test "${ac_cv_prog_liblockfile+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 else
13620 if test -n "$liblockfile"; then
13621 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13622 else
13623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13625 for as_dir in $as_dummy
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631 ac_cv_prog_liblockfile="yes"
13632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13635 done
13636 done
13638 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13641 liblockfile=$ac_cv_prog_liblockfile
13642 if test -n "$liblockfile"; then
13643 echo "$as_me:$LINENO: result: $liblockfile" >&5
13644 echo "${ECHO_T}$liblockfile" >&6
13645 else
13646 echo "$as_me:$LINENO: result: no" >&5
13647 echo "${ECHO_T}no" >&6
13650 if test $ac_cv_prog_liblockfile = yes; then
13651 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13652 This probably means that movemail could lose mail.
13653 There may be a \`development' package to install containing liblockfile." >&5
13654 echo "$as_me: error: Shared liblockfile found but can't link against it.
13655 This probably means that movemail could lose mail.
13656 There may be a \`development' package to install containing liblockfile." >&2;}
13657 { (exit 1); exit 1; }; }
13658 else :
13662 for ac_func in touchlock
13664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13665 echo "$as_me:$LINENO: checking for $ac_func" >&5
13666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13667 if eval "test \"\${$as_ac_var+set}\" = set"; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13678 #define $ac_func innocuous_$ac_func
13680 /* System header to define __stub macros and hopefully few prototypes,
13681 which can conflict with char $ac_func (); below.
13682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13683 <limits.h> exists even on freestanding compilers. */
13685 #ifdef __STDC__
13686 # include <limits.h>
13687 #else
13688 # include <assert.h>
13689 #endif
13691 #undef $ac_func
13693 /* Override any gcc2 internal prototype to avoid an error. */
13694 #ifdef __cplusplus
13695 extern "C"
13697 #endif
13698 /* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700 char $ac_func ();
13701 /* The GNU C library defines this for functions which it implements
13702 to always fail with ENOSYS. Some functions are actually named
13703 something starting with __ and the normal name is an alias. */
13704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13705 choke me
13706 #else
13707 char (*f) () = $ac_func;
13708 #endif
13709 #ifdef __cplusplus
13711 #endif
13714 main ()
13716 return f != $ac_func;
13718 return 0;
13720 _ACEOF
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 eval "$as_ac_var=yes"
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 eval "$as_ac_var=no"
13749 rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13754 if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h <<_ACEOF
13756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757 _ACEOF
13760 done
13763 for ac_header in maillock.h
13765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767 echo "$as_me:$LINENO: checking for $ac_header" >&5
13768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13774 else
13775 # Is the header compilable?
13776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13785 #include <$ac_header>
13786 _ACEOF
13787 rm -f conftest.$ac_objext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_header_compiler=yes
13809 else
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_header_compiler=no
13815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6
13819 # Is the header present?
13820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <$ac_header>
13829 _ACEOF
13830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null; then
13838 if test -s conftest.err; then
13839 ac_cpp_err=$ac_c_preproc_warn_flag
13840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13841 else
13842 ac_cpp_err=
13844 else
13845 ac_cpp_err=yes
13847 if test -z "$ac_cpp_err"; then
13848 ac_header_preproc=yes
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_header_preproc=no
13855 rm -f conftest.err conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857 echo "${ECHO_T}$ac_header_preproc" >&6
13859 # So? What about this header?
13860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 yes:no: )
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc=yes
13868 no:yes:* )
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13882 cat <<\_ASBOX
13883 ## ------------------------------------------ ##
13884 ## Report this to the AC_PACKAGE_NAME lists. ##
13885 ## ------------------------------------------ ##
13886 _ASBOX
13888 sed "s/^/$as_me: WARNING: /" >&2
13890 esac
13891 echo "$as_me:$LINENO: checking for $ac_header" >&5
13892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 eval "$as_ac_Header=\$ac_header_preproc"
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905 _ACEOF
13909 done
13979 for ac_func in gethostname getdomainname dup2 \
13980 rename closedir mkdir rmdir sysinfo getrusage \
13981 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13982 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13983 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13984 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13985 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13986 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13987 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13990 echo "$as_me:$LINENO: checking for $ac_func" >&5
13991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13992 if eval "test \"\${$as_ac_var+set}\" = set"; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003 #define $ac_func innocuous_$ac_func
14005 /* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14010 #ifdef __STDC__
14011 # include <limits.h>
14012 #else
14013 # include <assert.h>
14014 #endif
14016 #undef $ac_func
14018 /* Override any gcc2 internal prototype to avoid an error. */
14019 #ifdef __cplusplus
14020 extern "C"
14022 #endif
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025 char $ac_func ();
14026 /* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030 choke me
14031 #else
14032 char (*f) () = $ac_func;
14033 #endif
14034 #ifdef __cplusplus
14036 #endif
14039 main ()
14041 return f != $ac_func;
14043 return 0;
14045 _ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try='test -s conftest$ac_exeext'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 eval "$as_ac_var=yes"
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 eval "$as_ac_var=no"
14074 rm -f conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14079 if test `eval echo '${'$as_ac_var'}'` = yes; then
14080 cat >>confdefs.h <<_ACEOF
14081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14082 _ACEOF
14085 done
14089 for ac_header in sys/un.h
14091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14093 echo "$as_me:$LINENO: checking for $ac_header" >&5
14094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14100 else
14101 # Is the header compilable?
14102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h. */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 $ac_includes_default
14111 #include <$ac_header>
14112 _ACEOF
14113 rm -f conftest.$ac_objext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14115 (eval $ac_compile) 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest.$ac_objext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_header_compiler=yes
14135 else
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_header_compiler=no
14141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14143 echo "${ECHO_T}$ac_header_compiler" >&6
14145 # Is the header present?
14146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 #include <$ac_header>
14155 _ACEOF
14156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14158 ac_status=$?
14159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } >/dev/null; then
14164 if test -s conftest.err; then
14165 ac_cpp_err=$ac_c_preproc_warn_flag
14166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14167 else
14168 ac_cpp_err=
14170 else
14171 ac_cpp_err=yes
14173 if test -z "$ac_cpp_err"; then
14174 ac_header_preproc=yes
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_header_preproc=no
14181 rm -f conftest.err conftest.$ac_ext
14182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14183 echo "${ECHO_T}$ac_header_preproc" >&6
14185 # So? What about this header?
14186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14187 yes:no: )
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14192 ac_header_preproc=yes
14194 no:yes:* )
14195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14208 cat <<\_ASBOX
14209 ## ------------------------------------------ ##
14210 ## Report this to the AC_PACKAGE_NAME lists. ##
14211 ## ------------------------------------------ ##
14212 _ASBOX
14214 sed "s/^/$as_me: WARNING: /" >&2
14216 esac
14217 echo "$as_me:$LINENO: checking for $ac_header" >&5
14218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 eval "$as_ac_Header=\$ac_header_preproc"
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14229 cat >>confdefs.h <<_ACEOF
14230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14231 _ACEOF
14235 done
14241 for ac_header in stdlib.h sys/time.h unistd.h
14243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14252 else
14253 # Is the header compilable?
14254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14256 cat >conftest.$ac_ext <<_ACEOF
14257 /* confdefs.h. */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 $ac_includes_default
14263 #include <$ac_header>
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_header_compiler=yes
14287 else
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14291 ac_header_compiler=no
14293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14295 echo "${ECHO_T}$ac_header_compiler" >&6
14297 # Is the header present?
14298 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14299 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <$ac_header>
14307 _ACEOF
14308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } >/dev/null; then
14316 if test -s conftest.err; then
14317 ac_cpp_err=$ac_c_preproc_warn_flag
14318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14319 else
14320 ac_cpp_err=
14322 else
14323 ac_cpp_err=yes
14325 if test -z "$ac_cpp_err"; then
14326 ac_header_preproc=yes
14327 else
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ac_header_preproc=no
14333 rm -f conftest.err conftest.$ac_ext
14334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14335 echo "${ECHO_T}$ac_header_preproc" >&6
14337 # So? What about this header?
14338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14339 yes:no: )
14340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14344 ac_header_preproc=yes
14346 no:yes:* )
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14360 cat <<\_ASBOX
14361 ## ------------------------------------------ ##
14362 ## Report this to the AC_PACKAGE_NAME lists. ##
14363 ## ------------------------------------------ ##
14364 _ASBOX
14366 sed "s/^/$as_me: WARNING: /" >&2
14368 esac
14369 echo "$as_me:$LINENO: checking for $ac_header" >&5
14370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 else
14374 eval "$as_ac_Header=\$ac_header_preproc"
14376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14381 cat >>confdefs.h <<_ACEOF
14382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14383 _ACEOF
14387 done
14390 for ac_func in alarm
14392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14406 #define $ac_func innocuous_$ac_func
14408 /* System header to define __stub macros and hopefully few prototypes,
14409 which can conflict with char $ac_func (); below.
14410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411 <limits.h> exists even on freestanding compilers. */
14413 #ifdef __STDC__
14414 # include <limits.h>
14415 #else
14416 # include <assert.h>
14417 #endif
14419 #undef $ac_func
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 #ifdef __cplusplus
14423 extern "C"
14425 #endif
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14428 char $ac_func ();
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 char (*f) () = $ac_func;
14436 #endif
14437 #ifdef __cplusplus
14439 #endif
14442 main ()
14444 return f != $ac_func;
14446 return 0;
14448 _ACEOF
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; } &&
14464 { ac_try='test -s conftest$ac_exeext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 eval "$as_ac_var=yes"
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 eval "$as_ac_var=no"
14477 rm -f conftest.err conftest.$ac_objext \
14478 conftest$ac_exeext conftest.$ac_ext
14480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14482 if test `eval echo '${'$as_ac_var'}'` = yes; then
14483 cat >>confdefs.h <<_ACEOF
14484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14485 _ACEOF
14488 done
14490 echo "$as_me:$LINENO: checking for working mktime" >&5
14491 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14492 if test "${ac_cv_func_working_mktime+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495 if test "$cross_compiling" = yes; then
14496 ac_cv_func_working_mktime=no
14497 else
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 /* Test program from Paul Eggert and Tony Leneis. */
14505 #if TIME_WITH_SYS_TIME
14506 # include <sys/time.h>
14507 # include <time.h>
14508 #else
14509 # if HAVE_SYS_TIME_H
14510 # include <sys/time.h>
14511 # else
14512 # include <time.h>
14513 # endif
14514 #endif
14516 #if HAVE_STDLIB_H
14517 # include <stdlib.h>
14518 #endif
14520 #if HAVE_UNISTD_H
14521 # include <unistd.h>
14522 #endif
14524 #if !HAVE_ALARM
14525 # define alarm(X) /* empty */
14526 #endif
14528 /* Work around redefinition to rpl_putenv by other config tests. */
14529 #undef putenv
14531 static time_t time_t_max;
14532 static time_t time_t_min;
14534 /* Values we'll use to set the TZ environment variable. */
14535 static char *tz_strings[] = {
14536 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14537 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14539 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14541 /* Fail if mktime fails to convert a date in the spring-forward gap.
14542 Based on a problem report from Andreas Jaeger. */
14543 static void
14544 spring_forward_gap ()
14546 /* glibc (up to about 1998-10-07) failed this test. */
14547 struct tm tm;
14549 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14550 instead of "TZ=America/Vancouver" in order to detect the bug even
14551 on systems that don't support the Olson extension, or don't have the
14552 full zoneinfo tables installed. */
14553 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14555 tm.tm_year = 98;
14556 tm.tm_mon = 3;
14557 tm.tm_mday = 5;
14558 tm.tm_hour = 2;
14559 tm.tm_min = 0;
14560 tm.tm_sec = 0;
14561 tm.tm_isdst = -1;
14562 if (mktime (&tm) == (time_t)-1)
14563 exit (1);
14566 static void
14567 mktime_test1 (now)
14568 time_t now;
14570 struct tm *lt;
14571 if ((lt = localtime (&now)) && mktime (lt) != now)
14572 exit (1);
14575 static void
14576 mktime_test (now)
14577 time_t now;
14579 mktime_test1 (now);
14580 mktime_test1 ((time_t) (time_t_max - now));
14581 mktime_test1 ((time_t) (time_t_min + now));
14584 static void
14585 irix_6_4_bug ()
14587 /* Based on code from Ariel Faigon. */
14588 struct tm tm;
14589 tm.tm_year = 96;
14590 tm.tm_mon = 3;
14591 tm.tm_mday = 0;
14592 tm.tm_hour = 0;
14593 tm.tm_min = 0;
14594 tm.tm_sec = 0;
14595 tm.tm_isdst = -1;
14596 mktime (&tm);
14597 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14598 exit (1);
14601 static void
14602 bigtime_test (j)
14603 int j;
14605 struct tm tm;
14606 time_t now;
14607 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14608 now = mktime (&tm);
14609 if (now != (time_t) -1)
14611 struct tm *lt = localtime (&now);
14612 if (! (lt
14613 && lt->tm_year == tm.tm_year
14614 && lt->tm_mon == tm.tm_mon
14615 && lt->tm_mday == tm.tm_mday
14616 && lt->tm_hour == tm.tm_hour
14617 && lt->tm_min == tm.tm_min
14618 && lt->tm_sec == tm.tm_sec
14619 && lt->tm_yday == tm.tm_yday
14620 && lt->tm_wday == tm.tm_wday
14621 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14622 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14623 exit (1);
14628 main ()
14630 time_t t, delta;
14631 int i, j;
14633 /* This test makes some buggy mktime implementations loop.
14634 Give up after 60 seconds; a mktime slower than that
14635 isn't worth using anyway. */
14636 alarm (60);
14638 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14639 continue;
14640 time_t_max--;
14641 if ((time_t) -1 < 0)
14642 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14643 continue;
14644 delta = time_t_max / 997; /* a suitable prime number */
14645 for (i = 0; i < N_STRINGS; i++)
14647 if (tz_strings[i])
14648 putenv (tz_strings[i]);
14650 for (t = 0; t <= time_t_max - delta; t += delta)
14651 mktime_test (t);
14652 mktime_test ((time_t) 1);
14653 mktime_test ((time_t) (60 * 60));
14654 mktime_test ((time_t) (60 * 60 * 24));
14656 for (j = 1; 0 < j; j *= 2)
14657 bigtime_test (j);
14658 bigtime_test (j - 1);
14660 irix_6_4_bug ();
14661 spring_forward_gap ();
14662 exit (0);
14664 _ACEOF
14665 rm -f conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667 (eval $ac_link) 2>&5
14668 ac_status=$?
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; }; then
14676 ac_cv_func_working_mktime=yes
14677 else
14678 echo "$as_me: program exited with status $ac_status" >&5
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ( exit $ac_status )
14683 ac_cv_func_working_mktime=no
14685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14688 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14689 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14690 if test $ac_cv_func_working_mktime = no; then
14691 case $LIBOBJS in
14692 "mktime.$ac_objext" | \
14693 *" mktime.$ac_objext" | \
14694 "mktime.$ac_objext "* | \
14695 *" mktime.$ac_objext "* ) ;;
14696 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14697 esac
14701 if test "$ac_cv_func_working_mktime" = no; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define BROKEN_MKTIME 1
14705 _ACEOF
14709 ac_have_func=no # yes means we've found a way to get the load average.
14711 # Make sure getloadavg.c is where it belongs, at configure-time.
14712 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14713 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14714 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14715 { (exit 1); exit 1; }; }
14717 ac_save_LIBS=$LIBS
14719 # Check for getloadavg, but be sure not to touch the cache variable.
14720 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14721 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14722 if test "${ac_cv_func_getloadavg+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14733 #define getloadavg innocuous_getloadavg
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char getloadavg (); below.
14737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14738 <limits.h> exists even on freestanding compilers. */
14740 #ifdef __STDC__
14741 # include <limits.h>
14742 #else
14743 # include <assert.h>
14744 #endif
14746 #undef getloadavg
14748 /* Override any gcc2 internal prototype to avoid an error. */
14749 #ifdef __cplusplus
14750 extern "C"
14752 #endif
14753 /* We use char because int might match the return type of a gcc2
14754 builtin and then its argument prototype would still apply. */
14755 char getloadavg ();
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14760 choke me
14761 #else
14762 char (*f) () = getloadavg;
14763 #endif
14764 #ifdef __cplusplus
14766 #endif
14769 main ()
14771 return f != getloadavg;
14773 return 0;
14775 _ACEOF
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778 (eval $ac_link) 2>conftest.er1
14779 ac_status=$?
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 ac_cv_func_getloadavg=yes
14798 else
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_cv_func_getloadavg=no
14804 rm -f conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14807 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14808 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14809 if test $ac_cv_func_getloadavg = yes; then
14810 exit 0
14811 else
14812 exit 1
14814 ) && ac_have_func=yes
14816 # On HPUX9, an unprivileged user can get load averages through this function.
14818 for ac_func in pstat_getdynamic
14820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14823 if eval "test \"\${$as_ac_var+set}\" = set"; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14834 #define $ac_func innocuous_$ac_func
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below.
14838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 <limits.h> exists even on freestanding compilers. */
14841 #ifdef __STDC__
14842 # include <limits.h>
14843 #else
14844 # include <assert.h>
14845 #endif
14847 #undef $ac_func
14849 /* Override any gcc2 internal prototype to avoid an error. */
14850 #ifdef __cplusplus
14851 extern "C"
14853 #endif
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14856 char $ac_func ();
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14861 choke me
14862 #else
14863 char (*f) () = $ac_func;
14864 #endif
14865 #ifdef __cplusplus
14867 #endif
14870 main ()
14872 return f != $ac_func;
14874 return 0;
14876 _ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879 (eval $ac_link) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 eval "$as_ac_var=yes"
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 eval "$as_ac_var=no"
14905 rm -f conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14913 _ACEOF
14916 done
14919 # Solaris has libkstat which does not require root.
14921 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14922 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14923 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 else
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-lkstat $LIBS"
14928 cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h. */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14935 /* Override any gcc2 internal prototype to avoid an error. */
14936 #ifdef __cplusplus
14937 extern "C"
14938 #endif
14939 /* We use char because int might match the return type of a gcc2
14940 builtin and then its argument prototype would still apply. */
14941 char kstat_open ();
14943 main ()
14945 kstat_open ();
14947 return 0;
14949 _ACEOF
14950 rm -f conftest.$ac_objext conftest$ac_exeext
14951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14952 (eval $ac_link) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest$ac_exeext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_cv_lib_kstat_kstat_open=yes
14972 else
14973 echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14976 ac_cv_lib_kstat_kstat_open=no
14978 rm -f conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 LIBS=$ac_check_lib_save_LIBS
14982 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14983 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14984 if test $ac_cv_lib_kstat_kstat_open = yes; then
14985 cat >>confdefs.h <<_ACEOF
14986 #define HAVE_LIBKSTAT 1
14987 _ACEOF
14989 LIBS="-lkstat $LIBS"
14993 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
14995 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14996 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14997 # to get the right answer into the cache.
14998 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14999 if test $ac_have_func = no; then
15000 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15001 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15002 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005 ac_check_lib_save_LIBS=$LIBS
15006 LIBS="-lelf $LIBS"
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h. */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15014 /* Override any gcc2 internal prototype to avoid an error. */
15015 #ifdef __cplusplus
15016 extern "C"
15017 #endif
15018 /* We use char because int might match the return type of a gcc2
15019 builtin and then its argument prototype would still apply. */
15020 char elf_begin ();
15022 main ()
15024 elf_begin ();
15026 return 0;
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_cv_lib_elf_elf_begin=yes
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 ac_cv_lib_elf_elf_begin=no
15057 rm -f conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
15059 LIBS=$ac_check_lib_save_LIBS
15061 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15062 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15063 if test $ac_cv_lib_elf_elf_begin = yes; then
15064 LIBS="-lelf $LIBS"
15068 if test $ac_have_func = no; then
15069 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15070 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15071 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 ac_check_lib_save_LIBS=$LIBS
15075 LIBS="-lkvm $LIBS"
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h. */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h. */
15083 /* Override any gcc2 internal prototype to avoid an error. */
15084 #ifdef __cplusplus
15085 extern "C"
15086 #endif
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15089 char kvm_open ();
15091 main ()
15093 kvm_open ();
15095 return 0;
15097 _ACEOF
15098 rm -f conftest.$ac_objext conftest$ac_exeext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15100 (eval $ac_link) 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest$ac_exeext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_cv_lib_kvm_kvm_open=yes
15120 else
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15124 ac_cv_lib_kvm_kvm_open=no
15126 rm -f conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext conftest.$ac_ext
15128 LIBS=$ac_check_lib_save_LIBS
15130 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15131 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15132 if test $ac_cv_lib_kvm_kvm_open = yes; then
15133 LIBS="-lkvm $LIBS"
15136 # Check for the 4.4BSD definition of getloadavg.
15137 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15138 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15139 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142 ac_check_lib_save_LIBS=$LIBS
15143 LIBS="-lutil $LIBS"
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h. */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 /* Override any gcc2 internal prototype to avoid an error. */
15152 #ifdef __cplusplus
15153 extern "C"
15154 #endif
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char getloadavg ();
15159 main ()
15161 getloadavg ();
15163 return 0;
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>conftest.er1
15169 ac_status=$?
15170 grep -v '^ *+' conftest.er1 >conftest.err
15171 rm -f conftest.er1
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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_cv_lib_util_getloadavg=yes
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_cv_lib_util_getloadavg=no
15194 rm -f conftest.err conftest.$ac_objext \
15195 conftest$ac_exeext conftest.$ac_ext
15196 LIBS=$ac_check_lib_save_LIBS
15198 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15199 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15200 if test $ac_cv_lib_util_getloadavg = yes; then
15201 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15206 if test $ac_have_func = no; then
15207 # There is a commonly available library for RS/6000 AIX.
15208 # Since it is not a standard part of AIX, it might be installed locally.
15209 ac_getloadavg_LIBS=$LIBS
15210 LIBS="-L/usr/local/lib $LIBS"
15211 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15212 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15213 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lgetloadavg $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h. */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15225 /* Override any gcc2 internal prototype to avoid an error. */
15226 #ifdef __cplusplus
15227 extern "C"
15228 #endif
15229 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15231 char getloadavg ();
15233 main ()
15235 getloadavg ();
15237 return 0;
15239 _ACEOF
15240 rm -f conftest.$ac_objext conftest$ac_exeext
15241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15242 (eval $ac_link) 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_lib_getloadavg_getloadavg=yes
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15266 ac_cv_lib_getloadavg_getloadavg=no
15268 rm -f conftest.err conftest.$ac_objext \
15269 conftest$ac_exeext conftest.$ac_ext
15270 LIBS=$ac_check_lib_save_LIBS
15272 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15273 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15274 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15275 LIBS="-lgetloadavg $LIBS"
15276 else
15277 LIBS=$ac_getloadavg_LIBS
15282 # Make sure it is really in the library, if we think we found it,
15283 # otherwise set up the replacement function.
15285 for ac_func in getloadavg
15287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15288 echo "$as_me:$LINENO: checking for $ac_func" >&5
15289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15290 if eval "test \"\${$as_ac_var+set}\" = set"; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15301 #define $ac_func innocuous_$ac_func
15303 /* System header to define __stub macros and hopefully few prototypes,
15304 which can conflict with char $ac_func (); below.
15305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15306 <limits.h> exists even on freestanding compilers. */
15308 #ifdef __STDC__
15309 # include <limits.h>
15310 #else
15311 # include <assert.h>
15312 #endif
15314 #undef $ac_func
15316 /* Override any gcc2 internal prototype to avoid an error. */
15317 #ifdef __cplusplus
15318 extern "C"
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15323 char $ac_func ();
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328 choke me
15329 #else
15330 char (*f) () = $ac_func;
15331 #endif
15332 #ifdef __cplusplus
15334 #endif
15337 main ()
15339 return f != $ac_func;
15341 return 0;
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest$ac_exeext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15365 eval "$as_ac_var=yes"
15366 else
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 eval "$as_ac_var=no"
15372 rm -f conftest.err conftest.$ac_objext \
15373 conftest$ac_exeext conftest.$ac_ext
15375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15377 if test `eval echo '${'$as_ac_var'}'` = yes; then
15378 cat >>confdefs.h <<_ACEOF
15379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15380 _ACEOF
15382 else
15383 case $LIBOBJS in
15384 "getloadavg.$ac_objext" | \
15385 *" getloadavg.$ac_objext" | \
15386 "getloadavg.$ac_objext "* | \
15387 *" getloadavg.$ac_objext "* ) ;;
15388 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15389 esac
15392 cat >>confdefs.h <<\_ACEOF
15393 #define C_GETLOADAVG 1
15394 _ACEOF
15396 # Figure out what our getloadavg.c needs.
15397 ac_have_func=no
15398 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15399 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15400 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15401 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15402 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15405 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15406 else
15407 # Is the header compilable?
15408 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15409 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15416 $ac_includes_default
15417 #include <sys/dg_sys_info.h>
15418 _ACEOF
15419 rm -f conftest.$ac_objext
15420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } &&
15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } &&
15434 { ac_try='test -s conftest.$ac_objext'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_header_compiler=yes
15441 else
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ac_header_compiler=no
15447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15449 echo "${ECHO_T}$ac_header_compiler" >&6
15451 # Is the header present?
15452 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15453 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <sys/dg_sys_info.h>
15461 _ACEOF
15462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15464 ac_status=$?
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } >/dev/null; then
15470 if test -s conftest.err; then
15471 ac_cpp_err=$ac_c_preproc_warn_flag
15472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15473 else
15474 ac_cpp_err=
15476 else
15477 ac_cpp_err=yes
15479 if test -z "$ac_cpp_err"; then
15480 ac_header_preproc=yes
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_header_preproc=no
15487 rm -f conftest.err conftest.$ac_ext
15488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15489 echo "${ECHO_T}$ac_header_preproc" >&6
15491 # So? What about this header?
15492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15493 yes:no: )
15494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15495 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15497 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15498 ac_header_preproc=yes
15500 no:yes:* )
15501 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15502 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15504 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15506 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15508 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15510 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15512 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15514 cat <<\_ASBOX
15515 ## ------------------------------------------ ##
15516 ## Report this to the AC_PACKAGE_NAME lists. ##
15517 ## ------------------------------------------ ##
15518 _ASBOX
15520 sed "s/^/$as_me: WARNING: /" >&2
15522 esac
15523 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15524 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15525 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 else
15528 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15530 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15531 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15534 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15535 ac_have_func=yes
15537 cat >>confdefs.h <<\_ACEOF
15538 #define DGUX 1
15539 _ACEOF
15542 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15543 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15544 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547 ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-ldgc $LIBS"
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15556 /* Override any gcc2 internal prototype to avoid an error. */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 /* We use char because int might match the return type of a gcc2
15561 builtin and then its argument prototype would still apply. */
15562 char dg_sys_info ();
15564 main ()
15566 dg_sys_info ();
15568 return 0;
15570 _ACEOF
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573 (eval $ac_link) 2>conftest.er1
15574 ac_status=$?
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
15580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest$ac_exeext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_cv_lib_dgc_dg_sys_info=yes
15593 else
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ac_cv_lib_dgc_dg_sys_info=no
15599 rm -f conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15603 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15604 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15605 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15606 cat >>confdefs.h <<_ACEOF
15607 #define HAVE_LIBDGC 1
15608 _ACEOF
15610 LIBS="-ldgc $LIBS"
15618 if test "${ac_cv_header_locale_h+set}" = set; then
15619 echo "$as_me:$LINENO: checking for locale.h" >&5
15620 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15621 if test "${ac_cv_header_locale_h+set}" = set; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15625 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15626 else
15627 # Is the header compilable?
15628 echo "$as_me:$LINENO: checking locale.h usability" >&5
15629 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 $ac_includes_default
15637 #include <locale.h>
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15641 (eval $ac_compile) 2>conftest.er1
15642 ac_status=$?
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; } &&
15654 { ac_try='test -s conftest.$ac_objext'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_header_compiler=yes
15661 else
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_header_compiler=no
15667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15669 echo "${ECHO_T}$ac_header_compiler" >&6
15671 # Is the header present?
15672 echo "$as_me:$LINENO: checking locale.h presence" >&5
15673 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15674 cat >conftest.$ac_ext <<_ACEOF
15675 /* confdefs.h. */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15680 #include <locale.h>
15681 _ACEOF
15682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } >/dev/null; then
15690 if test -s conftest.err; then
15691 ac_cpp_err=$ac_c_preproc_warn_flag
15692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15693 else
15694 ac_cpp_err=
15696 else
15697 ac_cpp_err=yes
15699 if test -z "$ac_cpp_err"; then
15700 ac_header_preproc=yes
15701 else
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_header_preproc=no
15707 rm -f conftest.err conftest.$ac_ext
15708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15713 yes:no: )
15714 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15715 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15717 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15718 ac_header_preproc=yes
15720 no:yes:* )
15721 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15722 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15724 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15726 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15728 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15730 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15732 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15734 cat <<\_ASBOX
15735 ## ------------------------------------------ ##
15736 ## Report this to the AC_PACKAGE_NAME lists. ##
15737 ## ------------------------------------------ ##
15738 _ASBOX
15740 sed "s/^/$as_me: WARNING: /" >&2
15742 esac
15743 echo "$as_me:$LINENO: checking for locale.h" >&5
15744 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15745 if test "${ac_cv_header_locale_h+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748 ac_cv_header_locale_h=$ac_header_preproc
15750 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15751 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15757 for ac_func in setlocale
15759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15760 echo "$as_me:$LINENO: checking for $ac_func" >&5
15761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15762 if eval "test \"\${$as_ac_var+set}\" = set"; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765 cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h. */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15773 #define $ac_func innocuous_$ac_func
15775 /* System header to define __stub macros and hopefully few prototypes,
15776 which can conflict with char $ac_func (); below.
15777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15778 <limits.h> exists even on freestanding compilers. */
15780 #ifdef __STDC__
15781 # include <limits.h>
15782 #else
15783 # include <assert.h>
15784 #endif
15786 #undef $ac_func
15788 /* Override any gcc2 internal prototype to avoid an error. */
15789 #ifdef __cplusplus
15790 extern "C"
15792 #endif
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15795 char $ac_func ();
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15800 choke me
15801 #else
15802 char (*f) () = $ac_func;
15803 #endif
15804 #ifdef __cplusplus
15806 #endif
15809 main ()
15811 return f != $ac_func;
15813 return 0;
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>conftest.er1
15819 ac_status=$?
15820 grep -v '^ *+' conftest.er1 >conftest.err
15821 rm -f conftest.er1
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 eval "$as_ac_var=yes"
15838 else
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 eval "$as_ac_var=no"
15844 rm -f conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15849 if test `eval echo '${'$as_ac_var'}'` = yes; then
15850 cat >>confdefs.h <<_ACEOF
15851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15852 _ACEOF
15855 done
15858 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15859 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15860 # Irix 4.0.5F has the header but not the library.
15861 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15862 ac_have_func=yes
15864 cat >>confdefs.h <<\_ACEOF
15865 #define SVR4 1
15866 _ACEOF
15870 if test $ac_have_func = no; then
15871 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15872 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15873 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15874 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15878 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15879 else
15880 # Is the header compilable?
15881 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15882 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15883 cat >conftest.$ac_ext <<_ACEOF
15884 /* confdefs.h. */
15885 _ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 $ac_includes_default
15890 #include <inq_stats/cpustats.h>
15891 _ACEOF
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; } &&
15907 { ac_try='test -s conftest.$ac_objext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 ac_header_compiler=yes
15914 else
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_header_compiler=no
15920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15922 echo "${ECHO_T}$ac_header_compiler" >&6
15924 # Is the header present?
15925 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15926 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15927 cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h. */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <inq_stats/cpustats.h>
15934 _ACEOF
15935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } >/dev/null; then
15943 if test -s conftest.err; then
15944 ac_cpp_err=$ac_c_preproc_warn_flag
15945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15946 else
15947 ac_cpp_err=
15949 else
15950 ac_cpp_err=yes
15952 if test -z "$ac_cpp_err"; then
15953 ac_header_preproc=yes
15954 else
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_header_preproc=no
15960 rm -f conftest.err conftest.$ac_ext
15961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15962 echo "${ECHO_T}$ac_header_preproc" >&6
15964 # So? What about this header?
15965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15966 yes:no: )
15967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15968 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15970 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15971 ac_header_preproc=yes
15973 no:yes:* )
15974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15975 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15977 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15979 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15981 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15983 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15985 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15987 cat <<\_ASBOX
15988 ## ------------------------------------------ ##
15989 ## Report this to the AC_PACKAGE_NAME lists. ##
15990 ## ------------------------------------------ ##
15991 _ASBOX
15993 sed "s/^/$as_me: WARNING: /" >&2
15995 esac
15996 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15997 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15998 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16003 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16004 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16007 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16008 ac_have_func=yes
16010 cat >>confdefs.h <<\_ACEOF
16011 #define UMAX 1
16012 _ACEOF
16015 cat >>confdefs.h <<\_ACEOF
16016 #define UMAX4_3 1
16017 _ACEOF
16024 if test $ac_have_func = no; then
16025 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16026 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16027 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16028 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16031 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16032 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16033 else
16034 # Is the header compilable?
16035 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16036 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h. */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <sys/cpustats.h>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>conftest.er1
16049 ac_status=$?
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_header_compiler=yes
16068 else
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_compiler=no
16074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16076 echo "${ECHO_T}$ac_header_compiler" >&6
16078 # Is the header present?
16079 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16080 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16081 cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h. */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <sys/cpustats.h>
16088 _ACEOF
16089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16091 ac_status=$?
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } >/dev/null; then
16097 if test -s conftest.err; then
16098 ac_cpp_err=$ac_c_preproc_warn_flag
16099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16100 else
16101 ac_cpp_err=
16103 else
16104 ac_cpp_err=yes
16106 if test -z "$ac_cpp_err"; then
16107 ac_header_preproc=yes
16108 else
16109 echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 ac_header_preproc=no
16114 rm -f conftest.err conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116 echo "${ECHO_T}$ac_header_preproc" >&6
16118 # So? What about this header?
16119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16120 yes:no: )
16121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16122 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc=yes
16127 no:yes:* )
16128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16129 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16131 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16133 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16135 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16139 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16141 cat <<\_ASBOX
16142 ## ------------------------------------------ ##
16143 ## Report this to the AC_PACKAGE_NAME lists. ##
16144 ## ------------------------------------------ ##
16145 _ASBOX
16147 sed "s/^/$as_me: WARNING: /" >&2
16149 esac
16150 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16151 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16152 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16161 if test $ac_cv_header_sys_cpustats_h = yes; then
16162 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16163 #define UMAX 1
16164 _ACEOF
16171 if test $ac_have_func = no; then
16173 for ac_header in mach/mach.h
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16177 echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16184 else
16185 # Is the header compilable?
16186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16188 cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h. */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 $ac_includes_default
16195 #include <$ac_header>
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } &&
16206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16209 ac_status=$?
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; } &&
16212 { ac_try='test -s conftest.$ac_objext'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; }; then
16218 ac_header_compiler=yes
16219 else
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_header_compiler=no
16225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16227 echo "${ECHO_T}$ac_header_compiler" >&6
16229 # Is the header present?
16230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h. */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16238 #include <$ac_header>
16239 _ACEOF
16240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16242 ac_status=$?
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } >/dev/null; then
16248 if test -s conftest.err; then
16249 ac_cpp_err=$ac_c_preproc_warn_flag
16250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16251 else
16252 ac_cpp_err=
16254 else
16255 ac_cpp_err=yes
16257 if test -z "$ac_cpp_err"; then
16258 ac_header_preproc=yes
16259 else
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16263 ac_header_preproc=no
16265 rm -f conftest.err conftest.$ac_ext
16266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16267 echo "${ECHO_T}$ac_header_preproc" >&6
16269 # So? What about this header?
16270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271 yes:no: )
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276 ac_header_preproc=yes
16278 no:yes:* )
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16292 cat <<\_ASBOX
16293 ## ------------------------------------------ ##
16294 ## Report this to the AC_PACKAGE_NAME lists. ##
16295 ## ------------------------------------------ ##
16296 _ASBOX
16298 sed "s/^/$as_me: WARNING: /" >&2
16300 esac
16301 echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306 eval "$as_ac_Header=\$ac_header_preproc"
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h <<_ACEOF
16314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315 _ACEOF
16319 done
16324 for ac_header in nlist.h
16326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328 echo "$as_me:$LINENO: checking for $ac_header" >&5
16329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16335 else
16336 # Is the header compilable?
16337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <$ac_header>
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350 (eval $ac_compile) 2>conftest.er1
16351 ac_status=$?
16352 grep -v '^ *+' conftest.er1 >conftest.err
16353 rm -f conftest.er1
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest.$ac_objext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler=yes
16370 else
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_header_compiler=no
16376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6
16380 # Is the header present?
16381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <$ac_header>
16390 _ACEOF
16391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } >/dev/null; then
16399 if test -s conftest.err; then
16400 ac_cpp_err=$ac_c_preproc_warn_flag
16401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16402 else
16403 ac_cpp_err=
16405 else
16406 ac_cpp_err=yes
16408 if test -z "$ac_cpp_err"; then
16409 ac_header_preproc=yes
16410 else
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ac_header_preproc=no
16416 rm -f conftest.err conftest.$ac_ext
16417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418 echo "${ECHO_T}$ac_header_preproc" >&6
16420 # So? What about this header?
16421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16422 yes:no: )
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc=yes
16429 no:yes:* )
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16443 cat <<\_ASBOX
16444 ## ------------------------------------------ ##
16445 ## Report this to the AC_PACKAGE_NAME lists. ##
16446 ## ------------------------------------------ ##
16447 _ASBOX
16449 sed "s/^/$as_me: WARNING: /" >&2
16451 esac
16452 echo "$as_me:$LINENO: checking for $ac_header" >&5
16453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457 eval "$as_ac_Header=\$ac_header_preproc"
16459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16466 _ACEOF
16467 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16468 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16469 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472 cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h. */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 #include <nlist.h>
16481 main ()
16483 static struct nlist ac_aggr;
16484 if (ac_aggr.n_un.n_name)
16485 return 0;
16487 return 0;
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>conftest.er1
16493 ac_status=$?
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_member_struct_nlist_n_un_n_name=yes
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h. */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 #include <nlist.h>
16525 main ()
16527 static struct nlist ac_aggr;
16528 if (sizeof ac_aggr.n_un.n_name)
16529 return 0;
16531 return 0;
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536 (eval $ac_compile) 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try='test -s conftest.$ac_objext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_member_struct_nlist_n_un_n_name=yes
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_cv_member_struct_nlist_n_un_n_name=no
16562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16566 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16567 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16568 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16570 cat >>confdefs.h <<_ACEOF
16571 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16572 _ACEOF
16575 cat >>confdefs.h <<\_ACEOF
16576 #define NLIST_NAME_UNION 1
16577 _ACEOF
16584 done
16587 done
16590 # Some definitions of getloadavg require that the program be installed setgid.
16591 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16592 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16593 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16603 #ifdef LDAV_PRIVILEGED
16604 Yowza Am I SETGID yet
16605 #endif
16606 _ACEOF
16607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16608 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16609 ac_cv_func_getloadavg_setgid=yes
16610 else
16611 ac_cv_func_getloadavg_setgid=no
16613 rm -f conftest*
16616 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16617 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16618 if test $ac_cv_func_getloadavg_setgid = yes; then
16619 NEED_SETGID=true
16621 cat >>confdefs.h <<\_ACEOF
16622 #define GETLOADAVG_PRIVILEGED 1
16623 _ACEOF
16625 else
16626 NEED_SETGID=false
16629 if test $ac_cv_func_getloadavg_setgid = yes; then
16630 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16631 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16632 if test "${ac_cv_group_kmem+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16636 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16637 # If we got an error (system does not support symlinks), try without -L.
16638 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16639 ac_cv_group_kmem=`echo $ac_ls_output \
16640 | sed -ne 's/[ ][ ]*/ /g;
16641 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16642 / /s/.* //;p;'`
16645 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16646 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16647 KMEM_GROUP=$ac_cv_group_kmem
16649 if test "x$ac_save_LIBS" = x; then
16650 GETLOADAVG_LIBS=$LIBS
16651 else
16652 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16654 LIBS=$ac_save_LIBS
16658 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16659 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16660 if test "${ac_cv_sys_largefile_source+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663 while :; do
16664 ac_cv_sys_largefile_source=no
16665 cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 #include <stdio.h>
16673 main ()
16675 return !fseeko;
16677 return 0;
16679 _ACEOF
16680 rm -f conftest.$ac_objext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16682 (eval $ac_compile) 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; } &&
16695 { ac_try='test -s conftest.$ac_objext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 break
16702 else
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #define _LARGEFILE_SOURCE 1
16715 #include <stdio.h>
16717 main ()
16719 return !fseeko;
16721 return 0;
16723 _ACEOF
16724 rm -f conftest.$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; } &&
16739 { ac_try='test -s conftest.$ac_objext'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; }; then
16745 ac_cv_sys_largefile_source=1; break
16746 else
16747 echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16752 break
16753 done
16755 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16756 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16757 if test "$ac_cv_sys_largefile_source" != no; then
16759 cat >>confdefs.h <<_ACEOF
16760 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16761 _ACEOF
16764 rm -f conftest*
16766 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16767 # in glibc 2.1.3, but that breaks too many other things.
16768 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16769 echo "$as_me:$LINENO: checking for fseeko" >&5
16770 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16771 if test "${ac_cv_func_fseeko+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 #include <stdio.h>
16782 main ()
16784 return fseeko && fseeko (stdin, 0, 0);
16786 return 0;
16788 _ACEOF
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791 (eval $ac_link) 2>conftest.er1
16792 ac_status=$?
16793 grep -v '^ *+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16810 ac_cv_func_fseeko=yes
16811 else
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_func_fseeko=no
16817 rm -f conftest.err conftest.$ac_objext \
16818 conftest$ac_exeext conftest.$ac_ext
16820 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16821 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16822 if test $ac_cv_func_fseeko = yes; then
16824 cat >>confdefs.h <<\_ACEOF
16825 #define HAVE_FSEEKO 1
16826 _ACEOF
16831 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16832 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16833 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 else
16836 # Use it with a single arg.
16837 cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h. */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843 $ac_includes_default
16845 main ()
16847 getpgrp (0);
16849 return 0;
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16855 ac_status=$?
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; } &&
16867 { ac_try='test -s conftest.$ac_objext'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_func_getpgrp_void=no
16874 else
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16878 ac_cv_func_getpgrp_void=yes
16880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16883 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16884 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16885 if test $ac_cv_func_getpgrp_void = yes; then
16887 cat >>confdefs.h <<\_ACEOF
16888 #define GETPGRP_VOID 1
16889 _ACEOF
16895 for ac_func in strftime
16897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16898 echo "$as_me:$LINENO: checking for $ac_func" >&5
16899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16900 if eval "test \"\${$as_ac_var+set}\" = set"; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 else
16903 cat >conftest.$ac_ext <<_ACEOF
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16911 #define $ac_func innocuous_$ac_func
16913 /* System header to define __stub macros and hopefully few prototypes,
16914 which can conflict with char $ac_func (); below.
16915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16916 <limits.h> exists even on freestanding compilers. */
16918 #ifdef __STDC__
16919 # include <limits.h>
16920 #else
16921 # include <assert.h>
16922 #endif
16924 #undef $ac_func
16926 /* Override any gcc2 internal prototype to avoid an error. */
16927 #ifdef __cplusplus
16928 extern "C"
16930 #endif
16931 /* We use char because int might match the return type of a gcc2
16932 builtin and then its argument prototype would still apply. */
16933 char $ac_func ();
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938 choke me
16939 #else
16940 char (*f) () = $ac_func;
16941 #endif
16942 #ifdef __cplusplus
16944 #endif
16947 main ()
16949 return f != $ac_func;
16951 return 0;
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } &&
16963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest$ac_exeext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 eval "$as_ac_var=yes"
16976 else
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 eval "$as_ac_var=no"
16982 rm -f conftest.err conftest.$ac_objext \
16983 conftest$ac_exeext conftest.$ac_ext
16985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16987 if test `eval echo '${'$as_ac_var'}'` = yes; then
16988 cat >>confdefs.h <<_ACEOF
16989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16990 _ACEOF
16992 else
16993 # strftime is in -lintl on SCO UNIX.
16994 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16995 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16996 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 else
16999 ac_check_lib_save_LIBS=$LIBS
17000 LIBS="-lintl $LIBS"
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h. */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17008 /* Override any gcc2 internal prototype to avoid an error. */
17009 #ifdef __cplusplus
17010 extern "C"
17011 #endif
17012 /* We use char because int might match the return type of a gcc2
17013 builtin and then its argument prototype would still apply. */
17014 char strftime ();
17016 main ()
17018 strftime ();
17020 return 0;
17022 _ACEOF
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025 (eval $ac_link) 2>conftest.er1
17026 ac_status=$?
17027 grep -v '^ *+' conftest.er1 >conftest.err
17028 rm -f conftest.er1
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_lib_intl_strftime=yes
17045 else
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ac_cv_lib_intl_strftime=no
17051 rm -f conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17056 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17057 if test $ac_cv_lib_intl_strftime = yes; then
17058 cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_STRFTIME 1
17060 _ACEOF
17062 LIBS="-lintl $LIBS"
17066 done
17069 # UNIX98 PTYs.
17071 for ac_func in grantpt
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17076 if eval "test \"\${$as_ac_var+set}\" = set"; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h. */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17087 #define $ac_func innocuous_$ac_func
17089 /* System header to define __stub macros and hopefully few prototypes,
17090 which can conflict with char $ac_func (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17094 #ifdef __STDC__
17095 # include <limits.h>
17096 #else
17097 # include <assert.h>
17098 #endif
17100 #undef $ac_func
17102 /* Override any gcc2 internal prototype to avoid an error. */
17103 #ifdef __cplusplus
17104 extern "C"
17106 #endif
17107 /* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17109 char $ac_func ();
17110 /* The GNU C library defines this for functions which it implements
17111 to always fail with ENOSYS. Some functions are actually named
17112 something starting with __ and the normal name is an alias. */
17113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17114 choke me
17115 #else
17116 char (*f) () = $ac_func;
17117 #endif
17118 #ifdef __cplusplus
17120 #endif
17123 main ()
17125 return f != $ac_func;
17127 return 0;
17129 _ACEOF
17130 rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17132 (eval $ac_link) 2>conftest.er1
17133 ac_status=$?
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17142 ac_status=$?
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest$ac_exeext'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17151 eval "$as_ac_var=yes"
17152 else
17153 echo "$as_me: failed program was:" >&5
17154 sed 's/^/| /' conftest.$ac_ext >&5
17156 eval "$as_ac_var=no"
17158 rm -f conftest.err conftest.$ac_objext \
17159 conftest$ac_exeext conftest.$ac_ext
17161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17163 if test `eval echo '${'$as_ac_var'}'` = yes; then
17164 cat >>confdefs.h <<_ACEOF
17165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17166 _ACEOF
17169 done
17172 # PTY-related GNU extensions.
17174 for ac_func in getpt
17176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17179 if eval "test \"\${$as_ac_var+set}\" = set"; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define $ac_func innocuous_$ac_func
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17197 #ifdef __STDC__
17198 # include <limits.h>
17199 #else
17200 # include <assert.h>
17201 #endif
17203 #undef $ac_func
17205 /* Override any gcc2 internal prototype to avoid an error. */
17206 #ifdef __cplusplus
17207 extern "C"
17209 #endif
17210 /* We use char because int might match the return type of a gcc2
17211 builtin and then its argument prototype would still apply. */
17212 char $ac_func ();
17213 /* The GNU C library defines this for functions which it implements
17214 to always fail with ENOSYS. Some functions are actually named
17215 something starting with __ and the normal name is an alias. */
17216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17217 choke me
17218 #else
17219 char (*f) () = $ac_func;
17220 #endif
17221 #ifdef __cplusplus
17223 #endif
17226 main ()
17228 return f != $ac_func;
17230 return 0;
17232 _ACEOF
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235 (eval $ac_link) 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244 (eval $ac_try) 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; }; then
17254 eval "$as_ac_var=yes"
17255 else
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17259 eval "$as_ac_var=no"
17261 rm -f conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17266 if test `eval echo '${'$as_ac_var'}'` = yes; then
17267 cat >>confdefs.h <<_ACEOF
17268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17269 _ACEOF
17272 done
17275 # Check this now, so that we will NOT find the above functions in ncurses.
17276 # That is because we have not set up to link ncurses in lib-src.
17277 # It's better to believe a function is not available
17278 # than to expect to find it in ncurses.
17280 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17281 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17282 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17283 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285 ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-lncurses $LIBS"
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17294 /* Override any gcc2 internal prototype to avoid an error. */
17295 #ifdef __cplusplus
17296 extern "C"
17297 #endif
17298 /* We use char because int might match the return type of a gcc2
17299 builtin and then its argument prototype would still apply. */
17300 char tparm ();
17302 main ()
17304 tparm ();
17306 return 0;
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17311 (eval $ac_link) 2>conftest.er1
17312 ac_status=$?
17313 grep -v '^ *+' conftest.er1 >conftest.err
17314 rm -f conftest.er1
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } &&
17324 { ac_try='test -s conftest$ac_exeext'
17325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_lib_ncurses_tparm=yes
17331 else
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_lib_ncurses_tparm=no
17337 rm -f conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17339 LIBS=$ac_check_lib_save_LIBS
17341 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17342 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17343 if test $ac_cv_lib_ncurses_tparm = yes; then
17344 cat >>confdefs.h <<_ACEOF
17345 #define HAVE_LIBNCURSES 1
17346 _ACEOF
17348 LIBS="-lncurses $LIBS"
17353 # Do we need the Hesiod library to provide the support routines?
17354 if test "$with_hesiod" = yes ; then
17355 # Don't set $LIBS here -- see comments above.
17356 resolv=no
17357 echo "$as_me:$LINENO: checking for res_send" >&5
17358 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17359 if test "${ac_cv_func_res_send+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17370 #define res_send innocuous_res_send
17372 /* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char res_send (); below.
17374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17375 <limits.h> exists even on freestanding compilers. */
17377 #ifdef __STDC__
17378 # include <limits.h>
17379 #else
17380 # include <assert.h>
17381 #endif
17383 #undef res_send
17385 /* Override any gcc2 internal prototype to avoid an error. */
17386 #ifdef __cplusplus
17387 extern "C"
17389 #endif
17390 /* We use char because int might match the return type of a gcc2
17391 builtin and then its argument prototype would still apply. */
17392 char res_send ();
17393 /* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
17396 #if defined (__stub_res_send) || defined (__stub___res_send)
17397 choke me
17398 #else
17399 char (*f) () = res_send;
17400 #endif
17401 #ifdef __cplusplus
17403 #endif
17406 main ()
17408 return f != res_send;
17410 return 0;
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_func_res_send=yes
17435 else
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_cv_func_res_send=no
17441 rm -f conftest.err conftest.$ac_objext \
17442 conftest$ac_exeext conftest.$ac_ext
17444 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17445 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17446 if test $ac_cv_func_res_send = yes; then
17448 else
17449 echo "$as_me:$LINENO: checking for __res_send" >&5
17450 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17451 if test "${ac_cv_func___res_send+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17462 #define __res_send innocuous___res_send
17464 /* System header to define __stub macros and hopefully few prototypes,
17465 which can conflict with char __res_send (); below.
17466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17467 <limits.h> exists even on freestanding compilers. */
17469 #ifdef __STDC__
17470 # include <limits.h>
17471 #else
17472 # include <assert.h>
17473 #endif
17475 #undef __res_send
17477 /* Override any gcc2 internal prototype to avoid an error. */
17478 #ifdef __cplusplus
17479 extern "C"
17481 #endif
17482 /* We use char because int might match the return type of a gcc2
17483 builtin and then its argument prototype would still apply. */
17484 char __res_send ();
17485 /* The GNU C library defines this for functions which it implements
17486 to always fail with ENOSYS. Some functions are actually named
17487 something starting with __ and the normal name is an alias. */
17488 #if defined (__stub___res_send) || defined (__stub_____res_send)
17489 choke me
17490 #else
17491 char (*f) () = __res_send;
17492 #endif
17493 #ifdef __cplusplus
17495 #endif
17498 main ()
17500 return f != __res_send;
17502 return 0;
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17507 (eval $ac_link) 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } &&
17514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526 ac_cv_func___res_send=yes
17527 else
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ac_cv_func___res_send=no
17533 rm -f conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17536 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17537 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17538 if test $ac_cv_func___res_send = yes; then
17540 else
17541 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17542 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17543 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 ac_check_lib_save_LIBS=$LIBS
17547 LIBS="-lresolv $LIBS"
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17555 /* Override any gcc2 internal prototype to avoid an error. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 /* We use char because int might match the return type of a gcc2
17560 builtin and then its argument prototype would still apply. */
17561 char res_send ();
17563 main ()
17565 res_send ();
17567 return 0;
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572 (eval $ac_link) 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_lib_resolv_res_send=yes
17592 else
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 ac_cv_lib_resolv_res_send=no
17598 rm -f conftest.err conftest.$ac_objext \
17599 conftest$ac_exeext conftest.$ac_ext
17600 LIBS=$ac_check_lib_save_LIBS
17602 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17603 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17604 if test $ac_cv_lib_resolv_res_send = yes; then
17605 resolv=yes
17606 else
17607 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17608 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17609 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612 ac_check_lib_save_LIBS=$LIBS
17613 LIBS="-lresolv $LIBS"
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h. */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17621 /* Override any gcc2 internal prototype to avoid an error. */
17622 #ifdef __cplusplus
17623 extern "C"
17624 #endif
17625 /* We use char because int might match the return type of a gcc2
17626 builtin and then its argument prototype would still apply. */
17627 char __res_send ();
17629 main ()
17631 __res_send ();
17633 return 0;
17635 _ACEOF
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>conftest.er1
17639 ac_status=$?
17640 grep -v '^ *+' conftest.er1 >conftest.err
17641 rm -f conftest.er1
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest$ac_exeext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ac_cv_lib_resolv___res_send=yes
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ac_cv_lib_resolv___res_send=no
17664 rm -f conftest.err conftest.$ac_objext \
17665 conftest$ac_exeext conftest.$ac_ext
17666 LIBS=$ac_check_lib_save_LIBS
17668 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17669 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17670 if test $ac_cv_lib_resolv___res_send = yes; then
17671 resolv=yes
17680 if test "$resolv" = yes ; then
17681 RESOLVLIB=-lresolv
17683 cat >>confdefs.h <<\_ACEOF
17684 #define HAVE_LIBRESOLV 1
17685 _ACEOF
17687 else
17688 RESOLVLIB=
17690 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17691 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17692 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695 cat >conftest.$ac_ext <<_ACEOF
17696 /* confdefs.h. */
17697 _ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17703 #define hes_getmailhost innocuous_hes_getmailhost
17705 /* System header to define __stub macros and hopefully few prototypes,
17706 which can conflict with char hes_getmailhost (); below.
17707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17708 <limits.h> exists even on freestanding compilers. */
17710 #ifdef __STDC__
17711 # include <limits.h>
17712 #else
17713 # include <assert.h>
17714 #endif
17716 #undef hes_getmailhost
17718 /* Override any gcc2 internal prototype to avoid an error. */
17719 #ifdef __cplusplus
17720 extern "C"
17722 #endif
17723 /* We use char because int might match the return type of a gcc2
17724 builtin and then its argument prototype would still apply. */
17725 char hes_getmailhost ();
17726 /* The GNU C library defines this for functions which it implements
17727 to always fail with ENOSYS. Some functions are actually named
17728 something starting with __ and the normal name is an alias. */
17729 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17730 choke me
17731 #else
17732 char (*f) () = hes_getmailhost;
17733 #endif
17734 #ifdef __cplusplus
17736 #endif
17739 main ()
17741 return f != hes_getmailhost;
17743 return 0;
17745 _ACEOF
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>conftest.er1
17749 ac_status=$?
17750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17758 ac_status=$?
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest$ac_exeext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 ac_cv_func_hes_getmailhost=yes
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_cv_func_hes_getmailhost=no
17774 rm -f conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17777 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17778 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17779 if test $ac_cv_func_hes_getmailhost = yes; then
17781 else
17782 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17783 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17784 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 ac_check_lib_save_LIBS=$LIBS
17788 LIBS="-lhesiod $RESOLVLIB $LIBS"
17789 cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h. */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17796 /* Override any gcc2 internal prototype to avoid an error. */
17797 #ifdef __cplusplus
17798 extern "C"
17799 #endif
17800 /* We use char because int might match the return type of a gcc2
17801 builtin and then its argument prototype would still apply. */
17802 char hes_getmailhost ();
17804 main ()
17806 hes_getmailhost ();
17808 return 0;
17810 _ACEOF
17811 rm -f conftest.$ac_objext conftest$ac_exeext
17812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17813 (eval $ac_link) 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 ac_cv_lib_hesiod_hes_getmailhost=yes
17833 else
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_cv_lib_hesiod_hes_getmailhost=no
17839 rm -f conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17844 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17845 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17847 cat >>confdefs.h <<\_ACEOF
17848 #define HAVE_LIBHESIOD 1
17849 _ACEOF
17851 else
17859 # These tell us which Kerberos-related libraries to use.
17860 if test "${with_kerberos+set}" = set; then
17862 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17863 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17864 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 ac_check_lib_save_LIBS=$LIBS
17868 LIBS="-lcom_err $LIBS"
17869 cat >conftest.$ac_ext <<_ACEOF
17870 /* confdefs.h. */
17871 _ACEOF
17872 cat confdefs.h >>conftest.$ac_ext
17873 cat >>conftest.$ac_ext <<_ACEOF
17874 /* end confdefs.h. */
17876 /* Override any gcc2 internal prototype to avoid an error. */
17877 #ifdef __cplusplus
17878 extern "C"
17879 #endif
17880 /* We use char because int might match the return type of a gcc2
17881 builtin and then its argument prototype would still apply. */
17882 char com_err ();
17884 main ()
17886 com_err ();
17888 return 0;
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893 (eval $ac_link) 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_lib_com_err_com_err=yes
17913 else
17914 echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_cv_lib_com_err_com_err=no
17919 rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
17921 LIBS=$ac_check_lib_save_LIBS
17923 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17924 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17925 if test $ac_cv_lib_com_err_com_err = yes; then
17926 cat >>confdefs.h <<_ACEOF
17927 #define HAVE_LIBCOM_ERR 1
17928 _ACEOF
17930 LIBS="-lcom_err $LIBS"
17935 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17936 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17937 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940 ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-lk5crypto $LIBS"
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h. */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17949 /* Override any gcc2 internal prototype to avoid an error. */
17950 #ifdef __cplusplus
17951 extern "C"
17952 #endif
17953 /* We use char because int might match the return type of a gcc2
17954 builtin and then its argument prototype would still apply. */
17955 char mit_des_cbc_encrypt ();
17957 main ()
17959 mit_des_cbc_encrypt ();
17961 return 0;
17963 _ACEOF
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>conftest.er1
17967 ac_status=$?
17968 grep -v '^ *+' conftest.er1 >conftest.err
17969 rm -f conftest.er1
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17986 else
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17992 rm -f conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 LIBS=$ac_check_lib_save_LIBS
17996 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17997 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17998 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17999 cat >>confdefs.h <<_ACEOF
18000 #define HAVE_LIBK5CRYPTO 1
18001 _ACEOF
18003 LIBS="-lk5crypto $LIBS"
18008 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18009 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18010 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 else
18013 ac_check_lib_save_LIBS=$LIBS
18014 LIBS="-lcrypto $LIBS"
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18022 /* Override any gcc2 internal prototype to avoid an error. */
18023 #ifdef __cplusplus
18024 extern "C"
18025 #endif
18026 /* We use char because int might match the return type of a gcc2
18027 builtin and then its argument prototype would still apply. */
18028 char mit_des_cbc_encrypt ();
18030 main ()
18032 mit_des_cbc_encrypt ();
18034 return 0;
18036 _ACEOF
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>conftest.er1
18040 ac_status=$?
18041 grep -v '^ *+' conftest.er1 >conftest.err
18042 rm -f conftest.er1
18043 cat conftest.err >&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; } &&
18052 { ac_try='test -s conftest$ac_exeext'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; }; then
18058 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18059 else
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18063 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18065 rm -f conftest.err conftest.$ac_objext \
18066 conftest$ac_exeext conftest.$ac_ext
18067 LIBS=$ac_check_lib_save_LIBS
18069 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18070 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18071 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18072 cat >>confdefs.h <<_ACEOF
18073 #define HAVE_LIBCRYPTO 1
18074 _ACEOF
18076 LIBS="-lcrypto $LIBS"
18081 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18082 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18083 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085 else
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lkrb5 $LIBS"
18088 cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h. */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18095 /* Override any gcc2 internal prototype to avoid an error. */
18096 #ifdef __cplusplus
18097 extern "C"
18098 #endif
18099 /* We use char because int might match the return type of a gcc2
18100 builtin and then its argument prototype would still apply. */
18101 char krb5_init_context ();
18103 main ()
18105 krb5_init_context ();
18107 return 0;
18109 _ACEOF
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18112 (eval $ac_link) 2>conftest.er1
18113 ac_status=$?
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
18119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_lib_krb5_krb5_init_context=yes
18132 else
18133 echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18136 ac_cv_lib_krb5_krb5_init_context=no
18138 rm -f conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18140 LIBS=$ac_check_lib_save_LIBS
18142 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18143 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18144 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18145 cat >>confdefs.h <<_ACEOF
18146 #define HAVE_LIBKRB5 1
18147 _ACEOF
18149 LIBS="-lkrb5 $LIBS"
18153 if test "${with_kerberos5+set}" != set; then
18155 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18156 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18157 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160 ac_check_lib_save_LIBS=$LIBS
18161 LIBS="-ldes425 $LIBS"
18162 cat >conftest.$ac_ext <<_ACEOF
18163 /* confdefs.h. */
18164 _ACEOF
18165 cat confdefs.h >>conftest.$ac_ext
18166 cat >>conftest.$ac_ext <<_ACEOF
18167 /* end confdefs.h. */
18169 /* Override any gcc2 internal prototype to avoid an error. */
18170 #ifdef __cplusplus
18171 extern "C"
18172 #endif
18173 /* We use char because int might match the return type of a gcc2
18174 builtin and then its argument prototype would still apply. */
18175 char des_cbc_encrypt ();
18177 main ()
18179 des_cbc_encrypt ();
18181 return 0;
18183 _ACEOF
18184 rm -f conftest.$ac_objext conftest$ac_exeext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186 (eval $ac_link) 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
18193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest$ac_exeext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_cv_lib_des425_des_cbc_encrypt=yes
18206 else
18207 echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 ac_cv_lib_des425_des_cbc_encrypt=no
18212 rm -f conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18214 LIBS=$ac_check_lib_save_LIBS
18216 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18217 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18218 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define HAVE_LIBDES425 1
18221 _ACEOF
18223 LIBS="-ldes425 $LIBS"
18225 else
18227 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18228 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18229 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 else
18232 ac_check_lib_save_LIBS=$LIBS
18233 LIBS="-ldes $LIBS"
18234 cat >conftest.$ac_ext <<_ACEOF
18235 /* confdefs.h. */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18241 /* Override any gcc2 internal prototype to avoid an error. */
18242 #ifdef __cplusplus
18243 extern "C"
18244 #endif
18245 /* We use char because int might match the return type of a gcc2
18246 builtin and then its argument prototype would still apply. */
18247 char des_cbc_encrypt ();
18249 main ()
18251 des_cbc_encrypt ();
18253 return 0;
18255 _ACEOF
18256 rm -f conftest.$ac_objext conftest$ac_exeext
18257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18258 (eval $ac_link) 2>conftest.er1
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
18265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; } &&
18271 { ac_try='test -s conftest$ac_exeext'
18272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_lib_des_des_cbc_encrypt=yes
18278 else
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_cv_lib_des_des_cbc_encrypt=no
18284 rm -f conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286 LIBS=$ac_check_lib_save_LIBS
18288 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18289 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18290 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18291 cat >>confdefs.h <<_ACEOF
18292 #define HAVE_LIBDES 1
18293 _ACEOF
18295 LIBS="-ldes $LIBS"
18302 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18303 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18304 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-lkrb4 $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 /* Override any gcc2 internal prototype to avoid an error. */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 /* We use char because int might match the return type of a gcc2
18321 builtin and then its argument prototype would still apply. */
18322 char krb_get_cred ();
18324 main ()
18326 krb_get_cred ();
18328 return 0;
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333 (eval $ac_link) 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest$ac_exeext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 ac_cv_lib_krb4_krb_get_cred=yes
18353 else
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 ac_cv_lib_krb4_krb_get_cred=no
18359 rm -f conftest.err conftest.$ac_objext \
18360 conftest$ac_exeext conftest.$ac_ext
18361 LIBS=$ac_check_lib_save_LIBS
18363 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18364 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18365 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define HAVE_LIBKRB4 1
18368 _ACEOF
18370 LIBS="-lkrb4 $LIBS"
18372 else
18374 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18375 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18376 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 else
18379 ac_check_lib_save_LIBS=$LIBS
18380 LIBS="-lkrb $LIBS"
18381 cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h. */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 /* Override any gcc2 internal prototype to avoid an error. */
18389 #ifdef __cplusplus
18390 extern "C"
18391 #endif
18392 /* We use char because int might match the return type of a gcc2
18393 builtin and then its argument prototype would still apply. */
18394 char krb_get_cred ();
18396 main ()
18398 krb_get_cred ();
18400 return 0;
18402 _ACEOF
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18405 (eval $ac_link) 2>conftest.er1
18406 ac_status=$?
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
18412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; } &&
18418 { ac_try='test -s conftest$ac_exeext'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_cv_lib_krb_krb_get_cred=yes
18425 else
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_lib_krb_krb_get_cred=no
18431 rm -f conftest.err conftest.$ac_objext \
18432 conftest$ac_exeext conftest.$ac_ext
18433 LIBS=$ac_check_lib_save_LIBS
18435 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18436 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18437 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18438 cat >>confdefs.h <<_ACEOF
18439 #define HAVE_LIBKRB 1
18440 _ACEOF
18442 LIBS="-lkrb $LIBS"
18450 if test "${with_kerberos5+set}" = set; then
18452 for ac_header in krb5.h
18454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18456 echo "$as_me:$LINENO: checking for $ac_header" >&5
18457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18463 else
18464 # Is the header compilable?
18465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18467 cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h. */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 $ac_includes_default
18474 #include <$ac_header>
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18478 (eval $ac_compile) 2>conftest.er1
18479 ac_status=$?
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } &&
18485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; } &&
18491 { ac_try='test -s conftest.$ac_objext'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497 ac_header_compiler=yes
18498 else
18499 echo "$as_me: failed program was:" >&5
18500 sed 's/^/| /' conftest.$ac_ext >&5
18502 ac_header_compiler=no
18504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18506 echo "${ECHO_T}$ac_header_compiler" >&6
18508 # Is the header present?
18509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18511 cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h. */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #include <$ac_header>
18518 _ACEOF
18519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } >/dev/null; then
18527 if test -s conftest.err; then
18528 ac_cpp_err=$ac_c_preproc_warn_flag
18529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18530 else
18531 ac_cpp_err=
18533 else
18534 ac_cpp_err=yes
18536 if test -z "$ac_cpp_err"; then
18537 ac_header_preproc=yes
18538 else
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_header_preproc=no
18544 rm -f conftest.err conftest.$ac_ext
18545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18546 echo "${ECHO_T}$ac_header_preproc" >&6
18548 # So? What about this header?
18549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18550 yes:no: )
18551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18555 ac_header_preproc=yes
18557 no:yes:* )
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18561 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18565 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18568 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18571 cat <<\_ASBOX
18572 ## ------------------------------------------ ##
18573 ## Report this to the AC_PACKAGE_NAME lists. ##
18574 ## ------------------------------------------ ##
18575 _ASBOX
18577 sed "s/^/$as_me: WARNING: /" >&2
18579 esac
18580 echo "$as_me:$LINENO: checking for $ac_header" >&5
18581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585 eval "$as_ac_Header=\$ac_header_preproc"
18587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18592 cat >>confdefs.h <<_ACEOF
18593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18594 _ACEOF
18598 done
18600 else
18602 for ac_header in des.h
18604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18606 echo "$as_me:$LINENO: checking for $ac_header" >&5
18607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18613 else
18614 # Is the header compilable?
18615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18617 cat >conftest.$ac_ext <<_ACEOF
18618 /* confdefs.h. */
18619 _ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 $ac_includes_default
18624 #include <$ac_header>
18625 _ACEOF
18626 rm -f conftest.$ac_objext
18627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18628 (eval $ac_compile) 2>conftest.er1
18629 ac_status=$?
18630 grep -v '^ *+' conftest.er1 >conftest.err
18631 rm -f conftest.er1
18632 cat conftest.err >&5
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } &&
18635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18647 ac_header_compiler=yes
18648 else
18649 echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_header_compiler=no
18654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18656 echo "${ECHO_T}$ac_header_compiler" >&6
18658 # Is the header present?
18659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18661 cat >conftest.$ac_ext <<_ACEOF
18662 /* confdefs.h. */
18663 _ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18667 #include <$ac_header>
18668 _ACEOF
18669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } >/dev/null; then
18677 if test -s conftest.err; then
18678 ac_cpp_err=$ac_c_preproc_warn_flag
18679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18680 else
18681 ac_cpp_err=
18683 else
18684 ac_cpp_err=yes
18686 if test -z "$ac_cpp_err"; then
18687 ac_header_preproc=yes
18688 else
18689 echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18692 ac_header_preproc=no
18694 rm -f conftest.err conftest.$ac_ext
18695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18696 echo "${ECHO_T}$ac_header_preproc" >&6
18698 # So? What about this header?
18699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18700 yes:no: )
18701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18705 ac_header_preproc=yes
18707 no:yes:* )
18708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18721 cat <<\_ASBOX
18722 ## ------------------------------------------ ##
18723 ## Report this to the AC_PACKAGE_NAME lists. ##
18724 ## ------------------------------------------ ##
18725 _ASBOX
18727 sed "s/^/$as_me: WARNING: /" >&2
18729 esac
18730 echo "$as_me:$LINENO: checking for $ac_header" >&5
18731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18733 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735 eval "$as_ac_Header=\$ac_header_preproc"
18737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18742 cat >>confdefs.h <<_ACEOF
18743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18744 _ACEOF
18746 else
18748 for ac_header in kerberosIV/des.h
18750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18752 echo "$as_me:$LINENO: checking for $ac_header" >&5
18753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18759 else
18760 # Is the header compilable?
18761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h. */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 $ac_includes_default
18770 #include <$ac_header>
18771 _ACEOF
18772 rm -f conftest.$ac_objext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18774 (eval $ac_compile) 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest.$ac_objext'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_header_compiler=yes
18794 else
18795 echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18798 ac_header_compiler=no
18800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18802 echo "${ECHO_T}$ac_header_compiler" >&6
18804 # Is the header present?
18805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18807 cat >conftest.$ac_ext <<_ACEOF
18808 /* confdefs.h. */
18809 _ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 #include <$ac_header>
18814 _ACEOF
18815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18817 ac_status=$?
18818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } >/dev/null; then
18823 if test -s conftest.err; then
18824 ac_cpp_err=$ac_c_preproc_warn_flag
18825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18826 else
18827 ac_cpp_err=
18829 else
18830 ac_cpp_err=yes
18832 if test -z "$ac_cpp_err"; then
18833 ac_header_preproc=yes
18834 else
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ac_header_preproc=no
18840 rm -f conftest.err conftest.$ac_ext
18841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18842 echo "${ECHO_T}$ac_header_preproc" >&6
18844 # So? What about this header?
18845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18846 yes:no: )
18847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18851 ac_header_preproc=yes
18853 no:yes:* )
18854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18867 cat <<\_ASBOX
18868 ## ------------------------------------------ ##
18869 ## Report this to the AC_PACKAGE_NAME lists. ##
18870 ## ------------------------------------------ ##
18871 _ASBOX
18873 sed "s/^/$as_me: WARNING: /" >&2
18875 esac
18876 echo "$as_me:$LINENO: checking for $ac_header" >&5
18877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881 eval "$as_ac_Header=\$ac_header_preproc"
18883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18888 cat >>confdefs.h <<_ACEOF
18889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18890 _ACEOF
18892 else
18894 for ac_header in kerberos/des.h
18896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18898 echo "$as_me:$LINENO: checking for $ac_header" >&5
18899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18905 else
18906 # Is the header compilable?
18907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h. */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18915 $ac_includes_default
18916 #include <$ac_header>
18917 _ACEOF
18918 rm -f conftest.$ac_objext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920 (eval $ac_compile) 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest.$ac_objext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_header_compiler=yes
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_header_compiler=no
18946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18948 echo "${ECHO_T}$ac_header_compiler" >&6
18950 # Is the header present?
18951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18953 cat >conftest.$ac_ext <<_ACEOF
18954 /* confdefs.h. */
18955 _ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18959 #include <$ac_header>
18960 _ACEOF
18961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18963 ac_status=$?
18964 grep -v '^ *+' conftest.er1 >conftest.err
18965 rm -f conftest.er1
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } >/dev/null; then
18969 if test -s conftest.err; then
18970 ac_cpp_err=$ac_c_preproc_warn_flag
18971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18972 else
18973 ac_cpp_err=
18975 else
18976 ac_cpp_err=yes
18978 if test -z "$ac_cpp_err"; then
18979 ac_header_preproc=yes
18980 else
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 ac_header_preproc=no
18986 rm -f conftest.err conftest.$ac_ext
18987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18988 echo "${ECHO_T}$ac_header_preproc" >&6
18990 # So? What about this header?
18991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18992 yes:no: )
18993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18997 ac_header_preproc=yes
18999 no:yes:* )
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19013 cat <<\_ASBOX
19014 ## ------------------------------------------ ##
19015 ## Report this to the AC_PACKAGE_NAME lists. ##
19016 ## ------------------------------------------ ##
19017 _ASBOX
19019 sed "s/^/$as_me: WARNING: /" >&2
19021 esac
19022 echo "$as_me:$LINENO: checking for $ac_header" >&5
19023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 else
19027 eval "$as_ac_Header=\$ac_header_preproc"
19029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19034 cat >>confdefs.h <<_ACEOF
19035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19036 _ACEOF
19040 done
19044 done
19048 done
19051 for ac_header in krb.h
19053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19055 echo "$as_me:$LINENO: checking for $ac_header" >&5
19056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19062 else
19063 # Is the header compilable?
19064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19066 cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h. */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072 $ac_includes_default
19073 #include <$ac_header>
19074 _ACEOF
19075 rm -f conftest.$ac_objext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19077 (eval $ac_compile) 2>conftest.er1
19078 ac_status=$?
19079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19093 ac_status=$?
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096 ac_header_compiler=yes
19097 else
19098 echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.$ac_ext >&5
19101 ac_header_compiler=no
19103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105 echo "${ECHO_T}$ac_header_compiler" >&6
19107 # Is the header present?
19108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 #include <$ac_header>
19117 _ACEOF
19118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19120 ac_status=$?
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } >/dev/null; then
19126 if test -s conftest.err; then
19127 ac_cpp_err=$ac_c_preproc_warn_flag
19128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19129 else
19130 ac_cpp_err=
19132 else
19133 ac_cpp_err=yes
19135 if test -z "$ac_cpp_err"; then
19136 ac_header_preproc=yes
19137 else
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 ac_header_preproc=no
19143 rm -f conftest.err conftest.$ac_ext
19144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19145 echo "${ECHO_T}$ac_header_preproc" >&6
19147 # So? What about this header?
19148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19149 yes:no: )
19150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19154 ac_header_preproc=yes
19156 no:yes:* )
19157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19170 cat <<\_ASBOX
19171 ## ------------------------------------------ ##
19172 ## Report this to the AC_PACKAGE_NAME lists. ##
19173 ## ------------------------------------------ ##
19174 _ASBOX
19176 sed "s/^/$as_me: WARNING: /" >&2
19178 esac
19179 echo "$as_me:$LINENO: checking for $ac_header" >&5
19180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184 eval "$as_ac_Header=\$ac_header_preproc"
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19191 cat >>confdefs.h <<_ACEOF
19192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19193 _ACEOF
19195 else
19197 for ac_header in kerberosIV/krb.h
19199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19201 echo "$as_me:$LINENO: checking for $ac_header" >&5
19202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19208 else
19209 # Is the header compilable?
19210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h. */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19219 #include <$ac_header>
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223 (eval $ac_compile) 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_header_compiler=yes
19243 else
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_header_compiler=no
19249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251 echo "${ECHO_T}$ac_header_compiler" >&6
19253 # Is the header present?
19254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <$ac_header>
19263 _ACEOF
19264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } >/dev/null; then
19272 if test -s conftest.err; then
19273 ac_cpp_err=$ac_c_preproc_warn_flag
19274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19275 else
19276 ac_cpp_err=
19278 else
19279 ac_cpp_err=yes
19281 if test -z "$ac_cpp_err"; then
19282 ac_header_preproc=yes
19283 else
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 ac_header_preproc=no
19289 rm -f conftest.err conftest.$ac_ext
19290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6
19293 # So? What about this header?
19294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19295 yes:no: )
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19300 ac_header_preproc=yes
19302 no:yes:* )
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19316 cat <<\_ASBOX
19317 ## ------------------------------------------ ##
19318 ## Report this to the AC_PACKAGE_NAME lists. ##
19319 ## ------------------------------------------ ##
19320 _ASBOX
19322 sed "s/^/$as_me: WARNING: /" >&2
19324 esac
19325 echo "$as_me:$LINENO: checking for $ac_header" >&5
19326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330 eval "$as_ac_Header=\$ac_header_preproc"
19332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19337 cat >>confdefs.h <<_ACEOF
19338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19339 _ACEOF
19341 else
19343 for ac_header in kerberos/krb.h
19345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19347 echo "$as_me:$LINENO: checking for $ac_header" >&5
19348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19354 else
19355 # Is the header compilable?
19356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h. */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 $ac_includes_default
19365 #include <$ac_header>
19366 _ACEOF
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_header_compiler=yes
19389 else
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_header_compiler=no
19395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19397 echo "${ECHO_T}$ac_header_compiler" >&6
19399 # Is the header present?
19400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h. */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <$ac_header>
19409 _ACEOF
19410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } >/dev/null; then
19418 if test -s conftest.err; then
19419 ac_cpp_err=$ac_c_preproc_warn_flag
19420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19421 else
19422 ac_cpp_err=
19424 else
19425 ac_cpp_err=yes
19427 if test -z "$ac_cpp_err"; then
19428 ac_header_preproc=yes
19429 else
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_header_preproc=no
19435 rm -f conftest.err conftest.$ac_ext
19436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19437 echo "${ECHO_T}$ac_header_preproc" >&6
19439 # So? What about this header?
19440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19441 yes:no: )
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19446 ac_header_preproc=yes
19448 no:yes:* )
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19462 cat <<\_ASBOX
19463 ## ------------------------------------------ ##
19464 ## Report this to the AC_PACKAGE_NAME lists. ##
19465 ## ------------------------------------------ ##
19466 _ASBOX
19468 sed "s/^/$as_me: WARNING: /" >&2
19470 esac
19471 echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 eval "$as_ac_Header=\$ac_header_preproc"
19478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19485 _ACEOF
19489 done
19493 done
19497 done
19501 for ac_header in com_err.h
19503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19505 echo "$as_me:$LINENO: checking for $ac_header" >&5
19506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19512 else
19513 # Is the header compilable?
19514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 $ac_includes_default
19523 #include <$ac_header>
19524 _ACEOF
19525 rm -f conftest.$ac_objext
19526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19527 (eval $ac_compile) 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } &&
19540 { ac_try='test -s conftest.$ac_objext'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_header_compiler=yes
19547 else
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_header_compiler=no
19553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19555 echo "${ECHO_T}$ac_header_compiler" >&6
19557 # Is the header present?
19558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19560 cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h. */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19566 #include <$ac_header>
19567 _ACEOF
19568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19570 ac_status=$?
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } >/dev/null; then
19576 if test -s conftest.err; then
19577 ac_cpp_err=$ac_c_preproc_warn_flag
19578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19579 else
19580 ac_cpp_err=
19582 else
19583 ac_cpp_err=yes
19585 if test -z "$ac_cpp_err"; then
19586 ac_header_preproc=yes
19587 else
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19591 ac_header_preproc=no
19593 rm -f conftest.err conftest.$ac_ext
19594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19595 echo "${ECHO_T}$ac_header_preproc" >&6
19597 # So? What about this header?
19598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19599 yes:no: )
19600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19604 ac_header_preproc=yes
19606 no:yes:* )
19607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19620 cat <<\_ASBOX
19621 ## ------------------------------------------ ##
19622 ## Report this to the AC_PACKAGE_NAME lists. ##
19623 ## ------------------------------------------ ##
19624 _ASBOX
19626 sed "s/^/$as_me: WARNING: /" >&2
19628 esac
19629 echo "$as_me:$LINENO: checking for $ac_header" >&5
19630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 else
19634 eval "$as_ac_Header=\$ac_header_preproc"
19636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19641 cat >>confdefs.h <<_ACEOF
19642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19643 _ACEOF
19647 done
19651 # Solaris requires -lintl if you want strerror (which calls dgettext)
19652 # to return localized messages.
19654 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19655 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19656 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 else
19659 ac_check_lib_save_LIBS=$LIBS
19660 LIBS="-lintl $LIBS"
19661 cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h. */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19668 /* Override any gcc2 internal prototype to avoid an error. */
19669 #ifdef __cplusplus
19670 extern "C"
19671 #endif
19672 /* We use char because int might match the return type of a gcc2
19673 builtin and then its argument prototype would still apply. */
19674 char dgettext ();
19676 main ()
19678 dgettext ();
19680 return 0;
19682 _ACEOF
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19685 (eval $ac_link) 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; } &&
19698 { ac_try='test -s conftest$ac_exeext'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
19704 ac_cv_lib_intl_dgettext=yes
19705 else
19706 echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19709 ac_cv_lib_intl_dgettext=no
19711 rm -f conftest.err conftest.$ac_objext \
19712 conftest$ac_exeext conftest.$ac_ext
19713 LIBS=$ac_check_lib_save_LIBS
19715 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19716 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19717 if test $ac_cv_lib_intl_dgettext = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_LIBINTL 1
19720 _ACEOF
19722 LIBS="-lintl $LIBS"
19727 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19728 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19729 if test "${emacs_cv_localtime_cache+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732 if test x$ac_cv_func_tzset = xyes; then
19733 if test "$cross_compiling" = yes; then
19734 # If we have tzset, assume the worst when cross-compiling.
19735 emacs_cv_localtime_cache=yes
19736 else
19737 cat >conftest.$ac_ext <<_ACEOF
19738 /* confdefs.h. */
19739 _ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 #include <time.h>
19744 extern char **environ;
19745 unset_TZ ()
19747 char **from, **to;
19748 for (to = from = environ; (*to = *from); from++)
19749 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19750 to++;
19752 char TZ_GMT0[] = "TZ=GMT0";
19753 char TZ_PST8[] = "TZ=PST8";
19754 main()
19756 time_t now = time ((time_t *) 0);
19757 int hour_GMT0, hour_unset;
19758 if (putenv (TZ_GMT0) != 0)
19759 exit (1);
19760 hour_GMT0 = localtime (&now)->tm_hour;
19761 unset_TZ ();
19762 hour_unset = localtime (&now)->tm_hour;
19763 if (putenv (TZ_PST8) != 0)
19764 exit (1);
19765 if (localtime (&now)->tm_hour == hour_GMT0)
19766 exit (1);
19767 unset_TZ ();
19768 if (localtime (&now)->tm_hour != hour_unset)
19769 exit (1);
19770 exit (0);
19772 _ACEOF
19773 rm -f conftest$ac_exeext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19775 (eval $ac_link) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 emacs_cv_localtime_cache=no
19785 else
19786 echo "$as_me: program exited with status $ac_status" >&5
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ( exit $ac_status )
19791 emacs_cv_localtime_cache=yes
19793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19795 else
19796 # If we lack tzset, report that localtime does not cache TZ,
19797 # since we can't invalidate the cache if we don't have tzset.
19798 emacs_cv_localtime_cache=no
19801 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19802 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19803 if test $emacs_cv_localtime_cache = yes; then
19805 cat >>confdefs.h <<\_ACEOF
19806 #define LOCALTIME_CACHE 1
19807 _ACEOF
19811 if test "x$HAVE_TIMEVAL" = xyes; then
19813 for ac_func in gettimeofday
19815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19816 echo "$as_me:$LINENO: checking for $ac_func" >&5
19817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19818 if eval "test \"\${$as_ac_var+set}\" = set"; then
19819 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h. */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19829 #define $ac_func innocuous_$ac_func
19831 /* System header to define __stub macros and hopefully few prototypes,
19832 which can conflict with char $ac_func (); below.
19833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19834 <limits.h> exists even on freestanding compilers. */
19836 #ifdef __STDC__
19837 # include <limits.h>
19838 #else
19839 # include <assert.h>
19840 #endif
19842 #undef $ac_func
19844 /* Override any gcc2 internal prototype to avoid an error. */
19845 #ifdef __cplusplus
19846 extern "C"
19848 #endif
19849 /* We use char because int might match the return type of a gcc2
19850 builtin and then its argument prototype would still apply. */
19851 char $ac_func ();
19852 /* The GNU C library defines this for functions which it implements
19853 to always fail with ENOSYS. Some functions are actually named
19854 something starting with __ and the normal name is an alias. */
19855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19856 choke me
19857 #else
19858 char (*f) () = $ac_func;
19859 #endif
19860 #ifdef __cplusplus
19862 #endif
19865 main ()
19867 return f != $ac_func;
19869 return 0;
19871 _ACEOF
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19874 (eval $ac_link) 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
19881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; } &&
19887 { ac_try='test -s conftest$ac_exeext'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 eval "$as_ac_var=yes"
19894 else
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19898 eval "$as_ac_var=no"
19900 rm -f conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19905 if test `eval echo '${'$as_ac_var'}'` = yes; then
19906 cat >>confdefs.h <<_ACEOF
19907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19908 _ACEOF
19911 done
19913 if test $ac_cv_func_gettimeofday = yes; then
19914 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19915 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19916 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919 cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h. */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19926 #ifdef TIME_WITH_SYS_TIME
19927 #include <sys/time.h>
19928 #include <time.h>
19929 #else
19930 #ifdef HAVE_SYS_TIME_H
19931 #include <sys/time.h>
19932 #else
19933 #include <time.h>
19934 #endif
19935 #endif
19937 main ()
19939 struct timeval time;
19940 gettimeofday (&time, 0);
19942 return 0;
19944 _ACEOF
19945 rm -f conftest.$ac_objext
19946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19947 (eval $ac_compile) 2>conftest.er1
19948 ac_status=$?
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } &&
19954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19957 ac_status=$?
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; } &&
19960 { ac_try='test -s conftest.$ac_objext'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966 emacs_cv_gettimeofday_two_arguments=yes
19967 else
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 emacs_cv_gettimeofday_two_arguments=no
19973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19975 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19976 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19977 if test $emacs_cv_gettimeofday_two_arguments = no; then
19979 cat >>confdefs.h <<\_ACEOF
19980 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19981 _ACEOF
19987 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19988 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19989 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19990 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19991 echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h. */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 #include <sys/types.h>
20000 #include <$ac_cv_struct_tm>
20004 main ()
20006 static struct tm ac_aggr;
20007 if (ac_aggr.tm_zone)
20008 return 0;
20010 return 0;
20012 _ACEOF
20013 rm -f conftest.$ac_objext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015 (eval $ac_compile) 2>conftest.er1
20016 ac_status=$?
20017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
20022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; } &&
20028 { ac_try='test -s conftest.$ac_objext'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20034 ac_cv_member_struct_tm_tm_zone=yes
20035 else
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h. */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 #include <sys/types.h>
20046 #include <$ac_cv_struct_tm>
20050 main ()
20052 static struct tm ac_aggr;
20053 if (sizeof ac_aggr.tm_zone)
20054 return 0;
20056 return 0;
20058 _ACEOF
20059 rm -f conftest.$ac_objext
20060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20061 (eval $ac_compile) 2>conftest.er1
20062 ac_status=$?
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } &&
20068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; } &&
20074 { ac_try='test -s conftest.$ac_objext'
20075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076 (eval $ac_try) 2>&5
20077 ac_status=$?
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; }; then
20080 ac_cv_member_struct_tm_tm_zone=yes
20081 else
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_cv_member_struct_tm_tm_zone=no
20087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20091 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20092 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20093 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE_STRUCT_TM_TM_ZONE 1
20097 _ACEOF
20102 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_TM_ZONE 1
20106 _ACEOF
20108 else
20109 echo "$as_me:$LINENO: checking for tzname" >&5
20110 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20111 if test "${ac_cv_var_tzname+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20113 else
20114 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h. */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 #include <time.h>
20121 #ifndef tzname /* For SGI. */
20122 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20123 #endif
20126 main ()
20128 atoi(*tzname);
20130 return 0;
20132 _ACEOF
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>conftest.er1
20136 ac_status=$?
20137 grep -v '^ *+' conftest.er1 >conftest.err
20138 rm -f conftest.er1
20139 cat conftest.err >&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154 ac_cv_var_tzname=yes
20155 else
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_var_tzname=no
20161 rm -f conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20164 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20165 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20166 if test $ac_cv_var_tzname = yes; then
20168 cat >>confdefs.h <<\_ACEOF
20169 #define HAVE_TZNAME 1
20170 _ACEOF
20176 if test "$ac_cv_func_gettimeofday" = yes; then
20177 echo "$as_me:$LINENO: checking for struct timezone" >&5
20178 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20179 if test "${emacs_cv_struct_timezone+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h. */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188 #include <sys/time.h>
20190 main ()
20192 struct timezone tz;
20194 return 0;
20196 _ACEOF
20197 rm -f conftest.$ac_objext
20198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20199 (eval $ac_compile) 2>conftest.er1
20200 ac_status=$?
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
20206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; } &&
20212 { ac_try='test -s conftest.$ac_objext'
20213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20218 if test "$cross_compiling" = yes; then
20219 emacs_cv_struct_timezone=yes
20220 else
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20228 #ifdef TIME_WITH_SYS_TIME
20229 #include <sys/time.h>
20230 #include <time.h>
20231 #else
20232 #ifdef HAVE_SYS_TIME_H
20233 #include <sys/time.h>
20234 #else
20235 #include <time.h>
20236 #endif
20237 #endif
20238 main () {
20239 struct timeval time;
20240 struct timezone dummy;
20241 exit (gettimeofday (&time, &dummy));
20243 _ACEOF
20244 rm -f conftest$ac_exeext
20245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20246 (eval $ac_link) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 emacs_cv_struct_timezone=yes
20256 else
20257 echo "$as_me: program exited with status $ac_status" >&5
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ( exit $ac_status )
20262 emacs_cv_struct_timezone=no
20264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 emacs_cv_struct_timezone=no
20272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20274 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20275 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20278 ok_so_far=yes
20279 echo "$as_me:$LINENO: checking for socket" >&5
20280 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20281 if test "${ac_cv_func_socket+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284 cat >conftest.$ac_ext <<_ACEOF
20285 /* confdefs.h. */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20292 #define socket innocuous_socket
20294 /* System header to define __stub macros and hopefully few prototypes,
20295 which can conflict with char socket (); below.
20296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297 <limits.h> exists even on freestanding compilers. */
20299 #ifdef __STDC__
20300 # include <limits.h>
20301 #else
20302 # include <assert.h>
20303 #endif
20305 #undef socket
20307 /* Override any gcc2 internal prototype to avoid an error. */
20308 #ifdef __cplusplus
20309 extern "C"
20311 #endif
20312 /* We use char because int might match the return type of a gcc2
20313 builtin and then its argument prototype would still apply. */
20314 char socket ();
20315 /* The GNU C library defines this for functions which it implements
20316 to always fail with ENOSYS. Some functions are actually named
20317 something starting with __ and the normal name is an alias. */
20318 #if defined (__stub_socket) || defined (__stub___socket)
20319 choke me
20320 #else
20321 char (*f) () = socket;
20322 #endif
20323 #ifdef __cplusplus
20325 #endif
20328 main ()
20330 return f != socket;
20332 return 0;
20334 _ACEOF
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
20344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; } &&
20350 { ac_try='test -s conftest$ac_exeext'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20353 ac_status=$?
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 ac_cv_func_socket=yes
20357 else
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20361 ac_cv_func_socket=no
20363 rm -f conftest.err conftest.$ac_objext \
20364 conftest$ac_exeext conftest.$ac_ext
20366 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20367 echo "${ECHO_T}$ac_cv_func_socket" >&6
20368 if test $ac_cv_func_socket = yes; then
20370 else
20371 ok_so_far=no
20374 if test $ok_so_far = yes; then
20375 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20376 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20377 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20378 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20382 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20383 else
20384 # Is the header compilable?
20385 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20386 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h. */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 $ac_includes_default
20394 #include <netinet/in.h>
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20398 (eval $ac_compile) 2>conftest.er1
20399 ac_status=$?
20400 grep -v '^ *+' conftest.er1 >conftest.err
20401 rm -f conftest.er1
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } &&
20405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest.$ac_objext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_header_compiler=yes
20418 else
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_header_compiler=no
20424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20426 echo "${ECHO_T}$ac_header_compiler" >&6
20428 # Is the header present?
20429 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20430 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20431 cat >conftest.$ac_ext <<_ACEOF
20432 /* confdefs.h. */
20433 _ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <netinet/in.h>
20438 _ACEOF
20439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20441 ac_status=$?
20442 grep -v '^ *+' conftest.er1 >conftest.err
20443 rm -f conftest.er1
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } >/dev/null; then
20447 if test -s conftest.err; then
20448 ac_cpp_err=$ac_c_preproc_warn_flag
20449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20450 else
20451 ac_cpp_err=
20453 else
20454 ac_cpp_err=yes
20456 if test -z "$ac_cpp_err"; then
20457 ac_header_preproc=yes
20458 else
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_header_preproc=no
20464 rm -f conftest.err conftest.$ac_ext
20465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20466 echo "${ECHO_T}$ac_header_preproc" >&6
20468 # So? What about this header?
20469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20470 yes:no: )
20471 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20472 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20474 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20475 ac_header_preproc=yes
20477 no:yes:* )
20478 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20479 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20481 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20483 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20485 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20487 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20489 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20491 cat <<\_ASBOX
20492 ## ------------------------------------------ ##
20493 ## Report this to the AC_PACKAGE_NAME lists. ##
20494 ## ------------------------------------------ ##
20495 _ASBOX
20497 sed "s/^/$as_me: WARNING: /" >&2
20499 esac
20500 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20501 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20502 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 else
20505 ac_cv_header_netinet_in_h=$ac_header_preproc
20507 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20508 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20511 if test $ac_cv_header_netinet_in_h = yes; then
20513 else
20514 ok_so_far=no
20519 if test $ok_so_far = yes; then
20520 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20521 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20522 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20523 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20527 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20528 else
20529 # Is the header compilable?
20530 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20531 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538 $ac_includes_default
20539 #include <arpa/inet.h>
20540 _ACEOF
20541 rm -f conftest.$ac_objext
20542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20543 (eval $ac_compile) 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
20550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest.$ac_objext'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; }; then
20562 ac_header_compiler=yes
20563 else
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20567 ac_header_compiler=no
20569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20571 echo "${ECHO_T}$ac_header_compiler" >&6
20573 # Is the header present?
20574 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20575 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h. */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 #include <arpa/inet.h>
20583 _ACEOF
20584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } >/dev/null; then
20592 if test -s conftest.err; then
20593 ac_cpp_err=$ac_c_preproc_warn_flag
20594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20595 else
20596 ac_cpp_err=
20598 else
20599 ac_cpp_err=yes
20601 if test -z "$ac_cpp_err"; then
20602 ac_header_preproc=yes
20603 else
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_header_preproc=no
20609 rm -f conftest.err conftest.$ac_ext
20610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20611 echo "${ECHO_T}$ac_header_preproc" >&6
20613 # So? What about this header?
20614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20615 yes:no: )
20616 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20617 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20618 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20619 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20620 ac_header_preproc=yes
20622 no:yes:* )
20623 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20624 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20626 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20628 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20630 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20632 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20634 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20636 cat <<\_ASBOX
20637 ## ------------------------------------------ ##
20638 ## Report this to the AC_PACKAGE_NAME lists. ##
20639 ## ------------------------------------------ ##
20640 _ASBOX
20642 sed "s/^/$as_me: WARNING: /" >&2
20644 esac
20645 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20646 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20647 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650 ac_cv_header_arpa_inet_h=$ac_header_preproc
20652 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20653 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20656 if test $ac_cv_header_arpa_inet_h = yes; then
20658 else
20659 ok_so_far=no
20664 if test $ok_so_far = yes; then
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_INET_SOCKETS 1
20668 _ACEOF
20673 for ac_header in sys/ioctl.h
20675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20677 echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20684 else
20685 # Is the header compilable?
20686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h. */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 $ac_includes_default
20695 #include <$ac_header>
20696 _ACEOF
20697 rm -f conftest.$ac_objext
20698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20699 (eval $ac_compile) 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
20706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; } &&
20712 { ac_try='test -s conftest.$ac_objext'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 ac_header_compiler=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_header_compiler=no
20725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20727 echo "${ECHO_T}$ac_header_compiler" >&6
20729 # Is the header present?
20730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20732 cat >conftest.$ac_ext <<_ACEOF
20733 /* confdefs.h. */
20734 _ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20738 #include <$ac_header>
20739 _ACEOF
20740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20742 ac_status=$?
20743 grep -v '^ *+' conftest.er1 >conftest.err
20744 rm -f conftest.er1
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } >/dev/null; then
20748 if test -s conftest.err; then
20749 ac_cpp_err=$ac_c_preproc_warn_flag
20750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20751 else
20752 ac_cpp_err=
20754 else
20755 ac_cpp_err=yes
20757 if test -z "$ac_cpp_err"; then
20758 ac_header_preproc=yes
20759 else
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_header_preproc=no
20765 rm -f conftest.err conftest.$ac_ext
20766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20767 echo "${ECHO_T}$ac_header_preproc" >&6
20769 # So? What about this header?
20770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20771 yes:no: )
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20776 ac_header_preproc=yes
20778 no:yes:* )
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20792 cat <<\_ASBOX
20793 ## ------------------------------------------ ##
20794 ## Report this to the AC_PACKAGE_NAME lists. ##
20795 ## ------------------------------------------ ##
20796 _ASBOX
20798 sed "s/^/$as_me: WARNING: /" >&2
20800 esac
20801 echo "$as_me:$LINENO: checking for $ac_header" >&5
20802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 else
20806 eval "$as_ac_Header=\$ac_header_preproc"
20808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20815 _ACEOF
20819 done
20822 if test -f /usr/lpp/X11/bin/smt.exp; then
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_AIX_SMT_EXP 1
20826 _ACEOF
20830 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20831 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20832 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20833 echo "$as_me:$LINENO: result: yes" >&5
20834 echo "${ECHO_T}yes" >&6
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_DEV_PTMX 1
20838 _ACEOF
20840 else
20841 echo "$as_me:$LINENO: result: no" >&5
20842 echo "${ECHO_T}no" >&6
20845 echo "$as_me:$LINENO: checking for pid_t" >&5
20846 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20847 if test "${ac_cv_type_pid_t+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 else
20850 cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h. */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20856 $ac_includes_default
20858 main ()
20860 if ((pid_t *) 0)
20861 return 0;
20862 if (sizeof (pid_t))
20863 return 0;
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" || test ! -s conftest.err'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest.$ac_objext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_type_pid_t=yes
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ac_cv_type_pid_t=no
20896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20898 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20899 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20900 if test $ac_cv_type_pid_t = yes; then
20902 else
20904 cat >>confdefs.h <<_ACEOF
20905 #define pid_t int
20906 _ACEOF
20912 for ac_header in unistd.h vfork.h
20914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20916 echo "$as_me:$LINENO: checking for $ac_header" >&5
20917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20923 else
20924 # Is the header compilable?
20925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20927 cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h. */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20933 $ac_includes_default
20934 #include <$ac_header>
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938 (eval $ac_compile) 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } &&
20945 { ac_try='test -z "$ac_c_werror_flag" || 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 ac_header_compiler=yes
20958 else
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962 ac_header_compiler=no
20964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20966 echo "${ECHO_T}$ac_header_compiler" >&6
20968 # Is the header present?
20969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20971 cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h. */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 #include <$ac_header>
20978 _ACEOF
20979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20981 ac_status=$?
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } >/dev/null; then
20987 if test -s conftest.err; then
20988 ac_cpp_err=$ac_c_preproc_warn_flag
20989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20990 else
20991 ac_cpp_err=
20993 else
20994 ac_cpp_err=yes
20996 if test -z "$ac_cpp_err"; then
20997 ac_header_preproc=yes
20998 else
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ac_header_preproc=no
21004 rm -f conftest.err conftest.$ac_ext
21005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21006 echo "${ECHO_T}$ac_header_preproc" >&6
21008 # So? What about this header?
21009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21010 yes:no: )
21011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21015 ac_header_preproc=yes
21017 no:yes:* )
21018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21031 cat <<\_ASBOX
21032 ## ------------------------------------------ ##
21033 ## Report this to the AC_PACKAGE_NAME lists. ##
21034 ## ------------------------------------------ ##
21035 _ASBOX
21037 sed "s/^/$as_me: WARNING: /" >&2
21039 esac
21040 echo "$as_me:$LINENO: checking for $ac_header" >&5
21041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21044 else
21045 eval "$as_ac_Header=\$ac_header_preproc"
21047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21052 cat >>confdefs.h <<_ACEOF
21053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21054 _ACEOF
21058 done
21062 for ac_func in fork vfork
21064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21065 echo "$as_me:$LINENO: checking for $ac_func" >&5
21066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21067 if eval "test \"\${$as_ac_var+set}\" = set"; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070 cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h. */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21078 #define $ac_func innocuous_$ac_func
21080 /* System header to define __stub macros and hopefully few prototypes,
21081 which can conflict with char $ac_func (); below.
21082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21083 <limits.h> exists even on freestanding compilers. */
21085 #ifdef __STDC__
21086 # include <limits.h>
21087 #else
21088 # include <assert.h>
21089 #endif
21091 #undef $ac_func
21093 /* Override any gcc2 internal prototype to avoid an error. */
21094 #ifdef __cplusplus
21095 extern "C"
21097 #endif
21098 /* We use char because int might match the return type of a gcc2
21099 builtin and then its argument prototype would still apply. */
21100 char $ac_func ();
21101 /* The GNU C library defines this for functions which it implements
21102 to always fail with ENOSYS. Some functions are actually named
21103 something starting with __ and the normal name is an alias. */
21104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21105 choke me
21106 #else
21107 char (*f) () = $ac_func;
21108 #endif
21109 #ifdef __cplusplus
21111 #endif
21114 main ()
21116 return f != $ac_func;
21118 return 0;
21120 _ACEOF
21121 rm -f conftest.$ac_objext conftest$ac_exeext
21122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123 (eval $ac_link) 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
21130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21133 ac_status=$?
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; } &&
21136 { ac_try='test -s conftest$ac_exeext'
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; }; then
21142 eval "$as_ac_var=yes"
21143 else
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 eval "$as_ac_var=no"
21149 rm -f conftest.err conftest.$ac_objext \
21150 conftest$ac_exeext conftest.$ac_ext
21152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21154 if test `eval echo '${'$as_ac_var'}'` = yes; then
21155 cat >>confdefs.h <<_ACEOF
21156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21157 _ACEOF
21160 done
21162 if test "x$ac_cv_func_fork" = xyes; then
21163 echo "$as_me:$LINENO: checking for working fork" >&5
21164 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21165 if test "${ac_cv_func_fork_works+set}" = set; then
21166 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21168 if test "$cross_compiling" = yes; then
21169 ac_cv_func_fork_works=cross
21170 else
21171 cat >conftest.$ac_ext <<_ACEOF
21172 /* By Ruediger Kuhlmann. */
21173 #include <sys/types.h>
21174 #if HAVE_UNISTD_H
21175 # include <unistd.h>
21176 #endif
21177 /* Some systems only have a dummy stub for fork() */
21178 int main ()
21180 if (fork() < 0)
21181 exit (1);
21182 exit (0);
21184 _ACEOF
21185 rm -f conftest$ac_exeext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187 (eval $ac_link) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_func_fork_works=yes
21197 else
21198 echo "$as_me: program exited with status $ac_status" >&5
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ( exit $ac_status )
21203 ac_cv_func_fork_works=no
21205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21208 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21209 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21211 else
21212 ac_cv_func_fork_works=$ac_cv_func_fork
21214 if test "x$ac_cv_func_fork_works" = xcross; then
21215 case $host in
21216 *-*-amigaos* | *-*-msdosdjgpp*)
21217 # Override, as these systems have only a dummy fork() stub
21218 ac_cv_func_fork_works=no
21221 ac_cv_func_fork_works=yes
21223 esac
21224 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21225 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21227 ac_cv_func_vfork_works=$ac_cv_func_vfork
21228 if test "x$ac_cv_func_vfork" = xyes; then
21229 echo "$as_me:$LINENO: checking for working vfork" >&5
21230 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21231 if test "${ac_cv_func_vfork_works+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 else
21234 if test "$cross_compiling" = yes; then
21235 ac_cv_func_vfork_works=cross
21236 else
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h. */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 /* Thanks to Paul Eggert for this test. */
21244 #include <stdio.h>
21245 #include <stdlib.h>
21246 #include <sys/types.h>
21247 #include <sys/stat.h>
21248 #include <sys/wait.h>
21249 #if HAVE_UNISTD_H
21250 # include <unistd.h>
21251 #endif
21252 #if HAVE_VFORK_H
21253 # include <vfork.h>
21254 #endif
21255 /* On some sparc systems, changes by the child to local and incoming
21256 argument registers are propagated back to the parent. The compiler
21257 is told about this with #include <vfork.h>, but some compilers
21258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21259 static variable whose address is put into a register that is
21260 clobbered by the vfork. */
21261 static void
21262 #ifdef __cplusplus
21263 sparc_address_test (int arg)
21264 # else
21265 sparc_address_test (arg) int arg;
21266 #endif
21268 static pid_t child;
21269 if (!child) {
21270 child = vfork ();
21271 if (child < 0) {
21272 perror ("vfork");
21273 _exit(2);
21275 if (!child) {
21276 arg = getpid();
21277 write(-1, "", 0);
21278 _exit (arg);
21284 main ()
21286 pid_t parent = getpid ();
21287 pid_t child;
21289 sparc_address_test (0);
21291 child = vfork ();
21293 if (child == 0) {
21294 /* Here is another test for sparc vfork register problems. This
21295 test uses lots of local variables, at least as many local
21296 variables as main has allocated so far including compiler
21297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21299 reuse the register of parent for one of the local variables,
21300 since it will think that parent can't possibly be used any more
21301 in this routine. Assigning to the local variable will thus
21302 munge parent in the parent process. */
21303 pid_t
21304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21306 /* Convince the compiler that p..p7 are live; otherwise, it might
21307 use the same hardware register for all 8 local variables. */
21308 if (p != p1 || p != p2 || p != p3 || p != p4
21309 || p != p5 || p != p6 || p != p7)
21310 _exit(1);
21312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21313 from child file descriptors. If the child closes a descriptor
21314 before it execs or exits, this munges the parent's descriptor
21315 as well. Test for this by closing stdout in the child. */
21316 _exit(close(fileno(stdout)) != 0);
21317 } else {
21318 int status;
21319 struct stat st;
21321 while (wait(&status) != child)
21323 exit(
21324 /* Was there some problem with vforking? */
21325 child < 0
21327 /* Did the child fail? (This shouldn't happen.) */
21328 || status
21330 /* Did the vfork/compiler bug occur? */
21331 || parent != getpid()
21333 /* Did the file descriptor bug occur? */
21334 || fstat(fileno(stdout), &st) != 0
21338 _ACEOF
21339 rm -f conftest$ac_exeext
21340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21341 (eval $ac_link) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; }; then
21350 ac_cv_func_vfork_works=yes
21351 else
21352 echo "$as_me: program exited with status $ac_status" >&5
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 ( exit $ac_status )
21357 ac_cv_func_vfork_works=no
21359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21362 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21363 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21366 if test "x$ac_cv_func_fork_works" = xcross; then
21367 ac_cv_func_vfork_works=$ac_cv_func_vfork
21368 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21369 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21372 if test "x$ac_cv_func_vfork_works" = xyes; then
21374 cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_WORKING_VFORK 1
21376 _ACEOF
21378 else
21380 cat >>confdefs.h <<\_ACEOF
21381 #define vfork fork
21382 _ACEOF
21385 if test "x$ac_cv_func_fork_works" = xyes; then
21387 cat >>confdefs.h <<\_ACEOF
21388 #define HAVE_WORKING_FORK 1
21389 _ACEOF
21394 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21395 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21396 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 else
21399 cat >conftest.$ac_ext <<_ACEOF
21400 /* confdefs.h. */
21401 _ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 #include <langinfo.h>
21407 main ()
21409 char* cs = nl_langinfo(CODESET);
21411 return 0;
21413 _ACEOF
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; } &&
21429 { ac_try='test -s conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 emacs_cv_langinfo_codeset=yes
21436 else
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 emacs_cv_langinfo_codeset=no
21442 rm -f conftest.err conftest.$ac_objext \
21443 conftest$ac_exeext conftest.$ac_ext
21446 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21447 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21448 if test $emacs_cv_langinfo_codeset = yes; then
21450 cat >>confdefs.h <<\_ACEOF
21451 #define HAVE_LANGINFO_CODESET 1
21452 _ACEOF
21456 echo "$as_me:$LINENO: checking for size_t" >&5
21457 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21458 if test "${ac_cv_type_size_t+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 else
21461 cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h. */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 $ac_includes_default
21469 main ()
21471 if ((size_t *) 0)
21472 return 0;
21473 if (sizeof (size_t))
21474 return 0;
21476 return 0;
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481 (eval $ac_compile) 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21491 ac_status=$?
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; } &&
21494 { ac_try='test -s conftest.$ac_objext'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; }; then
21500 ac_cv_type_size_t=yes
21501 else
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ac_cv_type_size_t=no
21507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21509 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21510 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21511 if test $ac_cv_type_size_t = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define HAVE_SIZE_T 1
21515 _ACEOF
21521 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21522 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21523 if test "${ac_cv_type_mbstate_t+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526 cat >conftest.$ac_ext <<_ACEOF
21527 /* confdefs.h. */
21528 _ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21532 $ac_includes_default
21533 # include <wchar.h>
21535 main ()
21537 mbstate_t x; return sizeof x;
21539 return 0;
21541 _ACEOF
21542 rm -f conftest.$ac_objext
21543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21544 (eval $ac_compile) 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } &&
21551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try='test -s conftest.$ac_objext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_cv_type_mbstate_t=yes
21564 else
21565 echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ac_cv_type_mbstate_t=no
21570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21572 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21573 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21574 if test $ac_cv_type_mbstate_t = yes; then
21576 cat >>confdefs.h <<\_ACEOF
21577 #define HAVE_MBSTATE_T 1
21578 _ACEOF
21580 else
21582 cat >>confdefs.h <<\_ACEOF
21583 #define mbstate_t int
21584 _ACEOF
21588 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21589 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21590 if test "${emacs_cv_c_restrict+set}" = set; then
21591 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 else
21593 cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h. */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 void fred (int *restrict x);
21601 main ()
21605 return 0;
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21610 (eval $ac_compile) 2>conftest.er1
21611 ac_status=$?
21612 grep -v '^ *+' conftest.er1 >conftest.err
21613 rm -f conftest.er1
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } &&
21617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619 (eval $ac_try) 2>&5
21620 ac_status=$?
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); }; } &&
21623 { ac_try='test -s conftest.$ac_objext'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21626 ac_status=$?
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; }; then
21629 emacs_cv_c_restrict=yes
21630 else
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h. */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 void fred (int *__restrict x);
21642 main ()
21646 return 0;
21648 _ACEOF
21649 rm -f conftest.$ac_objext
21650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21651 (eval $ac_compile) 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } &&
21658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; } &&
21664 { ac_try='test -s conftest.$ac_objext'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; }; then
21670 emacs_cv_c_restrict=__restrict
21671 else
21672 echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21675 emacs_cv_c_restrict=no
21677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21681 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21682 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21683 case "$emacs_cv_c_restrict" in
21684 yes) emacs_restrict=restrict;;
21685 no) emacs_restrict="";;
21686 *) emacs_restrict="$emacs_cv_c_restrict";;
21687 esac
21688 if test "$emacs_restrict" != __restrict; then
21690 cat >>confdefs.h <<_ACEOF
21691 #define __restrict $emacs_restrict
21692 _ACEOF
21696 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21697 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21698 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 else
21701 cat >conftest.$ac_ext <<_ACEOF
21702 /* confdefs.h. */
21703 _ACEOF
21704 cat confdefs.h >>conftest.$ac_ext
21705 cat >>conftest.$ac_ext <<_ACEOF
21706 /* end confdefs.h. */
21707 void fred (int x[__restrict]);
21709 main ()
21713 return 0;
21715 _ACEOF
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718 (eval $ac_compile) 2>conftest.er1
21719 ac_status=$?
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
21725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; } &&
21731 { ac_try='test -s conftest.$ac_objext'
21732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); }; }; then
21737 emacs_cv_c_restrict_arr=yes
21738 else
21739 echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 emacs_cv_c_restrict_arr=no
21744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21747 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21748 if test "$emacs_cv_c_restrict_arr" = yes; then
21750 cat >>confdefs.h <<\_ACEOF
21751 #define __restrict_arr __restrict
21752 _ACEOF
21758 # Set up the CFLAGS for real compilation, so we can substitute it.
21759 CFLAGS="$REAL_CFLAGS"
21760 CPPFLAGS="$REAL_CPPFLAGS"
21762 #### Find out which version of Emacs this is.
21763 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21764 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21765 if test x"${version}" = x; then
21766 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21767 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21768 { (exit 1); exit 1; }; }
21771 ### Specify what sort of things we'll be editing into Makefile and config.h.
21772 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21808 cat >>confdefs.h <<_ACEOF
21809 #define EMACS_CONFIGURATION "${canonical}"
21810 _ACEOF
21813 cat >>confdefs.h <<_ACEOF
21814 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21815 _ACEOF
21818 cat >>confdefs.h <<_ACEOF
21819 #define config_machfile "${machfile}"
21820 _ACEOF
21823 cat >>confdefs.h <<_ACEOF
21824 #define config_opsysfile "${opsysfile}"
21825 _ACEOF
21828 cat >>confdefs.h <<_ACEOF
21829 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21830 _ACEOF
21833 cat >>confdefs.h <<_ACEOF
21834 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21835 _ACEOF
21838 cat >>confdefs.h <<_ACEOF
21839 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21840 _ACEOF
21843 cat >>confdefs.h <<_ACEOF
21844 #define UNEXEC_SRC ${UNEXEC_SRC}
21845 _ACEOF
21848 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21850 cat >>confdefs.h <<\_ACEOF
21851 #define HAVE_X_WINDOWS 1
21852 _ACEOF
21855 if test "${USE_X_TOOLKIT}" != "none" ; then
21857 cat >>confdefs.h <<\_ACEOF
21858 #define USE_X_TOOLKIT 1
21859 _ACEOF
21862 if test "${HAVE_X11}" = "yes" ; then
21864 cat >>confdefs.h <<\_ACEOF
21865 #define HAVE_X11 1
21866 _ACEOF
21869 if test "${HAVE_XFREE386}" = "yes" ; then
21871 cat >>confdefs.h <<\_ACEOF
21872 #define HAVE_XFREE386 1
21873 _ACEOF
21876 if test "${HAVE_MENUS}" = "yes" ; then
21878 cat >>confdefs.h <<\_ACEOF
21879 #define HAVE_MENUS 1
21880 _ACEOF
21883 if test "${GNU_MALLOC}" = "yes" ; then
21885 cat >>confdefs.h <<\_ACEOF
21886 #define GNU_MALLOC 1
21887 _ACEOF
21890 if test "${REL_ALLOC}" = "yes" ; then
21892 cat >>confdefs.h <<\_ACEOF
21893 #define REL_ALLOC 1
21894 _ACEOF
21902 #### Report on what we decided to do.
21903 #### Report GTK as a toolkit, even if it doesn't use Xt.
21904 #### It makes printing result more understandable as using GTK sets
21905 #### toolkit_scroll_bars to yes by default.
21906 if test "${HAVE_GTK}" = "yes"; then
21907 USE_X_TOOLKIT=GTK
21910 echo "
21911 Configured for \`${canonical}'.
21913 Where should the build process find the source code? ${srcdir}
21914 What operating system and machine description files should Emacs use?
21915 \`${opsysfile}' and \`${machfile}'
21916 What compiler should emacs be built with? ${CC} ${CFLAGS}
21917 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21918 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21919 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21920 What window system should Emacs use? ${window_system}
21921 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21923 if test -n "${x_includes}"; then
21924 echo " Where do we find X Windows header files? ${x_includes}"
21925 else
21926 echo " Where do we find X Windows header files? Standard dirs"
21928 if test -n "${x_libraries}"; then
21929 echo " Where do we find X Windows libraries? ${x_libraries}"
21930 else
21931 echo " Where do we find X Windows libraries? Standard dirs"
21934 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21935 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21936 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21937 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21938 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21939 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21940 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21941 echo
21943 if test $USE_XASSERTS = yes; then
21944 echo " Compiling with asserts turned on."
21945 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
21946 echo
21951 # Remove any trailing slashes in these variables.
21952 test "${prefix}" != NONE &&
21953 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21954 test "${exec_prefix}" != NONE &&
21955 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21957 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21958 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21959 ## from Makefile.c can correctly provide the arg `-traditional' to the
21960 ## C preprocessor.
21962 cat >conftest.$ac_ext <<_ACEOF
21963 /* confdefs.h. */
21964 _ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h. */
21968 yes..yes
21969 _ACEOF
21970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21971 $EGREP "yes..yes" >/dev/null 2>&1; then
21972 CPP_NEED_TRADITIONAL=no
21973 else
21974 CPP_NEED_TRADITIONAL=yes
21976 rm -f conftest*
21979 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"
21980 ac_config_commands="$ac_config_commands default"
21981 cat >confcache <<\_ACEOF
21982 # This file is a shell script that caches the results of configure
21983 # tests run on this system so they can be shared between configure
21984 # scripts and configure runs, see configure's option --config-cache.
21985 # It is not useful on other systems. If it contains results you don't
21986 # want to keep, you may remove or edit it.
21988 # config.status only pays attention to the cache file if you give it
21989 # the --recheck option to rerun configure.
21991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21993 # following values.
21995 _ACEOF
21997 # The following way of writing the cache mishandles newlines in values,
21998 # but we know of no workaround that is simple, portable, and efficient.
21999 # So, don't put newlines in cache variables' values.
22000 # Ultrix sh set writes to stderr and can't be redirected directly,
22001 # and sets the high bit in the cache file unless we assign to the vars.
22003 (set) 2>&1 |
22004 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22005 *ac_space=\ *)
22006 # `set' does not quote correctly, so add quotes (double-quote
22007 # substitution turns \\\\ into \\, and sed turns \\ into \).
22008 sed -n \
22009 "s/'/'\\\\''/g;
22010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22013 # `set' quotes correctly as required by POSIX, so do not add quotes.
22014 sed -n \
22015 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22017 esac;
22019 sed '
22020 t clear
22021 : clear
22022 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22023 t end
22024 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22025 : end' >>confcache
22026 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22027 if test -w $cache_file; then
22028 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22029 cat confcache >$cache_file
22030 else
22031 echo "not updating unwritable cache $cache_file"
22034 rm -f confcache
22036 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22037 # Let make expand exec_prefix.
22038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042 # trailing colons and then remove the whole line if VPATH becomes empty
22043 # (actually we leave an empty line to preserve line numbers).
22044 if test "x$srcdir" = x.; then
22045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22046 s/:*\$(srcdir):*/:/;
22047 s/:*\${srcdir}:*/:/;
22048 s/:*@srcdir@:*/:/;
22049 s/^\([^=]*=[ ]*\):*/\1/;
22050 s/:*$//;
22051 s/^[^=]*=[ ]*$//;
22055 DEFS=-DHAVE_CONFIG_H
22057 ac_libobjs=
22058 ac_ltlibobjs=
22059 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22060 # 1. Remove the extension, and $U if already installed.
22061 ac_i=`echo "$ac_i" |
22062 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22063 # 2. Add them.
22064 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22065 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22066 done
22067 LIBOBJS=$ac_libobjs
22069 LTLIBOBJS=$ac_ltlibobjs
22073 : ${CONFIG_STATUS=./config.status}
22074 ac_clean_files_save=$ac_clean_files
22075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22076 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22077 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22078 cat >$CONFIG_STATUS <<_ACEOF
22079 #! $SHELL
22080 # Generated by $as_me.
22081 # Run this file to recreate the current configuration.
22082 # Compiler output produced by configure, useful for debugging
22083 # configure, is in config.log if it exists.
22085 debug=false
22086 ac_cs_recheck=false
22087 ac_cs_silent=false
22088 SHELL=\${CONFIG_SHELL-$SHELL}
22089 _ACEOF
22091 cat >>$CONFIG_STATUS <<\_ACEOF
22092 ## --------------------- ##
22093 ## M4sh Initialization. ##
22094 ## --------------------- ##
22096 # Be Bourne compatible
22097 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22098 emulate sh
22099 NULLCMD=:
22100 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22101 # is contrary to our usage. Disable this feature.
22102 alias -g '${1+"$@"}'='"$@"'
22103 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22104 set -o posix
22106 DUALCASE=1; export DUALCASE # for MKS sh
22108 # Support unset when possible.
22109 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22110 as_unset=unset
22111 else
22112 as_unset=false
22116 # Work around bugs in pre-3.0 UWIN ksh.
22117 $as_unset ENV MAIL MAILPATH
22118 PS1='$ '
22119 PS2='> '
22120 PS4='+ '
22122 # NLS nuisances.
22123 for as_var in \
22124 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22125 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22126 LC_TELEPHONE LC_TIME
22128 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22129 eval $as_var=C; export $as_var
22130 else
22131 $as_unset $as_var
22133 done
22135 # Required to use basename.
22136 if expr a : '\(a\)' >/dev/null 2>&1; then
22137 as_expr=expr
22138 else
22139 as_expr=false
22142 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22143 as_basename=basename
22144 else
22145 as_basename=false
22149 # Name of the executable.
22150 as_me=`$as_basename "$0" ||
22151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22152 X"$0" : 'X\(//\)$' \| \
22153 X"$0" : 'X\(/\)$' \| \
22154 . : '\(.\)' 2>/dev/null ||
22155 echo X/"$0" |
22156 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22157 /^X\/\(\/\/\)$/{ s//\1/; q; }
22158 /^X\/\(\/\).*/{ s//\1/; q; }
22159 s/.*/./; q'`
22162 # PATH needs CR, and LINENO needs CR and PATH.
22163 # Avoid depending upon Character Ranges.
22164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22167 as_cr_digits='0123456789'
22168 as_cr_alnum=$as_cr_Letters$as_cr_digits
22170 # The user is always right.
22171 if test "${PATH_SEPARATOR+set}" != set; then
22172 echo "#! /bin/sh" >conf$$.sh
22173 echo "exit 0" >>conf$$.sh
22174 chmod +x conf$$.sh
22175 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22176 PATH_SEPARATOR=';'
22177 else
22178 PATH_SEPARATOR=:
22180 rm -f conf$$.sh
22184 as_lineno_1=$LINENO
22185 as_lineno_2=$LINENO
22186 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22187 test "x$as_lineno_1" != "x$as_lineno_2" &&
22188 test "x$as_lineno_3" = "x$as_lineno_2" || {
22189 # Find who we are. Look in the path if we contain no path at all
22190 # relative or not.
22191 case $0 in
22192 *[\\/]* ) as_myself=$0 ;;
22193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22194 for as_dir in $PATH
22196 IFS=$as_save_IFS
22197 test -z "$as_dir" && as_dir=.
22198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22199 done
22202 esac
22203 # We did not find ourselves, most probably we were run as `sh COMMAND'
22204 # in which case we are not to be found in the path.
22205 if test "x$as_myself" = x; then
22206 as_myself=$0
22208 if test ! -f "$as_myself"; then
22209 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22210 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22211 { (exit 1); exit 1; }; }
22213 case $CONFIG_SHELL in
22215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22216 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22218 IFS=$as_save_IFS
22219 test -z "$as_dir" && as_dir=.
22220 for as_base in sh bash ksh sh5; do
22221 case $as_dir in
22223 if ("$as_dir/$as_base" -c '
22224 as_lineno_1=$LINENO
22225 as_lineno_2=$LINENO
22226 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22227 test "x$as_lineno_1" != "x$as_lineno_2" &&
22228 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22229 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22230 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22231 CONFIG_SHELL=$as_dir/$as_base
22232 export CONFIG_SHELL
22233 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22234 fi;;
22235 esac
22236 done
22237 done
22239 esac
22241 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22242 # uniformly replaced by the line number. The first 'sed' inserts a
22243 # line-number line before each line; the second 'sed' does the real
22244 # work. The second script uses 'N' to pair each line-number line
22245 # with the numbered line, and appends trailing '-' during
22246 # substitution so that $LINENO is not a special case at line end.
22247 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22248 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22249 sed '=' <$as_myself |
22250 sed '
22252 s,$,-,
22253 : loop
22254 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22255 t loop
22256 s,-$,,
22257 s,^['$as_cr_digits']*\n,,
22258 ' >$as_me.lineno &&
22259 chmod +x $as_me.lineno ||
22260 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22261 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22262 { (exit 1); exit 1; }; }
22264 # Don't try to exec as it changes $[0], causing all sort of problems
22265 # (the dirname of $[0] is not the place where we might find the
22266 # original and so on. Autoconf is especially sensible to this).
22267 . ./$as_me.lineno
22268 # Exit status is that of the last command.
22269 exit
22273 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22274 *c*,-n*) ECHO_N= ECHO_C='
22275 ' ECHO_T=' ' ;;
22276 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22277 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22278 esac
22280 if expr a : '\(a\)' >/dev/null 2>&1; then
22281 as_expr=expr
22282 else
22283 as_expr=false
22286 rm -f conf$$ conf$$.exe conf$$.file
22287 echo >conf$$.file
22288 if ln -s conf$$.file conf$$ 2>/dev/null; then
22289 # We could just check for DJGPP; but this test a) works b) is more generic
22290 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22291 if test -f conf$$.exe; then
22292 # Don't use ln at all; we don't have any links
22293 as_ln_s='cp -p'
22294 else
22295 as_ln_s='ln -s'
22297 elif ln conf$$.file conf$$ 2>/dev/null; then
22298 as_ln_s=ln
22299 else
22300 as_ln_s='cp -p'
22302 rm -f conf$$ conf$$.exe conf$$.file
22304 if mkdir -p . 2>/dev/null; then
22305 as_mkdir_p=:
22306 else
22307 test -d ./-p && rmdir ./-p
22308 as_mkdir_p=false
22311 as_executable_p="test -f"
22313 # Sed expression to map a string onto a valid CPP name.
22314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22316 # Sed expression to map a string onto a valid variable name.
22317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22320 # IFS
22321 # We need space, tab and new line, in precisely that order.
22322 as_nl='
22324 IFS=" $as_nl"
22326 # CDPATH.
22327 $as_unset CDPATH
22329 exec 6>&1
22331 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22332 # report actual input values of CONFIG_FILES etc. instead of their
22333 # values after options handling. Logging --version etc. is OK.
22334 exec 5>>config.log
22336 echo
22337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22338 ## Running $as_me. ##
22339 _ASBOX
22340 } >&5
22341 cat >&5 <<_CSEOF
22343 This file was extended by $as_me, which was
22344 generated by GNU Autoconf 2.59. Invocation command line was
22346 CONFIG_FILES = $CONFIG_FILES
22347 CONFIG_HEADERS = $CONFIG_HEADERS
22348 CONFIG_LINKS = $CONFIG_LINKS
22349 CONFIG_COMMANDS = $CONFIG_COMMANDS
22350 $ $0 $@
22352 _CSEOF
22353 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22354 echo >&5
22355 _ACEOF
22357 # Files that config.status was made for.
22358 if test -n "$ac_config_files"; then
22359 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22362 if test -n "$ac_config_headers"; then
22363 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22366 if test -n "$ac_config_links"; then
22367 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22370 if test -n "$ac_config_commands"; then
22371 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22374 cat >>$CONFIG_STATUS <<\_ACEOF
22376 ac_cs_usage="\
22377 \`$as_me' instantiates files from templates according to the
22378 current configuration.
22380 Usage: $0 [OPTIONS] [FILE]...
22382 -h, --help print this help, then exit
22383 -V, --version print version number, then exit
22384 -q, --quiet do not print progress messages
22385 -d, --debug don't remove temporary files
22386 --recheck update $as_me by reconfiguring in the same conditions
22387 --file=FILE[:TEMPLATE]
22388 instantiate the configuration file FILE
22389 --header=FILE[:TEMPLATE]
22390 instantiate the configuration header FILE
22392 Configuration files:
22393 $config_files
22395 Configuration headers:
22396 $config_headers
22398 Configuration commands:
22399 $config_commands
22401 Report bugs to <bug-autoconf@gnu.org>."
22402 _ACEOF
22404 cat >>$CONFIG_STATUS <<_ACEOF
22405 ac_cs_version="\\
22406 config.status
22407 configured by $0, generated by GNU Autoconf 2.59,
22408 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22410 Copyright (C) 2003 Free Software Foundation, Inc.
22411 This config.status script is free software; the Free Software Foundation
22412 gives unlimited permission to copy, distribute and modify it."
22413 srcdir=$srcdir
22414 INSTALL="$INSTALL"
22415 _ACEOF
22417 cat >>$CONFIG_STATUS <<\_ACEOF
22418 # If no file are specified by the user, then we need to provide default
22419 # value. By we need to know if files were specified by the user.
22420 ac_need_defaults=:
22421 while test $# != 0
22423 case $1 in
22424 --*=*)
22425 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22426 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22427 ac_shift=:
22430 ac_option=$1
22431 ac_optarg=$2
22432 ac_shift=shift
22434 *) # This is not an option, so the user has probably given explicit
22435 # arguments.
22436 ac_option=$1
22437 ac_need_defaults=false;;
22438 esac
22440 case $ac_option in
22441 # Handling of the options.
22442 _ACEOF
22443 cat >>$CONFIG_STATUS <<\_ACEOF
22444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22445 ac_cs_recheck=: ;;
22446 --version | --vers* | -V )
22447 echo "$ac_cs_version"; exit 0 ;;
22448 --he | --h)
22449 # Conflict between --help and --header
22450 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22451 Try \`$0 --help' for more information." >&5
22452 echo "$as_me: error: ambiguous option: $1
22453 Try \`$0 --help' for more information." >&2;}
22454 { (exit 1); exit 1; }; };;
22455 --help | --hel | -h )
22456 echo "$ac_cs_usage"; exit 0 ;;
22457 --debug | --d* | -d )
22458 debug=: ;;
22459 --file | --fil | --fi | --f )
22460 $ac_shift
22461 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22462 ac_need_defaults=false;;
22463 --header | --heade | --head | --hea )
22464 $ac_shift
22465 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22466 ac_need_defaults=false;;
22467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22468 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22469 ac_cs_silent=: ;;
22471 # This is an error.
22472 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22473 Try \`$0 --help' for more information." >&5
22474 echo "$as_me: error: unrecognized option: $1
22475 Try \`$0 --help' for more information." >&2;}
22476 { (exit 1); exit 1; }; } ;;
22478 *) ac_config_targets="$ac_config_targets $1" ;;
22480 esac
22481 shift
22482 done
22484 ac_configure_extra_args=
22486 if $ac_cs_silent; then
22487 exec 6>/dev/null
22488 ac_configure_extra_args="$ac_configure_extra_args --silent"
22491 _ACEOF
22492 cat >>$CONFIG_STATUS <<_ACEOF
22493 if \$ac_cs_recheck; then
22494 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22495 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22498 _ACEOF
22500 cat >>$CONFIG_STATUS <<_ACEOF
22502 # INIT-COMMANDS section.
22505 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22507 _ACEOF
22511 cat >>$CONFIG_STATUS <<\_ACEOF
22512 for ac_config_target in $ac_config_targets
22514 case "$ac_config_target" in
22515 # Handling of arguments.
22516 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22517 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22518 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
22519 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22520 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
22521 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22522 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
22523 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
22524 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
22525 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
22526 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22527 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22528 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22529 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22530 { (exit 1); exit 1; }; };;
22531 esac
22532 done
22534 # If the user did not use the arguments to specify the items to instantiate,
22535 # then the envvar interface is used. Set only those that are not.
22536 # We use the long form for the default assignment because of an extremely
22537 # bizarre bug on SunOS 4.1.3.
22538 if $ac_need_defaults; then
22539 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22540 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22541 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22544 # Have a temporary directory for convenience. Make it in the build tree
22545 # simply because there is no reason to put it here, and in addition,
22546 # creating and moving files from /tmp can sometimes cause problems.
22547 # Create a temporary directory, and hook for its removal unless debugging.
22548 $debug ||
22550 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22551 trap '{ (exit 1); exit 1; }' 1 2 13 15
22554 # Create a (secure) tmp directory for tmp files.
22557 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22558 test -n "$tmp" && test -d "$tmp"
22559 } ||
22561 tmp=./confstat$$-$RANDOM
22562 (umask 077 && mkdir $tmp)
22563 } ||
22565 echo "$me: cannot create a temporary directory in ." >&2
22566 { (exit 1); exit 1; }
22569 _ACEOF
22571 cat >>$CONFIG_STATUS <<_ACEOF
22574 # CONFIG_FILES section.
22577 # No need to generate the scripts if there are no CONFIG_FILES.
22578 # This happens for instance when ./config.status config.h
22579 if test -n "\$CONFIG_FILES"; then
22580 # Protect against being on the right side of a sed subst in config.status.
22581 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22582 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22583 s,@SHELL@,$SHELL,;t t
22584 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22585 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22586 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22587 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22588 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22589 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22590 s,@exec_prefix@,$exec_prefix,;t t
22591 s,@prefix@,$prefix,;t t
22592 s,@program_transform_name@,$program_transform_name,;t t
22593 s,@bindir@,$bindir,;t t
22594 s,@sbindir@,$sbindir,;t t
22595 s,@libexecdir@,$libexecdir,;t t
22596 s,@datadir@,$datadir,;t t
22597 s,@sysconfdir@,$sysconfdir,;t t
22598 s,@sharedstatedir@,$sharedstatedir,;t t
22599 s,@localstatedir@,$localstatedir,;t t
22600 s,@libdir@,$libdir,;t t
22601 s,@includedir@,$includedir,;t t
22602 s,@oldincludedir@,$oldincludedir,;t t
22603 s,@infodir@,$infodir,;t t
22604 s,@mandir@,$mandir,;t t
22605 s,@build_alias@,$build_alias,;t t
22606 s,@host_alias@,$host_alias,;t t
22607 s,@target_alias@,$target_alias,;t t
22608 s,@DEFS@,$DEFS,;t t
22609 s,@ECHO_C@,$ECHO_C,;t t
22610 s,@ECHO_N@,$ECHO_N,;t t
22611 s,@ECHO_T@,$ECHO_T,;t t
22612 s,@LIBS@,$LIBS,;t t
22613 s,@MAINT@,$MAINT,;t t
22614 s,@build@,$build,;t t
22615 s,@build_cpu@,$build_cpu,;t t
22616 s,@build_vendor@,$build_vendor,;t t
22617 s,@build_os@,$build_os,;t t
22618 s,@host@,$host,;t t
22619 s,@host_cpu@,$host_cpu,;t t
22620 s,@host_vendor@,$host_vendor,;t t
22621 s,@host_os@,$host_os,;t t
22622 s,@CC@,$CC,;t t
22623 s,@CFLAGS@,$CFLAGS,;t t
22624 s,@LDFLAGS@,$LDFLAGS,;t t
22625 s,@CPPFLAGS@,$CPPFLAGS,;t t
22626 s,@ac_ct_CC@,$ac_ct_CC,;t t
22627 s,@EXEEXT@,$EXEEXT,;t t
22628 s,@OBJEXT@,$OBJEXT,;t t
22629 s,@LN_S@,$LN_S,;t t
22630 s,@CPP@,$CPP,;t t
22631 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22632 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22633 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22634 s,@RANLIB@,$RANLIB,;t t
22635 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22636 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22637 s,@EGREP@,$EGREP,;t t
22638 s,@LIBSOUND@,$LIBSOUND,;t t
22639 s,@SET_MAKE@,$SET_MAKE,;t t
22640 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22641 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22642 s,@GTK_LIBS@,$GTK_LIBS,;t t
22643 s,@ALLOCA@,$ALLOCA,;t t
22644 s,@liblockfile@,$liblockfile,;t t
22645 s,@LIBOBJS@,$LIBOBJS,;t t
22646 s,@NEED_SETGID@,$NEED_SETGID,;t t
22647 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22648 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22649 s,@version@,$version,;t t
22650 s,@configuration@,$configuration,;t t
22651 s,@canonical@,$canonical,;t t
22652 s,@srcdir@,$srcdir,;t t
22653 s,@lispdir@,$lispdir,;t t
22654 s,@locallisppath@,$locallisppath,;t t
22655 s,@lisppath@,$lisppath,;t t
22656 s,@x_default_search_path@,$x_default_search_path,;t t
22657 s,@etcdir@,$etcdir,;t t
22658 s,@archlibdir@,$archlibdir,;t t
22659 s,@docdir@,$docdir,;t t
22660 s,@bitmapdir@,$bitmapdir,;t t
22661 s,@gamedir@,$gamedir,;t t
22662 s,@gameuser@,$gameuser,;t t
22663 s,@c_switch_system@,$c_switch_system,;t t
22664 s,@c_switch_machine@,$c_switch_machine,;t t
22665 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22666 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22667 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22668 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22669 s,@machfile@,$machfile,;t t
22670 s,@opsysfile@,$opsysfile,;t t
22671 s,@carbon_appdir@,$carbon_appdir,;t t
22672 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22673 CEOF
22675 _ACEOF
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22678 # Split the substitutions into bite-sized pieces for seds with
22679 # small command number limits, like on Digital OSF/1 and HP-UX.
22680 ac_max_sed_lines=48
22681 ac_sed_frag=1 # Number of current file.
22682 ac_beg=1 # First line for current file.
22683 ac_end=$ac_max_sed_lines # Line after last line for current file.
22684 ac_more_lines=:
22685 ac_sed_cmds=
22686 while $ac_more_lines; do
22687 if test $ac_beg -gt 1; then
22688 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22689 else
22690 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22692 if test ! -s $tmp/subs.frag; then
22693 ac_more_lines=false
22694 else
22695 # The purpose of the label and of the branching condition is to
22696 # speed up the sed processing (if there are no `@' at all, there
22697 # is no need to browse any of the substitutions).
22698 # These are the two extra sed commands mentioned above.
22699 (echo ':t
22700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22701 if test -z "$ac_sed_cmds"; then
22702 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22703 else
22704 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22706 ac_sed_frag=`expr $ac_sed_frag + 1`
22707 ac_beg=$ac_end
22708 ac_end=`expr $ac_end + $ac_max_sed_lines`
22710 done
22711 if test -z "$ac_sed_cmds"; then
22712 ac_sed_cmds=cat
22714 fi # test -n "$CONFIG_FILES"
22716 _ACEOF
22717 cat >>$CONFIG_STATUS <<\_ACEOF
22718 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22719 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22720 case $ac_file in
22721 - | *:- | *:-:* ) # input from stdin
22722 cat >$tmp/stdin
22723 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22724 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22725 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22726 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22727 * ) ac_file_in=$ac_file.in ;;
22728 esac
22730 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22731 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22733 X"$ac_file" : 'X\(//\)[^/]' \| \
22734 X"$ac_file" : 'X\(//\)$' \| \
22735 X"$ac_file" : 'X\(/\)' \| \
22736 . : '\(.\)' 2>/dev/null ||
22737 echo X"$ac_file" |
22738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22740 /^X\(\/\/\)$/{ s//\1/; q; }
22741 /^X\(\/\).*/{ s//\1/; q; }
22742 s/.*/./; q'`
22743 { if $as_mkdir_p; then
22744 mkdir -p "$ac_dir"
22745 else
22746 as_dir="$ac_dir"
22747 as_dirs=
22748 while test ! -d "$as_dir"; do
22749 as_dirs="$as_dir $as_dirs"
22750 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22752 X"$as_dir" : 'X\(//\)[^/]' \| \
22753 X"$as_dir" : 'X\(//\)$' \| \
22754 X"$as_dir" : 'X\(/\)' \| \
22755 . : '\(.\)' 2>/dev/null ||
22756 echo X"$as_dir" |
22757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22759 /^X\(\/\/\)$/{ s//\1/; q; }
22760 /^X\(\/\).*/{ s//\1/; q; }
22761 s/.*/./; q'`
22762 done
22763 test ! -n "$as_dirs" || mkdir $as_dirs
22764 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22765 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22766 { (exit 1); exit 1; }; }; }
22768 ac_builddir=.
22770 if test "$ac_dir" != .; then
22771 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22772 # A "../" for each directory in $ac_dir_suffix.
22773 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22774 else
22775 ac_dir_suffix= ac_top_builddir=
22778 case $srcdir in
22779 .) # No --srcdir option. We are building in place.
22780 ac_srcdir=.
22781 if test -z "$ac_top_builddir"; then
22782 ac_top_srcdir=.
22783 else
22784 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22785 fi ;;
22786 [\\/]* | ?:[\\/]* ) # Absolute path.
22787 ac_srcdir=$srcdir$ac_dir_suffix;
22788 ac_top_srcdir=$srcdir ;;
22789 *) # Relative path.
22790 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22791 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22792 esac
22794 # Do not use `cd foo && pwd` to compute absolute paths, because
22795 # the directories may not exist.
22796 case `pwd` in
22797 .) ac_abs_builddir="$ac_dir";;
22799 case "$ac_dir" in
22800 .) ac_abs_builddir=`pwd`;;
22801 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22802 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22803 esac;;
22804 esac
22805 case $ac_abs_builddir in
22806 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22808 case ${ac_top_builddir}. in
22809 .) ac_abs_top_builddir=$ac_abs_builddir;;
22810 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22811 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22812 esac;;
22813 esac
22814 case $ac_abs_builddir in
22815 .) ac_abs_srcdir=$ac_srcdir;;
22817 case $ac_srcdir in
22818 .) ac_abs_srcdir=$ac_abs_builddir;;
22819 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22820 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22821 esac;;
22822 esac
22823 case $ac_abs_builddir in
22824 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22826 case $ac_top_srcdir in
22827 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22828 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22829 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22830 esac;;
22831 esac
22834 case $INSTALL in
22835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22836 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22837 esac
22839 # Let's still pretend it is `configure' which instantiates (i.e., don't
22840 # use $as_me), people would be surprised to read:
22841 # /* config.h. Generated by config.status. */
22842 if test x"$ac_file" = x-; then
22843 configure_input=
22844 else
22845 configure_input="$ac_file. "
22847 configure_input=$configure_input"Generated from `echo $ac_file_in |
22848 sed 's,.*/,,'` by configure."
22850 # First look for the input files in the build tree, otherwise in the
22851 # src tree.
22852 ac_file_inputs=`IFS=:
22853 for f in $ac_file_in; do
22854 case $f in
22855 -) echo $tmp/stdin ;;
22856 [\\/$]*)
22857 # Absolute (can't be DOS-style, as IFS=:)
22858 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22859 echo "$as_me: error: cannot find input file: $f" >&2;}
22860 { (exit 1); exit 1; }; }
22861 echo "$f";;
22862 *) # Relative
22863 if test -f "$f"; then
22864 # Build tree
22865 echo "$f"
22866 elif test -f "$srcdir/$f"; then
22867 # Source tree
22868 echo "$srcdir/$f"
22869 else
22870 # /dev/null tree
22871 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22872 echo "$as_me: error: cannot find input file: $f" >&2;}
22873 { (exit 1); exit 1; }; }
22874 fi;;
22875 esac
22876 done` || { (exit 1); exit 1; }
22878 if test x"$ac_file" != x-; then
22879 { echo "$as_me:$LINENO: creating $ac_file" >&5
22880 echo "$as_me: creating $ac_file" >&6;}
22881 rm -f "$ac_file"
22883 _ACEOF
22884 cat >>$CONFIG_STATUS <<_ACEOF
22885 sed "$ac_vpsub
22886 $extrasub
22887 _ACEOF
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22891 s,@configure_input@,$configure_input,;t t
22892 s,@srcdir@,$ac_srcdir,;t t
22893 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22894 s,@top_srcdir@,$ac_top_srcdir,;t t
22895 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22896 s,@builddir@,$ac_builddir,;t t
22897 s,@abs_builddir@,$ac_abs_builddir,;t t
22898 s,@top_builddir@,$ac_top_builddir,;t t
22899 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22900 s,@INSTALL@,$ac_INSTALL,;t t
22901 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22902 rm -f $tmp/stdin
22903 if test x"$ac_file" != x-; then
22904 mv $tmp/out $ac_file
22905 else
22906 cat $tmp/out
22907 rm -f $tmp/out
22910 done
22911 _ACEOF
22912 cat >>$CONFIG_STATUS <<\_ACEOF
22915 # CONFIG_HEADER section.
22918 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22919 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22921 # ac_d sets the value in "#define NAME VALUE" lines.
22922 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22923 ac_dB='[ ].*$,\1#\2'
22924 ac_dC=' '
22925 ac_dD=',;t'
22926 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22927 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22928 ac_uB='$,\1#\2define\3'
22929 ac_uC=' '
22930 ac_uD=',;t'
22932 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22933 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22934 case $ac_file in
22935 - | *:- | *:-:* ) # input from stdin
22936 cat >$tmp/stdin
22937 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22938 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22939 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22940 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22941 * ) ac_file_in=$ac_file.in ;;
22942 esac
22944 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22945 echo "$as_me: creating $ac_file" >&6;}
22947 # First look for the input files in the build tree, otherwise in the
22948 # src tree.
22949 ac_file_inputs=`IFS=:
22950 for f in $ac_file_in; do
22951 case $f in
22952 -) echo $tmp/stdin ;;
22953 [\\/$]*)
22954 # Absolute (can't be DOS-style, as IFS=:)
22955 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22956 echo "$as_me: error: cannot find input file: $f" >&2;}
22957 { (exit 1); exit 1; }; }
22958 # Do quote $f, to prevent DOS paths from being IFS'd.
22959 echo "$f";;
22960 *) # Relative
22961 if test -f "$f"; then
22962 # Build tree
22963 echo "$f"
22964 elif test -f "$srcdir/$f"; then
22965 # Source tree
22966 echo "$srcdir/$f"
22967 else
22968 # /dev/null tree
22969 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22970 echo "$as_me: error: cannot find input file: $f" >&2;}
22971 { (exit 1); exit 1; }; }
22972 fi;;
22973 esac
22974 done` || { (exit 1); exit 1; }
22975 # Remove the trailing spaces.
22976 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22978 _ACEOF
22980 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22981 # `conftest.undefs', that substitutes the proper values into
22982 # config.h.in to produce config.h. The first handles `#define'
22983 # templates, and the second `#undef' templates.
22984 # And first: Protect against being on the right side of a sed subst in
22985 # config.status. Protect against being in an unquoted here document
22986 # in config.status.
22987 rm -f conftest.defines conftest.undefs
22988 # Using a here document instead of a string reduces the quoting nightmare.
22989 # Putting comments in sed scripts is not portable.
22991 # `end' is used to avoid that the second main sed command (meant for
22992 # 0-ary CPP macros) applies to n-ary macro definitions.
22993 # See the Autoconf documentation for `clear'.
22994 cat >confdef2sed.sed <<\_ACEOF
22995 s/[\\&,]/\\&/g
22996 s,[\\$`],\\&,g
22997 t clear
22998 : clear
22999 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23000 t end
23001 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23002 : end
23003 _ACEOF
23004 # If some macros were called several times there might be several times
23005 # the same #defines, which is useless. Nevertheless, we may not want to
23006 # sort them, since we want the *last* AC-DEFINE to be honored.
23007 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23008 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23009 rm -f confdef2sed.sed
23011 # This sed command replaces #undef with comments. This is necessary, for
23012 # example, in the case of _POSIX_SOURCE, which is predefined and required
23013 # on some systems where configure will not decide to define it.
23014 cat >>conftest.undefs <<\_ACEOF
23015 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23016 _ACEOF
23018 # Break up conftest.defines because some shells have a limit on the size
23019 # of here documents, and old seds have small limits too (100 cmds).
23020 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23021 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23022 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23023 echo ' :' >>$CONFIG_STATUS
23024 rm -f conftest.tail
23025 while grep . conftest.defines >/dev/null
23027 # Write a limited-size here document to $tmp/defines.sed.
23028 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23029 # Speed up: don't consider the non `#define' lines.
23030 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23031 # Work around the forget-to-reset-the-flag bug.
23032 echo 't clr' >>$CONFIG_STATUS
23033 echo ': clr' >>$CONFIG_STATUS
23034 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23035 echo 'CEOF
23036 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23037 rm -f $tmp/in
23038 mv $tmp/out $tmp/in
23039 ' >>$CONFIG_STATUS
23040 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23041 rm -f conftest.defines
23042 mv conftest.tail conftest.defines
23043 done
23044 rm -f conftest.defines
23045 echo ' fi # grep' >>$CONFIG_STATUS
23046 echo >>$CONFIG_STATUS
23048 # Break up conftest.undefs because some shells have a limit on the size
23049 # of here documents, and old seds have small limits too (100 cmds).
23050 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23051 rm -f conftest.tail
23052 while grep . conftest.undefs >/dev/null
23054 # Write a limited-size here document to $tmp/undefs.sed.
23055 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23056 # Speed up: don't consider the non `#undef'
23057 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23058 # Work around the forget-to-reset-the-flag bug.
23059 echo 't clr' >>$CONFIG_STATUS
23060 echo ': clr' >>$CONFIG_STATUS
23061 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23062 echo 'CEOF
23063 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23064 rm -f $tmp/in
23065 mv $tmp/out $tmp/in
23066 ' >>$CONFIG_STATUS
23067 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23068 rm -f conftest.undefs
23069 mv conftest.tail conftest.undefs
23070 done
23071 rm -f conftest.undefs
23073 cat >>$CONFIG_STATUS <<\_ACEOF
23074 # Let's still pretend it is `configure' which instantiates (i.e., don't
23075 # use $as_me), people would be surprised to read:
23076 # /* config.h. Generated by config.status. */
23077 if test x"$ac_file" = x-; then
23078 echo "/* Generated by configure. */" >$tmp/config.h
23079 else
23080 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23082 cat $tmp/in >>$tmp/config.h
23083 rm -f $tmp/in
23084 if test x"$ac_file" != x-; then
23085 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23086 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23087 echo "$as_me: $ac_file is unchanged" >&6;}
23088 else
23089 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23090 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23091 X"$ac_file" : 'X\(//\)[^/]' \| \
23092 X"$ac_file" : 'X\(//\)$' \| \
23093 X"$ac_file" : 'X\(/\)' \| \
23094 . : '\(.\)' 2>/dev/null ||
23095 echo X"$ac_file" |
23096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23098 /^X\(\/\/\)$/{ s//\1/; q; }
23099 /^X\(\/\).*/{ s//\1/; q; }
23100 s/.*/./; q'`
23101 { if $as_mkdir_p; then
23102 mkdir -p "$ac_dir"
23103 else
23104 as_dir="$ac_dir"
23105 as_dirs=
23106 while test ! -d "$as_dir"; do
23107 as_dirs="$as_dir $as_dirs"
23108 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23110 X"$as_dir" : 'X\(//\)[^/]' \| \
23111 X"$as_dir" : 'X\(//\)$' \| \
23112 X"$as_dir" : 'X\(/\)' \| \
23113 . : '\(.\)' 2>/dev/null ||
23114 echo X"$as_dir" |
23115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23117 /^X\(\/\/\)$/{ s//\1/; q; }
23118 /^X\(\/\).*/{ s//\1/; q; }
23119 s/.*/./; q'`
23120 done
23121 test ! -n "$as_dirs" || mkdir $as_dirs
23122 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23123 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23124 { (exit 1); exit 1; }; }; }
23126 rm -f $ac_file
23127 mv $tmp/config.h $ac_file
23129 else
23130 cat $tmp/config.h
23131 rm -f $tmp/config.h
23133 done
23134 _ACEOF
23135 cat >>$CONFIG_STATUS <<\_ACEOF
23138 # CONFIG_COMMANDS section.
23140 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23141 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23142 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23143 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23144 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23145 X"$ac_dest" : 'X\(//\)[^/]' \| \
23146 X"$ac_dest" : 'X\(//\)$' \| \
23147 X"$ac_dest" : 'X\(/\)' \| \
23148 . : '\(.\)' 2>/dev/null ||
23149 echo X"$ac_dest" |
23150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23152 /^X\(\/\/\)$/{ s//\1/; q; }
23153 /^X\(\/\).*/{ s//\1/; q; }
23154 s/.*/./; q'`
23155 { if $as_mkdir_p; then
23156 mkdir -p "$ac_dir"
23157 else
23158 as_dir="$ac_dir"
23159 as_dirs=
23160 while test ! -d "$as_dir"; do
23161 as_dirs="$as_dir $as_dirs"
23162 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23164 X"$as_dir" : 'X\(//\)[^/]' \| \
23165 X"$as_dir" : 'X\(//\)$' \| \
23166 X"$as_dir" : 'X\(/\)' \| \
23167 . : '\(.\)' 2>/dev/null ||
23168 echo X"$as_dir" |
23169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23171 /^X\(\/\/\)$/{ s//\1/; q; }
23172 /^X\(\/\).*/{ s//\1/; q; }
23173 s/.*/./; q'`
23174 done
23175 test ! -n "$as_dirs" || mkdir $as_dirs
23176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23178 { (exit 1); exit 1; }; }; }
23180 ac_builddir=.
23182 if test "$ac_dir" != .; then
23183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23184 # A "../" for each directory in $ac_dir_suffix.
23185 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23186 else
23187 ac_dir_suffix= ac_top_builddir=
23190 case $srcdir in
23191 .) # No --srcdir option. We are building in place.
23192 ac_srcdir=.
23193 if test -z "$ac_top_builddir"; then
23194 ac_top_srcdir=.
23195 else
23196 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23197 fi ;;
23198 [\\/]* | ?:[\\/]* ) # Absolute path.
23199 ac_srcdir=$srcdir$ac_dir_suffix;
23200 ac_top_srcdir=$srcdir ;;
23201 *) # Relative path.
23202 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23203 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23204 esac
23206 # Do not use `cd foo && pwd` to compute absolute paths, because
23207 # the directories may not exist.
23208 case `pwd` in
23209 .) ac_abs_builddir="$ac_dir";;
23211 case "$ac_dir" in
23212 .) ac_abs_builddir=`pwd`;;
23213 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23214 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23215 esac;;
23216 esac
23217 case $ac_abs_builddir in
23218 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23220 case ${ac_top_builddir}. in
23221 .) ac_abs_top_builddir=$ac_abs_builddir;;
23222 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23223 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23224 esac;;
23225 esac
23226 case $ac_abs_builddir in
23227 .) ac_abs_srcdir=$ac_srcdir;;
23229 case $ac_srcdir in
23230 .) ac_abs_srcdir=$ac_abs_builddir;;
23231 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23232 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23233 esac;;
23234 esac
23235 case $ac_abs_builddir in
23236 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23238 case $ac_top_srcdir in
23239 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23240 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23241 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23242 esac;;
23243 esac
23246 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23247 echo "$as_me: executing $ac_dest commands" >&6;}
23248 case $ac_dest in
23249 default )
23251 ### Make the necessary directories, if they don't exist.
23252 for dir in etc lisp ; do
23253 test -d ${dir} || mkdir ${dir}
23254 done
23256 # Build src/Makefile from ${srcdir}/src/Makefile.c
23257 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23258 # This must be done after src/config.h is built, since we rely on that file.
23260 # Now get this: Some word that is part of the ${srcdir} directory name
23261 # or the ${configuration} value might, just might, happen to be an
23262 # identifier like `sun4' or `i386' or something, and be predefined by
23263 # the C preprocessor to some helpful value like 1, or maybe the empty
23264 # string. Needless to say consequent macro substitutions are less
23265 # than conducive to the makefile finding the correct directory.
23266 undefs="`echo $top_srcdir $configuration $canonical |
23267 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23268 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23271 echo creating src/epaths.h
23272 ${MAKE-make} epaths-force
23274 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23275 # `..' to `. .' unless invoked with -traditional
23277 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23278 CPPFLAGS="$CPPFLAGS -traditional"
23281 echo creating lib-src/Makefile
23282 ( cd lib-src
23283 rm -f junk.c junk1.c junk2.c
23284 sed -e '/start of cpp stuff/q' \
23285 < Makefile.c > junk1.c
23286 sed -e '1,/start of cpp stuff/d'\
23287 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23288 < Makefile.c > junk.c
23289 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23290 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23291 cat junk1.c junk2.c > Makefile.new
23292 rm -f junk.c junk1.c junk2.c
23293 chmod 444 Makefile.new
23294 mv -f Makefile.new Makefile
23297 echo creating src/Makefile
23298 ( cd src
23299 rm -f junk.c junk1.c junk2.c
23300 sed -e '/start of cpp stuff/q' \
23301 < Makefile.c > junk1.c
23302 sed -e '1,/start of cpp stuff/d'\
23303 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23304 < Makefile.c > junk.c
23305 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23306 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23307 cat junk1.c junk2.c > Makefile.new
23308 rm -f junk.c junk1.c junk2.c
23309 chmod 444 Makefile.new
23310 mv -f Makefile.new Makefile
23313 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23314 echo creating src/.gdbinit
23315 echo source $srcdir/src/.gdbinit > src/.gdbinit
23318 # This is how we know whether to re-run configure in certain cases.
23319 touch src/config.stamp
23322 esac
23323 done
23324 _ACEOF
23326 cat >>$CONFIG_STATUS <<\_ACEOF
23328 { (exit 0); exit 0; }
23329 _ACEOF
23330 chmod +x $CONFIG_STATUS
23331 ac_clean_files=$ac_clean_files_save
23334 # configure is writing to config.log, and then calls config.status.
23335 # config.status does its own redirection, appending to config.log.
23336 # Unfortunately, on DOS this fails, as config.log is still kept open
23337 # by configure, so config.status won't be able to write to it; its
23338 # output is simply discarded. So we exec the FD to /dev/null,
23339 # effectively closing config.log, so it can be properly (re)opened and
23340 # appended to by config.status. When coming back to configure, we
23341 # need to make the FD available again.
23342 if test "$no_create" != yes; then
23343 ac_cs_success=:
23344 ac_config_status_args=
23345 test "$silent" = yes &&
23346 ac_config_status_args="$ac_config_status_args --quiet"
23347 exec 5>/dev/null
23348 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23349 exec 5>>config.log
23350 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23351 # would make configure fail if this is the last instruction.
23352 $ac_cs_success || { (exit 1); exit 1; }