Fix C-g during `make-network-process'. (Reported by Mark Plaksin.)
[emacs.git] / configure
blobef24e648937be46901e95851b417d8237ab45b66
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 GZIP_PROG EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS 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 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
1722 esac
1725 ## NetBSD ports
1726 *-*-netbsd* )
1727 opsys=netbsd
1728 if test -f /usr/lib/crti.o; then
1730 cat >>confdefs.h <<\_ACEOF
1731 #define HAVE_CRTIN
1732 _ACEOF
1736 case "${canonical}" in
1737 alpha*-*-netbsd*) machine=alpha ;;
1738 i[3456]86-*-netbsd*) machine=intel386 ;;
1739 m68k-*-netbsd*)
1740 # This is somewhat bogus.
1741 machine=hp9000s300 ;;
1742 powerpc-apple-netbsd*) machine=macppc ;;
1743 mips-*-netbsd*) machine=pmax ;;
1744 mipsel-*-netbsd*) machine=pmax ;;
1745 mipseb-*-netbsd*) machine=pmax ;;
1746 ns32k-*-netbsd*) machine=ns32000 ;;
1747 powerpc-*-netbsd*) machine=macppc ;;
1748 sparc*-*-netbsd*) machine=sparc ;;
1749 vax-*-netbsd*) machine=vax ;;
1750 arm-*-netbsd*) machine=arm ;;
1751 esac
1754 ## OpenBSD ports
1755 *-*-openbsd* )
1756 opsys=openbsd
1757 case "${canonical}" in
1758 alpha*-*-openbsd*) machine=alpha ;;
1759 i386-*-openbsd*) machine=intel386 ;;
1760 m68k-*-openbsd*) machine=hp9000s300 ;;
1761 mipsel-*-openbsd*) machine=pmax ;;
1762 ns32k-*-openbsd*) machine=ns32000 ;;
1763 sparc-*-openbsd*) machine=sparc ;;
1764 vax-*-openbsd*) machine=vax ;;
1765 esac
1768 ## LynxOS ports
1769 *-*-lynxos* )
1770 opsys=lynxos
1771 case "${canonical}" in
1772 i[3456]86-*-lynxos*) machine=intel386 ;;
1773 powerpc-*-lynxos*) machine=powerpc ;;
1774 esac
1777 ## Acorn RISCiX:
1778 arm-acorn-riscix1.1* )
1779 machine=acorn opsys=riscix1-1
1781 arm-acorn-riscix1.2* | arm-acorn-riscix )
1782 ## This name is riscix12 instead of riscix1.2
1783 ## to avoid a file name conflict on MSDOS.
1784 machine=acorn opsys=riscix12
1787 ## BSDI ports
1788 *-*-bsdi* )
1789 opsys=bsdi
1790 case "${canonical}" in
1791 i[345]86-*-bsdi*) machine=intel386 ;;
1792 sparc-*-bsdi*) machine=sparc ;;
1793 powerpc-*-bsdi*) machine=macppc ;;
1794 esac
1795 case "${canonical}" in
1796 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
1797 *-*-bsdi2.0* ) opsys=bsdos2 ;;
1798 *-*-bsdi2* ) opsys=bsdos2-1 ;;
1799 *-*-bsdi3* ) opsys=bsdos3 ;;
1800 *-*-bsdi[45]* ) opsys=bsdos4 ;;
1801 esac
1804 ## Alliant machines
1805 ## Strictly speaking, we need the version of the alliant operating
1806 ## system to choose the right machine file, but currently the
1807 ## configuration name doesn't tell us enough to choose the right
1808 ## one; we need to give alliants their own operating system name to
1809 ## do this right. When someone cares, they can help us.
1810 fx80-alliant-* )
1811 machine=alliant4 opsys=bsd4-2
1813 i860-alliant-* )
1814 machine=alliant-2800 opsys=bsd4-3
1817 ## Alpha (DEC) machines.
1818 alpha*-dec-osf* )
1819 machine=alpha opsys=osf1
1820 # This is needed to find X11R6.1 libraries for certain tests.
1821 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1822 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
1823 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1824 # due to non-traditional preprocessing with the current compiler
1825 # defaults. OSF 4 can also have that compiler version, and there
1826 # seems always to have been a usable /usr/bin/cpp.
1827 NON_GNU_CPP=/usr/bin/cpp
1828 case "${canonical}" in
1829 alpha*-dec-osf[5-9]*)
1830 opsys=osf5-0 ;;
1831 esac
1834 alpha*-*-linux-gnu* )
1835 machine=alpha opsys=gnu-linux
1838 arm*-*-linux-gnu* )
1839 machine=arm opsys=gnu-linux
1842 ## Altos 3068
1843 m68*-altos-sysv* )
1844 machine=altos opsys=usg5-2
1847 ## Amdahl UTS
1848 580-amdahl-sysv* )
1849 machine=amdahl opsys=usg5-2-2
1852 ## Apollo, Domain/OS
1853 m68*-apollo-* )
1854 machine=apollo opsys=bsd4-3
1857 ## AT&T 3b2, 3b5, 3b15, 3b20
1858 we32k-att-sysv* )
1859 machine=att3b opsys=usg5-2-2
1862 ## AT&T 3b1 - The Mighty Unix PC!
1863 m68*-att-sysv* )
1864 machine=7300 opsys=usg5-2-2
1867 ## Bull dpx20
1868 rs6000-bull-bosx* )
1869 machine=ibmrs6000 opsys=aix3-2
1872 ## Bull dpx2
1873 m68*-bull-sysv3* )
1874 machine=dpx2 opsys=usg5-3
1877 ## Bull sps7
1878 m68*-bull-sysv2* )
1879 machine=sps7 opsys=usg5-2
1882 ## CCI 5/32, 6/32 -- see "Tahoe".
1884 ## Celerity
1885 ## I don't know what configuration name to use for this; config.sub
1886 ## doesn't seem to know anything about it. Hey, Celerity users, get
1887 ## in touch with us!
1888 celerity-celerity-bsd* )
1889 machine=celerity opsys=bsd4-2
1892 ## Clipper
1893 ## What operating systems does this chip run that Emacs has been
1894 ## tested on?
1895 clipper-* )
1896 machine=clipper
1897 ## We'll use the catch-all code at the bottom to guess the
1898 ## operating system.
1901 ## Compaq Nonstop
1902 mips-compaq-nonstopux* )
1903 machine=nonstopux opsys=nonstopux
1906 ## Convex
1907 *-convex-bsd* | *-convex-convexos* )
1908 machine=convex opsys=bsd4-3
1909 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1910 NON_GNU_CPP="cc -E -P"
1913 ## Cubix QBx/386
1914 i[3456]86-cubix-sysv* )
1915 machine=intel386 opsys=usg5-3
1918 ## Cydra 5
1919 cydra*-cydrome-sysv* )
1920 machine=cydra5 opsys=usg5-3
1923 ## Data General AViiON Machines
1924 ## DG changed naming conventions with the release of 5.4.4.10, they
1925 ## dropped the initial 5.4 but left the intervening R. Because of the
1926 ## R this shouldn't conflict with older versions of the OS (which I
1927 ## think were named like dgux4.*). In addition, DG new AViiONs series
1928 ## uses either Motorola M88k or Intel Pentium CPUs.
1929 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
1930 machine=aviion opsys=dgux4
1932 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
1933 ## This name is dgux5-4-3 instead of dgux5-4r3
1934 ## to avoid a file name conflict on MSDOS.
1935 machine=aviion opsys=dgux5-4-3
1937 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
1938 machine=aviion opsys=dgux5-4r2
1940 m88k-dg-dgux* )
1941 machine=aviion opsys=dgux
1944 ## Data General AViiON Intel (x86) Machines
1945 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1946 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1947 i[345]86-dg-dguxR4* )
1948 machine=aviion-intel opsys=dgux4
1951 ## DECstations
1952 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1953 machine=pmax opsys=bsd4-2
1955 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1956 machine=pmax opsys=bsd4-3
1958 mips-dec-ultrix* )
1959 machine=pmax opsys=ultrix4-3
1961 mips-dec-osf* )
1962 machine=pmax opsys=osf1
1964 mips-dec-mach_bsd4.3* )
1965 machine=pmax opsys=mach-bsd4-3
1968 ## Motorola Delta machines
1969 m68k-motorola-sysv* | m68000-motorola-sysv* )
1970 machine=delta opsys=usg5-3
1971 if test -z "`type gnucc | grep 'not found'`"
1972 then
1973 if test -s /etc/167config
1974 then CC="gnucc -m68040"
1975 else CC="gnucc -m68881"
1977 else
1978 if test -z "`type gcc | grep 'not found'`"
1979 then CC=gcc
1980 else CC=cc
1984 m88k-motorola-sysv4* )
1985 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1986 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1987 # I hope there are not other 4.0 versions for this machine
1988 # which really need usg5-4 instead.
1989 machine=delta88k opsys=usg5-4-2
1991 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1992 machine=delta88k opsys=usg5-3
1995 ## Dual machines
1996 m68*-dual-sysv* )
1997 machine=dual opsys=usg5-2
1999 m68*-dual-uniplus* )
2000 machine=dual opsys=unipl5-2
2003 ## Elxsi 6400
2004 elxsi-elxsi-sysv* )
2005 machine=elxsi opsys=usg5-2
2008 ## Encore machines
2009 ns16k-encore-bsd* )
2010 machine=ns16000 opsys=umax
2013 ## The GEC 63 - apparently, this port isn't really finished yet.
2014 # I'm sure we finished off the last of the machines, though. -- fx
2016 ## Gould Power Node and NP1
2017 pn-gould-bsd4.2* )
2018 machine=gould opsys=bsd4-2
2020 pn-gould-bsd4.3* )
2021 machine=gould opsys=bsd4-3
2023 np1-gould-bsd* )
2024 machine=gould-np1 opsys=bsd4-3
2027 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2028 ## as far as Emacs is concerned).
2029 m88k-harris-cxux* )
2030 # Build needs to be different on 7.0 and later releases
2031 case "`uname -r`" in
2032 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2033 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2034 esac
2035 NON_GNU_CPP="/lib/cpp"
2037 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2038 m68k-harris-cxux* )
2039 machine=nh3000 opsys=cxux
2041 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2042 powerpc-harris-powerunix )
2043 machine=nh6000 opsys=powerunix
2044 NON_GNU_CPP="cc -Xo -E -P"
2046 ## SR2001/SR2201 running HI-UX/MPP
2047 hppa1.1-hitachi-hiuxmpp* )
2048 machine=sr2k opsys=hiuxmpp
2050 hppa1.1-hitachi-hiuxwe2* )
2051 machine=sr2k opsys=hiuxwe2
2053 ## Honeywell XPS100
2054 xps*-honeywell-sysv* )
2055 machine=xps100 opsys=usg5-2
2058 ## HP 9000 series 200 or 300
2059 m68*-hp-bsd* )
2060 machine=hp9000s300 opsys=bsd4-3
2062 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2063 m68*-hp-hpux* )
2064 case "`uname -r`" in
2065 ## Someone's system reports A.B8.05 for this.
2066 ## I wonder what other possibilities there are.
2067 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2068 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2069 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2070 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2071 *) machine=hp9000s300 opsys=hpux ;;
2072 esac
2075 ## HP 9000 series 700 and 800, running HP/UX
2076 hppa*-hp-hpux7* )
2077 machine=hp800 opsys=hpux
2079 hppa*-hp-hpux8* )
2080 machine=hp800 opsys=hpux8
2082 hppa*-hp-hpux9shr* )
2083 machine=hp800 opsys=hpux9shr
2085 hppa*-hp-hpux9* )
2086 machine=hp800 opsys=hpux9
2088 hppa*-hp-hpux10.2* )
2089 machine=hp800 opsys=hpux10-20
2091 hppa*-hp-hpux10* )
2092 machine=hp800 opsys=hpux10
2094 hppa*-hp-hpux1[1-9]* )
2095 machine=hp800 opsys=hpux11
2098 hppa*-*-linux-gnu* )
2099 machine=hp800 opsys=gnu-linux
2102 ## HP 9000 series 700 and 800, running HP/UX
2103 hppa*-hp-hpux* )
2104 ## Cross-compilation? Nah!
2105 case "`uname -r`" in
2106 ## Someone's system reports A.B8.05 for this.
2107 ## I wonder what other possibilities there are.
2108 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2109 *.08.* ) machine=hp800 opsys=hpux8 ;;
2110 *.09.* ) machine=hp800 opsys=hpux9 ;;
2111 *) machine=hp800 opsys=hpux10 ;;
2112 esac
2114 hppa*-*-nextstep* )
2115 machine=hp800 opsys=nextstep
2118 ## Orion machines
2119 orion-orion-bsd* )
2120 machine=orion opsys=bsd4-2
2122 clipper-orion-bsd* )
2123 machine=orion105 opsys=bsd4-2
2126 ## IBM machines
2127 i[3456]86-ibm-aix1.1* )
2128 machine=ibmps2-aix opsys=usg5-2-2
2130 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2131 machine=ibmps2-aix opsys=usg5-3
2133 i370-ibm-aix*)
2134 machine=ibm370aix opsys=usg5-3
2136 s390-*-linux-gnu* )
2137 machine=ibms390 opsys=gnu-linux
2139 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2140 machine=ibmrs6000 opsys=aix3-1
2142 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2143 machine=ibmrs6000 opsys=aix3-2-5
2145 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2146 machine=ibmrs6000 opsys=aix4-1
2148 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2149 machine=ibmrs6000 opsys=aix4-2
2151 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2152 machine=ibmrs6000 opsys=aix4-2
2154 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2155 machine=ibmrs6000 opsys=aix4
2157 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2158 machine=ibmrs6000 opsys=aix4-1
2160 rs6000-ibm-aix* | powerpc-ibm-aix* )
2161 machine=ibmrs6000 opsys=aix3-2
2163 romp-ibm-bsd4.3* )
2164 machine=ibmrt opsys=bsd4-3
2166 romp-ibm-bsd4.2* )
2167 machine=ibmrt opsys=bsd4-2
2169 romp-ibm-aos4.3* )
2170 machine=ibmrt opsys=bsd4-3
2172 romp-ibm-aos4.2* )
2173 machine=ibmrt opsys=bsd4-2
2175 romp-ibm-aos* )
2176 machine=ibmrt opsys=bsd4-3
2178 romp-ibm-bsd* )
2179 machine=ibmrt opsys=bsd4-3
2181 romp-ibm-aix* )
2182 machine=ibmrt-aix opsys=usg5-2-2
2185 ## Integrated Solutions `Optimum V'
2186 m68*-isi-bsd4.2* )
2187 machine=isi-ov opsys=bsd4-2
2189 m68*-isi-bsd4.3* )
2190 machine=isi-ov opsys=bsd4-3
2193 ## Intel 386 machines where we do care about the manufacturer
2194 i[3456]86-intsys-sysv* )
2195 machine=is386 opsys=usg5-2-2
2198 ## Prime EXL
2199 i[3456]86-prime-sysv* )
2200 machine=i386 opsys=usg5-3
2203 ## Sequent Symmetry running Dynix
2204 i[3456]86-sequent-bsd* )
2205 machine=symmetry opsys=bsd4-3
2208 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2209 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2210 machine=sequent-ptx opsys=ptx4
2211 NON_GNU_CPP=/lib/cpp
2214 ## Sequent Symmetry running DYNIX/ptx
2215 ## Use the old cpp rather than the newer ANSI one.
2216 i[3456]86-sequent-ptx* )
2217 machine=sequent-ptx opsys=ptx
2218 NON_GNU_CPP="/lib/cpp"
2221 ## ncr machine running svr4.3.
2222 i[3456]86-ncr-sysv4.3 )
2223 machine=ncr386 opsys=usg5-4-3
2226 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2227 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2228 i[3456]86-ncr-sysv* )
2229 machine=ncr386 opsys=usg5-4-2
2232 ## Intel Paragon OSF/1
2233 i860-intel-osf1* )
2234 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2237 ## Intel 860
2238 i860-*-sysv4* )
2239 machine=i860 opsys=usg5-4
2240 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2241 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2244 ## Macintosh PowerPC
2245 powerpc*-*-linux-gnu* )
2246 machine=macppc opsys=gnu-linux
2249 ## Masscomp machines
2250 m68*-masscomp-rtu* )
2251 machine=masscomp opsys=rtu
2254 ## Megatest machines
2255 m68*-megatest-bsd* )
2256 machine=mega68 opsys=bsd4-2
2259 ## Workstations sold by MIPS
2260 ## This is not necessarily all workstations using the MIPS processor -
2261 ## Irises are produced by SGI, and DECstations by DEC.
2263 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2264 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2265 ## it gives for choosing between the alternatives seems to be "Use
2266 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2267 ## the BSD world." I'll assume that these are instructions for
2268 ## handling two odd situations, and that every other situation
2269 ## should use mips.h and usg5-2-2, they being listed first.
2270 mips-mips-usg* )
2271 machine=mips4
2272 ## Fall through to the general code at the bottom to decide on the OS.
2274 mips-mips-riscos4* )
2275 machine=mips4 opsys=bsd4-3
2276 NON_GNU_CC="cc -systype bsd43"
2277 NON_GNU_CPP="cc -systype bsd43 -E"
2279 mips-mips-riscos5* )
2280 machine=mips4 opsys=riscos5
2281 NON_GNU_CC="cc -systype bsd43"
2282 NON_GNU_CPP="cc -systype bsd43 -E"
2284 mips-mips-bsd* )
2285 machine=mips opsys=bsd4-3
2287 mips-mips-* )
2288 machine=mips opsys=usg5-2-2
2291 ## NeXT
2292 m68*-next-* | m68k-*-nextstep* )
2293 machine=m68k opsys=nextstep
2296 ## The complete machine from National Semiconductor
2297 ns32k-ns-genix* )
2298 machine=ns32000 opsys=usg5-2
2301 ## NCR machines
2302 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2303 machine=tower32 opsys=usg5-2-2
2305 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2306 machine=tower32v3 opsys=usg5-3
2309 ## NEC EWS4800
2310 mips-nec-sysv4*)
2311 machine=ews4800 opsys=ux4800
2314 ## Nixdorf Targon 31
2315 m68*-nixdorf-sysv* )
2316 machine=targon31 opsys=usg5-2-2
2319 ## Nu (TI or LMI)
2320 m68*-nu-sysv* )
2321 machine=nu opsys=usg5-2
2324 ## Plexus
2325 m68*-plexus-sysv* )
2326 machine=plexus opsys=usg5-2
2329 ## Pyramid machines
2330 ## I don't really have any idea what sort of processor the Pyramid has,
2331 ## so I'm assuming it is its own architecture.
2332 pyramid-pyramid-bsd* )
2333 machine=pyramid opsys=bsd4-2
2336 ## Sequent Balance
2337 ns32k-sequent-bsd4.2* )
2338 machine=sequent opsys=bsd4-2
2340 ns32k-sequent-bsd4.3* )
2341 machine=sequent opsys=bsd4-3
2344 ## Siemens Nixdorf
2345 mips-siemens-sysv* | mips-sni-sysv*)
2346 machine=mips-siemens opsys=usg5-4
2347 NON_GNU_CC=/usr/ccs/bin/cc
2348 NON_GNU_CPP=/usr/ccs/lib/cpp
2351 ## Silicon Graphics machines
2352 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2353 m68*-sgi-iris3.5* )
2354 machine=irist opsys=iris3-5
2356 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2357 machine=irist opsys=iris3-6
2359 ## Iris 4D
2360 mips-sgi-irix3* )
2361 machine=iris4d opsys=irix3-3
2363 mips-sgi-irix4* )
2364 machine=iris4d opsys=irix4-0
2366 mips-sgi-irix6.5 )
2367 machine=iris4d opsys=irix6-5
2368 # Without defining _LANGUAGE_C, things get masked out in the headers
2369 # so that, for instance, grepping for `free' in stdlib.h fails and
2370 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2371 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2372 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2374 mips-sgi-irix6* )
2375 machine=iris4d opsys=irix6-0
2376 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2377 # but presumably it does no harm.
2378 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2379 # -32 probably isn't necessary in later v.6s -- anyone know which?
2380 NON_GCC_TEST_OPTIONS=-32
2382 mips-sgi-irix5.[01]* )
2383 machine=iris4d opsys=irix5-0
2385 mips-sgi-irix5* | mips-sgi-irix* )
2386 machine=iris4d opsys=irix5-2
2389 ## SONY machines
2390 m68*-sony-bsd4.2* )
2391 machine=news opsys=bsd4-2
2393 m68*-sony-bsd4.3* )
2394 machine=news opsys=bsd4-3
2396 m68*-sony-newsos3* | m68*-sony-news3*)
2397 machine=news opsys=bsd4-3
2399 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2400 machine=news-risc opsys=bsd4-3
2402 mips-sony-newsos6* )
2403 machine=news-r6 opsys=newsos6
2405 mips-sony-news* )
2406 machine=news-risc opsys=newsos5
2409 ## Stride
2410 m68*-stride-sysv* )
2411 machine=stride opsys=usg5-2
2414 ## Suns
2415 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2416 machine=sparc opsys=gnu-linux
2419 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2420 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2421 | rs6000-*-solaris2*)
2422 case "${canonical}" in
2423 m68*-sunos1* ) machine=sun1 ;;
2424 m68*-sunos2* ) machine=sun2 ;;
2425 m68* ) machine=sun3 ;;
2426 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2427 i[3456]86-*-* ) machine=intel386 ;;
2428 powerpcle* ) machine=powerpcle ;;
2429 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2430 sparc* ) machine=sparc ;;
2431 * ) unported=yes ;;
2432 esac
2433 case "${canonical}" in
2434 ## The Sun386 didn't get past 4.0.
2435 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2436 *-sunos4.0* ) opsys=sunos4-0 ;;
2437 *-sunos4.1.[3-9]*noshare )
2438 ## This name is sunos413 instead of sunos4-1-3
2439 ## to avoid a file name conflict on MSDOS.
2440 opsys=sunos413
2441 NON_GNU_CPP=/usr/lib/cpp
2442 NON_GCC_TEST_OPTIONS=-Bstatic
2443 GCC_TEST_OPTIONS=-static
2445 *-sunos4.1.[3-9]* | *-sunos4shr*)
2446 opsys=sunos4shr
2447 NON_GNU_CPP=/usr/lib/cpp
2449 *-sunos4* | *-sunos )
2450 opsys=sunos4-1
2451 NON_GCC_TEST_OPTIONS=-Bstatic
2452 GCC_TEST_OPTIONS=-static
2454 *-sunos5.3* | *-solaris2.3* )
2455 opsys=sol2-3
2456 NON_GNU_CPP=/usr/ccs/lib/cpp
2458 *-sunos5.4* | *-solaris2.4* )
2459 opsys=sol2-4
2460 NON_GNU_CPP=/usr/ccs/lib/cpp
2461 RANLIB="ar -ts"
2463 *-sunos5.5* | *-solaris2.5* )
2464 opsys=sol2-5
2465 NON_GNU_CPP=/usr/ccs/lib/cpp
2466 RANLIB="ar -ts"
2468 *-sunos5.6* | *-solaris2.6* )
2469 opsys=sol2-6
2470 NON_GNU_CPP=/usr/ccs/lib/cpp
2471 RANLIB="ar -ts"
2473 *-sunos5* | *-solaris* )
2474 opsys=sol2-6
2475 NON_GNU_CPP=/usr/ccs/lib/cpp
2477 * ) opsys=bsd4-2 ;;
2478 esac
2479 ## Watch out for a compiler that we know will not work.
2480 case "${canonical}" in
2481 *-solaris* | *-sunos5* )
2482 if [ "x$CC" = x/usr/ucb/cc ]; then
2483 ## /usr/ucb/cc doesn't work;
2484 ## we should find some other compiler that does work.
2485 unset CC
2488 *) ;;
2489 esac
2491 sparc-*-nextstep* )
2492 machine=sparc opsys=nextstep
2495 ## Tadpole 68k
2496 m68*-tadpole-sysv* )
2497 machine=tad68k opsys=usg5-3
2500 ## Tahoe machines
2501 tahoe-tahoe-bsd4.2* )
2502 machine=tahoe opsys=bsd4-2
2504 tahoe-tahoe-bsd4.3* )
2505 machine=tahoe opsys=bsd4-3
2508 ## Tandem Integrity S2
2509 mips-tandem-sysv* )
2510 machine=tandem-s2 opsys=usg5-3
2513 ## Tektronix XD88
2514 m88k-tektronix-sysv3* )
2515 machine=tekxd88 opsys=usg5-3
2518 ## Tektronix 16000 box (6130?)
2519 ns16k-tektronix-bsd* )
2520 machine=ns16000 opsys=bsd4-2
2522 ## Tektronix 4300
2523 ## src/m/tek4300.h hints that this is a m68k machine.
2524 m68*-tektronix-bsd* )
2525 machine=tek4300 opsys=bsd4-3
2528 ## Titan P2 or P3
2529 ## We seem to have lost the machine-description file titan.h!
2530 titan-titan-sysv* )
2531 machine=titan opsys=usg5-3
2534 ## Ustation E30 (SS5E)
2535 m68*-unisys-uniplus* )
2536 machine=ustation opsystem=unipl5-2
2539 ## Vaxen.
2540 vax-dec-* )
2541 machine=vax
2542 case "${canonical}" in
2543 *-bsd4.1* ) opsys=bsd4-1 ;;
2544 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2545 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2546 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2547 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2548 *-vms* ) opsys=vms ;;
2549 * ) unported=yes
2550 esac
2553 ## Whitechapel MG1
2554 ns16k-whitechapel-* )
2555 machine=mg1
2556 ## We don't know what sort of OS runs on these; we'll let the
2557 ## operating system guessing code below try.
2560 ## Wicat
2561 m68*-wicat-sysv* )
2562 machine=wicat opsys=usg5-2
2565 ## IA-64
2566 ia64*-*-linux* )
2567 machine=ia64 opsys=gnu-linux
2570 ## Intel 386 machines where we don't care about the manufacturer
2571 i[3456]86-*-* )
2572 machine=intel386
2573 case "${canonical}" in
2574 *-cygwin ) opsys=cygwin ;;
2575 *-darwin* ) opsys=darwin
2576 CPP="${CC-cc} -E -no-cpp-precomp"
2578 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
2579 *-isc2.2* ) opsys=isc2-2 ;;
2580 *-isc4.0* ) opsys=isc4-0 ;;
2581 *-isc4.* ) opsys=isc4-1
2582 GCC_TEST_OPTIONS=-posix
2583 NON_GCC_TEST_OPTIONS=-Xp
2585 *-isc* ) opsys=isc3-0 ;;
2586 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
2587 *-esix* ) opsys=esix ;;
2588 *-xenix* ) opsys=xenix ;;
2589 *-linux-gnu* ) opsys=gnu-linux ;;
2590 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
2591 *-sco3.2v5* ) opsys=sco5
2592 NON_GNU_CPP=/lib/cpp
2593 # Prevent -belf from being passed to $CPP.
2594 # /lib/cpp does not accept it.
2595 OVERRIDE_CPPFLAGS=" "
2597 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2598 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2599 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2600 *-386bsd* ) opsys=386bsd ;;
2601 *-nextstep* ) opsys=nextstep ;;
2602 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2603 esac
2606 ## m68k Linux-based GNU system
2607 m68k-*-linux-gnu* )
2608 machine=m68k opsys=gnu-linux
2611 ## Mips Linux-based GNU system
2612 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2613 machine=mips opsys=gnu-linux
2616 ## UXP/DS
2617 sparc-fujitsu-sysv4* )
2618 machine=sparc opsys=uxpds
2619 NON_GNU_CPP=/usr/ccs/lib/cpp
2620 RANLIB="ar -ts"
2623 ## UXP/V
2624 f301-fujitsu-uxpv4.1)
2625 machine=f301 opsys=uxpv
2628 ## Darwin / Mac OS X
2629 powerpc-apple-darwin* )
2630 machine=powermac opsys=darwin
2631 # Define CPP as follows to make autoconf work correctly.
2632 CPP="${CC-cc} -E -no-cpp-precomp"
2633 # Use fink packages if available.
2634 if test -d /sw/include && test -d /sw/lib; then
2635 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2636 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2637 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-*-linux-gnu* )
2643 machine=amdx86-64 opsys=gnu-linux
2647 unported=yes
2649 esac
2651 ### If the code above didn't choose an operating system, just choose
2652 ### an operating system based on the configuration name. You really
2653 ### only want to use this when you have no idea what the right
2654 ### operating system is; if you know what operating systems a machine
2655 ### runs, it's cleaner to make it explicit in the case statement
2656 ### above.
2657 if test x"${opsys}" = x; then
2658 case "${canonical}" in
2659 *-gnu* ) opsys=gnu ;;
2660 *-bsd4.[01] ) opsys=bsd4-1 ;;
2661 *-bsd4.2 ) opsys=bsd4-2 ;;
2662 *-bsd4.3 ) opsys=bsd4-3 ;;
2663 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2664 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2665 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2666 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2667 *-sysv4.2uw* ) opsys=unixware ;;
2668 *-sysv5uw* ) opsys=unixware ;;
2669 *-sysv5OpenUNIX* ) opsys=unixware ;;
2670 *-sysv4.1* | *-sysvr4.1* )
2671 NON_GNU_CPP=/usr/lib/cpp
2672 opsys=usg5-4 ;;
2673 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2674 if [ x$NON_GNU_CPP = x ]; then
2675 if [ -f /usr/ccs/lib/cpp ]; then
2676 NON_GNU_CPP=/usr/ccs/lib/cpp
2677 else
2678 NON_GNU_CPP=/lib/cpp
2681 opsys=usg5-4-2 ;;
2682 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2684 unported=yes
2686 esac
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2699 machfile="m/${machine}.h"
2700 opsysfile="s/${opsys}.h"
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified=yes
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS="$CFLAGS"
2709 case ${with_gcc} in
2710 "yes" ) CC="gcc" GCC=yes ;;
2711 "no" ) : ${CC=cc} ;;
2713 esac
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6
2750 else
2751 echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6
2756 if test -z "$ac_cv_prog_CC"; then
2757 ac_ct_CC=$CC
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759 set dummy gcc; ac_word=$2
2760 echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2785 if test -n "$ac_ct_CC"; then
2786 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2787 echo "${ECHO_T}$ac_ct_CC" >&6
2788 else
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2793 CC=$ac_ct_CC
2794 else
2795 CC="$ac_cv_prog_CC"
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}cc; ac_word=$2
2802 echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2817 ac_cv_prog_CC="${ac_tool_prefix}cc"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2821 done
2822 done
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 echo "$as_me:$LINENO: result: $CC" >&5
2829 echo "${ECHO_T}$CC" >&6
2830 else
2831 echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6
2836 if test -z "$ac_cv_prog_CC"; then
2837 ac_ct_CC=$CC
2838 # Extract the first word of "cc", so it can be a program name with args.
2839 set dummy cc; ac_word=$2
2840 echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2842 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845 if test -n "$ac_ct_CC"; then
2846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_ac_ct_CC="cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2859 done
2860 done
2864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2865 if test -n "$ac_ct_CC"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2867 echo "${ECHO_T}$ac_ct_CC" >&6
2868 else
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2873 CC=$ac_ct_CC
2874 else
2875 CC="$ac_cv_prog_CC"
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc; ac_word=$2
2882 echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 ac_prog_rejected=no
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected=yes
2900 continue
2902 ac_cv_prog_CC="cc"
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy $ac_cv_prog_CC
2912 shift
2913 if test $# != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2917 shift
2918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 CC=$ac_cv_prog_CC
2924 if test -n "$CC"; then
2925 echo "$as_me:$LINENO: result: $CC" >&5
2926 echo "${ECHO_T}$CC" >&6
2927 else
2928 echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in cl
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2967 else
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2972 test -n "$CC" && break
2973 done
2975 if test -z "$CC"; then
2976 ac_ct_CC=$CC
2977 for ac_prog in cl
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 echo "${ECHO_T}$ac_ct_CC" >&6
3009 else
3010 echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6
3014 test -n "$ac_ct_CC" && break
3015 done
3017 CC=$ac_ct_CC
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO:" \
3031 "checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3034 (eval $ac_compiler --version </dev/null >&5) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3039 (eval $ac_compiler -v </dev/null >&5) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3044 (eval $ac_compiler -V </dev/null >&5) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3073 (eval $ac_link_default) 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 # Find the output, starting from the most likely. This scheme is
3078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3079 # resort.
3081 # Be careful to initialize this variable, since it used to be cached.
3082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3083 ac_cv_exeext=
3084 # b.out is created by i960 compilers.
3085 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3091 conftest.$ac_ext )
3092 # This is the source file.
3094 [ab].out )
3095 # We found the default executable, but exeext='' is most
3096 # certainly right.
3097 break;;
3098 *.* )
3099 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 # FIXME: I believe we export ac_cv_exeext for Libtool,
3101 # but it would be cool to find out if it's true. Does anybody
3102 # maintain Libtool? --akim.
3103 export ac_cv_exeext
3104 break;;
3106 break;;
3107 esac
3108 done
3109 else
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3114 See \`config.log' for more details." >&5
3115 echo "$as_me: error: C compiler cannot create executables
3116 See \`config.log' for more details." >&2;}
3117 { (exit 77); exit 77; }; }
3120 ac_exeext=$ac_cv_exeext
3121 echo "$as_me:$LINENO: result: $ac_file" >&5
3122 echo "${ECHO_T}$ac_file" >&6
3124 # Check the compiler produces executables we can run. If not, either
3125 # the compiler is broken, or we cross compile.
3126 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3127 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3129 # If not cross compiling, check that we can run a simple program.
3130 if test "$cross_compiling" != yes; then
3131 if { ac_try='./$ac_file'
3132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133 (eval $ac_try) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3137 cross_compiling=no
3138 else
3139 if test "$cross_compiling" = maybe; then
3140 cross_compiling=yes
3141 else
3142 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3143 If you meant to cross compile, use \`--host'.
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3155 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3156 ac_clean_files=$ac_clean_files_save
3157 # Check the compiler produces executables we can run. If not, either
3158 # the compiler is broken, or we cross compile.
3159 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3160 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3161 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3162 echo "${ECHO_T}$cross_compiling" >&6
3164 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3165 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167 (eval $ac_link) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; then
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3174 # `rm'.
3175 for ac_file in conftest.exe conftest conftest.*; do
3176 test -f "$ac_file" || continue
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3179 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180 export ac_cv_exeext
3181 break;;
3182 * ) break;;
3183 esac
3184 done
3185 else
3186 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3189 See \`config.log' for more details." >&2;}
3190 { (exit 1); exit 1; }; }
3193 rm -f conftest$ac_cv_exeext
3194 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3195 echo "${ECHO_T}$ac_cv_exeext" >&6
3197 rm -f conftest.$ac_ext
3198 EXEEXT=$ac_cv_exeext
3199 ac_exeext=$EXEEXT
3200 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3201 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3202 if test "${ac_cv_objext+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h. */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h. */
3213 main ()
3217 return 0;
3219 _ACEOF
3220 rm -f conftest.o conftest.obj
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; then
3226 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3227 case $ac_file in
3228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 break;;
3231 esac
3232 done
3233 else
3234 echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3238 See \`config.log' for more details." >&5
3239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3240 See \`config.log' for more details." >&2;}
3241 { (exit 1); exit 1; }; }
3244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3247 echo "${ECHO_T}$ac_cv_objext" >&6
3248 OBJEXT=$ac_cv_objext
3249 ac_objext=$OBJEXT
3250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h. */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 main ()
3265 #ifndef __GNUC__
3266 choke me
3267 #endif
3270 return 0;
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_compiler_gnu=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 ac_compiler_gnu=no
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3307 GCC=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CFLAGS=${CFLAGS+set}
3309 ac_save_CFLAGS=$CFLAGS
3310 CFLAGS="-g"
3311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cc_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3324 main ()
3328 return 0;
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 (eval $ac_try) 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_prog_cc_g=yes
3353 else
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_cv_prog_cc_g=no
3359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3363 if test "$ac_test_CFLAGS" = set; then
3364 CFLAGS=$ac_save_CFLAGS
3365 elif test $ac_cv_prog_cc_g = yes; then
3366 if test "$GCC" = yes; then
3367 CFLAGS="-g -O2"
3368 else
3369 CFLAGS="-g"
3371 else
3372 if test "$GCC" = yes; then
3373 CFLAGS="-O2"
3374 else
3375 CFLAGS=
3378 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3379 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3380 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 ac_cv_prog_cc_stdc=no
3384 ac_save_CC=$CC
3385 cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h. */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3391 #include <stdarg.h>
3392 #include <stdio.h>
3393 #include <sys/types.h>
3394 #include <sys/stat.h>
3395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3396 struct buf { int x; };
3397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3398 static char *e (p, i)
3399 char **p;
3400 int i;
3402 return p[i];
3404 static char *f (char * (*g) (char **, int), char **p, ...)
3406 char *s;
3407 va_list v;
3408 va_start (v,p);
3409 s = g (p, va_arg (v,int));
3410 va_end (v);
3411 return s;
3414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3415 function prototypes and stuff, but not '\xHH' hex character constants.
3416 These don't provoke an error unfortunately, instead are silently treated
3417 as 'x'. The following induces an error, until -std1 is added to get
3418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3419 array size at least. It's necessary to write '\x00'==0 to get something
3420 that's true only with -std1. */
3421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3423 int test (int i, double x);
3424 struct s1 {int (*f) (int a);};
3425 struct s2 {int (*f) (double a);};
3426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3427 int argc;
3428 char **argv;
3430 main ()
3432 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3434 return 0;
3436 _ACEOF
3437 # Don't try gcc -ansi; that turns off useful extensions and
3438 # breaks some systems' header files.
3439 # AIX -qlanglvl=ansi
3440 # Ultrix and OSF/1 -std1
3441 # HP-UX 10.20 and later -Ae
3442 # HP-UX older versions -Aa -D_HPUX_SOURCE
3443 # SVR4 -Xc -D__EXTENSIONS__
3444 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 CC="$ac_save_CC $ac_arg"
3447 rm -f conftest.$ac_objext
3448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449 (eval $ac_compile) 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_prog_cc_stdc=$ac_arg
3469 break
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f conftest.err conftest.$ac_objext
3476 done
3477 rm -f conftest.$ac_ext conftest.$ac_objext
3478 CC=$ac_save_CC
3482 case "x$ac_cv_prog_cc_stdc" in
3483 x|xno)
3484 echo "$as_me:$LINENO: result: none needed" >&5
3485 echo "${ECHO_T}none needed" >&6 ;;
3487 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3488 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3489 CC="$CC $ac_cv_prog_cc_stdc" ;;
3490 esac
3492 # Some people use a C++ compiler to compile C. Since we use `exit',
3493 # in C++ we need to declare it. In case someone uses the same compiler
3494 # for both compiling C and C++ we need to have the C++ compiler decide
3495 # the declaration of exit, since it's the most demanding environment.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #ifndef __cplusplus
3498 choke me
3499 #endif
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 for ac_declaration in \
3523 '' \
3524 'extern "C" void std::exit (int) throw (); using std::exit;' \
3525 'extern "C" void std::exit (int); using std::exit;' \
3526 'extern "C" void exit (int) throw ();' \
3527 'extern "C" void exit (int);' \
3528 'void exit (int);'
3530 cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h. */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 $ac_declaration
3537 #include <stdlib.h>
3539 main ()
3541 exit (42);
3543 return 0;
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548 (eval $ac_compile) 2>conftest.er1
3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } &&
3555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest.$ac_objext'
3562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3568 else
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 continue
3574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575 cat >conftest.$ac_ext <<_ACEOF
3576 /* confdefs.h. */
3577 _ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3581 $ac_declaration
3583 main ()
3585 exit (42);
3587 return 0;
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; } &&
3605 { ac_try='test -s conftest.$ac_objext'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; }; then
3611 break
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3618 done
3619 rm -f conftest*
3620 if test -n "$ac_declaration"; then
3621 echo '#ifdef __cplusplus' >>confdefs.h
3622 echo $ac_declaration >>confdefs.h
3623 echo '#endif' >>confdefs.h
3626 else
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_ext=c
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 # On Suns, sometimes $CPP names a directory.
3640 if test -n "$CPP" && test -d "$CPP"; then
3641 CPP=
3644 #### Some systems specify a CPP to use unless we are using GCC.
3645 #### Now that we know whether we are using GCC, we can decide whether
3646 #### to use that one.
3647 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3648 then
3649 CPP="$NON_GNU_CPP"
3652 #### Some systems specify a CC to use unless we are using GCC.
3653 #### Now that we know whether we are using GCC, we can decide whether
3654 #### to use that one.
3655 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3656 test x$cc_specified != xyes
3657 then
3658 CC="$NON_GNU_CC"
3661 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3662 then
3663 CC="$CC $GCC_TEST_OPTIONS"
3666 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3667 then
3668 CC="$CC $NON_GCC_TEST_OPTIONS"
3671 ### Use -Wno-pointer-sign if the compiler supports it
3672 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3673 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3674 SAVE_CFLAGS="$CFLAGS"
3675 CFLAGS="$CFLAGS -Wno-pointer-sign"
3677 cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h. */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3685 main ()
3689 return 0;
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; } &&
3707 { ac_try='test -s conftest.$ac_objext'
3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3709 (eval $ac_try) 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 has_option=yes
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 has_option=no
3720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721 if test $has_option = yes; then
3722 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
3724 echo "$as_me:$LINENO: result: $has_option" >&5
3725 echo "${ECHO_T}$has_option" >&6
3726 CFLAGS="$SAVE_CFLAGS"
3727 unset has_option
3728 unset SAVE_CFLAGS
3730 #### Some other nice autoconf tests.
3732 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3733 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3734 LN_S=$as_ln_s
3735 if test "$LN_S" = "ln -s"; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737 echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3740 echo "${ECHO_T}no, using $LN_S" >&6
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3749 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3752 CPP=
3754 if test -z "$CPP"; then
3755 if test "${ac_cv_prog_CPP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761 ac_preproc_ok=false
3762 for ac_c_preproc_warn_flag in '' yes
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781 Syntax error
3782 _ACEOF
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev/null; then
3791 if test -s conftest.err; then
3792 ac_cpp_err=$ac_c_preproc_warn_flag
3793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3794 else
3795 ac_cpp_err=
3797 else
3798 ac_cpp_err=yes
3800 if test -z "$ac_cpp_err"; then
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3807 continue
3809 rm -f conftest.err conftest.$ac_ext
3811 # OK, works on sane cases. Now check whether non-existent headers
3812 # can be detected and how.
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h. */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 #include <ac_nonexistent.h>
3820 _ACEOF
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } >/dev/null; then
3829 if test -s conftest.err; then
3830 ac_cpp_err=$ac_c_preproc_warn_flag
3831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3832 else
3833 ac_cpp_err=
3835 else
3836 ac_cpp_err=yes
3838 if test -z "$ac_cpp_err"; then
3839 # Broken: success on invalid input.
3840 continue
3841 else
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 # Passes both tests.
3846 ac_preproc_ok=:
3847 break
3849 rm -f conftest.err conftest.$ac_ext
3851 done
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3855 break
3858 done
3859 ac_cv_prog_CPP=$CPP
3862 CPP=$ac_cv_prog_CPP
3863 else
3864 ac_cv_prog_CPP=$CPP
3866 echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6
3868 ac_preproc_ok=false
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883 #ifdef __STDC__
3884 # include <limits.h>
3885 #else
3886 # include <assert.h>
3887 #endif
3888 Syntax error
3889 _ACEOF
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev/null; then
3898 if test -s conftest.err; then
3899 ac_cpp_err=$ac_c_preproc_warn_flag
3900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3901 else
3902 ac_cpp_err=
3904 else
3905 ac_cpp_err=yes
3907 if test -z "$ac_cpp_err"; then
3909 else
3910 echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 # Broken: fails on valid input.
3914 continue
3916 rm -f conftest.err conftest.$ac_ext
3918 # OK, works on sane cases. Now check whether non-existent headers
3919 # can be detected and how.
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3927 _ACEOF
3928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3930 ac_status=$?
3931 grep -v '^ *+' conftest.er1 >conftest.err
3932 rm -f conftest.er1
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } >/dev/null; then
3936 if test -s conftest.err; then
3937 ac_cpp_err=$ac_c_preproc_warn_flag
3938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3939 else
3940 ac_cpp_err=
3942 else
3943 ac_cpp_err=yes
3945 if test -z "$ac_cpp_err"; then
3946 # Broken: success on invalid input.
3947 continue
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3956 rm -f conftest.err conftest.$ac_ext
3958 done
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then
3963 else
3964 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&5
3966 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 # Find a good install program. We prefer a C program (faster),
3978 # so one script is as good as another. But avoid the broken or
3979 # incompatible versions:
3980 # SysV /etc/install, /usr/sbin/install
3981 # SunOS /usr/etc/install
3982 # IRIX /sbin/install
3983 # AIX /bin/install
3984 # AmigaOS /C/install, which installs bootblocks on floppy discs
3985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3988 # OS/2's system install, which has a completely different semantic
3989 # ./install, which can be erroneously created by make from ./install.sh.
3990 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3991 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3992 if test -z "$INSTALL"; then
3993 if test "${ac_cv_path_install+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 # Account for people who put trailing slashes in PATH elements.
4002 case $as_dir/ in
4003 ./ | .// | /cC/* | \
4004 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4005 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4006 /usr/ucb/* ) ;;
4008 # OSF1 and SCO ODT 3.0 have their own names for install.
4009 # Don't use installbsd from OSF since it installs stuff as root
4010 # by default.
4011 for ac_prog in ginstall scoinst install; do
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4014 if test $ac_prog = install &&
4015 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4016 # AIX install. It has an incompatible calling convention.
4018 elif test $ac_prog = install &&
4019 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4020 # program-specific install script used by HP pwplus--don't use.
4022 else
4023 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4024 break 3
4027 done
4028 done
4030 esac
4031 done
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL=$ac_cv_path_install
4037 else
4038 # As a last resort, use the slow shell script. We don't cache a
4039 # path for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the path is relative.
4042 INSTALL=$ac_install_sh
4045 echo "$as_me:$LINENO: result: $INSTALL" >&5
4046 echo "${ECHO_T}$INSTALL" >&6
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4056 if test "x$RANLIB" = x; then
4057 if test -n "$ac_tool_prefix"; then
4058 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_RANLIB+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 if test -n "$RANLIB"; then
4066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4084 RANLIB=$ac_cv_prog_RANLIB
4085 if test -n "$RANLIB"; then
4086 echo "$as_me:$LINENO: result: $RANLIB" >&5
4087 echo "${ECHO_T}$RANLIB" >&6
4088 else
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 if test -z "$ac_cv_prog_RANLIB"; then
4095 ac_ct_RANLIB=$RANLIB
4096 # Extract the first word of "ranlib", so it can be a program name with args.
4097 set dummy ranlib; ac_word=$2
4098 echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4100 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 if test -n "$ac_ct_RANLIB"; then
4104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_ac_ct_RANLIB="ranlib"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4117 done
4118 done
4120 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4123 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4124 if test -n "$ac_ct_RANLIB"; then
4125 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4126 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4127 else
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4132 RANLIB=$ac_ct_RANLIB
4133 else
4134 RANLIB="$ac_cv_prog_RANLIB"
4138 # Extract the first word of "install-info", so it can be a program name with args.
4139 set dummy install-info; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 case $INSTALL_INFO in
4146 [\\/]* | ?:[\\/]*)
4147 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4165 esac
4167 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4177 # Extract the first word of "install-info", so it can be a program name with args.
4178 set dummy install-info; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184 case $INSTALL_INFO in
4185 [\\/]* | ?:[\\/]*)
4186 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in /usr/sbin
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4204 esac
4206 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4208 if test -n "$INSTALL_INFO"; then
4209 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4210 echo "${ECHO_T}$INSTALL_INFO" >&6
4211 else
4212 echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4216 # Extract the first word of "install-info", so it can be a program name with args.
4217 set dummy install-info; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 case $INSTALL_INFO in
4224 [\\/]* | ?:[\\/]*)
4225 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in /sbin
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4242 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4244 esac
4246 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4248 if test -n "$INSTALL_INFO"; then
4249 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4250 echo "${ECHO_T}$INSTALL_INFO" >&6
4251 else
4252 echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4256 # Extract the first word of "gzip", so it can be a program name with args.
4257 set dummy gzip; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263 case $GZIP_PROG in
4264 [\\/]* | ?:[\\/]*)
4265 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4283 esac
4285 GZIP_PROG=$ac_cv_path_GZIP_PROG
4287 if test -n "$GZIP_PROG"; then
4288 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4289 echo "${ECHO_T}$GZIP_PROG" >&6
4290 else
4291 echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6
4297 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
4298 then
4299 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
4302 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4303 then
4304 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4308 late_LDFLAGS=$LDFLAGS
4309 if test "$GCC" = yes; then
4310 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
4311 else
4312 LDFLAGS="$LDFLAGS -znocombreloc"
4315 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4316 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4317 cat >conftest.$ac_ext <<_ACEOF
4318 main(){return 0;}
4319 _ACEOF
4320 rm -f conftest.$ac_objext conftest$ac_exeext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4322 (eval $ac_link) 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331 (eval $ac_try) 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4343 else
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 LDFLAGS=$late_LDFLAGS
4348 echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4351 rm -f conftest.err conftest.$ac_objext \
4352 conftest$ac_exeext conftest.$ac_ext
4355 echo "$as_me:$LINENO: checking for egrep" >&5
4356 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4357 if test "${ac_cv_prog_egrep+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4361 then ac_cv_prog_egrep='grep -E'
4362 else ac_cv_prog_egrep='egrep'
4365 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4366 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4367 EGREP=$ac_cv_prog_egrep
4371 echo "$as_me:$LINENO: checking for AIX" >&5
4372 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h. */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #ifdef _AIX
4381 #endif
4383 _ACEOF
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385 $EGREP "yes" >/dev/null 2>&1; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388 cat >>confdefs.h <<\_ACEOF
4389 #define _ALL_SOURCE 1
4390 _ACEOF
4392 else
4393 echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4396 rm -f conftest*
4401 #### Extract some information from the operating system and machine files.
4403 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4404 - which libraries the lib-src programs will want, and
4405 - whether the GNU malloc routines are usable..." >&5
4406 echo "$as_me: checking the machine- and system-dependent files to find out
4407 - which libraries the lib-src programs will want, and
4408 - whether the GNU malloc routines are usable..." >&6;}
4410 ### First figure out CFLAGS (which we use for running the compiler here)
4411 ### and REAL_CFLAGS (which we use for real compilation).
4412 ### The two are the same except on a few systems, where they are made
4413 ### different to work around various lossages. For example,
4414 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4415 ### as implying static linking.
4417 ### If the CFLAGS env var is specified, we use that value
4418 ### instead of the default.
4420 ### It's not important that this name contain the PID; you can't run
4421 ### two configures in the same directory and have anything work
4422 ### anyway.
4423 tempcname="conftest.c"
4425 echo '
4426 #include "'${srcdir}'/src/'${opsysfile}'"
4427 #include "'${srcdir}'/src/'${machfile}'"
4428 #ifndef LIBS_MACHINE
4429 #define LIBS_MACHINE
4430 #endif
4431 #ifndef LIBS_SYSTEM
4432 #define LIBS_SYSTEM
4433 #endif
4434 #ifndef C_SWITCH_SYSTEM
4435 #define C_SWITCH_SYSTEM
4436 #endif
4437 #ifndef C_SWITCH_MACHINE
4438 #define C_SWITCH_MACHINE
4439 #endif
4440 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4441 configure___ c_switch_system=C_SWITCH_SYSTEM
4442 configure___ c_switch_machine=C_SWITCH_MACHINE
4444 #ifndef LIB_X11_LIB
4445 #define LIB_X11_LIB -lX11
4446 #endif
4448 #ifndef LIBX11_MACHINE
4449 #define LIBX11_MACHINE
4450 #endif
4452 #ifndef LIBX11_SYSTEM
4453 #define LIBX11_SYSTEM
4454 #endif
4455 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4457 #ifdef UNEXEC
4458 configure___ unexec=UNEXEC
4459 #else
4460 configure___ unexec=unexec.o
4461 #endif
4463 #ifdef SYSTEM_MALLOC
4464 configure___ system_malloc=yes
4465 #else
4466 configure___ system_malloc=no
4467 #endif
4469 #ifdef USE_MMAP_FOR_BUFFERS
4470 configure___ use_mmap_for_buffers=yes
4471 #else
4472 configure___ use_mmap_for_buffers=no
4473 #endif
4475 #ifndef C_DEBUG_SWITCH
4476 #define C_DEBUG_SWITCH -g
4477 #endif
4479 #ifndef C_OPTIMIZE_SWITCH
4480 #ifdef __GNUC__
4481 #define C_OPTIMIZE_SWITCH -O2
4482 #else
4483 #define C_OPTIMIZE_SWITCH -O
4484 #endif
4485 #endif
4487 #ifndef C_WARNINGS_SWITCH
4488 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4489 #endif
4491 #ifndef LD_SWITCH_MACHINE
4492 #define LD_SWITCH_MACHINE
4493 #endif
4495 #ifndef LD_SWITCH_SYSTEM
4496 #define LD_SWITCH_SYSTEM
4497 #endif
4499 #ifndef LD_SWITCH_X_SITE_AUX
4500 #define LD_SWITCH_X_SITE_AUX
4501 #endif
4503 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4504 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4506 #ifdef THIS_IS_CONFIGURE
4508 /* Get the CFLAGS for tests in configure. */
4509 #ifdef __GNUC__
4510 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4511 #else
4512 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4513 #endif
4515 #else /* not THIS_IS_CONFIGURE */
4517 /* Get the CFLAGS for real compilation. */
4518 #ifdef __GNUC__
4519 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4520 #else
4521 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4522 #endif
4524 #endif /* not THIS_IS_CONFIGURE */
4525 ' > ${tempcname}
4527 # The value of CPP is a quoted variable reference, so we need to do this
4528 # to get its actual value...
4529 CPP=`eval "echo $CPP"`
4530 eval `${CPP} -Isrc ${tempcname} \
4531 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4532 if test "x$SPECIFIED_CFLAGS" = x; then
4533 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4534 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4535 else
4536 REAL_CFLAGS="$CFLAGS"
4538 rm ${tempcname}
4540 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
4542 ### Make sure subsequent tests use flags consistent with the build flags.
4544 if test x"${OVERRIDE_CPPFLAGS}" != x; then
4545 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
4546 else
4547 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
4553 cat >>confdefs.h <<\_ACEOF
4554 #define _GNU_SOURCE 1
4555 _ACEOF
4559 # Check whether --enable-largefile or --disable-largefile was given.
4560 if test "${enable_largefile+set}" = set; then
4561 enableval="$enable_largefile"
4564 if test "$enable_largefile" != no; then
4566 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4567 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4568 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571 ac_cv_sys_largefile_CC=no
4572 if test "$GCC" != yes; then
4573 ac_save_CC=$CC
4574 while :; do
4575 # IRIX 6.2 and later do not support large files by default,
4576 # so use the C compiler's -n32 option if that helps.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 /* Check that off_t can represent 2**63 - 1 correctly.
4585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4586 since some C++ compilers masquerading as C compilers
4587 incorrectly reject 9223372036854775807. */
4588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4590 && LARGE_OFF_T % 2147483647 == 1)
4591 ? 1 : -1];
4593 main ()
4597 return 0;
4599 _ACEOF
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>conftest.er1
4603 ac_status=$?
4604 grep -v '^ *+' conftest.er1 >conftest.err
4605 rm -f conftest.er1
4606 cat conftest.err >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } &&
4609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 (eval $ac_try) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; } &&
4615 { ac_try='test -s conftest.$ac_objext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 break
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4627 rm -f conftest.err conftest.$ac_objext
4628 CC="$CC -n32"
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 ac_cv_sys_largefile_CC=' -n32'; break
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4656 rm -f conftest.err conftest.$ac_objext
4657 break
4658 done
4659 CC=$ac_save_CC
4660 rm -f conftest.$ac_ext
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4664 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4665 if test "$ac_cv_sys_largefile_CC" != no; then
4666 CC=$CC$ac_cv_sys_largefile_CC
4669 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4670 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4671 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 while :; do
4675 ac_cv_sys_file_offset_bits=no
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <sys/types.h>
4683 /* Check that off_t can represent 2**63 - 1 correctly.
4684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4685 since some C++ compilers masquerading as C compilers
4686 incorrectly reject 9223372036854775807. */
4687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4689 && LARGE_OFF_T % 2147483647 == 1)
4690 ? 1 : -1];
4692 main ()
4696 return 0;
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>conftest.er1
4702 ac_status=$?
4703 grep -v '^ *+' conftest.er1 >conftest.err
4704 rm -f conftest.er1
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 (eval $ac_try) 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 break
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #define _FILE_OFFSET_BITS 64
4734 #include <sys/types.h>
4735 /* Check that off_t can represent 2**63 - 1 correctly.
4736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4737 since some C++ compilers masquerading as C compilers
4738 incorrectly reject 9223372036854775807. */
4739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4741 && LARGE_OFF_T % 2147483647 == 1)
4742 ? 1 : -1];
4744 main ()
4748 return 0;
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_sys_file_offset_bits=64; break
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4779 break
4780 done
4782 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4783 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4784 if test "$ac_cv_sys_file_offset_bits" != no; then
4786 cat >>confdefs.h <<_ACEOF
4787 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4788 _ACEOF
4791 rm -f conftest*
4792 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4793 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4794 if test "${ac_cv_sys_large_files+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 while :; do
4798 ac_cv_sys_large_files=no
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <sys/types.h>
4806 /* Check that off_t can represent 2**63 - 1 correctly.
4807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808 since some C++ compilers masquerading as C compilers
4809 incorrectly reject 9223372036854775807. */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812 && LARGE_OFF_T % 2147483647 == 1)
4813 ? 1 : -1];
4815 main ()
4819 return 0;
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4843 break
4844 else
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h. */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 #define _LARGE_FILES 1
4857 #include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860 since some C++ compilers masquerading as C compilers
4861 incorrectly reject 9223372036854775807. */
4862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864 && LARGE_OFF_T % 2147483647 == 1)
4865 ? 1 : -1];
4867 main ()
4871 return 0;
4873 _ACEOF
4874 rm -f conftest.$ac_objext
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest.$ac_objext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_sys_large_files=1; break
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4902 break
4903 done
4905 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4906 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4907 if test "$ac_cv_sys_large_files" != no; then
4909 cat >>confdefs.h <<_ACEOF
4910 #define _LARGE_FILES $ac_cv_sys_large_files
4911 _ACEOF
4914 rm -f conftest*
4918 if test "${with_sound}" != "no"; then
4919 # Sound support for GNU/Linux and the free BSDs.
4920 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4922 if test "${ac_cv_header_stdc+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #include <stdlib.h>
4932 #include <stdarg.h>
4933 #include <string.h>
4934 #include <float.h>
4937 main ()
4941 return 0;
4943 _ACEOF
4944 rm -f conftest.$ac_objext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946 (eval $ac_compile) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_cv_header_stdc=yes
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 ac_cv_header_stdc=no
4972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974 if test $ac_cv_header_stdc = yes; then
4975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <string.h>
4984 _ACEOF
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986 $EGREP "memchr" >/dev/null 2>&1; then
4988 else
4989 ac_cv_header_stdc=no
4991 rm -f conftest*
4995 if test $ac_cv_header_stdc = yes; then
4996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h. */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #include <stdlib.h>
5005 _ACEOF
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007 $EGREP "free" >/dev/null 2>&1; then
5009 else
5010 ac_cv_header_stdc=no
5012 rm -f conftest*
5016 if test $ac_cv_header_stdc = yes; then
5017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018 if test "$cross_compiling" = yes; then
5020 else
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <ctype.h>
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031 #else
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037 #endif
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5041 main ()
5043 int i;
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5047 exit(2);
5048 exit (0);
5050 _ACEOF
5051 rm -f conftest$ac_exeext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5063 else
5064 echo "$as_me: program exited with status $ac_status" >&5
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 ( exit $ac_status )
5069 ac_cv_header_stdc=no
5071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5077 if test $ac_cv_header_stdc = yes; then
5079 cat >>confdefs.h <<\_ACEOF
5080 #define STDC_HEADERS 1
5081 _ACEOF
5085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5096 inttypes.h stdint.h unistd.h
5098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5099 echo "$as_me:$LINENO: checking for $ac_header" >&5
5100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h. */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 $ac_includes_default
5112 #include <$ac_header>
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; } &&
5129 { ac_try='test -s conftest.$ac_objext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 eval "$as_ac_Header=yes"
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 eval "$as_ac_Header=no"
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h <<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149 _ACEOF
5153 done
5159 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 echo "$as_me:$LINENO: checking for $ac_header" >&5
5164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5170 else
5171 # Is the header compilable?
5172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5174 cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180 $ac_includes_default
5181 #include <$ac_header>
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_header_compiler=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_header_compiler=no
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5213 echo "${ECHO_T}$ac_header_compiler" >&6
5215 # Is the header present?
5216 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5218 cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h. */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h. */
5224 #include <$ac_header>
5225 _ACEOF
5226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev/null; then
5234 if test -s conftest.err; then
5235 ac_cpp_err=$ac_c_preproc_warn_flag
5236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237 else
5238 ac_cpp_err=
5240 else
5241 ac_cpp_err=yes
5243 if test -z "$ac_cpp_err"; then
5244 ac_header_preproc=yes
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_header_preproc=no
5251 rm -f conftest.err conftest.$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5253 echo "${ECHO_T}$ac_header_preproc" >&6
5255 # So? What about this header?
5256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5257 yes:no: )
5258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5262 ac_header_preproc=yes
5264 no:yes:* )
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5278 cat <<\_ASBOX
5279 ## ------------------------------------------ ##
5280 ## Report this to the AC_PACKAGE_NAME lists. ##
5281 ## ------------------------------------------ ##
5282 _ASBOX
5284 sed "s/^/$as_me: WARNING: /" >&2
5286 esac
5287 echo "$as_me:$LINENO: checking for $ac_header" >&5
5288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 else
5292 eval "$as_ac_Header=\$ac_header_preproc"
5294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5299 cat >>confdefs.h <<_ACEOF
5300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301 _ACEOF
5305 done
5307 # Emulation library used on NetBSD.
5308 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5309 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5310 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 ac_check_lib_save_LIBS=$LIBS
5314 LIBS="-lossaudio $LIBS"
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5322 /* Override any gcc2 internal prototype to avoid an error. */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5328 char _oss_ioctl ();
5330 main ()
5332 _oss_ioctl ();
5334 return 0;
5336 _ACEOF
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339 (eval $ac_link) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } &&
5346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try='test -s conftest$ac_exeext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 (eval $ac_try) 2>&5
5355 ac_status=$?
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_lib_ossaudio__oss_ioctl=yes
5359 else
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 ac_cv_lib_ossaudio__oss_ioctl=no
5365 rm -f conftest.err conftest.$ac_objext \
5366 conftest$ac_exeext conftest.$ac_ext
5367 LIBS=$ac_check_lib_save_LIBS
5369 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5370 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5371 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5372 LIBSOUND=-lossaudio
5373 else
5374 LIBSOUND=
5405 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5406 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5407 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5408 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5409 sys/utsname.h pwd.h
5411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413 echo "$as_me:$LINENO: checking for $ac_header" >&5
5414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5420 else
5421 # Is the header compilable?
5422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5431 #include <$ac_header>
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5435 (eval $ac_compile) 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; } &&
5448 { ac_try='test -s conftest.$ac_objext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_header_compiler=yes
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 ac_header_compiler=no
5461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5463 echo "${ECHO_T}$ac_header_compiler" >&6
5465 # Is the header present?
5466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 #include <$ac_header>
5475 _ACEOF
5476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_c_preproc_warn_flag
5486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5487 else
5488 ac_cpp_err=
5490 else
5491 ac_cpp_err=yes
5493 if test -z "$ac_cpp_err"; then
5494 ac_header_preproc=yes
5495 else
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 ac_header_preproc=no
5501 rm -f conftest.err conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5503 echo "${ECHO_T}$ac_header_preproc" >&6
5505 # So? What about this header?
5506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5507 yes:no: )
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5512 ac_header_preproc=yes
5514 no:yes:* )
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5528 cat <<\_ASBOX
5529 ## ------------------------------------------ ##
5530 ## Report this to the AC_PACKAGE_NAME lists. ##
5531 ## ------------------------------------------ ##
5532 _ASBOX
5534 sed "s/^/$as_me: WARNING: /" >&2
5536 esac
5537 echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 eval "$as_ac_Header=\$ac_header_preproc"
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5549 cat >>confdefs.h <<_ACEOF
5550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5551 _ACEOF
5555 done
5558 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5559 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5560 cat >conftest.$ac_ext <<_ACEOF
5561 /* confdefs.h. */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5566 #include <sys/personality.h>
5568 main ()
5570 personality (PER_LINUX32)
5572 return 0;
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 emacs_cv_personality_linux32=yes
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 emacs_cv_personality_linux32=no
5603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5604 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5605 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5607 if test $emacs_cv_personality_linux32 = yes; then
5609 cat >>confdefs.h <<\_ACEOF
5610 #define HAVE_PERSONALITY_LINUX32 1
5611 _ACEOF
5616 for ac_header in term.h
5618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5619 echo "$as_me:$LINENO: checking for $ac_header" >&5
5620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #include <$ac_header>
5631 _ACEOF
5632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev/null; then
5640 if test -s conftest.err; then
5641 ac_cpp_err=$ac_c_preproc_warn_flag
5642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5643 else
5644 ac_cpp_err=
5646 else
5647 ac_cpp_err=yes
5649 if test -z "$ac_cpp_err"; then
5650 eval "$as_ac_Header=yes"
5651 else
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 eval "$as_ac_Header=no"
5657 rm -f conftest.err conftest.$ac_ext
5659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664 _ACEOF
5668 done
5670 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5671 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5672 if test "${ac_cv_header_stdc+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <stdlib.h>
5682 #include <stdarg.h>
5683 #include <string.h>
5684 #include <float.h>
5687 main ()
5691 return 0;
5693 _ACEOF
5694 rm -f conftest.$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_cv_header_stdc=yes
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_cv_header_stdc=no
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5724 if test $ac_cv_header_stdc = yes; then
5725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <string.h>
5734 _ACEOF
5735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5736 $EGREP "memchr" >/dev/null 2>&1; then
5738 else
5739 ac_cv_header_stdc=no
5741 rm -f conftest*
5745 if test $ac_cv_header_stdc = yes; then
5746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #include <stdlib.h>
5755 _ACEOF
5756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5757 $EGREP "free" >/dev/null 2>&1; then
5759 else
5760 ac_cv_header_stdc=no
5762 rm -f conftest*
5766 if test $ac_cv_header_stdc = yes; then
5767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5768 if test "$cross_compiling" = yes; then
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <ctype.h>
5778 #if ((' ' & 0x0FF) == 0x020)
5779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5781 #else
5782 # define ISLOWER(c) \
5783 (('a' <= (c) && (c) <= 'i') \
5784 || ('j' <= (c) && (c) <= 'r') \
5785 || ('s' <= (c) && (c) <= 'z'))
5786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5787 #endif
5789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5791 main ()
5793 int i;
5794 for (i = 0; i < 256; i++)
5795 if (XOR (islower (i), ISLOWER (i))
5796 || toupper (i) != TOUPPER (i))
5797 exit(2);
5798 exit (0);
5800 _ACEOF
5801 rm -f conftest$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803 (eval $ac_link) 2>&5
5804 ac_status=$?
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5813 else
5814 echo "$as_me: program exited with status $ac_status" >&5
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ( exit $ac_status )
5819 ac_cv_header_stdc=no
5821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5826 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5827 if test $ac_cv_header_stdc = yes; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define STDC_HEADERS 1
5831 _ACEOF
5835 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5836 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5837 if test "${ac_cv_header_time+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <sys/types.h>
5847 #include <sys/time.h>
5848 #include <time.h>
5851 main ()
5853 if ((struct tm *) 0)
5854 return 0;
5856 return 0;
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>conftest.er1
5862 ac_status=$?
5863 grep -v '^ *+' conftest.er1 >conftest.err
5864 rm -f conftest.er1
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } &&
5868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_header_time=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_header_time=no
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5890 echo "${ECHO_T}$ac_cv_header_time" >&6
5891 if test $ac_cv_header_time = yes; then
5893 cat >>confdefs.h <<\_ACEOF
5894 #define TIME_WITH_SYS_TIME 1
5895 _ACEOF
5899 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5900 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5901 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5912 main ()
5914 #ifndef sys_siglist
5915 char *p = (char *) sys_siglist;
5916 #endif
5919 return 0;
5921 _ACEOF
5922 rm -f conftest.$ac_objext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; } &&
5937 { ac_try='test -s conftest.$ac_objext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_have_decl_sys_siglist=yes
5944 else
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_cv_have_decl_sys_siglist=no
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5953 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5954 if test $ac_cv_have_decl_sys_siglist = yes; then
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_DECL_SYS_SIGLIST 1
5958 _ACEOF
5961 else
5962 cat >>confdefs.h <<_ACEOF
5963 #define HAVE_DECL_SYS_SIGLIST 0
5964 _ACEOF
5970 if test $ac_cv_have_decl_sys_siglist != yes; then
5971 # For Tru64, at least:
5972 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5973 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5974 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5985 main ()
5987 #ifndef __sys_siglist
5988 char *p = (char *) __sys_siglist;
5989 #endif
5992 return 0;
5994 _ACEOF
5995 rm -f conftest.$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 ac_cv_have_decl___sys_siglist=yes
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_cv_have_decl___sys_siglist=no
6023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6026 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6027 if test $ac_cv_have_decl___sys_siglist = yes; then
6029 cat >>confdefs.h <<_ACEOF
6030 #define HAVE_DECL___SYS_SIGLIST 1
6031 _ACEOF
6034 else
6035 cat >>confdefs.h <<_ACEOF
6036 #define HAVE_DECL___SYS_SIGLIST 0
6037 _ACEOF
6043 if test $ac_cv_have_decl___sys_siglist = yes; then
6045 cat >>confdefs.h <<\_ACEOF
6046 #define sys_siglist __sys_siglist
6047 _ACEOF
6051 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6052 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6053 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <sys/types.h>
6063 #include <sys/wait.h>
6064 #ifndef WEXITSTATUS
6065 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6066 #endif
6067 #ifndef WIFEXITED
6068 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6069 #endif
6072 main ()
6074 int s;
6075 wait (&s);
6076 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6078 return 0;
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; } &&
6096 { ac_try='test -s conftest.$ac_objext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_header_sys_wait_h=yes
6103 else
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 ac_cv_header_sys_wait_h=no
6109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6111 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6113 if test $ac_cv_header_sys_wait_h = yes; then
6115 cat >>confdefs.h <<\_ACEOF
6116 #define HAVE_SYS_WAIT_H 1
6117 _ACEOF
6122 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6123 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6124 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #ifdef TIME_WITH_SYS_TIME
6134 #include <sys/time.h>
6135 #include <time.h>
6136 #else
6137 #ifdef HAVE_SYS_TIME_H
6138 #include <sys/time.h>
6139 #else
6140 #include <time.h>
6141 #endif
6142 #endif
6143 #ifdef HAVE_UTIME_H
6144 #include <utime.h>
6145 #endif
6147 main ()
6149 static struct utimbuf x; x.actime = x.modtime;
6151 return 0;
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 (eval $ac_try) 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 emacs_cv_struct_utimbuf=yes
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 emacs_cv_struct_utimbuf=no
6182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6184 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6185 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6186 if test $emacs_cv_struct_utimbuf = yes; then
6188 cat >>confdefs.h <<\_ACEOF
6189 #define HAVE_STRUCT_UTIMBUF 1
6190 _ACEOF
6194 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6195 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6196 if test "${ac_cv_type_signal+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h. */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <sys/types.h>
6206 #include <signal.h>
6207 #ifdef signal
6208 # undef signal
6209 #endif
6210 #ifdef __cplusplus
6211 extern "C" void (*signal (int, void (*)(int)))(int);
6212 #else
6213 void (*signal ()) ();
6214 #endif
6217 main ()
6219 int i;
6221 return 0;
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; } &&
6239 { ac_try='test -s conftest.$ac_objext'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }; then
6245 ac_cv_type_signal=void
6246 else
6247 echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6250 ac_cv_type_signal=int
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6255 echo "${ECHO_T}$ac_cv_type_signal" >&6
6257 cat >>confdefs.h <<_ACEOF
6258 #define RETSIGTYPE $ac_cv_type_signal
6259 _ACEOF
6263 echo "$as_me:$LINENO: checking for speed_t" >&5
6264 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6265 if test "${emacs_cv_speed_t+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <termios.h>
6276 main ()
6278 speed_t x = 1;
6280 return 0;
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285 (eval $ac_compile) 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 emacs_cv_speed_t=yes
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 emacs_cv_speed_t=no
6311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6314 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6315 if test $emacs_cv_speed_t = yes; then
6317 cat >>confdefs.h <<\_ACEOF
6318 #define HAVE_SPEED_T 1
6319 _ACEOF
6323 echo "$as_me:$LINENO: checking for struct timeval" >&5
6324 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6325 if test "${emacs_cv_struct_timeval+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h. */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 #ifdef TIME_WITH_SYS_TIME
6335 #include <sys/time.h>
6336 #include <time.h>
6337 #else
6338 #ifdef HAVE_SYS_TIME_H
6339 #include <sys/time.h>
6340 #else
6341 #include <time.h>
6342 #endif
6343 #endif
6345 main ()
6347 static struct timeval x; x.tv_sec = x.tv_usec;
6349 return 0;
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6355 ac_status=$?
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; } &&
6367 { ac_try='test -s conftest.$ac_objext'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 emacs_cv_struct_timeval=yes
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 emacs_cv_struct_timeval=no
6380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6383 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6384 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6385 if test $emacs_cv_struct_timeval = yes; then
6387 cat >>confdefs.h <<\_ACEOF
6388 #define HAVE_TIMEVAL 1
6389 _ACEOF
6393 echo "$as_me:$LINENO: checking for struct exception" >&5
6394 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6395 if test "${emacs_cv_struct_exception+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h. */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 #include <math.h>
6406 main ()
6408 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6410 return 0;
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415 (eval $ac_compile) 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 emacs_cv_struct_exception=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 emacs_cv_struct_exception=no
6441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6443 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6444 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6445 HAVE_EXCEPTION=$emacs_cv_struct_exception
6446 if test $emacs_cv_struct_exception != yes; then
6448 cat >>confdefs.h <<\_ACEOF
6449 #define NO_MATHERR 1
6450 _ACEOF
6455 for ac_header in sys/socket.h
6457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466 else
6467 # Is the header compilable?
6468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 #include <$ac_header>
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_header_compiler=yes
6501 else
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_header_compiler=no
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509 echo "${ECHO_T}$ac_header_compiler" >&6
6511 # Is the header present?
6512 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514 cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h. */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 #include <$ac_header>
6521 _ACEOF
6522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev/null; then
6530 if test -s conftest.err; then
6531 ac_cpp_err=$ac_c_preproc_warn_flag
6532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6533 else
6534 ac_cpp_err=
6536 else
6537 ac_cpp_err=yes
6539 if test -z "$ac_cpp_err"; then
6540 ac_header_preproc=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_header_preproc=no
6547 rm -f conftest.err conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549 echo "${ECHO_T}$ac_header_preproc" >&6
6551 # So? What about this header?
6552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6553 yes:no: )
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558 ac_header_preproc=yes
6560 no:yes:* )
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6574 cat <<\_ASBOX
6575 ## ------------------------------------------ ##
6576 ## Report this to the AC_PACKAGE_NAME lists. ##
6577 ## ------------------------------------------ ##
6578 _ASBOX
6580 sed "s/^/$as_me: WARNING: /" >&2
6582 esac
6583 echo "$as_me:$LINENO: checking for $ac_header" >&5
6584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 eval "$as_ac_Header=\$ac_header_preproc"
6590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6601 done
6604 for ac_header in net/if.h
6606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6619 #if HAVE_SYS_SOCKET_H
6620 #include <sys/socket.h>
6621 #endif
6623 #include <$ac_header>
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 eval "$as_ac_Header=yes"
6647 else
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 eval "$as_ac_Header=no"
6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h <<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6660 _ACEOF
6664 done
6667 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6668 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6669 if test "${ac_cv_struct_tm+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h. */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 #include <sys/types.h>
6679 #include <time.h>
6682 main ()
6684 struct tm *tp; tp->tm_sec;
6686 return 0;
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691 (eval $ac_compile) 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_struct_tm=time.h
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_cv_struct_tm=sys/time.h
6717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6720 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6721 if test $ac_cv_struct_tm = sys/time.h; then
6723 cat >>confdefs.h <<\_ACEOF
6724 #define TM_IN_SYS_TIME 1
6725 _ACEOF
6729 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6730 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6731 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <$ac_cv_struct_tm>
6745 main ()
6747 static struct tm ac_aggr;
6748 if (ac_aggr.tm_zone)
6749 return 0;
6751 return 0;
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6757 ac_status=$?
6758 grep -v '^ *+' conftest.er1 >conftest.err
6759 rm -f conftest.er1
6760 cat conftest.err >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_member_struct_tm_tm_zone=yes
6776 else
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6787 #include <$ac_cv_struct_tm>
6791 main ()
6793 static struct tm ac_aggr;
6794 if (sizeof ac_aggr.tm_zone)
6795 return 0;
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6821 ac_cv_member_struct_tm_tm_zone=yes
6822 else
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_cv_member_struct_tm_tm_zone=no
6828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6833 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6834 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define HAVE_STRUCT_TM_TM_ZONE 1
6838 _ACEOF
6843 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_TM_ZONE 1
6847 _ACEOF
6849 else
6850 echo "$as_me:$LINENO: checking for tzname" >&5
6851 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6852 if test "${ac_cv_var_tzname+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
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>
6862 #ifndef tzname /* For SGI. */
6863 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6864 #endif
6867 main ()
6869 atoi(*tzname);
6871 return 0;
6873 _ACEOF
6874 rm -f conftest.$ac_objext conftest$ac_exeext
6875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876 (eval $ac_link) 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 (eval $ac_try) 2>&5
6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_var_tzname=yes
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_var_tzname=no
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6905 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6906 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6907 if test $ac_cv_var_tzname = yes; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define HAVE_TZNAME 1
6911 _ACEOF
6916 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6917 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6918 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921 cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h. */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 #include <time.h>
6930 main ()
6932 static struct tm ac_aggr;
6933 if (ac_aggr.tm_gmtoff)
6934 return 0;
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6941 (eval $ac_compile) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_member_struct_tm_tm_gmtoff=yes
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <time.h>
6974 main ()
6976 static struct tm ac_aggr;
6977 if (sizeof ac_aggr.tm_gmtoff)
6978 return 0;
6980 return 0;
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6985 (eval $ac_compile) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_member_struct_tm_tm_gmtoff=yes
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_member_struct_tm_tm_gmtoff=no
7011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7016 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7017 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_TM_GMTOFF 1
7021 _ACEOF
7025 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7026 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7027 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7037 #if HAVE_SYS_SOCKET_H
7038 #include <sys/socket.h>
7039 #endif
7040 #if HAVE_NET_IF_H
7041 #include <net/if.h>
7042 #endif
7045 main ()
7047 static struct ifreq ac_aggr;
7048 if (ac_aggr.ifr_flags)
7049 return 0;
7051 return 0;
7053 _ACEOF
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_member_struct_ifreq_ifr_flags=yes
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h. */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7087 #if HAVE_SYS_SOCKET_H
7088 #include <sys/socket.h>
7089 #endif
7090 #if HAVE_NET_IF_H
7091 #include <net/if.h>
7092 #endif
7095 main ()
7097 static struct ifreq ac_aggr;
7098 if (sizeof ac_aggr.ifr_flags)
7099 return 0;
7101 return 0;
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_member_struct_ifreq_ifr_flags=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_member_struct_ifreq_ifr_flags=no
7132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7137 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7138 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7140 cat >>confdefs.h <<_ACEOF
7141 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7142 _ACEOF
7146 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7147 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7148 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 $ac_includes_default
7158 #if HAVE_SYS_SOCKET_H
7159 #include <sys/socket.h>
7160 #endif
7161 #if HAVE_NET_IF_H
7162 #include <net/if.h>
7163 #endif
7166 main ()
7168 static struct ifreq ac_aggr;
7169 if (ac_aggr.ifr_hwaddr)
7170 return 0;
7172 return 0;
7174 _ACEOF
7175 rm -f conftest.$ac_objext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177 (eval $ac_compile) 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try='test -s conftest.$ac_objext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 $ac_includes_default
7208 #if HAVE_SYS_SOCKET_H
7209 #include <sys/socket.h>
7210 #endif
7211 #if HAVE_NET_IF_H
7212 #include <net/if.h>
7213 #endif
7216 main ()
7218 static struct ifreq ac_aggr;
7219 if (sizeof ac_aggr.ifr_hwaddr)
7220 return 0;
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236 (eval $ac_try) 2>&5
7237 ac_status=$?
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; } &&
7240 { ac_try='test -s conftest.$ac_objext'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; }; then
7246 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_member_struct_ifreq_ifr_hwaddr=no
7253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7257 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7259 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7263 _ACEOF
7267 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7268 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7269 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 cat >conftest.$ac_ext <<_ACEOF
7273 /* confdefs.h. */
7274 _ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 #if HAVE_SYS_SOCKET_H
7280 #include <sys/socket.h>
7281 #endif
7282 #if HAVE_NET_IF_H
7283 #include <net/if.h>
7284 #endif
7287 main ()
7289 static struct ifreq ac_aggr;
7290 if (ac_aggr.ifr_netmask)
7291 return 0;
7293 return 0;
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7298 (eval $ac_compile) 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 ac_cv_member_struct_ifreq_ifr_netmask=yes
7318 else
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h. */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 #if HAVE_SYS_SOCKET_H
7330 #include <sys/socket.h>
7331 #endif
7332 #if HAVE_NET_IF_H
7333 #include <net/if.h>
7334 #endif
7337 main ()
7339 static struct ifreq ac_aggr;
7340 if (sizeof ac_aggr.ifr_netmask)
7341 return 0;
7343 return 0;
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348 (eval $ac_compile) 2>conftest.er1
7349 ac_status=$?
7350 grep -v '^ *+' conftest.er1 >conftest.err
7351 rm -f conftest.er1
7352 cat conftest.err >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; } &&
7361 { ac_try='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 (eval $ac_try) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7367 ac_cv_member_struct_ifreq_ifr_netmask=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_cv_member_struct_ifreq_ifr_netmask=no
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7378 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7379 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7380 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7382 cat >>confdefs.h <<_ACEOF
7383 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7384 _ACEOF
7388 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7389 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7390 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h. */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 #if HAVE_SYS_SOCKET_H
7401 #include <sys/socket.h>
7402 #endif
7403 #if HAVE_NET_IF_H
7404 #include <net/if.h>
7405 #endif
7408 main ()
7410 static struct ifreq ac_aggr;
7411 if (ac_aggr.ifr_broadaddr)
7412 return 0;
7414 return 0;
7416 _ACEOF
7417 rm -f conftest.$ac_objext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419 (eval $ac_compile) 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_try) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; } &&
7432 { ac_try='test -s conftest.$ac_objext'
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; }; then
7438 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7439 else
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7443 cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h. */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7449 $ac_includes_default
7450 #if HAVE_SYS_SOCKET_H
7451 #include <sys/socket.h>
7452 #endif
7453 #if HAVE_NET_IF_H
7454 #include <net/if.h>
7455 #endif
7458 main ()
7460 static struct ifreq ac_aggr;
7461 if (sizeof ac_aggr.ifr_broadaddr)
7462 return 0;
7464 return 0;
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } &&
7476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
7489 else
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_cv_member_struct_ifreq_ifr_broadaddr=no
7495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7500 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7501 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7503 cat >>confdefs.h <<_ACEOF
7504 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7505 _ACEOF
7509 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7510 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7511 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 else
7514 cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h. */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7520 $ac_includes_default
7521 #if HAVE_SYS_SOCKET_H
7522 #include <sys/socket.h>
7523 #endif
7524 #if HAVE_NET_IF_H
7525 #include <net/if.h>
7526 #endif
7529 main ()
7531 static struct ifreq ac_aggr;
7532 if (ac_aggr.ifr_addr)
7533 return 0;
7535 return 0;
7537 _ACEOF
7538 rm -f conftest.$ac_objext
7539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540 (eval $ac_compile) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest.$ac_objext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_member_struct_ifreq_ifr_addr=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 $ac_includes_default
7571 #if HAVE_SYS_SOCKET_H
7572 #include <sys/socket.h>
7573 #endif
7574 #if HAVE_NET_IF_H
7575 #include <net/if.h>
7576 #endif
7579 main ()
7581 static struct ifreq ac_aggr;
7582 if (sizeof ac_aggr.ifr_addr)
7583 return 0;
7585 return 0;
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 (eval $ac_try) 2>&5
7600 ac_status=$?
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; } &&
7603 { ac_try='test -s conftest.$ac_objext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_member_struct_ifreq_ifr_addr=yes
7610 else
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_cv_member_struct_ifreq_ifr_addr=no
7616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7621 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7622 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7624 cat >>confdefs.h <<_ACEOF
7625 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7626 _ACEOF
7633 echo "$as_me:$LINENO: checking for function prototypes" >&5
7634 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7635 if test "$ac_cv_prog_cc_stdc" != no; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637 echo "${ECHO_T}yes" >&6
7639 cat >>confdefs.h <<\_ACEOF
7640 #define PROTOTYPES 1
7641 _ACEOF
7644 cat >>confdefs.h <<\_ACEOF
7645 #define __PROTOTYPES 1
7646 _ACEOF
7648 else
7649 echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6
7653 echo "$as_me:$LINENO: checking for working volatile" >&5
7654 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7655 if test "${ac_cv_c_volatile+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7666 main ()
7669 volatile int x;
7670 int * volatile y;
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_c_volatile=yes
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_cv_c_volatile=no
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7705 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7706 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7707 if test $ac_cv_c_volatile = no; then
7709 cat >>confdefs.h <<\_ACEOF
7710 #define volatile
7711 _ACEOF
7715 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7716 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7717 if test "${ac_cv_c_const+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7728 main ()
7730 /* FIXME: Include the comments suggested by Paul. */
7731 #ifndef __cplusplus
7732 /* Ultrix mips cc rejects this. */
7733 typedef int charset[2];
7734 const charset x;
7735 /* SunOS 4.1.1 cc rejects this. */
7736 char const *const *ccp;
7737 char **p;
7738 /* NEC SVR4.0.2 mips cc rejects this. */
7739 struct point {int x, y;};
7740 static struct point const zero = {0,0};
7741 /* AIX XL C 1.02.0.0 rejects this.
7742 It does not let you subtract one const X* pointer from another in
7743 an arm of an if-expression whose if-part is not a constant
7744 expression */
7745 const char *g = "string";
7746 ccp = &g + (g ? g-g : 0);
7747 /* HPUX 7.0 cc rejects these. */
7748 ++ccp;
7749 p = (char**) ccp;
7750 ccp = (char const *const *) p;
7751 { /* SCO 3.2v4 cc rejects this. */
7752 char *t;
7753 char const *s = 0 ? (char *) 0 : (char const *) 0;
7755 *t++ = 0;
7757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7758 int x[] = {25, 17};
7759 const int *foo = &x[0];
7760 ++foo;
7762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7763 typedef const int *iptr;
7764 iptr p = 0;
7765 ++p;
7767 { /* AIX XL C 1.02.0.0 rejects this saying
7768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7769 struct s { int j; const int *ap[3]; };
7770 struct s *b; b->j = 5;
7772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7773 const int foo = 10;
7775 #endif
7778 return 0;
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>conftest.er1
7784 ac_status=$?
7785 grep -v '^ *+' conftest.er1 >conftest.err
7786 rm -f conftest.er1
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } &&
7790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_c_const=yes
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_cv_c_const=no
7809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7811 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7812 echo "${ECHO_T}$ac_cv_c_const" >&6
7813 if test $ac_cv_c_const = no; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define const
7817 _ACEOF
7821 echo "$as_me:$LINENO: checking for void * support" >&5
7822 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7823 if test "${emacs_cv_void_star+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7834 main ()
7836 void * foo;
7838 return 0;
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try='test -s conftest.$ac_objext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 emacs_cv_void_star=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 emacs_cv_void_star=no
7869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7871 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7872 echo "${ECHO_T}$emacs_cv_void_star" >&6
7873 if test $emacs_cv_void_star = yes; then
7874 cat >>confdefs.h <<\_ACEOF
7875 #define POINTER_TYPE void
7876 _ACEOF
7878 else
7879 cat >>confdefs.h <<\_ACEOF
7880 #define POINTER_TYPE char
7881 _ACEOF
7889 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7890 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7891 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7892 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895 cat >conftest.make <<\_ACEOF
7896 all:
7897 @echo 'ac_maketemp="$(MAKE)"'
7898 _ACEOF
7899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7900 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7901 if test -n "$ac_maketemp"; then
7902 eval ac_cv_prog_make_${ac_make}_set=yes
7903 else
7904 eval ac_cv_prog_make_${ac_make}_set=no
7906 rm -f conftest.make
7908 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910 echo "${ECHO_T}yes" >&6
7911 SET_MAKE=
7912 else
7913 echo "$as_me:$LINENO: result: no" >&5
7914 echo "${ECHO_T}no" >&6
7915 SET_MAKE="MAKE=${MAKE-make}"
7919 echo "$as_me:$LINENO: checking for long file names" >&5
7920 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7921 if test "${ac_cv_sys_long_file_names+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 ac_cv_sys_long_file_names=yes
7925 # Test for long file names in all the places we know might matter:
7926 # . the current directory, where building will happen
7927 # $prefix/lib where we will be installing things
7928 # $exec_prefix/lib likewise
7929 # eval it to expand exec_prefix.
7930 # $TMPDIR if set, where it might want to write temporary files
7931 # if $TMPDIR is not set:
7932 # /tmp where it might want to write temporary files
7933 # /var/tmp likewise
7934 # /usr/tmp likewise
7935 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7936 ac_tmpdirs=$TMPDIR
7937 else
7938 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
7940 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7941 test -d $ac_dir || continue
7942 test -w $ac_dir || continue # It is less confusing to not echo anything here.
7943 ac_xdir=$ac_dir/cf$$
7944 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
7945 ac_tf1=$ac_xdir/conftest9012345
7946 ac_tf2=$ac_xdir/conftest9012346
7947 (echo 1 >$ac_tf1) 2>/dev/null
7948 (echo 2 >$ac_tf2) 2>/dev/null
7949 ac_val=`cat $ac_tf1 2>/dev/null`
7950 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
7951 ac_cv_sys_long_file_names=no
7952 rm -rf $ac_xdir 2>/dev/null
7953 break
7955 rm -rf $ac_xdir 2>/dev/null
7956 done
7958 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7959 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7960 if test $ac_cv_sys_long_file_names = yes; then
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_LONG_FILE_NAMES 1
7964 _ACEOF
7969 #### Choose a window system.
7971 echo "$as_me:$LINENO: checking for X" >&5
7972 echo $ECHO_N "checking for X... $ECHO_C" >&6
7974 ac_path_x_has_been_run=yes
7976 # Check whether --with-x or --without-x was given.
7977 if test "${with_x+set}" = set; then
7978 withval="$with_x"
7981 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7982 if test "x$with_x" = xno; then
7983 # The user explicitly disabled X.
7984 have_x=disabled
7985 else
7986 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7987 # Both variables are already set.
7988 have_x=yes
7989 else
7990 if test "${ac_cv_have_x+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 # One or both of the vars are not set, and there is no cached value.
7994 ac_x_includes=no ac_x_libraries=no
7995 rm -fr conftest.dir
7996 if mkdir conftest.dir; then
7997 cd conftest.dir
7998 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7999 cat >Imakefile <<'_ACEOF'
8000 acfindx:
8001 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8002 _ACEOF
8003 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8004 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8005 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8006 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8007 for ac_extension in a so sl; do
8008 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8009 test -f $ac_im_libdir/libX11.$ac_extension; then
8010 ac_im_usrlibdir=$ac_im_libdir; break
8012 done
8013 # Screen out bogus values from the imake configuration. They are
8014 # bogus both because they are the default anyway, and because
8015 # using them would break gcc on systems where it needs fixed includes.
8016 case $ac_im_incroot in
8017 /usr/include) ;;
8018 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8019 esac
8020 case $ac_im_usrlibdir in
8021 /usr/lib | /lib) ;;
8022 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8023 esac
8025 cd ..
8026 rm -fr conftest.dir
8029 # Standard set of common directories for X headers.
8030 # Check X11 before X11Rn because it is often a symlink to the current release.
8031 ac_x_header_dirs='
8032 /usr/X11/include
8033 /usr/X11R6/include
8034 /usr/X11R5/include
8035 /usr/X11R4/include
8037 /usr/include/X11
8038 /usr/include/X11R6
8039 /usr/include/X11R5
8040 /usr/include/X11R4
8042 /usr/local/X11/include
8043 /usr/local/X11R6/include
8044 /usr/local/X11R5/include
8045 /usr/local/X11R4/include
8047 /usr/local/include/X11
8048 /usr/local/include/X11R6
8049 /usr/local/include/X11R5
8050 /usr/local/include/X11R4
8052 /usr/X386/include
8053 /usr/x386/include
8054 /usr/XFree86/include/X11
8056 /usr/include
8057 /usr/local/include
8058 /usr/unsupported/include
8059 /usr/athena/include
8060 /usr/local/x11r5/include
8061 /usr/lpp/Xamples/include
8063 /usr/openwin/include
8064 /usr/openwin/share/include'
8066 if test "$ac_x_includes" = no; then
8067 # Guess where to find include files, by looking for a specified header file.
8068 # First, try using that file with no special directory specified.
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 #include <X11/Intrinsic.h>
8076 _ACEOF
8077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } >/dev/null; then
8085 if test -s conftest.err; then
8086 ac_cpp_err=$ac_c_preproc_warn_flag
8087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8088 else
8089 ac_cpp_err=
8091 else
8092 ac_cpp_err=yes
8094 if test -z "$ac_cpp_err"; then
8095 # We can compile using X headers with no special include directory.
8096 ac_x_includes=
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 for ac_dir in $ac_x_header_dirs; do
8102 if test -r "$ac_dir/X11/Intrinsic.h"; then
8103 ac_x_includes=$ac_dir
8104 break
8106 done
8108 rm -f conftest.err conftest.$ac_ext
8109 fi # $ac_x_includes = no
8111 if test "$ac_x_libraries" = no; then
8112 # Check for the libraries.
8113 # See if we find them without any special options.
8114 # Don't add to $LIBS permanently.
8115 ac_save_LIBS=$LIBS
8116 LIBS="-lXt $LIBS"
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <X11/Intrinsic.h>
8125 main ()
8127 XtMalloc (0)
8129 return 0;
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8134 (eval $ac_link) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 LIBS=$ac_save_LIBS
8154 # We can link X programs with no special library path.
8155 ac_x_libraries=
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 LIBS=$ac_save_LIBS
8161 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8163 # Don't even attempt the hair of trying to link an X program!
8164 for ac_extension in a so sl; do
8165 if test -r $ac_dir/libXt.$ac_extension; then
8166 ac_x_libraries=$ac_dir
8167 break 2
8169 done
8170 done
8172 rm -f conftest.err conftest.$ac_objext \
8173 conftest$ac_exeext conftest.$ac_ext
8174 fi # $ac_x_libraries = no
8176 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8177 # Didn't find X anywhere. Cache the known absence of X.
8178 ac_cv_have_x="have_x=no"
8179 else
8180 # Record where we found X for the cache.
8181 ac_cv_have_x="have_x=yes \
8182 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8187 eval "$ac_cv_have_x"
8188 fi # $with_x != no
8190 if test "$have_x" != yes; then
8191 echo "$as_me:$LINENO: result: $have_x" >&5
8192 echo "${ECHO_T}$have_x" >&6
8193 no_x=yes
8194 else
8195 # If each of the values was on the command line, it overrides each guess.
8196 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8197 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8198 # Update the cache value to reflect the command line values.
8199 ac_cv_have_x="have_x=yes \
8200 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8201 # It might be that x_includes is empty (headers are found in the
8202 # standard search path. Then output the corresponding message
8203 ac_out_x_includes=$x_includes
8204 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8205 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8206 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8209 if test "$no_x" = yes; then
8210 window_system=none
8211 else
8212 window_system=x11
8215 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8216 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8217 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8218 x_default_search_path=""
8219 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8220 x_search_path="\
8221 ${x_library}/X11/%L/%T/%N%C%S:\
8222 ${x_library}/X11/%l/%T/%N%C%S:\
8223 ${x_library}/X11/%T/%N%C%S:\
8224 ${x_library}/X11/%L/%T/%N%S:\
8225 ${x_library}/X11/%l/%T/%N%S:\
8226 ${x_library}/X11/%T/%N%S"
8227 if test x"${x_default_search_path}" = x; then
8228 x_default_search_path=${x_search_path}
8229 else
8230 x_default_search_path="${x_search_path}:${x_default_search_path}"
8232 done
8234 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8235 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8238 if test x"${x_includes}" = x; then
8239 bitmapdir=/usr/include/X11/bitmaps
8240 else
8241 # accumulate include directories that have X11 bitmap subdirectories
8242 bmd_acc="dummyval"
8243 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8244 if test -d "${bmd}/X11/bitmaps"; then
8245 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8247 if test -d "${bmd}/bitmaps"; then
8248 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8250 done
8251 if test ${bmd_acc} != "dummyval"; then
8252 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8256 HAVE_CARBON=no
8257 if test "${with_carbon}" != no; then
8258 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8259 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8260 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8265 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8266 else
8267 # Is the header compilable?
8268 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8269 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8270 cat >conftest.$ac_ext <<_ACEOF
8271 /* confdefs.h. */
8272 _ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #include <Carbon/Carbon.h>
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_header_compiler=yes
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 ac_header_compiler=no
8307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8309 echo "${ECHO_T}$ac_header_compiler" >&6
8311 # Is the header present?
8312 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8313 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <Carbon/Carbon.h>
8321 _ACEOF
8322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } >/dev/null; then
8330 if test -s conftest.err; then
8331 ac_cpp_err=$ac_c_preproc_warn_flag
8332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8333 else
8334 ac_cpp_err=
8336 else
8337 ac_cpp_err=yes
8339 if test -z "$ac_cpp_err"; then
8340 ac_header_preproc=yes
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 ac_header_preproc=no
8347 rm -f conftest.err conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8349 echo "${ECHO_T}$ac_header_preproc" >&6
8351 # So? What about this header?
8352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8353 yes:no: )
8354 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8355 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8357 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8358 ac_header_preproc=yes
8360 no:yes:* )
8361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8362 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8364 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8366 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8368 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8370 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8371 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8372 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8374 cat <<\_ASBOX
8375 ## ------------------------------------------ ##
8376 ## Report this to the AC_PACKAGE_NAME lists. ##
8377 ## ------------------------------------------ ##
8378 _ASBOX
8380 sed "s/^/$as_me: WARNING: /" >&2
8382 esac
8383 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8384 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
8390 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8391 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8394 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8395 HAVE_CARBON=yes
8400 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
8401 if test "${with_carbon+set}" != set \
8402 && test "${carbon_appdir_x+set}" != set; then
8403 HAVE_CARBON=no
8406 if test "${HAVE_CARBON}" = yes; then
8407 window_system=mac
8410 case "${window_system}" in
8411 x11 )
8412 HAVE_X_WINDOWS=yes
8413 HAVE_X11=yes
8414 case "${with_x_toolkit}" in
8415 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8416 motif ) USE_X_TOOLKIT=MOTIF ;;
8417 gtk ) with_gtk=yes
8418 USE_X_TOOLKIT=none ;;
8419 no ) USE_X_TOOLKIT=none ;;
8420 * ) USE_X_TOOLKIT=maybe ;;
8421 esac
8423 mac | none )
8424 HAVE_X_WINDOWS=no
8425 HAVE_X11=no
8426 USE_X_TOOLKIT=none
8428 esac
8430 ### If we're using X11, we should use the X menu package.
8431 HAVE_MENUS=no
8432 case ${HAVE_X11} in
8433 yes ) HAVE_MENUS=yes ;;
8434 esac
8436 if test "${opsys}" = "hpux9"; then
8437 case "${x_libraries}" in
8438 *X11R4* )
8439 opsysfile="s/hpux9-x11r4.h"
8441 esac
8444 if test "${opsys}" = "hpux9shr"; then
8445 case "${x_libraries}" in
8446 *X11R4* )
8447 opsysfile="s/hpux9shxr4.h"
8449 esac
8452 ### Compute the unexec source name from the object name.
8453 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
8455 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8456 # Assume not, until told otherwise.
8457 GNU_MALLOC=yes
8458 doug_lea_malloc=yes
8459 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8460 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8461 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8472 #define malloc_get_state innocuous_malloc_get_state
8474 /* System header to define __stub macros and hopefully few prototypes,
8475 which can conflict with char malloc_get_state (); below.
8476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477 <limits.h> exists even on freestanding compilers. */
8479 #ifdef __STDC__
8480 # include <limits.h>
8481 #else
8482 # include <assert.h>
8483 #endif
8485 #undef malloc_get_state
8487 /* Override any gcc2 internal prototype to avoid an error. */
8488 #ifdef __cplusplus
8489 extern "C"
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493 builtin and then its argument prototype would still apply. */
8494 char malloc_get_state ();
8495 /* The GNU C library defines this for functions which it implements
8496 to always fail with ENOSYS. Some functions are actually named
8497 something starting with __ and the normal name is an alias. */
8498 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8499 choke me
8500 #else
8501 char (*f) () = malloc_get_state;
8502 #endif
8503 #ifdef __cplusplus
8505 #endif
8508 main ()
8510 return f != malloc_get_state;
8512 return 0;
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517 (eval $ac_link) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 ac_cv_func_malloc_get_state=yes
8537 else
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ac_cv_func_malloc_get_state=no
8543 rm -f conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8547 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8548 if test $ac_cv_func_malloc_get_state = yes; then
8550 else
8551 doug_lea_malloc=no
8554 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8555 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8556 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8567 #define malloc_set_state innocuous_malloc_set_state
8569 /* System header to define __stub macros and hopefully few prototypes,
8570 which can conflict with char malloc_set_state (); below.
8571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 <limits.h> exists even on freestanding compilers. */
8574 #ifdef __STDC__
8575 # include <limits.h>
8576 #else
8577 # include <assert.h>
8578 #endif
8580 #undef malloc_set_state
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 #ifdef __cplusplus
8584 extern "C"
8586 #endif
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8589 char malloc_set_state ();
8590 /* The GNU C library defines this for functions which it implements
8591 to always fail with ENOSYS. Some functions are actually named
8592 something starting with __ and the normal name is an alias. */
8593 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8594 choke me
8595 #else
8596 char (*f) () = malloc_set_state;
8597 #endif
8598 #ifdef __cplusplus
8600 #endif
8603 main ()
8605 return f != malloc_set_state;
8607 return 0;
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621 (eval $ac_try) 2>&5
8622 ac_status=$?
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest$ac_exeext'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; }; then
8631 ac_cv_func_malloc_set_state=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_cv_func_malloc_set_state=no
8638 rm -f conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8641 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8642 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8643 if test $ac_cv_func_malloc_set_state = yes; then
8645 else
8646 doug_lea_malloc=no
8649 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8650 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8651 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 extern void (* __after_morecore_hook)();
8662 main ()
8664 __after_morecore_hook = 0
8666 return 0;
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8671 (eval $ac_link) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest$ac_exeext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 emacs_cv_var___after_morecore_hook=yes
8691 else
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 emacs_cv_var___after_morecore_hook=no
8697 rm -f conftest.err conftest.$ac_objext \
8698 conftest$ac_exeext conftest.$ac_ext
8700 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8701 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8702 if test $emacs_cv_var___after_morecore_hook = no; then
8703 doug_lea_malloc=no
8705 if test "${system_malloc}" = "yes"; then
8706 GNU_MALLOC=no
8707 GNU_MALLOC_reason="
8708 (The GNU allocators don't work with this system configuration.)"
8710 if test "$doug_lea_malloc" = "yes" ; then
8711 if test "$GNU_MALLOC" = yes ; then
8712 GNU_MALLOC_reason="
8713 (Using Doug Lea's new malloc from the GNU C Library.)"
8716 cat >>confdefs.h <<\_ACEOF
8717 #define DOUG_LEA_MALLOC 1
8718 _ACEOF
8722 if test x"${REL_ALLOC}" = x; then
8723 REL_ALLOC=${GNU_MALLOC}
8729 for ac_header in stdlib.h unistd.h
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8733 echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8740 else
8741 # Is the header compilable?
8742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 #include <$ac_header>
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8755 (eval $ac_compile) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 (eval $ac_try) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest.$ac_objext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_header_compiler=yes
8775 else
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 ac_header_compiler=no
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <$ac_header>
8795 _ACEOF
8796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8798 ac_status=$?
8799 grep -v '^ *+' conftest.er1 >conftest.err
8800 rm -f conftest.er1
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } >/dev/null; then
8804 if test -s conftest.err; then
8805 ac_cpp_err=$ac_c_preproc_warn_flag
8806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8807 else
8808 ac_cpp_err=
8810 else
8811 ac_cpp_err=yes
8813 if test -z "$ac_cpp_err"; then
8814 ac_header_preproc=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_header_preproc=no
8821 rm -f conftest.err conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8823 echo "${ECHO_T}$ac_header_preproc" >&6
8825 # So? What about this header?
8826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8827 yes:no: )
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8832 ac_header_preproc=yes
8834 no:yes:* )
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8848 cat <<\_ASBOX
8849 ## ------------------------------------------ ##
8850 ## Report this to the AC_PACKAGE_NAME lists. ##
8851 ## ------------------------------------------ ##
8852 _ASBOX
8854 sed "s/^/$as_me: WARNING: /" >&2
8856 esac
8857 echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 eval "$as_ac_Header=\$ac_header_preproc"
8864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8869 cat >>confdefs.h <<_ACEOF
8870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8871 _ACEOF
8875 done
8878 for ac_func in getpagesize
8880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8881 echo "$as_me:$LINENO: checking for $ac_func" >&5
8882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_var+set}\" = set"; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8894 #define $ac_func innocuous_$ac_func
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char $ac_func (); below.
8898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8899 <limits.h> exists even on freestanding compilers. */
8901 #ifdef __STDC__
8902 # include <limits.h>
8903 #else
8904 # include <assert.h>
8905 #endif
8907 #undef $ac_func
8909 /* Override any gcc2 internal prototype to avoid an error. */
8910 #ifdef __cplusplus
8911 extern "C"
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char $ac_func ();
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8921 choke me
8922 #else
8923 char (*f) () = $ac_func;
8924 #endif
8925 #ifdef __cplusplus
8927 #endif
8930 main ()
8932 return f != $ac_func;
8934 return 0;
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 eval "$as_ac_var=yes"
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 eval "$as_ac_var=no"
8965 rm -f conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext conftest.$ac_ext
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8970 if test `eval echo '${'$as_ac_var'}'` = yes; then
8971 cat >>confdefs.h <<_ACEOF
8972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8973 _ACEOF
8976 done
8978 echo "$as_me:$LINENO: checking for working mmap" >&5
8979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 if test "$cross_compiling" = yes; then
8984 ac_cv_func_mmap_fixed_mapped=no
8985 else
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h. */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 $ac_includes_default
8993 /* malloc might have been renamed as rpl_malloc. */
8994 #undef malloc
8996 /* Thanks to Mike Haertel and Jim Avera for this test.
8997 Here is a matrix of mmap possibilities:
8998 mmap private not fixed
8999 mmap private fixed at somewhere currently unmapped
9000 mmap private fixed at somewhere already mapped
9001 mmap shared not fixed
9002 mmap shared fixed at somewhere currently unmapped
9003 mmap shared fixed at somewhere already mapped
9004 For private mappings, we should verify that changes cannot be read()
9005 back from the file, nor mmap's back from the file at a different
9006 address. (There have been systems where private was not correctly
9007 implemented like the infamous i386 svr4.0, and systems where the
9008 VM page cache was not coherent with the file system buffer cache
9009 like early versions of FreeBSD and possibly contemporary NetBSD.)
9010 For shared mappings, we should conversely verify that changes get
9011 propagated back to all the places they're supposed to be.
9013 Grep wants private fixed already mapped.
9014 The main things grep needs to know about mmap are:
9015 * does it exist and is it safe to write into the mmap'd area
9016 * how to use it (BSD variants) */
9018 #include <fcntl.h>
9019 #include <sys/mman.h>
9021 #if !STDC_HEADERS && !HAVE_STDLIB_H
9022 char *malloc ();
9023 #endif
9025 /* This mess was copied from the GNU getpagesize.h. */
9026 #if !HAVE_GETPAGESIZE
9027 /* Assume that all systems that can run configure have sys/param.h. */
9028 # if !HAVE_SYS_PARAM_H
9029 # define HAVE_SYS_PARAM_H 1
9030 # endif
9032 # ifdef _SC_PAGESIZE
9033 # define getpagesize() sysconf(_SC_PAGESIZE)
9034 # else /* no _SC_PAGESIZE */
9035 # if HAVE_SYS_PARAM_H
9036 # include <sys/param.h>
9037 # ifdef EXEC_PAGESIZE
9038 # define getpagesize() EXEC_PAGESIZE
9039 # else /* no EXEC_PAGESIZE */
9040 # ifdef NBPG
9041 # define getpagesize() NBPG * CLSIZE
9042 # ifndef CLSIZE
9043 # define CLSIZE 1
9044 # endif /* no CLSIZE */
9045 # else /* no NBPG */
9046 # ifdef NBPC
9047 # define getpagesize() NBPC
9048 # else /* no NBPC */
9049 # ifdef PAGESIZE
9050 # define getpagesize() PAGESIZE
9051 # endif /* PAGESIZE */
9052 # endif /* no NBPC */
9053 # endif /* no NBPG */
9054 # endif /* no EXEC_PAGESIZE */
9055 # else /* no HAVE_SYS_PARAM_H */
9056 # define getpagesize() 8192 /* punt totally */
9057 # endif /* no HAVE_SYS_PARAM_H */
9058 # endif /* no _SC_PAGESIZE */
9060 #endif /* no HAVE_GETPAGESIZE */
9063 main ()
9065 char *data, *data2, *data3;
9066 int i, pagesize;
9067 int fd;
9069 pagesize = getpagesize ();
9071 /* First, make a file with some known garbage in it. */
9072 data = (char *) malloc (pagesize);
9073 if (!data)
9074 exit (1);
9075 for (i = 0; i < pagesize; ++i)
9076 *(data + i) = rand ();
9077 umask (0);
9078 fd = creat ("conftest.mmap", 0600);
9079 if (fd < 0)
9080 exit (1);
9081 if (write (fd, data, pagesize) != pagesize)
9082 exit (1);
9083 close (fd);
9085 /* Next, try to mmap the file at a fixed address which already has
9086 something else allocated at it. If we can, also make sure that
9087 we see the same garbage. */
9088 fd = open ("conftest.mmap", O_RDWR);
9089 if (fd < 0)
9090 exit (1);
9091 data2 = (char *) malloc (2 * pagesize);
9092 if (!data2)
9093 exit (1);
9094 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9097 exit (1);
9098 for (i = 0; i < pagesize; ++i)
9099 if (*(data + i) != *(data2 + i))
9100 exit (1);
9102 /* Finally, make sure that changes to the mapped area do not
9103 percolate back to the file as seen by read(). (This is a bug on
9104 some variants of i386 svr4.0.) */
9105 for (i = 0; i < pagesize; ++i)
9106 *(data2 + i) = *(data2 + i) + 1;
9107 data3 = (char *) malloc (pagesize);
9108 if (!data3)
9109 exit (1);
9110 if (read (fd, data3, pagesize) != pagesize)
9111 exit (1);
9112 for (i = 0; i < pagesize; ++i)
9113 if (*(data + i) != *(data3 + i))
9114 exit (1);
9115 close (fd);
9116 exit (0);
9118 _ACEOF
9119 rm -f conftest$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121 (eval $ac_link) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_func_mmap_fixed_mapped=yes
9131 else
9132 echo "$as_me: program exited with status $ac_status" >&5
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ( exit $ac_status )
9137 ac_cv_func_mmap_fixed_mapped=no
9139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9142 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9143 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9144 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9146 cat >>confdefs.h <<\_ACEOF
9147 #define HAVE_MMAP 1
9148 _ACEOF
9151 rm -f conftest.mmap
9153 if test $use_mmap_for_buffers = yes; then
9154 REL_ALLOC=no
9157 LIBS="$libsrc_libs $LIBS"
9160 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9161 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9162 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 ac_check_lib_save_LIBS=$LIBS
9166 LIBS="-ldnet $LIBS"
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h. */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9174 /* Override any gcc2 internal prototype to avoid an error. */
9175 #ifdef __cplusplus
9176 extern "C"
9177 #endif
9178 /* We use char because int might match the return type of a gcc2
9179 builtin and then its argument prototype would still apply. */
9180 char dnet_ntoa ();
9182 main ()
9184 dnet_ntoa ();
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_lib_dnet_dnet_ntoa=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_cv_lib_dnet_dnet_ntoa=no
9217 rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219 LIBS=$ac_check_lib_save_LIBS
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9222 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9223 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define HAVE_LIBDNET 1
9226 _ACEOF
9228 LIBS="-ldnet $LIBS"
9233 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9234 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9235 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238 ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lXbsd $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9249 main ()
9251 main ();
9253 return 0;
9255 _ACEOF
9256 rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9258 (eval $ac_link) 2>conftest.er1
9259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } &&
9265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; } &&
9271 { ac_try='test -s conftest$ac_exeext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 ac_cv_lib_Xbsd_main=yes
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 ac_cv_lib_Xbsd_main=no
9284 rm -f conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 LIBS=$ac_check_lib_save_LIBS
9288 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9289 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9290 if test $ac_cv_lib_Xbsd_main = yes; then
9291 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9296 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9297 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9298 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301 ac_check_lib_save_LIBS=$LIBS
9302 LIBS="-lpthreads $LIBS"
9303 cat >conftest.$ac_ext <<_ACEOF
9304 /* confdefs.h. */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9310 /* Override any gcc2 internal prototype to avoid an error. */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9316 char cma_open ();
9318 main ()
9320 cma_open ();
9322 return 0;
9324 _ACEOF
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 (eval $ac_try) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_lib_pthreads_cma_open=yes
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9351 ac_cv_lib_pthreads_cma_open=no
9353 rm -f conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 LIBS=$ac_check_lib_save_LIBS
9357 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9358 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9359 if test $ac_cv_lib_pthreads_cma_open = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_LIBPTHREADS 1
9362 _ACEOF
9364 LIBS="-lpthreads $LIBS"
9369 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9370 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9371 if test -d /usr/X386/include; then
9372 HAVE_XFREE386=yes
9373 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9374 else
9375 HAVE_XFREE386=no
9377 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9378 echo "${ECHO_T}$HAVE_XFREE386" >&6
9381 case ${host_os} in
9382 aix*)
9383 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9384 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9385 if test "${gdb_cv_bigtoc+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9389 case $GCC in
9390 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9391 *) gdb_cv_bigtoc=-bbigtoc ;;
9392 esac
9394 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h. */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9403 main ()
9405 int i;
9407 return 0;
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9412 (eval $ac_link) 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 (eval $ac_try) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 gdb_cv_bigtoc=
9438 rm -f conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9443 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9445 esac
9447 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9448 # used for the tests that follow. We set them back to REAL_CFLAGS and
9449 # REAL_CPPFLAGS later on.
9451 REAL_CPPFLAGS="$CPPFLAGS"
9453 if test "${HAVE_X11}" = "yes"; then
9454 DEFS="$C_SWITCH_X_SITE $DEFS"
9455 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9456 LIBS="$LIBX $LIBS"
9457 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9458 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9460 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9461 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9462 # but it's more convenient here to set LD_RUN_PATH
9463 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9464 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9465 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9466 export LD_RUN_PATH
9469 if test "${opsys}" = "gnu-linux"; then
9470 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9471 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9480 main ()
9482 XOpenDisplay ("foo");
9484 return 0;
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
9496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9508 xlinux_first_failure=no
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 xlinux_first_failure=yes
9515 rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 if test "${xlinux_first_failure}" = "yes"; then
9518 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9519 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9520 OLD_CPPFLAGS="$CPPFLAGS"
9521 OLD_LIBS="$LIBS"
9522 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9523 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9524 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9525 LIBS="$LIBS -b i486-linuxaout"
9526 cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h. */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9534 main ()
9536 XOpenDisplay ("foo");
9538 return 0;
9540 _ACEOF
9541 rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9543 (eval $ac_link) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; } &&
9556 { ac_try='test -s conftest$ac_exeext'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; }; then
9562 xlinux_second_failure=no
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 xlinux_second_failure=yes
9569 rm -f conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571 if test "${xlinux_second_failure}" = "yes"; then
9572 # If we get the same failure with -b, there is no use adding -b.
9573 # So take it out. This plays safe.
9574 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9575 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9576 CPPFLAGS="$OLD_CPPFLAGS"
9577 LIBS="$OLD_LIBS"
9578 echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6
9580 else
9581 echo "$as_me:$LINENO: result: yes" >&5
9582 echo "${ECHO_T}yes" >&6
9584 else
9585 echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6
9590 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9591 # header files included from there.
9592 echo "$as_me:$LINENO: checking for Xkb" >&5
9593 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 #include <X11/Xlib.h>
9601 #include <X11/XKBlib.h>
9603 main ()
9605 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9607 return 0;
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9613 ac_status=$?
9614 grep -v '^ *+' conftest.er1 >conftest.err
9615 rm -f conftest.er1
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 emacs_xkb=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 emacs_xkb=no
9638 rm -f conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9641 echo "${ECHO_T}$emacs_xkb" >&6
9642 if test $emacs_xkb = yes; then
9644 cat >>confdefs.h <<\_ACEOF
9645 #define HAVE_XKBGETKEYBOARD 1
9646 _ACEOF
9654 for ac_func in XrmSetDatabase XScreenResourceString \
9655 XScreenNumberOfScreen XSetWMProtocols
9657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9658 echo "$as_me:$LINENO: checking for $ac_func" >&5
9659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9660 if eval "test \"\${$as_ac_var+set}\" = set"; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9671 #define $ac_func innocuous_$ac_func
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func (); below.
9675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9676 <limits.h> exists even on freestanding compilers. */
9678 #ifdef __STDC__
9679 # include <limits.h>
9680 #else
9681 # include <assert.h>
9682 #endif
9684 #undef $ac_func
9686 /* Override any gcc2 internal prototype to avoid an error. */
9687 #ifdef __cplusplus
9688 extern "C"
9690 #endif
9691 /* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9693 char $ac_func ();
9694 /* The GNU C library defines this for functions which it implements
9695 to always fail with ENOSYS. Some functions are actually named
9696 something starting with __ and the normal name is an alias. */
9697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9698 choke me
9699 #else
9700 char (*f) () = $ac_func;
9701 #endif
9702 #ifdef __cplusplus
9704 #endif
9707 main ()
9709 return f != $ac_func;
9711 return 0;
9713 _ACEOF
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 eval "$as_ac_var=yes"
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 eval "$as_ac_var=no"
9742 rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9747 if test `eval echo '${'$as_ac_var'}'` = yes; then
9748 cat >>confdefs.h <<_ACEOF
9749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9750 _ACEOF
9753 done
9757 if test "${window_system}" = "x11"; then
9758 echo "$as_me:$LINENO: checking X11 version 6" >&5
9759 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9760 if test "${emacs_cv_x11_version_6+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 #include <X11/Xlib.h>
9771 main ()
9773 #if XlibSpecificationRelease < 6
9774 fail;
9775 #endif
9778 return 0;
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783 (eval $ac_link) 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
9790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 (eval $ac_try) 2>&5
9793 ac_status=$?
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 emacs_cv_x11_version_6=yes
9803 else
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 emacs_cv_x11_version_6=no
9809 rm -f conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
9813 if test $emacs_cv_x11_version_6 = yes; then
9814 echo "$as_me:$LINENO: result: 6 or newer" >&5
9815 echo "${ECHO_T}6 or newer" >&6
9817 cat >>confdefs.h <<\_ACEOF
9818 #define HAVE_X11R6 1
9819 _ACEOF
9821 else
9822 echo "$as_me:$LINENO: result: before 6" >&5
9823 echo "${ECHO_T}before 6" >&6
9827 if test "${window_system}" = "x11"; then
9828 echo "$as_me:$LINENO: checking X11 version 5" >&5
9829 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9830 if test "${emacs_cv_x11_version_5+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833 cat >conftest.$ac_ext <<_ACEOF
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9841 main ()
9843 #if XlibSpecificationRelease < 5
9844 fail;
9845 #endif
9848 return 0;
9850 _ACEOF
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9854 ac_status=$?
9855 grep -v '^ *+' conftest.er1 >conftest.err
9856 rm -f conftest.er1
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 emacs_cv_x11_version_5=yes
9873 else
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 emacs_cv_x11_version_5=no
9879 rm -f conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9883 if test $emacs_cv_x11_version_5 = yes; then
9884 echo "$as_me:$LINENO: result: 5 or newer" >&5
9885 echo "${ECHO_T}5 or newer" >&6
9886 HAVE_X11R5=yes
9888 cat >>confdefs.h <<\_ACEOF
9889 #define HAVE_X11R5 1
9890 _ACEOF
9892 else
9893 HAVE_X11R5=no
9894 echo "$as_me:$LINENO: result: before 5" >&5
9895 echo "${ECHO_T}before 5" >&6
9901 HAVE_GTK=no
9902 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
9903 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9904 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9905 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9906 { (exit 1); exit 1; }; };
9908 GLIB_REQUIRED=2.0.1
9909 GTK_REQUIRED=2.0.1
9910 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9912 if test "X${with_pkg_config_prog}" != X; then
9913 PKG_CONFIG="${with_pkg_config_prog}"
9916 succeeded=no
9918 if test -z "$PKG_CONFIG"; then
9919 # Extract the first word of "pkg-config", so it can be a program name with args.
9920 set dummy pkg-config; ac_word=$2
9921 echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 case $PKG_CONFIG in
9927 [\\/]* | ?:[\\/]*)
9928 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 for as_dir in $PATH
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9942 done
9943 done
9945 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9947 esac
9949 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9951 if test -n "$PKG_CONFIG"; then
9952 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9953 echo "${ECHO_T}$PKG_CONFIG" >&6
9954 else
9955 echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9961 if test "$PKG_CONFIG" = "no" ; then
9962 echo "*** The pkg-config script could not be found. Make sure it is"
9963 echo "*** in your path, or give the full path to pkg-config with"
9964 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9965 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9966 else
9967 PKG_CONFIG_MIN_VERSION=0.9.0
9968 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9969 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9970 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9972 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9973 echo "$as_me:$LINENO: result: yes" >&5
9974 echo "${ECHO_T}yes" >&6
9975 succeeded=yes
9977 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9978 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9979 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9980 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9981 echo "${ECHO_T}$GTK_CFLAGS" >&6
9983 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9984 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9985 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
9986 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9987 echo "${ECHO_T}$GTK_LIBS" >&6
9988 else
9989 GTK_CFLAGS=""
9990 GTK_LIBS=""
9991 ## If we have a custom action on failure, don't print errors, but
9992 ## do set a variable so people can do so.
9993 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9994 echo $GTK_PKG_ERRORS
9999 else
10000 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10001 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10005 if test $succeeded = yes; then
10007 else
10008 { { 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
10009 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;}
10010 { (exit 1); exit 1; }; }
10015 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10016 CFLAGS="$CFLAGS $GTK_CFLAGS"
10017 LIBS="$GTK_LIBS $LIBS"
10018 HAVE_GTK=yes
10020 cat >>confdefs.h <<\_ACEOF
10021 #define HAVE_GTK 1
10022 _ACEOF
10024 USE_X_TOOLKIT=none
10026 if test "$with_toolkit_scroll_bars" != no; then
10027 with_toolkit_scroll_bars=yes
10030 HAVE_GTK_MULTIDISPLAY=no
10032 HAVE_GTK_FILE_SELECTION=no
10034 for ac_func in gtk_file_selection_new
10036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10037 echo "$as_me:$LINENO: checking for $ac_func" >&5
10038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10039 if eval "test \"\${$as_ac_var+set}\" = set"; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10050 #define $ac_func innocuous_$ac_func
10052 /* System header to define __stub macros and hopefully few prototypes,
10053 which can conflict with char $ac_func (); below.
10054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10055 <limits.h> exists even on freestanding compilers. */
10057 #ifdef __STDC__
10058 # include <limits.h>
10059 #else
10060 # include <assert.h>
10061 #endif
10063 #undef $ac_func
10065 /* Override any gcc2 internal prototype to avoid an error. */
10066 #ifdef __cplusplus
10067 extern "C"
10069 #endif
10070 /* We use char because int might match the return type of a gcc2
10071 builtin and then its argument prototype would still apply. */
10072 char $ac_func ();
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10077 choke me
10078 #else
10079 char (*f) () = $ac_func;
10080 #endif
10081 #ifdef __cplusplus
10083 #endif
10086 main ()
10088 return f != $ac_func;
10090 return 0;
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095 (eval $ac_link) 2>conftest.er1
10096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 eval "$as_ac_var=yes"
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 eval "$as_ac_var=no"
10121 rm -f conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10126 if test `eval echo '${'$as_ac_var'}'` = yes; then
10127 cat >>confdefs.h <<_ACEOF
10128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10129 _ACEOF
10130 HAVE_GTK_FILE_SELECTION=yes
10132 done
10135 HAVE_GTK_FILE_CHOOSER=no
10137 for ac_func in gtk_file_chooser_dialog_new
10139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10140 echo "$as_me:$LINENO: checking for $ac_func" >&5
10141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10142 if eval "test \"\${$as_ac_var+set}\" = set"; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153 #define $ac_func innocuous_$ac_func
10155 /* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char $ac_func (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10160 #ifdef __STDC__
10161 # include <limits.h>
10162 #else
10163 # include <assert.h>
10164 #endif
10166 #undef $ac_func
10168 /* Override any gcc2 internal prototype to avoid an error. */
10169 #ifdef __cplusplus
10170 extern "C"
10172 #endif
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10175 char $ac_func ();
10176 /* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
10179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10180 choke me
10181 #else
10182 char (*f) () = $ac_func;
10183 #endif
10184 #ifdef __cplusplus
10186 #endif
10189 main ()
10191 return f != $ac_func;
10193 return 0;
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 eval "$as_ac_var=yes"
10218 else
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 eval "$as_ac_var=no"
10224 rm -f conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10229 if test `eval echo '${'$as_ac_var'}'` = yes; then
10230 cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10232 _ACEOF
10233 HAVE_GTK_FILE_CHOOSER=yes
10235 done
10238 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10239 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10241 cat >>confdefs.h <<\_ACEOF
10242 #define HAVE_GTK_FILE_BOTH 1
10243 _ACEOF
10247 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10248 HAVE_GTK_AND_PTHREAD=no
10250 for ac_header in pthread.h
10252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10254 echo "$as_me:$LINENO: checking for $ac_header" >&5
10255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10261 else
10262 # Is the header compilable?
10263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest.$ac_objext'
10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; }; then
10295 ac_header_compiler=yes
10296 else
10297 echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 ac_header_compiler=no
10302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10304 echo "${ECHO_T}$ac_header_compiler" >&6
10306 # Is the header present?
10307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 #include <$ac_header>
10316 _ACEOF
10317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } >/dev/null; then
10325 if test -s conftest.err; then
10326 ac_cpp_err=$ac_c_preproc_warn_flag
10327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10328 else
10329 ac_cpp_err=
10331 else
10332 ac_cpp_err=yes
10334 if test -z "$ac_cpp_err"; then
10335 ac_header_preproc=yes
10336 else
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_header_preproc=no
10342 rm -f conftest.err conftest.$ac_ext
10343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10344 echo "${ECHO_T}$ac_header_preproc" >&6
10346 # So? What about this header?
10347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10348 yes:no: )
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10353 ac_header_preproc=yes
10355 no:yes:* )
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10369 cat <<\_ASBOX
10370 ## ------------------------------------------ ##
10371 ## Report this to the AC_PACKAGE_NAME lists. ##
10372 ## ------------------------------------------ ##
10373 _ASBOX
10375 sed "s/^/$as_me: WARNING: /" >&2
10377 esac
10378 echo "$as_me:$LINENO: checking for $ac_header" >&5
10379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 else
10383 eval "$as_ac_Header=\$ac_header_preproc"
10385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10390 cat >>confdefs.h <<_ACEOF
10391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10392 _ACEOF
10396 done
10398 if test "$ac_cv_header_pthread_h"; then
10399 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10400 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10401 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 ac_check_lib_save_LIBS=$LIBS
10405 LIBS="-lpthread $LIBS"
10406 cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h. */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 /* We use char because int might match the return type of a gcc2
10418 builtin and then its argument prototype would still apply. */
10419 char pthread_self ();
10421 main ()
10423 pthread_self ();
10425 return 0;
10427 _ACEOF
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_lib_pthread_pthread_self=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_cv_lib_pthread_pthread_self=no
10456 rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS=$ac_check_lib_save_LIBS
10460 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10461 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10462 if test $ac_cv_lib_pthread_pthread_self = yes; then
10463 HAVE_GTK_AND_PTHREAD=yes
10467 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10468 GTK_LIBS="$GTK_LIBS -lpthread"
10470 cat >>confdefs.h <<\_ACEOF
10471 #define HAVE_GTK_AND_PTHREAD 1
10472 _ACEOF
10478 if test x"${USE_X_TOOLKIT}" = xmaybe; then
10479 if test x"${HAVE_X11R5}" = xyes; then
10480 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10481 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10482 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10492 #include <X11/Intrinsic.h>
10493 #include <X11/Xaw/Simple.h>
10495 main ()
10499 return 0;
10501 _ACEOF
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>conftest.er1
10505 ac_status=$?
10506 grep -v '^ *+' conftest.er1 >conftest.err
10507 rm -f conftest.er1
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; } &&
10517 { ac_try='test -s conftest$ac_exeext'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10520 ac_status=$?
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; }; then
10523 emacs_cv_x11_version_5_with_xaw=yes
10524 else
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 emacs_cv_x11_version_5_with_xaw=no
10530 rm -f conftest.err conftest.$ac_objext \
10531 conftest$ac_exeext conftest.$ac_ext
10534 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10535 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10536 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10537 USE_X_TOOLKIT=LUCID
10538 else
10539 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10540 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10541 USE_X_TOOLKIT=none
10543 else
10544 USE_X_TOOLKIT=none
10548 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10550 if test "${USE_X_TOOLKIT}" != "none"; then
10551 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10552 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10553 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <X11/Intrinsic.h>
10564 main ()
10566 #if XtSpecificationRelease < 6
10567 fail;
10568 #endif
10571 return 0;
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>conftest.er1
10577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } &&
10583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; } &&
10589 { ac_try='test -s conftest$ac_exeext'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 emacs_cv_x11_toolkit_version_6=yes
10596 else
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10600 emacs_cv_x11_toolkit_version_6=no
10602 rm -f conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10606 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10607 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10608 echo "$as_me:$LINENO: result: 6 or newer" >&5
10609 echo "${ECHO_T}6 or newer" >&6
10611 cat >>confdefs.h <<\_ACEOF
10612 #define HAVE_X11XTR6 1
10613 _ACEOF
10615 else
10616 echo "$as_me:$LINENO: result: before 6" >&5
10617 echo "${ECHO_T}before 6" >&6
10620 OLDLIBS="$LIBS"
10621 if test x$HAVE_X11XTR6 = xyes; then
10622 LIBS="-lXt -lSM -lICE $LIBS"
10623 else
10624 LIBS="-lXt $LIBS"
10627 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10628 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10629 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lXmu $LIBS"
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10641 /* Override any gcc2 internal prototype to avoid an error. */
10642 #ifdef __cplusplus
10643 extern "C"
10644 #endif
10645 /* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10647 char XmuConvertStandardSelection ();
10649 main ()
10651 XmuConvertStandardSelection ();
10653 return 0;
10655 _ACEOF
10656 rm -f conftest.$ac_objext conftest$ac_exeext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10658 (eval $ac_link) 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10668 ac_status=$?
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10684 rm -f conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS
10688 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10689 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10690 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10691 cat >>confdefs.h <<_ACEOF
10692 #define HAVE_LIBXMU 1
10693 _ACEOF
10695 LIBS="-lXmu $LIBS"
10699 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10702 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10703 if test "${HAVE_X11}" = "yes"; then
10704 if test "${USE_X_TOOLKIT}" != "none"; then
10706 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10707 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10708 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 ac_check_lib_save_LIBS=$LIBS
10712 LIBS="-lXext $LIBS"
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h. */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10720 /* Override any gcc2 internal prototype to avoid an error. */
10721 #ifdef __cplusplus
10722 extern "C"
10723 #endif
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
10726 char XShapeQueryExtension ();
10728 main ()
10730 XShapeQueryExtension ();
10732 return 0;
10734 _ACEOF
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10737 (eval $ac_link) 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_cv_lib_Xext_XShapeQueryExtension=yes
10757 else
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ac_cv_lib_Xext_XShapeQueryExtension=no
10763 rm -f conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10767 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10768 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10769 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771 #define HAVE_LIBXEXT 1
10772 _ACEOF
10774 LIBS="-lXext $LIBS"
10781 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10782 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10783 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10784 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786 else
10787 cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h. */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10793 #include <Xm/Xm.h>
10795 main ()
10797 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10798 int x = 5;
10799 #else
10800 Motif version prior to 2.1.
10801 #endif
10803 return 0;
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10808 (eval $ac_compile) 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 emacs_cv_motif_version_2_1=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 emacs_cv_motif_version_2_1=no
10834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10836 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10837 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10838 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
10839 if test $emacs_cv_motif_version_2_1 = yes; then
10840 HAVE_LIBXP=no
10842 cat >>confdefs.h <<\_ACEOF
10843 #define HAVE_MOTIF_2_1 1
10844 _ACEOF
10846 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10847 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10848 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-lXp $LIBS"
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10860 /* Override any gcc2 internal prototype to avoid an error. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char XpCreateContext ();
10868 main ()
10870 XpCreateContext ();
10872 return 0;
10874 _ACEOF
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877 (eval $ac_link) 2>conftest.er1
10878 ac_status=$?
10879 grep -v '^ *+' conftest.er1 >conftest.err
10880 rm -f conftest.er1
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest$ac_exeext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_lib_Xp_XpCreateContext=yes
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_cv_lib_Xp_XpCreateContext=no
10903 rm -f conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10907 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10908 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10909 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10910 HAVE_LIBXP=yes
10913 if test ${HAVE_LIBXP} = yes; then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_LIBXP 1
10917 _ACEOF
10920 else
10921 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10922 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10923 if test "${emacs_cv_lesstif+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 # We put this in CFLAGS temporarily to precede other -I options
10927 # that might be in CFLAGS temporarily.
10928 # We put this in CPPFLAGS where it precedes the other -I options.
10929 OLD_CPPFLAGS=$CPPFLAGS
10930 OLD_CFLAGS=$CFLAGS
10931 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10932 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10933 cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10941 main ()
10943 int x = 5;
10945 return 0;
10947 _ACEOF
10948 rm -f conftest.$ac_objext
10949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10950 (eval $ac_compile) 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; } &&
10963 { ac_try='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 emacs_cv_lesstif=yes
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 emacs_cv_lesstif=no
10976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10978 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10979 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10980 if test $emacs_cv_lesstif = yes; then
10981 # Make sure this -I option remains in CPPFLAGS after it is set
10982 # back to REAL_CPPFLAGS.
10983 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10984 # have those other -I options anyway. Ultimately, having this
10985 # directory ultimately in CPPFLAGS will be enough.
10986 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10987 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10988 else
10989 CFLAGS=$OLD_CFLAGS
10990 CPPFLAGS=$OLD_CPPFLAGS
10995 ### Is -lXaw3d available?
10996 HAVE_XAW3D=no
10997 if test "${HAVE_X11}" = "yes"; then
10998 if test "${USE_X_TOOLKIT}" != "none"; then
10999 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11000 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11001 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004 cat >conftest.$ac_ext <<_ACEOF
11005 /* confdefs.h. */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <X11/Xaw3d/Scrollbar.h>
11011 _ACEOF
11012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } >/dev/null; then
11020 if test -s conftest.err; then
11021 ac_cpp_err=$ac_c_preproc_warn_flag
11022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11023 else
11024 ac_cpp_err=
11026 else
11027 ac_cpp_err=yes
11029 if test -z "$ac_cpp_err"; then
11030 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11031 else
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11037 rm -f conftest.err conftest.$ac_ext
11039 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11040 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11041 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11042 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11043 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11044 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 ac_check_lib_save_LIBS=$LIBS
11048 LIBS="-lXaw3d $LIBS"
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11056 /* Override any gcc2 internal prototype to avoid an error. */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 /* We use char because int might match the return type of a gcc2
11061 builtin and then its argument prototype would still apply. */
11062 char XawScrollbarSetThumb ();
11064 main ()
11066 XawScrollbarSetThumb ();
11068 return 0;
11070 _ACEOF
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try='test -s conftest$ac_exeext'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11093 else
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11099 rm -f conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11103 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11104 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11105 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11106 HAVE_XAW3D=yes
11112 if test "${HAVE_XAW3D}" = "yes"; then
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_XAW3D 1
11116 _ACEOF
11124 USE_TOOLKIT_SCROLL_BARS=no
11125 if test "${with_toolkit_scroll_bars}" != "no"; then
11126 if test "${USE_X_TOOLKIT}" != "none"; then
11127 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11128 cat >>confdefs.h <<\_ACEOF
11129 #define USE_TOOLKIT_SCROLL_BARS 1
11130 _ACEOF
11132 HAVE_XAW3D=no
11133 USE_TOOLKIT_SCROLL_BARS=yes
11134 elif test "${HAVE_XAW3D}" = "yes"; then
11135 cat >>confdefs.h <<\_ACEOF
11136 #define USE_TOOLKIT_SCROLL_BARS 1
11137 _ACEOF
11139 USE_TOOLKIT_SCROLL_BARS=yes
11141 elif test "${HAVE_GTK}" = "yes"; then
11142 cat >>confdefs.h <<\_ACEOF
11143 #define USE_TOOLKIT_SCROLL_BARS 1
11144 _ACEOF
11146 USE_TOOLKIT_SCROLL_BARS=yes
11147 elif test "${HAVE_CARBON}" = "yes"; then
11148 cat >>confdefs.h <<\_ACEOF
11149 #define USE_TOOLKIT_SCROLL_BARS 1
11150 _ACEOF
11152 USE_TOOLKIT_SCROLL_BARS=yes
11156 cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h. */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h. */
11163 #include <X11/Xlib.h>
11164 #include <X11/Xresource.h>
11166 main ()
11168 XIMProc callback;
11170 return 0;
11172 _ACEOF
11173 rm -f conftest.$ac_objext
11174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11175 (eval $ac_compile) 2>conftest.er1
11176 ac_status=$?
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 HAVE_XIM=yes
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_XIM 1
11198 _ACEOF
11200 else
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 HAVE_XIM=no
11206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11209 if test "${with_xim}" != "no"; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define USE_XIM 1
11213 _ACEOF
11218 if test "${HAVE_XIM}" != "no"; then
11219 late_CFLAGS=$CFLAGS
11220 if test "$GCC" = yes; then
11221 CFLAGS="$CFLAGS --pedantic-errors"
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11230 #include <X11/Xlib.h>
11231 #include <X11/Xresource.h>
11233 main ()
11235 Display *display;
11236 XrmDatabase db;
11237 char *res_name;
11238 char *res_class;
11239 XIMProc callback;
11240 XPointer *client_data;
11241 #ifndef __GNUC__
11242 /* If we're not using GCC, it's probably not XFree86, and this is
11243 probably right, but we can't use something like --pedantic-errors. */
11244 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11245 char*, XIMProc, XPointer*);
11246 #endif
11247 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11248 client_data);
11250 return 0;
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11265 ac_status=$?
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; } &&
11268 { ac_try='test -s conftest.$ac_objext'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11274 emacs_cv_arg6_star=yes
11275 else
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11282 if test "$emacs_cv_arg6_star" = yes; then
11283 cat >>confdefs.h <<\_ACEOF
11284 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11285 _ACEOF
11287 else
11288 cat >>confdefs.h <<\_ACEOF
11289 #define XRegisterIMInstantiateCallback_arg6 XPointer
11290 _ACEOF
11293 CFLAGS=$late_CFLAGS
11296 ### Use -lXpm if available, unless `--with-xpm=no'.
11297 HAVE_XPM=no
11298 if test "${HAVE_X11}" = "yes"; then
11299 if test "${with_xpm}" != "no"; then
11300 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11301 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11302 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11303 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11307 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11308 else
11309 # Is the header compilable?
11310 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11311 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 $ac_includes_default
11319 #include <X11/xpm.h>
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323 (eval $ac_compile) 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest.$ac_objext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_header_compiler=yes
11343 else
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_header_compiler=no
11349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11351 echo "${ECHO_T}$ac_header_compiler" >&6
11353 # Is the header present?
11354 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11355 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <X11/xpm.h>
11363 _ACEOF
11364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } >/dev/null; then
11372 if test -s conftest.err; then
11373 ac_cpp_err=$ac_c_preproc_warn_flag
11374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11375 else
11376 ac_cpp_err=
11378 else
11379 ac_cpp_err=yes
11381 if test -z "$ac_cpp_err"; then
11382 ac_header_preproc=yes
11383 else
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11387 ac_header_preproc=no
11389 rm -f conftest.err conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6
11393 # So? What about this header?
11394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395 yes:no: )
11396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11397 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11399 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11400 ac_header_preproc=yes
11402 no:yes:* )
11403 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11404 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11406 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11408 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11410 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11414 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11416 cat <<\_ASBOX
11417 ## ------------------------------------------ ##
11418 ## Report this to the AC_PACKAGE_NAME lists. ##
11419 ## ------------------------------------------ ##
11420 _ASBOX
11422 sed "s/^/$as_me: WARNING: /" >&2
11424 esac
11425 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11426 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11427 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 else
11430 ac_cv_header_X11_xpm_h=$ac_header_preproc
11432 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11433 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11436 if test $ac_cv_header_X11_xpm_h = yes; then
11437 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11438 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11439 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442 ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-lXpm -lX11 $LIBS"
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11451 /* Override any gcc2 internal prototype to avoid an error. */
11452 #ifdef __cplusplus
11453 extern "C"
11454 #endif
11455 /* We use char because int might match the return type of a gcc2
11456 builtin and then its argument prototype would still apply. */
11457 char XpmReadFileToPixmap ();
11459 main ()
11461 XpmReadFileToPixmap ();
11463 return 0;
11465 _ACEOF
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468 (eval $ac_link) 2>conftest.er1
11469 ac_status=$?
11470 grep -v '^ *+' conftest.er1 >conftest.err
11471 rm -f conftest.er1
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } &&
11475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477 (eval $ac_try) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); }; } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11488 else
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11494 rm -f conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_lib_save_LIBS
11498 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11499 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11500 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11501 HAVE_XPM=yes
11507 if test "${HAVE_XPM}" = "yes"; then
11508 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11509 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include "X11/xpm.h"
11517 #ifndef XpmReturnAllocPixels
11518 no_return_alloc_pixels
11519 #endif
11521 _ACEOF
11522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11523 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
11524 HAVE_XPM=no
11525 else
11526 HAVE_XPM=yes
11528 rm -f conftest*
11531 if test "${HAVE_XPM}" = "yes"; then
11532 echo "$as_me:$LINENO: result: yes" >&5
11533 echo "${ECHO_T}yes" >&6
11534 else
11535 echo "$as_me:$LINENO: result: no" >&5
11536 echo "${ECHO_T}no" >&6
11541 if test "${HAVE_XPM}" = "yes"; then
11543 cat >>confdefs.h <<\_ACEOF
11544 #define HAVE_XPM 1
11545 _ACEOF
11550 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11551 HAVE_JPEG=no
11552 if test "${HAVE_X11}" = "yes"; then
11553 if test "${with_jpeg}" != "no"; then
11554 if test "${ac_cv_header_jerror_h+set}" = set; then
11555 echo "$as_me:$LINENO: checking for jerror.h" >&5
11556 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11557 if test "${ac_cv_header_jerror_h+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11561 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11562 else
11563 # Is the header compilable?
11564 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11565 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 $ac_includes_default
11573 #include <jerror.h>
11574 _ACEOF
11575 rm -f conftest.$ac_objext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11577 (eval $ac_compile) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_header_compiler=yes
11597 else
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_header_compiler=no
11603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11605 echo "${ECHO_T}$ac_header_compiler" >&6
11607 # Is the header present?
11608 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11609 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 #include <jerror.h>
11617 _ACEOF
11618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11620 ac_status=$?
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } >/dev/null; then
11626 if test -s conftest.err; then
11627 ac_cpp_err=$ac_c_preproc_warn_flag
11628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11629 else
11630 ac_cpp_err=
11632 else
11633 ac_cpp_err=yes
11635 if test -z "$ac_cpp_err"; then
11636 ac_header_preproc=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_header_preproc=no
11643 rm -f conftest.err conftest.$ac_ext
11644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11645 echo "${ECHO_T}$ac_header_preproc" >&6
11647 # So? What about this header?
11648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11649 yes:no: )
11650 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11651 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11653 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11654 ac_header_preproc=yes
11656 no:yes:* )
11657 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11658 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11659 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11660 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11662 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11663 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11664 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11665 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11666 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11668 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11670 cat <<\_ASBOX
11671 ## ------------------------------------------ ##
11672 ## Report this to the AC_PACKAGE_NAME lists. ##
11673 ## ------------------------------------------ ##
11674 _ASBOX
11676 sed "s/^/$as_me: WARNING: /" >&2
11678 esac
11679 echo "$as_me:$LINENO: checking for jerror.h" >&5
11680 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11681 if test "${ac_cv_header_jerror_h+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 ac_cv_header_jerror_h=$ac_header_preproc
11686 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11687 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11690 if test $ac_cv_header_jerror_h = yes; then
11691 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11692 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11693 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696 ac_check_lib_save_LIBS=$LIBS
11697 LIBS="-ljpeg $LIBS"
11698 cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h. */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11705 /* Override any gcc2 internal prototype to avoid an error. */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 /* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11711 char jpeg_destroy_compress ();
11713 main ()
11715 jpeg_destroy_compress ();
11717 return 0;
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722 (eval $ac_link) 2>conftest.er1
11723 ac_status=$?
11724 grep -v '^ *+' conftest.er1 >conftest.err
11725 rm -f conftest.er1
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11742 else
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11748 rm -f conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11750 LIBS=$ac_check_lib_save_LIBS
11752 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11753 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11754 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11755 HAVE_JPEG=yes
11764 if test "${HAVE_JPEG}" = "yes"; then
11765 cat >>confdefs.h <<\_ACEOF
11766 #define HAVE_JPEG 1
11767 _ACEOF
11769 cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h. */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h. */
11775 #include <jpeglib.h>
11776 version=JPEG_LIB_VERSION
11778 _ACEOF
11779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11780 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
11781 cat >>confdefs.h <<\_ACEOF
11782 #define HAVE_JPEG 1
11783 _ACEOF
11785 else
11786 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11787 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11788 HAVE_JPEG=no
11790 rm -f conftest*
11795 ### Use -lpng if available, unless `--with-png=no'.
11796 HAVE_PNG=no
11797 if test "${HAVE_X11}" = "yes"; then
11798 if test "${with_png}" != "no"; then
11799 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11800 # in /usr/include/libpng.
11803 for ac_header in png.h libpng/png.h
11805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11807 echo "$as_me:$LINENO: checking for $ac_header" >&5
11808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11814 else
11815 # Is the header compilable?
11816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h. */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 #include <$ac_header>
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 ac_header_compiler=yes
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_header_compiler=no
11855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11857 echo "${ECHO_T}$ac_header_compiler" >&6
11859 # Is the header present?
11860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include <$ac_header>
11869 _ACEOF
11870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } >/dev/null; then
11878 if test -s conftest.err; then
11879 ac_cpp_err=$ac_c_preproc_warn_flag
11880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11881 else
11882 ac_cpp_err=
11884 else
11885 ac_cpp_err=yes
11887 if test -z "$ac_cpp_err"; then
11888 ac_header_preproc=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_header_preproc=no
11895 rm -f conftest.err conftest.$ac_ext
11896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11901 yes:no: )
11902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc=yes
11908 no:yes:* )
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11922 cat <<\_ASBOX
11923 ## ------------------------------------------ ##
11924 ## Report this to the AC_PACKAGE_NAME lists. ##
11925 ## ------------------------------------------ ##
11926 _ASBOX
11928 sed "s/^/$as_me: WARNING: /" >&2
11930 esac
11931 echo "$as_me:$LINENO: checking for $ac_header" >&5
11932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 eval "$as_ac_Header=\$ac_header_preproc"
11938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11945 _ACEOF
11949 done
11951 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11952 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11953 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11954 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957 ac_check_lib_save_LIBS=$LIBS
11958 LIBS="-lpng -lz -lm $LIBS"
11959 cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h. */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11966 /* Override any gcc2 internal prototype to avoid an error. */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 /* We use char because int might match the return type of a gcc2
11971 builtin and then its argument prototype would still apply. */
11972 char png_get_channels ();
11974 main ()
11976 png_get_channels ();
11978 return 0;
11980 _ACEOF
11981 rm -f conftest.$ac_objext conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983 (eval $ac_link) 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try='test -s conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_lib_png_png_get_channels=yes
12003 else
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 ac_cv_lib_png_png_get_channels=no
12009 rm -f conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12014 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
12015 if test $ac_cv_lib_png_png_get_channels = yes; then
12016 HAVE_PNG=yes
12022 if test "${HAVE_PNG}" = "yes"; then
12024 cat >>confdefs.h <<\_ACEOF
12025 #define HAVE_PNG 1
12026 _ACEOF
12031 ### Use -ltiff if available, unless `--with-tiff=no'.
12032 HAVE_TIFF=no
12033 if test "${HAVE_X11}" = "yes"; then
12034 if test "${with_tiff}" != "no"; then
12035 if test "${ac_cv_header_tiffio_h+set}" = set; then
12036 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12037 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12038 if test "${ac_cv_header_tiffio_h+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12042 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12043 else
12044 # Is the header compilable?
12045 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12046 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h. */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12053 $ac_includes_default
12054 #include <tiffio.h>
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058 (eval $ac_compile) 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; } &&
12071 { ac_try='test -s conftest.$ac_objext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_header_compiler=yes
12078 else
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_header_compiler=no
12084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12086 echo "${ECHO_T}$ac_header_compiler" >&6
12088 # Is the header present?
12089 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12090 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12092 /* confdefs.h. */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 #include <tiffio.h>
12098 _ACEOF
12099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12101 ac_status=$?
12102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } >/dev/null; then
12107 if test -s conftest.err; then
12108 ac_cpp_err=$ac_c_preproc_warn_flag
12109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12110 else
12111 ac_cpp_err=
12113 else
12114 ac_cpp_err=yes
12116 if test -z "$ac_cpp_err"; then
12117 ac_header_preproc=yes
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_header_preproc=no
12124 rm -f conftest.err conftest.$ac_ext
12125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12126 echo "${ECHO_T}$ac_header_preproc" >&6
12128 # So? What about this header?
12129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12130 yes:no: )
12131 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12132 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12134 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12135 ac_header_preproc=yes
12137 no:yes:* )
12138 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12139 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12140 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12141 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12142 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12143 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12144 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12145 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12146 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12147 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12148 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12149 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12151 cat <<\_ASBOX
12152 ## ------------------------------------------ ##
12153 ## Report this to the AC_PACKAGE_NAME lists. ##
12154 ## ------------------------------------------ ##
12155 _ASBOX
12157 sed "s/^/$as_me: WARNING: /" >&2
12159 esac
12160 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12161 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12162 if test "${ac_cv_header_tiffio_h+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165 ac_cv_header_tiffio_h=$ac_header_preproc
12167 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12168 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12171 if test $ac_cv_header_tiffio_h = yes; then
12172 tifflibs="-lz -lm"
12173 # At least one tiff package requires the jpeg library.
12174 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12175 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12176 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12177 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-ltiff $tifflibs $LIBS"
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 /* Override any gcc2 internal prototype to avoid an error. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12195 char TIFFGetVersion ();
12197 main ()
12199 TIFFGetVersion ();
12201 return 0;
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206 (eval $ac_link) 2>conftest.er1
12207 ac_status=$?
12208 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; }; then
12225 ac_cv_lib_tiff_TIFFGetVersion=yes
12226 else
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 ac_cv_lib_tiff_TIFFGetVersion=no
12232 rm -f conftest.err conftest.$ac_objext \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12236 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12237 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12238 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12239 HAVE_TIFF=yes
12247 if test "${HAVE_TIFF}" = "yes"; then
12249 cat >>confdefs.h <<\_ACEOF
12250 #define HAVE_TIFF 1
12251 _ACEOF
12256 ### Use -lgif if available, unless `--with-gif=no'.
12257 HAVE_GIF=no
12258 if test "${HAVE_X11}" = "yes"; then
12259 if test "${with_gif}" != "no"; then
12260 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12261 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12262 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12263 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12267 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12268 else
12269 # Is the header compilable?
12270 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12271 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12272 cat >conftest.$ac_ext <<_ACEOF
12273 /* confdefs.h. */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12279 #include <gif_lib.h>
12280 _ACEOF
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest.$ac_objext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_header_compiler=yes
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 ac_header_compiler=no
12309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12311 echo "${ECHO_T}$ac_header_compiler" >&6
12313 # Is the header present?
12314 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12315 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <gif_lib.h>
12323 _ACEOF
12324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } >/dev/null; then
12332 if test -s conftest.err; then
12333 ac_cpp_err=$ac_c_preproc_warn_flag
12334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12335 else
12336 ac_cpp_err=
12338 else
12339 ac_cpp_err=yes
12341 if test -z "$ac_cpp_err"; then
12342 ac_header_preproc=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 ac_header_preproc=no
12349 rm -f conftest.err conftest.$ac_ext
12350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12351 echo "${ECHO_T}$ac_header_preproc" >&6
12353 # So? What about this header?
12354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12355 yes:no: )
12356 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12357 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12359 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12360 ac_header_preproc=yes
12362 no:yes:* )
12363 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12364 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12366 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12368 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12370 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12372 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12373 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12374 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12376 cat <<\_ASBOX
12377 ## ------------------------------------------ ##
12378 ## Report this to the AC_PACKAGE_NAME lists. ##
12379 ## ------------------------------------------ ##
12380 _ASBOX
12382 sed "s/^/$as_me: WARNING: /" >&2
12384 esac
12385 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12386 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12387 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390 ac_cv_header_gif_lib_h=$ac_header_preproc
12392 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12393 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12396 if test $ac_cv_header_gif_lib_h = yes; then
12397 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12398 # Earlier versions can crash Emacs.
12399 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12400 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12401 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404 ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lungif $LIBS"
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12413 /* Override any gcc2 internal prototype to avoid an error. */
12414 #ifdef __cplusplus
12415 extern "C"
12416 #endif
12417 /* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12419 char EGifPutExtensionLast ();
12421 main ()
12423 EGifPutExtensionLast ();
12425 return 0;
12427 _ACEOF
12428 rm -f conftest.$ac_objext conftest$ac_exeext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12430 (eval $ac_link) 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_cv_lib_ungif_EGifPutExtensionLast=no
12456 rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12461 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12462 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12463 HAVE_GIF=yes
12471 if test "${HAVE_GIF}" = "yes"; then
12473 cat >>confdefs.h <<\_ACEOF
12474 #define HAVE_GIF 1
12475 _ACEOF
12480 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12481 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12482 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12483 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12487 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12488 else
12489 # Is the header compilable?
12490 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12491 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h. */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h. */
12498 $ac_includes_default
12499 #include <malloc/malloc.h>
12500 _ACEOF
12501 rm -f conftest.$ac_objext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>conftest.er1
12504 ac_status=$?
12505 grep -v '^ *+' conftest.er1 >conftest.err
12506 rm -f conftest.er1
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
12510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_header_compiler=yes
12523 else
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 ac_header_compiler=no
12529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531 echo "${ECHO_T}$ac_header_compiler" >&6
12533 # Is the header present?
12534 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12535 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h. */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <malloc/malloc.h>
12543 _ACEOF
12544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } >/dev/null; then
12552 if test -s conftest.err; then
12553 ac_cpp_err=$ac_c_preproc_warn_flag
12554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12555 else
12556 ac_cpp_err=
12558 else
12559 ac_cpp_err=yes
12561 if test -z "$ac_cpp_err"; then
12562 ac_header_preproc=yes
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_header_preproc=no
12569 rm -f conftest.err conftest.$ac_ext
12570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12571 echo "${ECHO_T}$ac_header_preproc" >&6
12573 # So? What about this header?
12574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12575 yes:no: )
12576 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12577 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12579 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12580 ac_header_preproc=yes
12582 no:yes:* )
12583 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12584 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12586 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12588 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12590 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12592 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12594 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12596 cat <<\_ASBOX
12597 ## ------------------------------------------ ##
12598 ## Report this to the AC_PACKAGE_NAME lists. ##
12599 ## ------------------------------------------ ##
12600 _ASBOX
12602 sed "s/^/$as_me: WARNING: /" >&2
12604 esac
12605 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12606 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12607 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610 ac_cv_header_malloc_malloc_h=$ac_header_preproc
12612 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12613 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12616 if test $ac_cv_header_malloc_malloc_h = yes; then
12618 cat >>confdefs.h <<\_ACEOF
12619 #define HAVE_MALLOC_MALLOC_H 1
12620 _ACEOF
12626 ### Use Mac OS X Carbon API to implement GUI.
12627 if test "${HAVE_CARBON}" = "yes"; then
12629 cat >>confdefs.h <<\_ACEOF
12630 #define HAVE_CARBON 1
12631 _ACEOF
12633 ## Specify the install directory
12634 carbon_appdir=
12635 if test "${carbon_appdir_x}" != ""; then
12636 case ${carbon_appdir_x} in
12637 y | ye | yes) carbon_appdir=/Applications ;;
12638 * ) carbon_appdir=${carbon_appdir_x} ;;
12639 esac
12641 # We also have mouse menus.
12642 HAVE_MENUS=yes
12644 tmp_CFLAGS="$CFLAGS"
12645 CFLAGS="$CFLAGS -framework Carbon"
12646 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
12647 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
12648 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h. */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
12658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12659 #define CancelMenuTracking innocuous_CancelMenuTracking
12661 /* System header to define __stub macros and hopefully few prototypes,
12662 which can conflict with char CancelMenuTracking (); below.
12663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12664 <limits.h> exists even on freestanding compilers. */
12666 #ifdef __STDC__
12667 # include <limits.h>
12668 #else
12669 # include <assert.h>
12670 #endif
12672 #undef CancelMenuTracking
12674 /* Override any gcc2 internal prototype to avoid an error. */
12675 #ifdef __cplusplus
12676 extern "C"
12678 #endif
12679 /* We use char because int might match the return type of a gcc2
12680 builtin and then its argument prototype would still apply. */
12681 char CancelMenuTracking ();
12682 /* The GNU C library defines this for functions which it implements
12683 to always fail with ENOSYS. Some functions are actually named
12684 something starting with __ and the normal name is an alias. */
12685 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
12686 choke me
12687 #else
12688 char (*f) () = CancelMenuTracking;
12689 #endif
12690 #ifdef __cplusplus
12692 #endif
12695 main ()
12697 return f != CancelMenuTracking;
12699 return 0;
12701 _ACEOF
12702 rm -f conftest.$ac_objext conftest$ac_exeext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704 (eval $ac_link) 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_func_CancelMenuTracking=yes
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_cv_func_CancelMenuTracking=no
12730 rm -f conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12733 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
12734 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
12735 if test $ac_cv_func_CancelMenuTracking = yes; then
12736 have_cmt=yes
12737 else
12738 have_cmt=no
12741 if test "$have_cmt" = yes; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_CANCELMENUTRACKING 1
12745 _ACEOF
12748 CFLAGS="$tmp_CFLAGS"
12751 ### Use session management (-lSM -lICE) if available
12752 HAVE_X_SM=no
12753 if test "${HAVE_X11}" = "yes"; then
12754 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12755 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12756 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12757 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12761 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12762 else
12763 # Is the header compilable?
12764 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12765 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12772 $ac_includes_default
12773 #include <X11/SM/SMlib.h>
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_header_compiler=yes
12797 else
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12801 ac_header_compiler=no
12803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12805 echo "${ECHO_T}$ac_header_compiler" >&6
12807 # Is the header present?
12808 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12809 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12810 cat >conftest.$ac_ext <<_ACEOF
12811 /* confdefs.h. */
12812 _ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 #include <X11/SM/SMlib.h>
12817 _ACEOF
12818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } >/dev/null; then
12826 if test -s conftest.err; then
12827 ac_cpp_err=$ac_c_preproc_warn_flag
12828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12829 else
12830 ac_cpp_err=
12832 else
12833 ac_cpp_err=yes
12835 if test -z "$ac_cpp_err"; then
12836 ac_header_preproc=yes
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_header_preproc=no
12843 rm -f conftest.err conftest.$ac_ext
12844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12845 echo "${ECHO_T}$ac_header_preproc" >&6
12847 # So? What about this header?
12848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12849 yes:no: )
12850 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12851 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12853 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12854 ac_header_preproc=yes
12856 no:yes:* )
12857 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12858 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12860 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12862 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12864 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12866 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12868 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12870 cat <<\_ASBOX
12871 ## ------------------------------------------ ##
12872 ## Report this to the AC_PACKAGE_NAME lists. ##
12873 ## ------------------------------------------ ##
12874 _ASBOX
12876 sed "s/^/$as_me: WARNING: /" >&2
12878 esac
12879 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12880 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12881 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
12886 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12887 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12890 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12891 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12892 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12893 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 else
12896 ac_check_lib_save_LIBS=$LIBS
12897 LIBS="-lSM -lICE $LIBS"
12898 cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12905 /* Override any gcc2 internal prototype to avoid an error. */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 /* We use char because int might match the return type of a gcc2
12910 builtin and then its argument prototype would still apply. */
12911 char SmcOpenConnection ();
12913 main ()
12915 SmcOpenConnection ();
12917 return 0;
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12922 (eval $ac_link) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest$ac_exeext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_cv_lib_SM_SmcOpenConnection=yes
12942 else
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 ac_cv_lib_SM_SmcOpenConnection=no
12948 rm -f conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12953 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12954 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12955 HAVE_X_SM=yes
12962 if test "${HAVE_X_SM}" = "yes"; then
12964 cat >>confdefs.h <<\_ACEOF
12965 #define HAVE_X_SM 1
12966 _ACEOF
12968 case "$LIBS" in
12969 *-lSM*) ;;
12970 *) LIBS="-lSM -lICE $LIBS" ;;
12971 esac
12975 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12976 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12977 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12978 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 cat >conftest.$ac_ext <<_ACEOF
12982 /* confdefs.h. */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 #include <netdb.h>
12989 main ()
12991 return h_errno;
12993 return 0;
12995 _ACEOF
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 emacs_cv_netdb_declares_h_errno=yes
13018 else
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 emacs_cv_netdb_declares_h_errno=no
13024 rm -f conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13027 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13028 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
13029 if test $emacs_cv_netdb_declares_h_errno = yes; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_H_ERRNO 1
13033 _ACEOF
13037 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13038 # for constant arguments. Useless!
13039 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13040 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13041 if test "${ac_cv_working_alloca_h+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h. */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 #include <alloca.h>
13052 main ()
13054 char *p = (char *) alloca (2 * sizeof (int));
13056 return 0;
13058 _ACEOF
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13061 (eval $ac_link) 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_working_alloca_h=yes
13081 else
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_cv_working_alloca_h=no
13087 rm -f conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13090 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13091 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13092 if test $ac_cv_working_alloca_h = yes; then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_ALLOCA_H 1
13096 _ACEOF
13100 echo "$as_me:$LINENO: checking for alloca" >&5
13101 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13102 if test "${ac_cv_func_alloca_works+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 #ifdef __GNUC__
13112 # define alloca __builtin_alloca
13113 #else
13114 # ifdef _MSC_VER
13115 # include <malloc.h>
13116 # define alloca _alloca
13117 # else
13118 # if HAVE_ALLOCA_H
13119 # include <alloca.h>
13120 # else
13121 # ifdef _AIX
13122 #pragma alloca
13123 # else
13124 # ifndef alloca /* predefined by HP cc +Olibcalls */
13125 char *alloca ();
13126 # endif
13127 # endif
13128 # endif
13129 # endif
13130 #endif
13133 main ()
13135 char *p = (char *) alloca (1);
13137 return 0;
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest$ac_exeext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_func_alloca_works=yes
13162 else
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_func_alloca_works=no
13168 rm -f conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13171 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13172 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13174 if test $ac_cv_func_alloca_works = yes; then
13176 cat >>confdefs.h <<\_ACEOF
13177 #define HAVE_ALLOCA 1
13178 _ACEOF
13180 else
13181 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13182 # that cause trouble. Some versions do not even contain alloca or
13183 # contain a buggy version. If you still want to use their alloca,
13184 # use ar to extract alloca.o from them instead of compiling alloca.c.
13186 ALLOCA=alloca.$ac_objext
13188 cat >>confdefs.h <<\_ACEOF
13189 #define C_ALLOCA 1
13190 _ACEOF
13193 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13194 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13195 if test "${ac_cv_os_cray+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 #if defined(CRAY) && ! defined(CRAY2)
13205 webecray
13206 #else
13207 wenotbecray
13208 #endif
13210 _ACEOF
13211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13212 $EGREP "webecray" >/dev/null 2>&1; then
13213 ac_cv_os_cray=yes
13214 else
13215 ac_cv_os_cray=no
13217 rm -f conftest*
13220 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13221 echo "${ECHO_T}$ac_cv_os_cray" >&6
13222 if test $ac_cv_os_cray = yes; then
13223 for ac_func in _getb67 GETB67 getb67; do
13224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13225 echo "$as_me:$LINENO: checking for $ac_func" >&5
13226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13227 if eval "test \"\${$as_ac_var+set}\" = set"; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230 cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h. */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13238 #define $ac_func innocuous_$ac_func
13240 /* System header to define __stub macros and hopefully few prototypes,
13241 which can conflict with char $ac_func (); below.
13242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13243 <limits.h> exists even on freestanding compilers. */
13245 #ifdef __STDC__
13246 # include <limits.h>
13247 #else
13248 # include <assert.h>
13249 #endif
13251 #undef $ac_func
13253 /* Override any gcc2 internal prototype to avoid an error. */
13254 #ifdef __cplusplus
13255 extern "C"
13257 #endif
13258 /* We use char because int might match the return type of a gcc2
13259 builtin and then its argument prototype would still apply. */
13260 char $ac_func ();
13261 /* The GNU C library defines this for functions which it implements
13262 to always fail with ENOSYS. Some functions are actually named
13263 something starting with __ and the normal name is an alias. */
13264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13265 choke me
13266 #else
13267 char (*f) () = $ac_func;
13268 #endif
13269 #ifdef __cplusplus
13271 #endif
13274 main ()
13276 return f != $ac_func;
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest$ac_exeext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 eval "$as_ac_var=yes"
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 eval "$as_ac_var=no"
13309 rm -f conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13314 if test `eval echo '${'$as_ac_var'}'` = yes; then
13316 cat >>confdefs.h <<_ACEOF
13317 #define CRAY_STACKSEG_END $ac_func
13318 _ACEOF
13320 break
13323 done
13326 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13327 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13328 if test "${ac_cv_c_stack_direction+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331 if test "$cross_compiling" = yes; then
13332 ac_cv_c_stack_direction=0
13333 else
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h. */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13341 find_stack_direction ()
13343 static char *addr = 0;
13344 auto char dummy;
13345 if (addr == 0)
13347 addr = &dummy;
13348 return find_stack_direction ();
13350 else
13351 return (&dummy > addr) ? 1 : -1;
13355 main ()
13357 exit (find_stack_direction () < 0);
13359 _ACEOF
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_c_stack_direction=1
13372 else
13373 echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 ( exit $ac_status )
13378 ac_cv_c_stack_direction=-1
13380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13383 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13384 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13386 cat >>confdefs.h <<_ACEOF
13387 #define STACK_DIRECTION $ac_cv_c_stack_direction
13388 _ACEOF
13394 # fmod, logb, and frexp are found in -lm on most systems.
13395 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13397 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13398 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13399 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 ac_check_lib_save_LIBS=$LIBS
13403 LIBS="-lm $LIBS"
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13411 /* Override any gcc2 internal prototype to avoid an error. */
13412 #ifdef __cplusplus
13413 extern "C"
13414 #endif
13415 /* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417 char sqrt ();
13419 main ()
13421 sqrt ();
13423 return 0;
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest$ac_exeext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_lib_m_sqrt=yes
13448 else
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13452 ac_cv_lib_m_sqrt=no
13454 rm -f conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13458 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13459 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13460 if test $ac_cv_lib_m_sqrt = yes; then
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_LIBM 1
13463 _ACEOF
13465 LIBS="-lm $LIBS"
13470 # Check for mail-locking functions in a "mail" library. Probably this should
13471 # have the same check as for liblockfile below.
13473 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13474 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13475 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lmail $LIBS"
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13487 /* Override any gcc2 internal prototype to avoid an error. */
13488 #ifdef __cplusplus
13489 extern "C"
13490 #endif
13491 /* We use char because int might match the return type of a gcc2
13492 builtin and then its argument prototype would still apply. */
13493 char maillock ();
13495 main ()
13497 maillock ();
13499 return 0;
13501 _ACEOF
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13504 (eval $ac_link) 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_lib_mail_maillock=yes
13524 else
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_cv_lib_mail_maillock=no
13530 rm -f conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13534 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13535 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13536 if test $ac_cv_lib_mail_maillock = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538 #define HAVE_LIBMAIL 1
13539 _ACEOF
13541 LIBS="-lmail $LIBS"
13546 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13547 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13548 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551 ac_check_lib_save_LIBS=$LIBS
13552 LIBS="-llockfile $LIBS"
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 /* Override any gcc2 internal prototype to avoid an error. */
13561 #ifdef __cplusplus
13562 extern "C"
13563 #endif
13564 /* We use char because int might match the return type of a gcc2
13565 builtin and then its argument prototype would still apply. */
13566 char maillock ();
13568 main ()
13570 maillock ();
13572 return 0;
13574 _ACEOF
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 ac_cv_lib_lockfile_maillock=yes
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13601 ac_cv_lib_lockfile_maillock=no
13603 rm -f conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext conftest.$ac_ext
13605 LIBS=$ac_check_lib_save_LIBS
13607 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13608 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13609 if test $ac_cv_lib_lockfile_maillock = yes; then
13610 cat >>confdefs.h <<_ACEOF
13611 #define HAVE_LIBLOCKFILE 1
13612 _ACEOF
13614 LIBS="-llockfile $LIBS"
13618 # If we have the shared liblockfile, assume we must use it for mail
13619 # locking (e.g. Debian). If we couldn't link against liblockfile
13620 # (no liblockfile.a installed), ensure that we don't need to.
13621 if test "$ac_cv_lib_lockfile_maillock" = no; then
13622 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13623 set dummy liblockfile.so; ac_word=$2
13624 echo "$as_me:$LINENO: checking for $ac_word" >&5
13625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13626 if test "${ac_cv_prog_liblockfile+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 else
13629 if test -n "$liblockfile"; then
13630 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13631 else
13632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13634 for as_dir in $as_dummy
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640 ac_cv_prog_liblockfile="yes"
13641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13644 done
13645 done
13647 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13650 liblockfile=$ac_cv_prog_liblockfile
13651 if test -n "$liblockfile"; then
13652 echo "$as_me:$LINENO: result: $liblockfile" >&5
13653 echo "${ECHO_T}$liblockfile" >&6
13654 else
13655 echo "$as_me:$LINENO: result: no" >&5
13656 echo "${ECHO_T}no" >&6
13659 if test $ac_cv_prog_liblockfile = yes; then
13660 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13661 This probably means that movemail could lose mail.
13662 There may be a \`development' package to install containing liblockfile." >&5
13663 echo "$as_me: error: Shared liblockfile found but can't link against it.
13664 This probably means that movemail could lose mail.
13665 There may be a \`development' package to install containing liblockfile." >&2;}
13666 { (exit 1); exit 1; }; }
13667 else :
13671 for ac_func in touchlock
13673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13674 echo "$as_me:$LINENO: checking for $ac_func" >&5
13675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13676 if eval "test \"\${$as_ac_var+set}\" = set"; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h. */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13687 #define $ac_func innocuous_$ac_func
13689 /* System header to define __stub macros and hopefully few prototypes,
13690 which can conflict with char $ac_func (); below.
13691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13692 <limits.h> exists even on freestanding compilers. */
13694 #ifdef __STDC__
13695 # include <limits.h>
13696 #else
13697 # include <assert.h>
13698 #endif
13700 #undef $ac_func
13702 /* Override any gcc2 internal prototype to avoid an error. */
13703 #ifdef __cplusplus
13704 extern "C"
13706 #endif
13707 /* We use char because int might match the return type of a gcc2
13708 builtin and then its argument prototype would still apply. */
13709 char $ac_func ();
13710 /* The GNU C library defines this for functions which it implements
13711 to always fail with ENOSYS. Some functions are actually named
13712 something starting with __ and the normal name is an alias. */
13713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13714 choke me
13715 #else
13716 char (*f) () = $ac_func;
13717 #endif
13718 #ifdef __cplusplus
13720 #endif
13723 main ()
13725 return f != $ac_func;
13727 return 0;
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest$ac_exeext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 eval "$as_ac_var=yes"
13752 else
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 eval "$as_ac_var=no"
13758 rm -f conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13763 if test `eval echo '${'$as_ac_var'}'` = yes; then
13764 cat >>confdefs.h <<_ACEOF
13765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13766 _ACEOF
13769 done
13772 for ac_header in maillock.h
13774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13776 echo "$as_me:$LINENO: checking for $ac_header" >&5
13777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13783 else
13784 # Is the header compilable?
13785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 $ac_includes_default
13794 #include <$ac_header>
13795 _ACEOF
13796 rm -f conftest.$ac_objext
13797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13798 (eval $ac_compile) 2>conftest.er1
13799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } &&
13805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest.$ac_objext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_header_compiler=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 ac_header_compiler=no
13824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13826 echo "${ECHO_T}$ac_header_compiler" >&6
13828 # Is the header present?
13829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 #include <$ac_header>
13838 _ACEOF
13839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13841 ac_status=$?
13842 grep -v '^ *+' conftest.er1 >conftest.err
13843 rm -f conftest.er1
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } >/dev/null; then
13847 if test -s conftest.err; then
13848 ac_cpp_err=$ac_c_preproc_warn_flag
13849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13850 else
13851 ac_cpp_err=
13853 else
13854 ac_cpp_err=yes
13856 if test -z "$ac_cpp_err"; then
13857 ac_header_preproc=yes
13858 else
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_header_preproc=no
13864 rm -f conftest.err conftest.$ac_ext
13865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13866 echo "${ECHO_T}$ac_header_preproc" >&6
13868 # So? What about this header?
13869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13870 yes:no: )
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13875 ac_header_preproc=yes
13877 no:yes:* )
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13891 cat <<\_ASBOX
13892 ## ------------------------------------------ ##
13893 ## Report this to the AC_PACKAGE_NAME lists. ##
13894 ## ------------------------------------------ ##
13895 _ASBOX
13897 sed "s/^/$as_me: WARNING: /" >&2
13899 esac
13900 echo "$as_me:$LINENO: checking for $ac_header" >&5
13901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 eval "$as_ac_Header=\$ac_header_preproc"
13907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914 _ACEOF
13918 done
13989 for ac_func in gethostname getdomainname dup2 \
13990 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13991 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13992 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
13993 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13994 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13995 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13996 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13997 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14000 echo "$as_me:$LINENO: checking for $ac_func" >&5
14001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14002 if eval "test \"\${$as_ac_var+set}\" = set"; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h. */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14013 #define $ac_func innocuous_$ac_func
14015 /* System header to define __stub macros and hopefully few prototypes,
14016 which can conflict with char $ac_func (); below.
14017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14018 <limits.h> exists even on freestanding compilers. */
14020 #ifdef __STDC__
14021 # include <limits.h>
14022 #else
14023 # include <assert.h>
14024 #endif
14026 #undef $ac_func
14028 /* Override any gcc2 internal prototype to avoid an error. */
14029 #ifdef __cplusplus
14030 extern "C"
14032 #endif
14033 /* We use char because int might match the return type of a gcc2
14034 builtin and then its argument prototype would still apply. */
14035 char $ac_func ();
14036 /* The GNU C library defines this for functions which it implements
14037 to always fail with ENOSYS. Some functions are actually named
14038 something starting with __ and the normal name is an alias. */
14039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14040 choke me
14041 #else
14042 char (*f) () = $ac_func;
14043 #endif
14044 #ifdef __cplusplus
14046 #endif
14049 main ()
14051 return f != $ac_func;
14053 return 0;
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14058 (eval $ac_link) 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try='test -s conftest$ac_exeext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 eval "$as_ac_var=yes"
14078 else
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14082 eval "$as_ac_var=no"
14084 rm -f conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14089 if test `eval echo '${'$as_ac_var'}'` = yes; then
14090 cat >>confdefs.h <<_ACEOF
14091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14092 _ACEOF
14095 done
14099 for ac_header in sys/un.h
14101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo "$as_me:$LINENO: checking for $ac_header" >&5
14104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14110 else
14111 # Is the header compilable?
14112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14114 cat >conftest.$ac_ext <<_ACEOF
14115 /* confdefs.h. */
14116 _ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14120 $ac_includes_default
14121 #include <$ac_header>
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14125 (eval $ac_compile) 2>conftest.er1
14126 ac_status=$?
14127 grep -v '^ *+' conftest.er1 >conftest.err
14128 rm -f conftest.er1
14129 cat conftest.err >&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } &&
14138 { ac_try='test -s conftest.$ac_objext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_header_compiler=yes
14145 else
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_header_compiler=no
14151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14153 echo "${ECHO_T}$ac_header_compiler" >&6
14155 # Is the header present?
14156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14158 cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h. */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14164 #include <$ac_header>
14165 _ACEOF
14166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } >/dev/null; then
14174 if test -s conftest.err; then
14175 ac_cpp_err=$ac_c_preproc_warn_flag
14176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14177 else
14178 ac_cpp_err=
14180 else
14181 ac_cpp_err=yes
14183 if test -z "$ac_cpp_err"; then
14184 ac_header_preproc=yes
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_header_preproc=no
14191 rm -f conftest.err conftest.$ac_ext
14192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14193 echo "${ECHO_T}$ac_header_preproc" >&6
14195 # So? What about this header?
14196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14197 yes:no: )
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14202 ac_header_preproc=yes
14204 no:yes:* )
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14218 cat <<\_ASBOX
14219 ## ------------------------------------------ ##
14220 ## Report this to the AC_PACKAGE_NAME lists. ##
14221 ## ------------------------------------------ ##
14222 _ASBOX
14224 sed "s/^/$as_me: WARNING: /" >&2
14226 esac
14227 echo "$as_me:$LINENO: checking for $ac_header" >&5
14228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232 eval "$as_ac_Header=\$ac_header_preproc"
14234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14239 cat >>confdefs.h <<_ACEOF
14240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14241 _ACEOF
14245 done
14251 for ac_header in stdlib.h sys/time.h unistd.h
14253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255 echo "$as_me:$LINENO: checking for $ac_header" >&5
14256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14262 else
14263 # Is the header compilable?
14264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14266 cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h. */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 $ac_includes_default
14273 #include <$ac_header>
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277 (eval $ac_compile) 2>conftest.er1
14278 ac_status=$?
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try='test -s conftest.$ac_objext'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; }; then
14296 ac_header_compiler=yes
14297 else
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301 ac_header_compiler=no
14303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14305 echo "${ECHO_T}$ac_header_compiler" >&6
14307 # Is the header present?
14308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14310 cat >conftest.$ac_ext <<_ACEOF
14311 /* confdefs.h. */
14312 _ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 #include <$ac_header>
14317 _ACEOF
14318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } >/dev/null; then
14326 if test -s conftest.err; then
14327 ac_cpp_err=$ac_c_preproc_warn_flag
14328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14329 else
14330 ac_cpp_err=
14332 else
14333 ac_cpp_err=yes
14335 if test -z "$ac_cpp_err"; then
14336 ac_header_preproc=yes
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_header_preproc=no
14343 rm -f conftest.err conftest.$ac_ext
14344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14345 echo "${ECHO_T}$ac_header_preproc" >&6
14347 # So? What about this header?
14348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14349 yes:no: )
14350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14354 ac_header_preproc=yes
14356 no:yes:* )
14357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14370 cat <<\_ASBOX
14371 ## ------------------------------------------ ##
14372 ## Report this to the AC_PACKAGE_NAME lists. ##
14373 ## ------------------------------------------ ##
14374 _ASBOX
14376 sed "s/^/$as_me: WARNING: /" >&2
14378 esac
14379 echo "$as_me:$LINENO: checking for $ac_header" >&5
14380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384 eval "$as_ac_Header=\$ac_header_preproc"
14386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14391 cat >>confdefs.h <<_ACEOF
14392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14393 _ACEOF
14397 done
14400 for ac_func in alarm
14402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14403 echo "$as_me:$LINENO: checking for $ac_func" >&5
14404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14405 if eval "test \"\${$as_ac_var+set}\" = set"; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 else
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14416 #define $ac_func innocuous_$ac_func
14418 /* System header to define __stub macros and hopefully few prototypes,
14419 which can conflict with char $ac_func (); below.
14420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14421 <limits.h> exists even on freestanding compilers. */
14423 #ifdef __STDC__
14424 # include <limits.h>
14425 #else
14426 # include <assert.h>
14427 #endif
14429 #undef $ac_func
14431 /* Override any gcc2 internal prototype to avoid an error. */
14432 #ifdef __cplusplus
14433 extern "C"
14435 #endif
14436 /* We use char because int might match the return type of a gcc2
14437 builtin and then its argument prototype would still apply. */
14438 char $ac_func ();
14439 /* The GNU C library defines this for functions which it implements
14440 to always fail with ENOSYS. Some functions are actually named
14441 something starting with __ and the normal name is an alias. */
14442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14443 choke me
14444 #else
14445 char (*f) () = $ac_func;
14446 #endif
14447 #ifdef __cplusplus
14449 #endif
14452 main ()
14454 return f != $ac_func;
14456 return 0;
14458 _ACEOF
14459 rm -f conftest.$ac_objext conftest$ac_exeext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14461 (eval $ac_link) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; } &&
14474 { ac_try='test -s conftest$ac_exeext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 eval "$as_ac_var=yes"
14481 else
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14485 eval "$as_ac_var=no"
14487 rm -f conftest.err conftest.$ac_objext \
14488 conftest$ac_exeext conftest.$ac_ext
14490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14492 if test `eval echo '${'$as_ac_var'}'` = yes; then
14493 cat >>confdefs.h <<_ACEOF
14494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14495 _ACEOF
14498 done
14500 echo "$as_me:$LINENO: checking for working mktime" >&5
14501 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14502 if test "${ac_cv_func_working_mktime+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505 if test "$cross_compiling" = yes; then
14506 ac_cv_func_working_mktime=no
14507 else
14508 cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h. */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 /* Test program from Paul Eggert and Tony Leneis. */
14515 #if TIME_WITH_SYS_TIME
14516 # include <sys/time.h>
14517 # include <time.h>
14518 #else
14519 # if HAVE_SYS_TIME_H
14520 # include <sys/time.h>
14521 # else
14522 # include <time.h>
14523 # endif
14524 #endif
14526 #if HAVE_STDLIB_H
14527 # include <stdlib.h>
14528 #endif
14530 #if HAVE_UNISTD_H
14531 # include <unistd.h>
14532 #endif
14534 #if !HAVE_ALARM
14535 # define alarm(X) /* empty */
14536 #endif
14538 /* Work around redefinition to rpl_putenv by other config tests. */
14539 #undef putenv
14541 static time_t time_t_max;
14542 static time_t time_t_min;
14544 /* Values we'll use to set the TZ environment variable. */
14545 static char *tz_strings[] = {
14546 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14547 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14549 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14551 /* Fail if mktime fails to convert a date in the spring-forward gap.
14552 Based on a problem report from Andreas Jaeger. */
14553 static void
14554 spring_forward_gap ()
14556 /* glibc (up to about 1998-10-07) failed this test. */
14557 struct tm tm;
14559 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14560 instead of "TZ=America/Vancouver" in order to detect the bug even
14561 on systems that don't support the Olson extension, or don't have the
14562 full zoneinfo tables installed. */
14563 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14565 tm.tm_year = 98;
14566 tm.tm_mon = 3;
14567 tm.tm_mday = 5;
14568 tm.tm_hour = 2;
14569 tm.tm_min = 0;
14570 tm.tm_sec = 0;
14571 tm.tm_isdst = -1;
14572 if (mktime (&tm) == (time_t)-1)
14573 exit (1);
14576 static void
14577 mktime_test1 (now)
14578 time_t now;
14580 struct tm *lt;
14581 if ((lt = localtime (&now)) && mktime (lt) != now)
14582 exit (1);
14585 static void
14586 mktime_test (now)
14587 time_t now;
14589 mktime_test1 (now);
14590 mktime_test1 ((time_t) (time_t_max - now));
14591 mktime_test1 ((time_t) (time_t_min + now));
14594 static void
14595 irix_6_4_bug ()
14597 /* Based on code from Ariel Faigon. */
14598 struct tm tm;
14599 tm.tm_year = 96;
14600 tm.tm_mon = 3;
14601 tm.tm_mday = 0;
14602 tm.tm_hour = 0;
14603 tm.tm_min = 0;
14604 tm.tm_sec = 0;
14605 tm.tm_isdst = -1;
14606 mktime (&tm);
14607 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14608 exit (1);
14611 static void
14612 bigtime_test (j)
14613 int j;
14615 struct tm tm;
14616 time_t now;
14617 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14618 now = mktime (&tm);
14619 if (now != (time_t) -1)
14621 struct tm *lt = localtime (&now);
14622 if (! (lt
14623 && lt->tm_year == tm.tm_year
14624 && lt->tm_mon == tm.tm_mon
14625 && lt->tm_mday == tm.tm_mday
14626 && lt->tm_hour == tm.tm_hour
14627 && lt->tm_min == tm.tm_min
14628 && lt->tm_sec == tm.tm_sec
14629 && lt->tm_yday == tm.tm_yday
14630 && lt->tm_wday == tm.tm_wday
14631 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14632 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14633 exit (1);
14638 main ()
14640 time_t t, delta;
14641 int i, j;
14643 /* This test makes some buggy mktime implementations loop.
14644 Give up after 60 seconds; a mktime slower than that
14645 isn't worth using anyway. */
14646 alarm (60);
14648 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14649 continue;
14650 time_t_max--;
14651 if ((time_t) -1 < 0)
14652 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14653 continue;
14654 delta = time_t_max / 997; /* a suitable prime number */
14655 for (i = 0; i < N_STRINGS; i++)
14657 if (tz_strings[i])
14658 putenv (tz_strings[i]);
14660 for (t = 0; t <= time_t_max - delta; t += delta)
14661 mktime_test (t);
14662 mktime_test ((time_t) 1);
14663 mktime_test ((time_t) (60 * 60));
14664 mktime_test ((time_t) (60 * 60 * 24));
14666 for (j = 1; 0 < j; j *= 2)
14667 bigtime_test (j);
14668 bigtime_test (j - 1);
14670 irix_6_4_bug ();
14671 spring_forward_gap ();
14672 exit (0);
14674 _ACEOF
14675 rm -f conftest$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677 (eval $ac_link) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 ac_cv_func_working_mktime=yes
14687 else
14688 echo "$as_me: program exited with status $ac_status" >&5
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ( exit $ac_status )
14693 ac_cv_func_working_mktime=no
14695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14698 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14699 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14700 if test $ac_cv_func_working_mktime = no; then
14701 case $LIBOBJS in
14702 "mktime.$ac_objext" | \
14703 *" mktime.$ac_objext" | \
14704 "mktime.$ac_objext "* | \
14705 *" mktime.$ac_objext "* ) ;;
14706 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
14707 esac
14711 if test "$ac_cv_func_working_mktime" = no; then
14713 cat >>confdefs.h <<\_ACEOF
14714 #define BROKEN_MKTIME 1
14715 _ACEOF
14719 ac_have_func=no # yes means we've found a way to get the load average.
14721 # Make sure getloadavg.c is where it belongs, at configure-time.
14722 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14723 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14724 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14725 { (exit 1); exit 1; }; }
14727 ac_save_LIBS=$LIBS
14729 # Check for getloadavg, but be sure not to touch the cache variable.
14730 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14731 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14732 if test "${ac_cv_func_getloadavg+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14743 #define getloadavg innocuous_getloadavg
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char getloadavg (); below.
14747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 <limits.h> exists even on freestanding compilers. */
14750 #ifdef __STDC__
14751 # include <limits.h>
14752 #else
14753 # include <assert.h>
14754 #endif
14756 #undef getloadavg
14758 /* Override any gcc2 internal prototype to avoid an error. */
14759 #ifdef __cplusplus
14760 extern "C"
14762 #endif
14763 /* We use char because int might match the return type of a gcc2
14764 builtin and then its argument prototype would still apply. */
14765 char getloadavg ();
14766 /* The GNU C library defines this for functions which it implements
14767 to always fail with ENOSYS. Some functions are actually named
14768 something starting with __ and the normal name is an alias. */
14769 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14770 choke me
14771 #else
14772 char (*f) () = getloadavg;
14773 #endif
14774 #ifdef __cplusplus
14776 #endif
14779 main ()
14781 return f != getloadavg;
14783 return 0;
14785 _ACEOF
14786 rm -f conftest.$ac_objext conftest$ac_exeext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788 (eval $ac_link) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_func_getloadavg=yes
14808 else
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_cv_func_getloadavg=no
14814 rm -f conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14818 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14819 if test $ac_cv_func_getloadavg = yes; then
14820 exit 0
14821 else
14822 exit 1
14824 ) && ac_have_func=yes
14826 # On HPUX9, an unprivileged user can get load averages through this function.
14828 for ac_func in pstat_getdynamic
14830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 echo "$as_me:$LINENO: checking for $ac_func" >&5
14832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14833 if eval "test \"\${$as_ac_var+set}\" = set"; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 cat >conftest.$ac_ext <<_ACEOF
14837 /* confdefs.h. */
14838 _ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14844 #define $ac_func innocuous_$ac_func
14846 /* System header to define __stub macros and hopefully few prototypes,
14847 which can conflict with char $ac_func (); below.
14848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14849 <limits.h> exists even on freestanding compilers. */
14851 #ifdef __STDC__
14852 # include <limits.h>
14853 #else
14854 # include <assert.h>
14855 #endif
14857 #undef $ac_func
14859 /* Override any gcc2 internal prototype to avoid an error. */
14860 #ifdef __cplusplus
14861 extern "C"
14863 #endif
14864 /* We use char because int might match the return type of a gcc2
14865 builtin and then its argument prototype would still apply. */
14866 char $ac_func ();
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14871 choke me
14872 #else
14873 char (*f) () = $ac_func;
14874 #endif
14875 #ifdef __cplusplus
14877 #endif
14880 main ()
14882 return f != $ac_func;
14884 return 0;
14886 _ACEOF
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest$ac_exeext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 eval "$as_ac_var=yes"
14909 else
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14913 eval "$as_ac_var=no"
14915 rm -f conftest.err conftest.$ac_objext \
14916 conftest$ac_exeext conftest.$ac_ext
14918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14920 if test `eval echo '${'$as_ac_var'}'` = yes; then
14921 cat >>confdefs.h <<_ACEOF
14922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14923 _ACEOF
14926 done
14929 # Solaris has libkstat which does not require root.
14931 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14932 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14933 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936 ac_check_lib_save_LIBS=$LIBS
14937 LIBS="-lkstat $LIBS"
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14945 /* Override any gcc2 internal prototype to avoid an error. */
14946 #ifdef __cplusplus
14947 extern "C"
14948 #endif
14949 /* We use char because int might match the return type of a gcc2
14950 builtin and then its argument prototype would still apply. */
14951 char kstat_open ();
14953 main ()
14955 kstat_open ();
14957 return 0;
14959 _ACEOF
14960 rm -f conftest.$ac_objext conftest$ac_exeext
14961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>conftest.er1
14963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest$ac_exeext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 ac_cv_lib_kstat_kstat_open=yes
14982 else
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 ac_cv_lib_kstat_kstat_open=no
14988 rm -f conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
14990 LIBS=$ac_check_lib_save_LIBS
14992 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14993 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14994 if test $ac_cv_lib_kstat_kstat_open = yes; then
14995 cat >>confdefs.h <<_ACEOF
14996 #define HAVE_LIBKSTAT 1
14997 _ACEOF
14999 LIBS="-lkstat $LIBS"
15003 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15005 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15006 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15007 # to get the right answer into the cache.
15008 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15009 if test $ac_have_func = no; then
15010 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15011 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
15012 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015 ac_check_lib_save_LIBS=$LIBS
15016 LIBS="-lelf $LIBS"
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h. */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15024 /* Override any gcc2 internal prototype to avoid an error. */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 /* We use char because int might match the return type of a gcc2
15029 builtin and then its argument prototype would still apply. */
15030 char elf_begin ();
15032 main ()
15034 elf_begin ();
15036 return 0;
15038 _ACEOF
15039 rm -f conftest.$ac_objext conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest$ac_exeext'
15055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15060 ac_cv_lib_elf_elf_begin=yes
15061 else
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15065 ac_cv_lib_elf_elf_begin=no
15067 rm -f conftest.err conftest.$ac_objext \
15068 conftest$ac_exeext conftest.$ac_ext
15069 LIBS=$ac_check_lib_save_LIBS
15071 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15072 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15073 if test $ac_cv_lib_elf_elf_begin = yes; then
15074 LIBS="-lelf $LIBS"
15078 if test $ac_have_func = no; then
15079 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15080 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15081 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084 ac_check_lib_save_LIBS=$LIBS
15085 LIBS="-lkvm $LIBS"
15086 cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h. */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 /* Override any gcc2 internal prototype to avoid an error. */
15094 #ifdef __cplusplus
15095 extern "C"
15096 #endif
15097 /* We use char because int might match the return type of a gcc2
15098 builtin and then its argument prototype would still apply. */
15099 char kvm_open ();
15101 main ()
15103 kvm_open ();
15105 return 0;
15107 _ACEOF
15108 rm -f conftest.$ac_objext conftest$ac_exeext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15110 (eval $ac_link) 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest$ac_exeext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_cv_lib_kvm_kvm_open=yes
15130 else
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15134 ac_cv_lib_kvm_kvm_open=no
15136 rm -f conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15140 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15141 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15142 if test $ac_cv_lib_kvm_kvm_open = yes; then
15143 LIBS="-lkvm $LIBS"
15146 # Check for the 4.4BSD definition of getloadavg.
15147 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15148 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15149 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152 ac_check_lib_save_LIBS=$LIBS
15153 LIBS="-lutil $LIBS"
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h. */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15161 /* Override any gcc2 internal prototype to avoid an error. */
15162 #ifdef __cplusplus
15163 extern "C"
15164 #endif
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15167 char getloadavg ();
15169 main ()
15171 getloadavg ();
15173 return 0;
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15179 ac_status=$?
15180 grep -v '^ *+' conftest.er1 >conftest.err
15181 rm -f conftest.er1
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest$ac_exeext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15197 ac_cv_lib_util_getloadavg=yes
15198 else
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15202 ac_cv_lib_util_getloadavg=no
15204 rm -f conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 LIBS=$ac_check_lib_save_LIBS
15208 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15209 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15210 if test $ac_cv_lib_util_getloadavg = yes; then
15211 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15216 if test $ac_have_func = no; then
15217 # There is a commonly available library for RS/6000 AIX.
15218 # Since it is not a standard part of AIX, it might be installed locally.
15219 ac_getloadavg_LIBS=$LIBS
15220 LIBS="-L/usr/local/lib $LIBS"
15221 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15222 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15223 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 ac_check_lib_save_LIBS=$LIBS
15227 LIBS="-lgetloadavg $LIBS"
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h. */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15235 /* Override any gcc2 internal prototype to avoid an error. */
15236 #ifdef __cplusplus
15237 extern "C"
15238 #endif
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15241 char getloadavg ();
15243 main ()
15245 getloadavg ();
15247 return 0;
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>conftest.er1
15253 ac_status=$?
15254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest$ac_exeext'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 ac_cv_lib_getloadavg_getloadavg=yes
15272 else
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ac_cv_lib_getloadavg_getloadavg=no
15278 rm -f conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15282 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15283 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15284 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15285 LIBS="-lgetloadavg $LIBS"
15286 else
15287 LIBS=$ac_getloadavg_LIBS
15292 # Make sure it is really in the library, if we think we found it,
15293 # otherwise set up the replacement function.
15295 for ac_func in getloadavg
15297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_var+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h. */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15311 #define $ac_func innocuous_$ac_func
15313 /* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func (); below.
15315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15316 <limits.h> exists even on freestanding compilers. */
15318 #ifdef __STDC__
15319 # include <limits.h>
15320 #else
15321 # include <assert.h>
15322 #endif
15324 #undef $ac_func
15326 /* Override any gcc2 internal prototype to avoid an error. */
15327 #ifdef __cplusplus
15328 extern "C"
15330 #endif
15331 /* We use char because int might match the return type of a gcc2
15332 builtin and then its argument prototype would still apply. */
15333 char $ac_func ();
15334 /* The GNU C library defines this for functions which it implements
15335 to always fail with ENOSYS. Some functions are actually named
15336 something starting with __ and the normal name is an alias. */
15337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15338 choke me
15339 #else
15340 char (*f) () = $ac_func;
15341 #endif
15342 #ifdef __cplusplus
15344 #endif
15347 main ()
15349 return f != $ac_func;
15351 return 0;
15353 _ACEOF
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356 (eval $ac_link) 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; } &&
15369 { ac_try='test -s conftest$ac_exeext'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 eval "$as_ac_var=yes"
15376 else
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 eval "$as_ac_var=no"
15382 rm -f conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15390 _ACEOF
15392 else
15393 case $LIBOBJS in
15394 "getloadavg.$ac_objext" | \
15395 *" getloadavg.$ac_objext" | \
15396 "getloadavg.$ac_objext "* | \
15397 *" getloadavg.$ac_objext "* ) ;;
15398 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;;
15399 esac
15402 cat >>confdefs.h <<\_ACEOF
15403 #define C_GETLOADAVG 1
15404 _ACEOF
15406 # Figure out what our getloadavg.c needs.
15407 ac_have_func=no
15408 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15409 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15410 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15411 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15415 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15416 else
15417 # Is the header compilable?
15418 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15419 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h. */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <sys/dg_sys_info.h>
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431 (eval $ac_compile) 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_header_compiler=yes
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_header_compiler=no
15457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15459 echo "${ECHO_T}$ac_header_compiler" >&6
15461 # Is the header present?
15462 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15463 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <sys/dg_sys_info.h>
15471 _ACEOF
15472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } >/dev/null; then
15480 if test -s conftest.err; then
15481 ac_cpp_err=$ac_c_preproc_warn_flag
15482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15483 else
15484 ac_cpp_err=
15486 else
15487 ac_cpp_err=yes
15489 if test -z "$ac_cpp_err"; then
15490 ac_header_preproc=yes
15491 else
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 ac_header_preproc=no
15497 rm -f conftest.err conftest.$ac_ext
15498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499 echo "${ECHO_T}$ac_header_preproc" >&6
15501 # So? What about this header?
15502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503 yes:no: )
15504 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15505 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15507 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15508 ac_header_preproc=yes
15510 no:yes:* )
15511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15512 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15513 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15514 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15515 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15516 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15517 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15518 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15522 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15524 cat <<\_ASBOX
15525 ## ------------------------------------------ ##
15526 ## Report this to the AC_PACKAGE_NAME lists. ##
15527 ## ------------------------------------------ ##
15528 _ASBOX
15530 sed "s/^/$as_me: WARNING: /" >&2
15532 esac
15533 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15534 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15535 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15541 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15544 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15545 ac_have_func=yes
15547 cat >>confdefs.h <<\_ACEOF
15548 #define DGUX 1
15549 _ACEOF
15552 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15553 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15554 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557 ac_check_lib_save_LIBS=$LIBS
15558 LIBS="-ldgc $LIBS"
15559 cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h. */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15566 /* Override any gcc2 internal prototype to avoid an error. */
15567 #ifdef __cplusplus
15568 extern "C"
15569 #endif
15570 /* We use char because int might match the return type of a gcc2
15571 builtin and then its argument prototype would still apply. */
15572 char dg_sys_info ();
15574 main ()
15576 dg_sys_info ();
15578 return 0;
15580 _ACEOF
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15583 (eval $ac_link) 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_lib_dgc_dg_sys_info=yes
15603 else
15604 echo "$as_me: failed program was:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15607 ac_cv_lib_dgc_dg_sys_info=no
15609 rm -f conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15611 LIBS=$ac_check_lib_save_LIBS
15613 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15614 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15615 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_LIBDGC 1
15618 _ACEOF
15620 LIBS="-ldgc $LIBS"
15628 if test "${ac_cv_header_locale_h+set}" = set; then
15629 echo "$as_me:$LINENO: checking for locale.h" >&5
15630 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15631 if test "${ac_cv_header_locale_h+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15635 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15636 else
15637 # Is the header compilable?
15638 echo "$as_me:$LINENO: checking locale.h usability" >&5
15639 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 $ac_includes_default
15647 #include <locale.h>
15648 _ACEOF
15649 rm -f conftest.$ac_objext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15651 (eval $ac_compile) 2>conftest.er1
15652 ac_status=$?
15653 grep -v '^ *+' conftest.er1 >conftest.err
15654 rm -f conftest.er1
15655 cat conftest.err >&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_header_compiler=yes
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_header_compiler=no
15677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15679 echo "${ECHO_T}$ac_header_compiler" >&6
15681 # Is the header present?
15682 echo "$as_me:$LINENO: checking locale.h presence" >&5
15683 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15684 cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h. */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 #include <locale.h>
15691 _ACEOF
15692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15694 ac_status=$?
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } >/dev/null; then
15700 if test -s conftest.err; then
15701 ac_cpp_err=$ac_c_preproc_warn_flag
15702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15703 else
15704 ac_cpp_err=
15706 else
15707 ac_cpp_err=yes
15709 if test -z "$ac_cpp_err"; then
15710 ac_header_preproc=yes
15711 else
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 ac_header_preproc=no
15717 rm -f conftest.err conftest.$ac_ext
15718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15719 echo "${ECHO_T}$ac_header_preproc" >&6
15721 # So? What about this header?
15722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15723 yes:no: )
15724 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15725 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15727 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15728 ac_header_preproc=yes
15730 no:yes:* )
15731 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15732 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15733 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15734 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15736 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15738 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15740 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15742 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15744 cat <<\_ASBOX
15745 ## ------------------------------------------ ##
15746 ## Report this to the AC_PACKAGE_NAME lists. ##
15747 ## ------------------------------------------ ##
15748 _ASBOX
15750 sed "s/^/$as_me: WARNING: /" >&2
15752 esac
15753 echo "$as_me:$LINENO: checking for locale.h" >&5
15754 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15755 if test "${ac_cv_header_locale_h+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 else
15758 ac_cv_header_locale_h=$ac_header_preproc
15760 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15761 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15767 for ac_func in setlocale
15769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15770 echo "$as_me:$LINENO: checking for $ac_func" >&5
15771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15772 if eval "test \"\${$as_ac_var+set}\" = set"; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 cat >conftest.$ac_ext <<_ACEOF
15776 /* confdefs.h. */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15783 #define $ac_func innocuous_$ac_func
15785 /* System header to define __stub macros and hopefully few prototypes,
15786 which can conflict with char $ac_func (); below.
15787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15788 <limits.h> exists even on freestanding compilers. */
15790 #ifdef __STDC__
15791 # include <limits.h>
15792 #else
15793 # include <assert.h>
15794 #endif
15796 #undef $ac_func
15798 /* Override any gcc2 internal prototype to avoid an error. */
15799 #ifdef __cplusplus
15800 extern "C"
15802 #endif
15803 /* We use char because int might match the return type of a gcc2
15804 builtin and then its argument prototype would still apply. */
15805 char $ac_func ();
15806 /* The GNU C library defines this for functions which it implements
15807 to always fail with ENOSYS. Some functions are actually named
15808 something starting with __ and the normal name is an alias. */
15809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15810 choke me
15811 #else
15812 char (*f) () = $ac_func;
15813 #endif
15814 #ifdef __cplusplus
15816 #endif
15819 main ()
15821 return f != $ac_func;
15823 return 0;
15825 _ACEOF
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15828 (eval $ac_link) 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest$ac_exeext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 eval "$as_ac_var=yes"
15848 else
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 eval "$as_ac_var=no"
15854 rm -f conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15859 if test `eval echo '${'$as_ac_var'}'` = yes; then
15860 cat >>confdefs.h <<_ACEOF
15861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15862 _ACEOF
15865 done
15868 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15869 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15870 # Irix 4.0.5F has the header but not the library.
15871 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
15872 ac_have_func=yes
15874 cat >>confdefs.h <<\_ACEOF
15875 #define SVR4 1
15876 _ACEOF
15880 if test $ac_have_func = no; then
15881 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15882 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15883 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15884 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15888 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15889 else
15890 # Is the header compilable?
15891 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15892 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 $ac_includes_default
15900 #include <inq_stats/cpustats.h>
15901 _ACEOF
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest.$ac_objext'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_header_compiler=yes
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 ac_header_compiler=no
15930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15931 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932 echo "${ECHO_T}$ac_header_compiler" >&6
15934 # Is the header present?
15935 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15936 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15937 cat >conftest.$ac_ext <<_ACEOF
15938 /* confdefs.h. */
15939 _ACEOF
15940 cat confdefs.h >>conftest.$ac_ext
15941 cat >>conftest.$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 #include <inq_stats/cpustats.h>
15944 _ACEOF
15945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15947 ac_status=$?
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } >/dev/null; then
15953 if test -s conftest.err; then
15954 ac_cpp_err=$ac_c_preproc_warn_flag
15955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15956 else
15957 ac_cpp_err=
15959 else
15960 ac_cpp_err=yes
15962 if test -z "$ac_cpp_err"; then
15963 ac_header_preproc=yes
15964 else
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_header_preproc=no
15970 rm -f conftest.err conftest.$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15972 echo "${ECHO_T}$ac_header_preproc" >&6
15974 # So? What about this header?
15975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15976 yes:no: )
15977 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15978 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15980 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15981 ac_header_preproc=yes
15983 no:yes:* )
15984 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15985 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15987 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15989 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15991 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15993 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15995 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15997 cat <<\_ASBOX
15998 ## ------------------------------------------ ##
15999 ## Report this to the AC_PACKAGE_NAME lists. ##
16000 ## ------------------------------------------ ##
16001 _ASBOX
16003 sed "s/^/$as_me: WARNING: /" >&2
16005 esac
16006 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16007 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
16008 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16013 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16014 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
16017 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16018 ac_have_func=yes
16020 cat >>confdefs.h <<\_ACEOF
16021 #define UMAX 1
16022 _ACEOF
16025 cat >>confdefs.h <<\_ACEOF
16026 #define UMAX4_3 1
16027 _ACEOF
16034 if test $ac_have_func = no; then
16035 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16036 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16037 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16038 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16042 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16043 else
16044 # Is the header compilable?
16045 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16046 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h. */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16054 #include <sys/cpustats.h>
16055 _ACEOF
16056 rm -f conftest.$ac_objext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058 (eval $ac_compile) 2>conftest.er1
16059 ac_status=$?
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try='test -s conftest.$ac_objext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 ac_header_compiler=yes
16078 else
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16082 ac_header_compiler=no
16084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16086 echo "${ECHO_T}$ac_header_compiler" >&6
16088 # Is the header present?
16089 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16090 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16092 /* confdefs.h. */
16093 _ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 #include <sys/cpustats.h>
16098 _ACEOF
16099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } >/dev/null; then
16107 if test -s conftest.err; then
16108 ac_cpp_err=$ac_c_preproc_warn_flag
16109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16110 else
16111 ac_cpp_err=
16113 else
16114 ac_cpp_err=yes
16116 if test -z "$ac_cpp_err"; then
16117 ac_header_preproc=yes
16118 else
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 ac_header_preproc=no
16124 rm -f conftest.err conftest.$ac_ext
16125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16126 echo "${ECHO_T}$ac_header_preproc" >&6
16128 # So? What about this header?
16129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16130 yes:no: )
16131 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16132 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16133 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16134 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16135 ac_header_preproc=yes
16137 no:yes:* )
16138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16139 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16141 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16143 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16145 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16147 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16149 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16151 cat <<\_ASBOX
16152 ## ------------------------------------------ ##
16153 ## Report this to the AC_PACKAGE_NAME lists. ##
16154 ## ------------------------------------------ ##
16155 _ASBOX
16157 sed "s/^/$as_me: WARNING: /" >&2
16159 esac
16160 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16161 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16162 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 else
16165 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16168 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16171 if test $ac_cv_header_sys_cpustats_h = yes; then
16172 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16173 #define UMAX 1
16174 _ACEOF
16181 if test $ac_have_func = no; then
16183 for ac_header in mach/mach.h
16185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16187 echo "$as_me:$LINENO: checking for $ac_header" >&5
16188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16194 else
16195 # Is the header compilable?
16196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h. */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 $ac_includes_default
16205 #include <$ac_header>
16206 _ACEOF
16207 rm -f conftest.$ac_objext
16208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>conftest.er1
16210 ac_status=$?
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
16216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_header_compiler=yes
16229 else
16230 echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16233 ac_header_compiler=no
16235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16237 echo "${ECHO_T}$ac_header_compiler" >&6
16239 # Is the header present?
16240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 #include <$ac_header>
16249 _ACEOF
16250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16252 ac_status=$?
16253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } >/dev/null; then
16258 if test -s conftest.err; then
16259 ac_cpp_err=$ac_c_preproc_warn_flag
16260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16261 else
16262 ac_cpp_err=
16264 else
16265 ac_cpp_err=yes
16267 if test -z "$ac_cpp_err"; then
16268 ac_header_preproc=yes
16269 else
16270 echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ac_header_preproc=no
16275 rm -f conftest.err conftest.$ac_ext
16276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16277 echo "${ECHO_T}$ac_header_preproc" >&6
16279 # So? What about this header?
16280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16281 yes:no: )
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16286 ac_header_preproc=yes
16288 no:yes:* )
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16302 cat <<\_ASBOX
16303 ## ------------------------------------------ ##
16304 ## Report this to the AC_PACKAGE_NAME lists. ##
16305 ## ------------------------------------------ ##
16306 _ASBOX
16308 sed "s/^/$as_me: WARNING: /" >&2
16310 esac
16311 echo "$as_me:$LINENO: checking for $ac_header" >&5
16312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 else
16316 eval "$as_ac_Header=\$ac_header_preproc"
16318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16325 _ACEOF
16329 done
16334 for ac_header in nlist.h
16336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16338 echo "$as_me:$LINENO: checking for $ac_header" >&5
16339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16345 else
16346 # Is the header compilable?
16347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #include <$ac_header>
16357 _ACEOF
16358 rm -f conftest.$ac_objext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16360 (eval $ac_compile) 2>conftest.er1
16361 ac_status=$?
16362 grep -v '^ *+' conftest.er1 >conftest.err
16363 rm -f conftest.er1
16364 cat conftest.err >&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); } &&
16367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; } &&
16373 { ac_try='test -s conftest.$ac_objext'
16374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16375 (eval $ac_try) 2>&5
16376 ac_status=$?
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); }; }; then
16379 ac_header_compiler=yes
16380 else
16381 echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 ac_header_compiler=no
16386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16388 echo "${ECHO_T}$ac_header_compiler" >&6
16390 # Is the header present?
16391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <$ac_header>
16400 _ACEOF
16401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } >/dev/null; then
16409 if test -s conftest.err; then
16410 ac_cpp_err=$ac_c_preproc_warn_flag
16411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16412 else
16413 ac_cpp_err=
16415 else
16416 ac_cpp_err=yes
16418 if test -z "$ac_cpp_err"; then
16419 ac_header_preproc=yes
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 ac_header_preproc=no
16426 rm -f conftest.err conftest.$ac_ext
16427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16428 echo "${ECHO_T}$ac_header_preproc" >&6
16430 # So? What about this header?
16431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16432 yes:no: )
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16437 ac_header_preproc=yes
16439 no:yes:* )
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16453 cat <<\_ASBOX
16454 ## ------------------------------------------ ##
16455 ## Report this to the AC_PACKAGE_NAME lists. ##
16456 ## ------------------------------------------ ##
16457 _ASBOX
16459 sed "s/^/$as_me: WARNING: /" >&2
16461 esac
16462 echo "$as_me:$LINENO: checking for $ac_header" >&5
16463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467 eval "$as_ac_Header=\$ac_header_preproc"
16469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16474 cat >>confdefs.h <<_ACEOF
16475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16476 _ACEOF
16477 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16478 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16479 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 else
16482 cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h. */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 #include <nlist.h>
16491 main ()
16493 static struct nlist ac_aggr;
16494 if (ac_aggr.n_un.n_name)
16495 return 0;
16497 return 0;
16499 _ACEOF
16500 rm -f conftest.$ac_objext
16501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16502 (eval $ac_compile) 2>conftest.er1
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_cv_member_struct_nlist_n_un_n_name=yes
16522 else
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 #include <nlist.h>
16535 main ()
16537 static struct nlist ac_aggr;
16538 if (sizeof ac_aggr.n_un.n_name)
16539 return 0;
16541 return 0;
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16556 ac_status=$?
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest.$ac_objext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ac_cv_member_struct_nlist_n_un_n_name=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_cv_member_struct_nlist_n_un_n_name=no
16572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16577 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16578 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16582 _ACEOF
16585 cat >>confdefs.h <<\_ACEOF
16586 #define NLIST_NAME_UNION 1
16587 _ACEOF
16594 done
16597 done
16600 # Some definitions of getloadavg require that the program be installed setgid.
16601 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16602 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16603 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606 cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h. */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16613 #ifdef LDAV_PRIVILEGED
16614 Yowza Am I SETGID yet
16615 #endif
16616 _ACEOF
16617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16618 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
16619 ac_cv_func_getloadavg_setgid=yes
16620 else
16621 ac_cv_func_getloadavg_setgid=no
16623 rm -f conftest*
16626 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16627 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16628 if test $ac_cv_func_getloadavg_setgid = yes; then
16629 NEED_SETGID=true
16631 cat >>confdefs.h <<\_ACEOF
16632 #define GETLOADAVG_PRIVILEGED 1
16633 _ACEOF
16635 else
16636 NEED_SETGID=false
16639 if test $ac_cv_func_getloadavg_setgid = yes; then
16640 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16641 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16642 if test "${ac_cv_group_kmem+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16646 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
16647 # If we got an error (system does not support symlinks), try without -L.
16648 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
16649 ac_cv_group_kmem=`echo $ac_ls_output \
16650 | sed -ne 's/[ ][ ]*/ /g;
16651 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16652 / /s/.* //;p;'`
16655 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16656 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16657 KMEM_GROUP=$ac_cv_group_kmem
16659 if test "x$ac_save_LIBS" = x; then
16660 GETLOADAVG_LIBS=$LIBS
16661 else
16662 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16664 LIBS=$ac_save_LIBS
16668 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16669 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16670 if test "${ac_cv_sys_largefile_source+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673 while :; do
16674 ac_cv_sys_largefile_source=no
16675 cat >conftest.$ac_ext <<_ACEOF
16676 /* confdefs.h. */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 #include <stdio.h>
16683 main ()
16685 return !fseeko;
16687 return 0;
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16692 (eval $ac_compile) 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 break
16712 else
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16718 cat >conftest.$ac_ext <<_ACEOF
16719 /* confdefs.h. */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #define _LARGEFILE_SOURCE 1
16725 #include <stdio.h>
16727 main ()
16729 return !fseeko;
16731 return 0;
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
16755 ac_cv_sys_largefile_source=1; break
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16762 break
16763 done
16765 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16766 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16767 if test "$ac_cv_sys_largefile_source" != no; then
16769 cat >>confdefs.h <<_ACEOF
16770 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16771 _ACEOF
16774 rm -f conftest*
16776 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16777 # in glibc 2.1.3, but that breaks too many other things.
16778 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16779 echo "$as_me:$LINENO: checking for fseeko" >&5
16780 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16781 if test "${ac_cv_func_fseeko+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h. */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790 #include <stdio.h>
16792 main ()
16794 return fseeko && fseeko (stdin, 0, 0);
16796 return 0;
16798 _ACEOF
16799 rm -f conftest.$ac_objext conftest$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>conftest.er1
16802 ac_status=$?
16803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_cv_func_fseeko=yes
16821 else
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_func_fseeko=no
16827 rm -f conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16830 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16831 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16832 if test $ac_cv_func_fseeko = yes; then
16834 cat >>confdefs.h <<\_ACEOF
16835 #define HAVE_FSEEKO 1
16836 _ACEOF
16841 # Configure getopt.
16842 # getopt.m4 serial 10
16844 # The getopt module assume you want GNU getopt, with getopt_long etc,
16845 # rather than vanilla POSIX getopt. This means your your code should
16846 # always include <getopt.h> for the getopt prototypes.
16858 # Prerequisites of lib/getopt*.
16863 GETOPT_H=
16865 for ac_header in getopt.h
16867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo "$as_me:$LINENO: checking for $ac_header" >&5
16870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16876 else
16877 # Is the header compilable?
16878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h. */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886 $ac_includes_default
16887 #include <$ac_header>
16888 _ACEOF
16889 rm -f conftest.$ac_objext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16891 (eval $ac_compile) 2>conftest.er1
16892 ac_status=$?
16893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); } &&
16898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; } &&
16904 { ac_try='test -s conftest.$ac_objext'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_header_compiler=yes
16911 else
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 ac_header_compiler=no
16917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6
16921 # Is the header present?
16922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h. */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 #include <$ac_header>
16931 _ACEOF
16932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } >/dev/null; then
16940 if test -s conftest.err; then
16941 ac_cpp_err=$ac_c_preproc_warn_flag
16942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16943 else
16944 ac_cpp_err=
16946 else
16947 ac_cpp_err=yes
16949 if test -z "$ac_cpp_err"; then
16950 ac_header_preproc=yes
16951 else
16952 echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 ac_header_preproc=no
16957 rm -f conftest.err conftest.$ac_ext
16958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16959 echo "${ECHO_T}$ac_header_preproc" >&6
16961 # So? What about this header?
16962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16963 yes:no: )
16964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16968 ac_header_preproc=yes
16970 no:yes:* )
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16984 cat <<\_ASBOX
16985 ## ------------------------------------------ ##
16986 ## Report this to the AC_PACKAGE_NAME lists. ##
16987 ## ------------------------------------------ ##
16988 _ASBOX
16990 sed "s/^/$as_me: WARNING: /" >&2
16992 esac
16993 echo "$as_me:$LINENO: checking for $ac_header" >&5
16994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998 eval "$as_ac_Header=\$ac_header_preproc"
17000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17007 _ACEOF
17009 else
17010 GETOPT_H=getopt.h
17013 done
17015 if test -z "$GETOPT_H"; then
17017 for ac_func in getopt_long_only
17019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17020 echo "$as_me:$LINENO: checking for $ac_func" >&5
17021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17022 if eval "test \"\${$as_ac_var+set}\" = set"; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17033 #define $ac_func innocuous_$ac_func
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char $ac_func (); below.
17037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038 <limits.h> exists even on freestanding compilers. */
17040 #ifdef __STDC__
17041 # include <limits.h>
17042 #else
17043 # include <assert.h>
17044 #endif
17046 #undef $ac_func
17048 /* Override any gcc2 internal prototype to avoid an error. */
17049 #ifdef __cplusplus
17050 extern "C"
17052 #endif
17053 /* We use char because int might match the return type of a gcc2
17054 builtin and then its argument prototype would still apply. */
17055 char $ac_func ();
17056 /* The GNU C library defines this for functions which it implements
17057 to always fail with ENOSYS. Some functions are actually named
17058 something starting with __ and the normal name is an alias. */
17059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17060 choke me
17061 #else
17062 char (*f) () = $ac_func;
17063 #endif
17064 #ifdef __cplusplus
17066 #endif
17069 main ()
17071 return f != $ac_func;
17073 return 0;
17075 _ACEOF
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17078 (eval $ac_link) 2>conftest.er1
17079 ac_status=$?
17080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 eval "$as_ac_var=yes"
17098 else
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 eval "$as_ac_var=no"
17104 rm -f conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17109 if test `eval echo '${'$as_ac_var'}'` = yes; then
17110 cat >>confdefs.h <<_ACEOF
17111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17112 _ACEOF
17114 else
17115 GETOPT_H=getopt.h
17117 done
17121 if test -z "$GETOPT_H"; then
17122 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17123 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
17124 if test "${ac_cv_have_decl_optreset+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 #include <getopt.h>
17136 main ()
17138 #ifndef optreset
17139 char *p = (char *) optreset;
17140 #endif
17143 return 0;
17145 _ACEOF
17146 rm -f conftest.$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; } &&
17161 { ac_try='test -s conftest.$ac_objext'
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; }; then
17167 ac_cv_have_decl_optreset=yes
17168 else
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ac_cv_have_decl_optreset=no
17174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17176 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17177 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
17178 if test $ac_cv_have_decl_optreset = yes; then
17179 GETOPT_H=getopt.h
17184 if test -z "$GETOPT_H"; then
17185 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17186 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
17187 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 else
17190 if test "$cross_compiling" = yes; then
17191 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17192 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
17193 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195 else
17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 #include <getopt.h>
17205 main ()
17207 #ifndef getopt_clip
17208 char *p = (char *) getopt_clip;
17209 #endif
17212 return 0;
17214 _ACEOF
17215 rm -f conftest.$ac_objext
17216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17217 (eval $ac_compile) 2>conftest.er1
17218 ac_status=$?
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17227 ac_status=$?
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; } &&
17230 { ac_try='test -s conftest.$ac_objext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 ac_cv_have_decl_getopt_clip=yes
17237 else
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_cv_have_decl_getopt_clip=no
17243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17246 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
17247 if test $ac_cv_have_decl_getopt_clip = yes; then
17248 gl_cv_func_gnu_getopt=no
17249 else
17250 gl_cv_func_gnu_getopt=yes
17253 else
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h. */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17260 #include <getopt.h>
17262 main ()
17265 char *myargv[3];
17266 myargv[0] = "conftest";
17267 myargv[1] = "-+";
17268 myargv[2] = 0;
17269 return getopt (2, myargv, "+a") != '?';
17272 return 0;
17274 _ACEOF
17275 rm -f conftest$ac_exeext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17277 (eval $ac_link) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 gl_cv_func_gnu_getopt=yes
17287 else
17288 echo "$as_me: program exited with status $ac_status" >&5
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ( exit $ac_status )
17293 gl_cv_func_gnu_getopt=no
17295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17298 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17299 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
17300 if test "$gl_cv_func_gnu_getopt" = "no"; then
17301 GETOPT_H=getopt.h
17307 if test -n "$GETOPT_H"; then
17310 GETOPT_H=getopt.h
17312 cat >>confdefs.h <<\_ACEOF
17313 #define __GETOPT_PREFIX rpl_
17314 _ACEOF
17319 GETOPTOBJS='getopt.o getopt1.o'
17326 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17327 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
17328 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331 # Use it with a single arg.
17332 cat >conftest.$ac_ext <<_ACEOF
17333 /* confdefs.h. */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 $ac_includes_default
17340 main ()
17342 getpgrp (0);
17344 return 0;
17346 _ACEOF
17347 rm -f conftest.$ac_objext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17349 (eval $ac_compile) 2>conftest.er1
17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest.$ac_objext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_func_getpgrp_void=no
17369 else
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ac_cv_func_getpgrp_void=yes
17375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17378 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17379 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
17380 if test $ac_cv_func_getpgrp_void = yes; then
17382 cat >>confdefs.h <<\_ACEOF
17383 #define GETPGRP_VOID 1
17384 _ACEOF
17390 for ac_func in strftime
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17395 if eval "test \"\${$as_ac_var+set}\" = set"; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17406 #define $ac_func innocuous_$ac_func
17408 /* System header to define __stub macros and hopefully few prototypes,
17409 which can conflict with char $ac_func (); below.
17410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411 <limits.h> exists even on freestanding compilers. */
17413 #ifdef __STDC__
17414 # include <limits.h>
17415 #else
17416 # include <assert.h>
17417 #endif
17419 #undef $ac_func
17421 /* Override any gcc2 internal prototype to avoid an error. */
17422 #ifdef __cplusplus
17423 extern "C"
17425 #endif
17426 /* We use char because int might match the return type of a gcc2
17427 builtin and then its argument prototype would still apply. */
17428 char $ac_func ();
17429 /* The GNU C library defines this for functions which it implements
17430 to always fail with ENOSYS. Some functions are actually named
17431 something starting with __ and the normal name is an alias. */
17432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17433 choke me
17434 #else
17435 char (*f) () = $ac_func;
17436 #endif
17437 #ifdef __cplusplus
17439 #endif
17442 main ()
17444 return f != $ac_func;
17446 return 0;
17448 _ACEOF
17449 rm -f conftest.$ac_objext conftest$ac_exeext
17450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451 (eval $ac_link) 2>conftest.er1
17452 ac_status=$?
17453 grep -v '^ *+' conftest.er1 >conftest.err
17454 rm -f conftest.er1
17455 cat conftest.err >&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest$ac_exeext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 eval "$as_ac_var=yes"
17471 else
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 eval "$as_ac_var=no"
17477 rm -f conftest.err conftest.$ac_objext \
17478 conftest$ac_exeext conftest.$ac_ext
17480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17482 if test `eval echo '${'$as_ac_var'}'` = yes; then
17483 cat >>confdefs.h <<_ACEOF
17484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17485 _ACEOF
17487 else
17488 # strftime is in -lintl on SCO UNIX.
17489 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17490 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17491 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 ac_check_lib_save_LIBS=$LIBS
17495 LIBS="-lintl $LIBS"
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17503 /* Override any gcc2 internal prototype to avoid an error. */
17504 #ifdef __cplusplus
17505 extern "C"
17506 #endif
17507 /* We use char because int might match the return type of a gcc2
17508 builtin and then its argument prototype would still apply. */
17509 char strftime ();
17511 main ()
17513 strftime ();
17515 return 0;
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520 (eval $ac_link) 2>conftest.er1
17521 ac_status=$?
17522 grep -v '^ *+' conftest.er1 >conftest.err
17523 rm -f conftest.er1
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } &&
17527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest$ac_exeext'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_lib_intl_strftime=yes
17540 else
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 ac_cv_lib_intl_strftime=no
17546 rm -f conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17551 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17552 if test $ac_cv_lib_intl_strftime = yes; then
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_STRFTIME 1
17555 _ACEOF
17557 LIBS="-lintl $LIBS"
17561 done
17564 # UNIX98 PTYs.
17566 for ac_func in grantpt
17568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17569 echo "$as_me:$LINENO: checking for $ac_func" >&5
17570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17571 if eval "test \"\${$as_ac_var+set}\" = set"; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17582 #define $ac_func innocuous_$ac_func
17584 /* System header to define __stub macros and hopefully few prototypes,
17585 which can conflict with char $ac_func (); below.
17586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17587 <limits.h> exists even on freestanding compilers. */
17589 #ifdef __STDC__
17590 # include <limits.h>
17591 #else
17592 # include <assert.h>
17593 #endif
17595 #undef $ac_func
17597 /* Override any gcc2 internal prototype to avoid an error. */
17598 #ifdef __cplusplus
17599 extern "C"
17601 #endif
17602 /* We use char because int might match the return type of a gcc2
17603 builtin and then its argument prototype would still apply. */
17604 char $ac_func ();
17605 /* The GNU C library defines this for functions which it implements
17606 to always fail with ENOSYS. Some functions are actually named
17607 something starting with __ and the normal name is an alias. */
17608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17609 choke me
17610 #else
17611 char (*f) () = $ac_func;
17612 #endif
17613 #ifdef __cplusplus
17615 #endif
17618 main ()
17620 return f != $ac_func;
17622 return 0;
17624 _ACEOF
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627 (eval $ac_link) 2>conftest.er1
17628 ac_status=$?
17629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 eval "$as_ac_var=yes"
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 eval "$as_ac_var=no"
17653 rm -f conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 _ACEOF
17664 done
17667 # PTY-related GNU extensions.
17669 for ac_func in getpt
17671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17672 echo "$as_me:$LINENO: checking for $ac_func" >&5
17673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17674 if eval "test \"\${$as_ac_var+set}\" = set"; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677 cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h. */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17685 #define $ac_func innocuous_$ac_func
17687 /* System header to define __stub macros and hopefully few prototypes,
17688 which can conflict with char $ac_func (); below.
17689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17690 <limits.h> exists even on freestanding compilers. */
17692 #ifdef __STDC__
17693 # include <limits.h>
17694 #else
17695 # include <assert.h>
17696 #endif
17698 #undef $ac_func
17700 /* Override any gcc2 internal prototype to avoid an error. */
17701 #ifdef __cplusplus
17702 extern "C"
17704 #endif
17705 /* We use char because int might match the return type of a gcc2
17706 builtin and then its argument prototype would still apply. */
17707 char $ac_func ();
17708 /* The GNU C library defines this for functions which it implements
17709 to always fail with ENOSYS. Some functions are actually named
17710 something starting with __ and the normal name is an alias. */
17711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17712 choke me
17713 #else
17714 char (*f) () = $ac_func;
17715 #endif
17716 #ifdef __cplusplus
17718 #endif
17721 main ()
17723 return f != $ac_func;
17725 return 0;
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17730 (eval $ac_link) 2>conftest.er1
17731 ac_status=$?
17732 grep -v '^ *+' conftest.er1 >conftest.err
17733 rm -f conftest.er1
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; } &&
17743 { ac_try='test -s conftest$ac_exeext'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; }; then
17749 eval "$as_ac_var=yes"
17750 else
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17754 eval "$as_ac_var=no"
17756 rm -f conftest.err conftest.$ac_objext \
17757 conftest$ac_exeext conftest.$ac_ext
17759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17761 if test `eval echo '${'$as_ac_var'}'` = yes; then
17762 cat >>confdefs.h <<_ACEOF
17763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17764 _ACEOF
17767 done
17770 # Check this now, so that we will NOT find the above functions in ncurses.
17771 # That is because we have not set up to link ncurses in lib-src.
17772 # It's better to believe a function is not available
17773 # than to expect to find it in ncurses.
17775 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17776 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17777 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780 ac_check_lib_save_LIBS=$LIBS
17781 LIBS="-lncurses $LIBS"
17782 cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h. */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17789 /* Override any gcc2 internal prototype to avoid an error. */
17790 #ifdef __cplusplus
17791 extern "C"
17792 #endif
17793 /* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17795 char tparm ();
17797 main ()
17799 tparm ();
17801 return 0;
17803 _ACEOF
17804 rm -f conftest.$ac_objext conftest$ac_exeext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806 (eval $ac_link) 2>conftest.er1
17807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try='test -s conftest$ac_exeext'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_cv_lib_ncurses_tparm=yes
17826 else
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 ac_cv_lib_ncurses_tparm=no
17832 rm -f conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834 LIBS=$ac_check_lib_save_LIBS
17836 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17837 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17838 if test $ac_cv_lib_ncurses_tparm = yes; then
17839 cat >>confdefs.h <<_ACEOF
17840 #define HAVE_LIBNCURSES 1
17841 _ACEOF
17843 LIBS="-lncurses $LIBS"
17848 # Do we need the Hesiod library to provide the support routines?
17849 if test "$with_hesiod" = yes ; then
17850 # Don't set $LIBS here -- see comments above.
17851 resolv=no
17852 echo "$as_me:$LINENO: checking for res_send" >&5
17853 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17854 if test "${ac_cv_func_res_send+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h. */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17865 #define res_send innocuous_res_send
17867 /* System header to define __stub macros and hopefully few prototypes,
17868 which can conflict with char res_send (); below.
17869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17870 <limits.h> exists even on freestanding compilers. */
17872 #ifdef __STDC__
17873 # include <limits.h>
17874 #else
17875 # include <assert.h>
17876 #endif
17878 #undef res_send
17880 /* Override any gcc2 internal prototype to avoid an error. */
17881 #ifdef __cplusplus
17882 extern "C"
17884 #endif
17885 /* We use char because int might match the return type of a gcc2
17886 builtin and then its argument prototype would still apply. */
17887 char res_send ();
17888 /* The GNU C library defines this for functions which it implements
17889 to always fail with ENOSYS. Some functions are actually named
17890 something starting with __ and the normal name is an alias. */
17891 #if defined (__stub_res_send) || defined (__stub___res_send)
17892 choke me
17893 #else
17894 char (*f) () = res_send;
17895 #endif
17896 #ifdef __cplusplus
17898 #endif
17901 main ()
17903 return f != res_send;
17905 return 0;
17907 _ACEOF
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } &&
17923 { ac_try='test -s conftest$ac_exeext'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; }; then
17929 ac_cv_func_res_send=yes
17930 else
17931 echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_cv_func_res_send=no
17936 rm -f conftest.err conftest.$ac_objext \
17937 conftest$ac_exeext conftest.$ac_ext
17939 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17940 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17941 if test $ac_cv_func_res_send = yes; then
17943 else
17944 echo "$as_me:$LINENO: checking for __res_send" >&5
17945 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17946 if test "${ac_cv_func___res_send+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949 cat >conftest.$ac_ext <<_ACEOF
17950 /* confdefs.h. */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17957 #define __res_send innocuous___res_send
17959 /* System header to define __stub macros and hopefully few prototypes,
17960 which can conflict with char __res_send (); below.
17961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17962 <limits.h> exists even on freestanding compilers. */
17964 #ifdef __STDC__
17965 # include <limits.h>
17966 #else
17967 # include <assert.h>
17968 #endif
17970 #undef __res_send
17972 /* Override any gcc2 internal prototype to avoid an error. */
17973 #ifdef __cplusplus
17974 extern "C"
17976 #endif
17977 /* We use char because int might match the return type of a gcc2
17978 builtin and then its argument prototype would still apply. */
17979 char __res_send ();
17980 /* The GNU C library defines this for functions which it implements
17981 to always fail with ENOSYS. Some functions are actually named
17982 something starting with __ and the normal name is an alias. */
17983 #if defined (__stub___res_send) || defined (__stub_____res_send)
17984 choke me
17985 #else
17986 char (*f) () = __res_send;
17987 #endif
17988 #ifdef __cplusplus
17990 #endif
17993 main ()
17995 return f != __res_send;
17997 return 0;
17999 _ACEOF
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
18009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011 (eval $ac_try) 2>&5
18012 ac_status=$?
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try='test -s conftest$ac_exeext'
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_func___res_send=yes
18022 else
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_func___res_send=no
18028 rm -f conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18031 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18032 echo "${ECHO_T}$ac_cv_func___res_send" >&6
18033 if test $ac_cv_func___res_send = yes; then
18035 else
18036 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18037 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
18038 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041 ac_check_lib_save_LIBS=$LIBS
18042 LIBS="-lresolv $LIBS"
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18050 /* Override any gcc2 internal prototype to avoid an error. */
18051 #ifdef __cplusplus
18052 extern "C"
18053 #endif
18054 /* We use char because int might match the return type of a gcc2
18055 builtin and then its argument prototype would still apply. */
18056 char res_send ();
18058 main ()
18060 res_send ();
18062 return 0;
18064 _ACEOF
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067 (eval $ac_link) 2>conftest.er1
18068 ac_status=$?
18069 grep -v '^ *+' conftest.er1 >conftest.err
18070 rm -f conftest.er1
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest$ac_exeext'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; }; then
18086 ac_cv_lib_resolv_res_send=yes
18087 else
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_cv_lib_resolv_res_send=no
18093 rm -f conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18097 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18098 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
18099 if test $ac_cv_lib_resolv_res_send = yes; then
18100 resolv=yes
18101 else
18102 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18103 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
18104 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107 ac_check_lib_save_LIBS=$LIBS
18108 LIBS="-lresolv $LIBS"
18109 cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h. */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18116 /* Override any gcc2 internal prototype to avoid an error. */
18117 #ifdef __cplusplus
18118 extern "C"
18119 #endif
18120 /* We use char because int might match the return type of a gcc2
18121 builtin and then its argument prototype would still apply. */
18122 char __res_send ();
18124 main ()
18126 __res_send ();
18128 return 0;
18130 _ACEOF
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18133 (eval $ac_link) 2>conftest.er1
18134 ac_status=$?
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
18140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest$ac_exeext'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_cv_lib_resolv___res_send=yes
18153 else
18154 echo "$as_me: failed program was:" >&5
18155 sed 's/^/| /' conftest.$ac_ext >&5
18157 ac_cv_lib_resolv___res_send=no
18159 rm -f conftest.err conftest.$ac_objext \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18163 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18164 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
18165 if test $ac_cv_lib_resolv___res_send = yes; then
18166 resolv=yes
18175 if test "$resolv" = yes ; then
18176 RESOLVLIB=-lresolv
18178 cat >>confdefs.h <<\_ACEOF
18179 #define HAVE_LIBRESOLV 1
18180 _ACEOF
18182 else
18183 RESOLVLIB=
18185 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18186 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
18187 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18188 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h. */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18198 #define hes_getmailhost innocuous_hes_getmailhost
18200 /* System header to define __stub macros and hopefully few prototypes,
18201 which can conflict with char hes_getmailhost (); below.
18202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18203 <limits.h> exists even on freestanding compilers. */
18205 #ifdef __STDC__
18206 # include <limits.h>
18207 #else
18208 # include <assert.h>
18209 #endif
18211 #undef hes_getmailhost
18213 /* Override any gcc2 internal prototype to avoid an error. */
18214 #ifdef __cplusplus
18215 extern "C"
18217 #endif
18218 /* We use char because int might match the return type of a gcc2
18219 builtin and then its argument prototype would still apply. */
18220 char hes_getmailhost ();
18221 /* The GNU C library defines this for functions which it implements
18222 to always fail with ENOSYS. Some functions are actually named
18223 something starting with __ and the normal name is an alias. */
18224 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
18225 choke me
18226 #else
18227 char (*f) () = hes_getmailhost;
18228 #endif
18229 #ifdef __cplusplus
18231 #endif
18234 main ()
18236 return f != hes_getmailhost;
18238 return 0;
18240 _ACEOF
18241 rm -f conftest.$ac_objext conftest$ac_exeext
18242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18243 (eval $ac_link) 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
18250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest$ac_exeext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 ac_cv_func_hes_getmailhost=yes
18263 else
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_cv_func_hes_getmailhost=no
18269 rm -f conftest.err conftest.$ac_objext \
18270 conftest$ac_exeext conftest.$ac_ext
18272 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18273 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
18274 if test $ac_cv_func_hes_getmailhost = yes; then
18276 else
18277 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18278 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
18279 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282 ac_check_lib_save_LIBS=$LIBS
18283 LIBS="-lhesiod $RESOLVLIB $LIBS"
18284 cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h. */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18291 /* Override any gcc2 internal prototype to avoid an error. */
18292 #ifdef __cplusplus
18293 extern "C"
18294 #endif
18295 /* We use char because int might match the return type of a gcc2
18296 builtin and then its argument prototype would still apply. */
18297 char hes_getmailhost ();
18299 main ()
18301 hes_getmailhost ();
18303 return 0;
18305 _ACEOF
18306 rm -f conftest.$ac_objext conftest$ac_exeext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18308 (eval $ac_link) 2>conftest.er1
18309 ac_status=$?
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
18315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; } &&
18321 { ac_try='test -s conftest$ac_exeext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_lib_hesiod_hes_getmailhost=yes
18328 else
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18332 ac_cv_lib_hesiod_hes_getmailhost=no
18334 rm -f conftest.err conftest.$ac_objext \
18335 conftest$ac_exeext conftest.$ac_ext
18336 LIBS=$ac_check_lib_save_LIBS
18338 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18339 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
18340 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18342 cat >>confdefs.h <<\_ACEOF
18343 #define HAVE_LIBHESIOD 1
18344 _ACEOF
18346 else
18354 # These tell us which Kerberos-related libraries to use.
18355 if test "${with_kerberos+set}" = set; then
18357 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18358 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
18359 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lcom_err $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h. */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18371 /* Override any gcc2 internal prototype to avoid an error. */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 /* We use char because int might match the return type of a gcc2
18376 builtin and then its argument prototype would still apply. */
18377 char com_err ();
18379 main ()
18381 com_err ();
18383 return 0;
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18388 (eval $ac_link) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_lib_com_err_com_err=yes
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 ac_cv_lib_com_err_com_err=no
18414 rm -f conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18418 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18419 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
18420 if test $ac_cv_lib_com_err_com_err = yes; then
18421 cat >>confdefs.h <<_ACEOF
18422 #define HAVE_LIBCOM_ERR 1
18423 _ACEOF
18425 LIBS="-lcom_err $LIBS"
18430 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18431 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
18432 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18434 else
18435 ac_check_lib_save_LIBS=$LIBS
18436 LIBS="-lk5crypto $LIBS"
18437 cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h. */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18444 /* Override any gcc2 internal prototype to avoid an error. */
18445 #ifdef __cplusplus
18446 extern "C"
18447 #endif
18448 /* We use char because int might match the return type of a gcc2
18449 builtin and then its argument prototype would still apply. */
18450 char mit_des_cbc_encrypt ();
18452 main ()
18454 mit_des_cbc_encrypt ();
18456 return 0;
18458 _ACEOF
18459 rm -f conftest.$ac_objext conftest$ac_exeext
18460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461 (eval $ac_link) 2>conftest.er1
18462 ac_status=$?
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
18468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18481 else
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18487 rm -f conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18491 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18492 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18493 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18494 cat >>confdefs.h <<_ACEOF
18495 #define HAVE_LIBK5CRYPTO 1
18496 _ACEOF
18498 LIBS="-lk5crypto $LIBS"
18503 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18504 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18505 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508 ac_check_lib_save_LIBS=$LIBS
18509 LIBS="-lcrypto $LIBS"
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18517 /* Override any gcc2 internal prototype to avoid an error. */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18523 char mit_des_cbc_encrypt ();
18525 main ()
18527 mit_des_cbc_encrypt ();
18529 return 0;
18531 _ACEOF
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534 (eval $ac_link) 2>conftest.er1
18535 ac_status=$?
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18554 else
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18560 rm -f conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562 LIBS=$ac_check_lib_save_LIBS
18564 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18565 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18566 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18567 cat >>confdefs.h <<_ACEOF
18568 #define HAVE_LIBCRYPTO 1
18569 _ACEOF
18571 LIBS="-lcrypto $LIBS"
18576 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18577 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18578 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18579 echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581 ac_check_lib_save_LIBS=$LIBS
18582 LIBS="-lkrb5 $LIBS"
18583 cat >conftest.$ac_ext <<_ACEOF
18584 /* confdefs.h. */
18585 _ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18590 /* Override any gcc2 internal prototype to avoid an error. */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 /* We use char because int might match the return type of a gcc2
18595 builtin and then its argument prototype would still apply. */
18596 char krb5_init_context ();
18598 main ()
18600 krb5_init_context ();
18602 return 0;
18604 _ACEOF
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18607 (eval $ac_link) 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; } &&
18620 { ac_try='test -s conftest$ac_exeext'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_lib_krb5_krb5_init_context=yes
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_lib_krb5_krb5_init_context=no
18633 rm -f conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635 LIBS=$ac_check_lib_save_LIBS
18637 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18638 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18639 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18640 cat >>confdefs.h <<_ACEOF
18641 #define HAVE_LIBKRB5 1
18642 _ACEOF
18644 LIBS="-lkrb5 $LIBS"
18648 if test "${with_kerberos5+set}" != set; then
18650 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18651 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18652 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18653 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 else
18655 ac_check_lib_save_LIBS=$LIBS
18656 LIBS="-ldes425 $LIBS"
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18664 /* Override any gcc2 internal prototype to avoid an error. */
18665 #ifdef __cplusplus
18666 extern "C"
18667 #endif
18668 /* We use char because int might match the return type of a gcc2
18669 builtin and then its argument prototype would still apply. */
18670 char des_cbc_encrypt ();
18672 main ()
18674 des_cbc_encrypt ();
18676 return 0;
18678 _ACEOF
18679 rm -f conftest.$ac_objext conftest$ac_exeext
18680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18681 (eval $ac_link) 2>conftest.er1
18682 ac_status=$?
18683 grep -v '^ *+' conftest.er1 >conftest.err
18684 rm -f conftest.er1
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest$ac_exeext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18700 ac_cv_lib_des425_des_cbc_encrypt=yes
18701 else
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_cv_lib_des425_des_cbc_encrypt=no
18707 rm -f conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18709 LIBS=$ac_check_lib_save_LIBS
18711 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18712 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18713 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18714 cat >>confdefs.h <<_ACEOF
18715 #define HAVE_LIBDES425 1
18716 _ACEOF
18718 LIBS="-ldes425 $LIBS"
18720 else
18722 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18723 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18724 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727 ac_check_lib_save_LIBS=$LIBS
18728 LIBS="-ldes $LIBS"
18729 cat >conftest.$ac_ext <<_ACEOF
18730 /* confdefs.h. */
18731 _ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18736 /* Override any gcc2 internal prototype to avoid an error. */
18737 #ifdef __cplusplus
18738 extern "C"
18739 #endif
18740 /* We use char because int might match the return type of a gcc2
18741 builtin and then its argument prototype would still apply. */
18742 char des_cbc_encrypt ();
18744 main ()
18746 des_cbc_encrypt ();
18748 return 0;
18750 _ACEOF
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18753 (eval $ac_link) 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest$ac_exeext'
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772 ac_cv_lib_des_des_cbc_encrypt=yes
18773 else
18774 echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ac_cv_lib_des_des_cbc_encrypt=no
18779 rm -f conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18783 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18784 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18785 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18786 cat >>confdefs.h <<_ACEOF
18787 #define HAVE_LIBDES 1
18788 _ACEOF
18790 LIBS="-ldes $LIBS"
18797 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18798 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18799 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802 ac_check_lib_save_LIBS=$LIBS
18803 LIBS="-lkrb4 $LIBS"
18804 cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h. */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18811 /* Override any gcc2 internal prototype to avoid an error. */
18812 #ifdef __cplusplus
18813 extern "C"
18814 #endif
18815 /* We use char because int might match the return type of a gcc2
18816 builtin and then its argument prototype would still apply. */
18817 char krb_get_cred ();
18819 main ()
18821 krb_get_cred ();
18823 return 0;
18825 _ACEOF
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828 (eval $ac_link) 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest$ac_exeext'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_cv_lib_krb4_krb_get_cred=yes
18848 else
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 ac_cv_lib_krb4_krb_get_cred=no
18854 rm -f conftest.err conftest.$ac_objext \
18855 conftest$ac_exeext conftest.$ac_ext
18856 LIBS=$ac_check_lib_save_LIBS
18858 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18859 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18860 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_LIBKRB4 1
18863 _ACEOF
18865 LIBS="-lkrb4 $LIBS"
18867 else
18869 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18870 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18871 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lkrb $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any gcc2 internal prototype to avoid an error. */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 /* We use char because int might match the return type of a gcc2
18888 builtin and then its argument prototype would still apply. */
18889 char krb_get_cred ();
18891 main ()
18893 krb_get_cred ();
18895 return 0;
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900 (eval $ac_link) 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_lib_krb_krb_get_cred=yes
18920 else
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ac_cv_lib_krb_krb_get_cred=no
18926 rm -f conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18930 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18931 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18932 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_LIBKRB 1
18935 _ACEOF
18937 LIBS="-lkrb $LIBS"
18945 if test "${with_kerberos5+set}" = set; then
18947 for ac_header in krb5.h
18949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18951 echo "$as_me:$LINENO: checking for $ac_header" >&5
18952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18958 else
18959 # Is the header compilable?
18960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18962 cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h. */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 $ac_includes_default
18969 #include <$ac_header>
18970 _ACEOF
18971 rm -f conftest.$ac_objext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18973 (eval $ac_compile) 2>conftest.er1
18974 ac_status=$?
18975 grep -v '^ *+' conftest.er1 >conftest.err
18976 rm -f conftest.er1
18977 cat conftest.err >&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); } &&
18980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; } &&
18986 { ac_try='test -s conftest.$ac_objext'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 ac_header_compiler=yes
18993 else
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_header_compiler=no
18999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19001 echo "${ECHO_T}$ac_header_compiler" >&6
19003 # Is the header present?
19004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19006 cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h. */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 #include <$ac_header>
19013 _ACEOF
19014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19016 ac_status=$?
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } >/dev/null; then
19022 if test -s conftest.err; then
19023 ac_cpp_err=$ac_c_preproc_warn_flag
19024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19025 else
19026 ac_cpp_err=
19028 else
19029 ac_cpp_err=yes
19031 if test -z "$ac_cpp_err"; then
19032 ac_header_preproc=yes
19033 else
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 ac_header_preproc=no
19039 rm -f conftest.err conftest.$ac_ext
19040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19041 echo "${ECHO_T}$ac_header_preproc" >&6
19043 # So? What about this header?
19044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19045 yes:no: )
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19050 ac_header_preproc=yes
19052 no:yes:* )
19053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19066 cat <<\_ASBOX
19067 ## ------------------------------------------ ##
19068 ## Report this to the AC_PACKAGE_NAME lists. ##
19069 ## ------------------------------------------ ##
19070 _ASBOX
19072 sed "s/^/$as_me: WARNING: /" >&2
19074 esac
19075 echo "$as_me:$LINENO: checking for $ac_header" >&5
19076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080 eval "$as_ac_Header=\$ac_header_preproc"
19082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19087 cat >>confdefs.h <<_ACEOF
19088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19089 _ACEOF
19093 done
19095 else
19097 for ac_header in des.h
19099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19101 echo "$as_me:$LINENO: checking for $ac_header" >&5
19102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19108 else
19109 # Is the header compilable?
19110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 $ac_includes_default
19119 #include <$ac_header>
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123 (eval $ac_compile) 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; } &&
19136 { ac_try='test -s conftest.$ac_objext'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_header_compiler=yes
19143 else
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_header_compiler=no
19149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19151 echo "${ECHO_T}$ac_header_compiler" >&6
19153 # Is the header present?
19154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h. */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 #include <$ac_header>
19163 _ACEOF
19164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } >/dev/null; then
19172 if test -s conftest.err; then
19173 ac_cpp_err=$ac_c_preproc_warn_flag
19174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19175 else
19176 ac_cpp_err=
19178 else
19179 ac_cpp_err=yes
19181 if test -z "$ac_cpp_err"; then
19182 ac_header_preproc=yes
19183 else
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19187 ac_header_preproc=no
19189 rm -f conftest.err conftest.$ac_ext
19190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19191 echo "${ECHO_T}$ac_header_preproc" >&6
19193 # So? What about this header?
19194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19195 yes:no: )
19196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19200 ac_header_preproc=yes
19202 no:yes:* )
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19216 cat <<\_ASBOX
19217 ## ------------------------------------------ ##
19218 ## Report this to the AC_PACKAGE_NAME lists. ##
19219 ## ------------------------------------------ ##
19220 _ASBOX
19222 sed "s/^/$as_me: WARNING: /" >&2
19224 esac
19225 echo "$as_me:$LINENO: checking for $ac_header" >&5
19226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 eval "$as_ac_Header=\$ac_header_preproc"
19232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19237 cat >>confdefs.h <<_ACEOF
19238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19239 _ACEOF
19241 else
19243 for ac_header in kerberosIV/des.h
19245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19247 echo "$as_me:$LINENO: checking for $ac_header" >&5
19248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19254 else
19255 # Is the header compilable?
19256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 $ac_includes_default
19265 #include <$ac_header>
19266 _ACEOF
19267 rm -f conftest.$ac_objext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19269 (eval $ac_compile) 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_header_compiler=yes
19289 else
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_header_compiler=no
19295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19297 echo "${ECHO_T}$ac_header_compiler" >&6
19299 # Is the header present?
19300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h. */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 #include <$ac_header>
19309 _ACEOF
19310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } >/dev/null; then
19318 if test -s conftest.err; then
19319 ac_cpp_err=$ac_c_preproc_warn_flag
19320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19321 else
19322 ac_cpp_err=
19324 else
19325 ac_cpp_err=yes
19327 if test -z "$ac_cpp_err"; then
19328 ac_header_preproc=yes
19329 else
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ac_header_preproc=no
19335 rm -f conftest.err conftest.$ac_ext
19336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19337 echo "${ECHO_T}$ac_header_preproc" >&6
19339 # So? What about this header?
19340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19341 yes:no: )
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19346 ac_header_preproc=yes
19348 no:yes:* )
19349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19362 cat <<\_ASBOX
19363 ## ------------------------------------------ ##
19364 ## Report this to the AC_PACKAGE_NAME lists. ##
19365 ## ------------------------------------------ ##
19366 _ASBOX
19368 sed "s/^/$as_me: WARNING: /" >&2
19370 esac
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 eval "$as_ac_Header=\$ac_header_preproc"
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19383 cat >>confdefs.h <<_ACEOF
19384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19385 _ACEOF
19387 else
19389 for ac_header in kerberos/des.h
19391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19393 echo "$as_me:$LINENO: checking for $ac_header" >&5
19394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19400 else
19401 # Is the header compilable?
19402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h. */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410 $ac_includes_default
19411 #include <$ac_header>
19412 _ACEOF
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>conftest.er1
19416 ac_status=$?
19417 grep -v '^ *+' conftest.er1 >conftest.err
19418 rm -f conftest.er1
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest.$ac_objext'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_header_compiler=yes
19435 else
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19439 ac_header_compiler=no
19441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19443 echo "${ECHO_T}$ac_header_compiler" >&6
19445 # Is the header present?
19446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 #include <$ac_header>
19455 _ACEOF
19456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } >/dev/null; then
19464 if test -s conftest.err; then
19465 ac_cpp_err=$ac_c_preproc_warn_flag
19466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19467 else
19468 ac_cpp_err=
19470 else
19471 ac_cpp_err=yes
19473 if test -z "$ac_cpp_err"; then
19474 ac_header_preproc=yes
19475 else
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19479 ac_header_preproc=no
19481 rm -f conftest.err conftest.$ac_ext
19482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19483 echo "${ECHO_T}$ac_header_preproc" >&6
19485 # So? What about this header?
19486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19487 yes:no: )
19488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19492 ac_header_preproc=yes
19494 no:yes:* )
19495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19508 cat <<\_ASBOX
19509 ## ------------------------------------------ ##
19510 ## Report this to the AC_PACKAGE_NAME lists. ##
19511 ## ------------------------------------------ ##
19512 _ASBOX
19514 sed "s/^/$as_me: WARNING: /" >&2
19516 esac
19517 echo "$as_me:$LINENO: checking for $ac_header" >&5
19518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522 eval "$as_ac_Header=\$ac_header_preproc"
19524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19529 cat >>confdefs.h <<_ACEOF
19530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19531 _ACEOF
19535 done
19539 done
19543 done
19546 for ac_header in krb.h
19548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19550 echo "$as_me:$LINENO: checking for $ac_header" >&5
19551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19557 else
19558 # Is the header compilable?
19559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19561 cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h. */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 $ac_includes_default
19568 #include <$ac_header>
19569 _ACEOF
19570 rm -f conftest.$ac_objext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19572 (eval $ac_compile) 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19582 ac_status=$?
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try='test -s conftest.$ac_objext'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_header_compiler=yes
19592 else
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19596 ac_header_compiler=no
19598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19600 echo "${ECHO_T}$ac_header_compiler" >&6
19602 # Is the header present?
19603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 #include <$ac_header>
19612 _ACEOF
19613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } >/dev/null; then
19621 if test -s conftest.err; then
19622 ac_cpp_err=$ac_c_preproc_warn_flag
19623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19624 else
19625 ac_cpp_err=
19627 else
19628 ac_cpp_err=yes
19630 if test -z "$ac_cpp_err"; then
19631 ac_header_preproc=yes
19632 else
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_header_preproc=no
19638 rm -f conftest.err conftest.$ac_ext
19639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19640 echo "${ECHO_T}$ac_header_preproc" >&6
19642 # So? What about this header?
19643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19644 yes:no: )
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19649 ac_header_preproc=yes
19651 no:yes:* )
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19665 cat <<\_ASBOX
19666 ## ------------------------------------------ ##
19667 ## Report this to the AC_PACKAGE_NAME lists. ##
19668 ## ------------------------------------------ ##
19669 _ASBOX
19671 sed "s/^/$as_me: WARNING: /" >&2
19673 esac
19674 echo "$as_me:$LINENO: checking for $ac_header" >&5
19675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679 eval "$as_ac_Header=\$ac_header_preproc"
19681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19686 cat >>confdefs.h <<_ACEOF
19687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19688 _ACEOF
19690 else
19692 for ac_header in kerberosIV/krb.h
19694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19696 echo "$as_me:$LINENO: checking for $ac_header" >&5
19697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19703 else
19704 # Is the header compilable?
19705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19707 cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h. */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 $ac_includes_default
19714 #include <$ac_header>
19715 _ACEOF
19716 rm -f conftest.$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; }; then
19737 ac_header_compiler=yes
19738 else
19739 echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 ac_header_compiler=no
19744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19746 echo "${ECHO_T}$ac_header_compiler" >&6
19748 # Is the header present?
19749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19751 cat >conftest.$ac_ext <<_ACEOF
19752 /* confdefs.h. */
19753 _ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 #include <$ac_header>
19758 _ACEOF
19759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19761 ac_status=$?
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } >/dev/null; then
19767 if test -s conftest.err; then
19768 ac_cpp_err=$ac_c_preproc_warn_flag
19769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19770 else
19771 ac_cpp_err=
19773 else
19774 ac_cpp_err=yes
19776 if test -z "$ac_cpp_err"; then
19777 ac_header_preproc=yes
19778 else
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 ac_header_preproc=no
19784 rm -f conftest.err conftest.$ac_ext
19785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19786 echo "${ECHO_T}$ac_header_preproc" >&6
19788 # So? What about this header?
19789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19790 yes:no: )
19791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19795 ac_header_preproc=yes
19797 no:yes:* )
19798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19811 cat <<\_ASBOX
19812 ## ------------------------------------------ ##
19813 ## Report this to the AC_PACKAGE_NAME lists. ##
19814 ## ------------------------------------------ ##
19815 _ASBOX
19817 sed "s/^/$as_me: WARNING: /" >&2
19819 esac
19820 echo "$as_me:$LINENO: checking for $ac_header" >&5
19821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 else
19825 eval "$as_ac_Header=\$ac_header_preproc"
19827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19832 cat >>confdefs.h <<_ACEOF
19833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19834 _ACEOF
19836 else
19838 for ac_header in kerberos/krb.h
19840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849 else
19850 # Is the header compilable?
19851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h. */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h. */
19859 $ac_includes_default
19860 #include <$ac_header>
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19864 (eval $ac_compile) 2>conftest.er1
19865 ac_status=$?
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_header_compiler=yes
19884 else
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_header_compiler=no
19890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19892 echo "${ECHO_T}$ac_header_compiler" >&6
19894 # Is the header present?
19895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h. */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 #include <$ac_header>
19904 _ACEOF
19905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } >/dev/null; then
19913 if test -s conftest.err; then
19914 ac_cpp_err=$ac_c_preproc_warn_flag
19915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19916 else
19917 ac_cpp_err=
19919 else
19920 ac_cpp_err=yes
19922 if test -z "$ac_cpp_err"; then
19923 ac_header_preproc=yes
19924 else
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_header_preproc=no
19930 rm -f conftest.err conftest.$ac_ext
19931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932 echo "${ECHO_T}$ac_header_preproc" >&6
19934 # So? What about this header?
19935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19936 yes:no: )
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19941 ac_header_preproc=yes
19943 no:yes:* )
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19957 cat <<\_ASBOX
19958 ## ------------------------------------------ ##
19959 ## Report this to the AC_PACKAGE_NAME lists. ##
19960 ## ------------------------------------------ ##
19961 _ASBOX
19963 sed "s/^/$as_me: WARNING: /" >&2
19965 esac
19966 echo "$as_me:$LINENO: checking for $ac_header" >&5
19967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971 eval "$as_ac_Header=\$ac_header_preproc"
19973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19978 cat >>confdefs.h <<_ACEOF
19979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980 _ACEOF
19984 done
19988 done
19992 done
19996 for ac_header in com_err.h
19998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20000 echo "$as_me:$LINENO: checking for $ac_header" >&5
20001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20007 else
20008 # Is the header compilable?
20009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20017 $ac_includes_default
20018 #include <$ac_header>
20019 _ACEOF
20020 rm -f conftest.$ac_objext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022 (eval $ac_compile) 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } &&
20035 { ac_try='test -s conftest.$ac_objext'
20036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20037 (eval $ac_try) 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20041 ac_header_compiler=yes
20042 else
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_header_compiler=no
20048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20050 echo "${ECHO_T}$ac_header_compiler" >&6
20052 # Is the header present?
20053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 #include <$ac_header>
20062 _ACEOF
20063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } >/dev/null; then
20071 if test -s conftest.err; then
20072 ac_cpp_err=$ac_c_preproc_warn_flag
20073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20074 else
20075 ac_cpp_err=
20077 else
20078 ac_cpp_err=yes
20080 if test -z "$ac_cpp_err"; then
20081 ac_header_preproc=yes
20082 else
20083 echo "$as_me: failed program was:" >&5
20084 sed 's/^/| /' conftest.$ac_ext >&5
20086 ac_header_preproc=no
20088 rm -f conftest.err conftest.$ac_ext
20089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20090 echo "${ECHO_T}$ac_header_preproc" >&6
20092 # So? What about this header?
20093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20094 yes:no: )
20095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20099 ac_header_preproc=yes
20101 no:yes:* )
20102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20115 cat <<\_ASBOX
20116 ## ------------------------------------------ ##
20117 ## Report this to the AC_PACKAGE_NAME lists. ##
20118 ## ------------------------------------------ ##
20119 _ASBOX
20121 sed "s/^/$as_me: WARNING: /" >&2
20123 esac
20124 echo "$as_me:$LINENO: checking for $ac_header" >&5
20125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129 eval "$as_ac_Header=\$ac_header_preproc"
20131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20136 cat >>confdefs.h <<_ACEOF
20137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20138 _ACEOF
20142 done
20146 # Solaris requires -lintl if you want strerror (which calls dgettext)
20147 # to return localized messages.
20149 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20150 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20151 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154 ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-lintl $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h. */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20163 /* Override any gcc2 internal prototype to avoid an error. */
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 /* We use char because int might match the return type of a gcc2
20168 builtin and then its argument prototype would still apply. */
20169 char dgettext ();
20171 main ()
20173 dgettext ();
20175 return 0;
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20180 (eval $ac_link) 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try='test -s conftest$ac_exeext'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_cv_lib_intl_dgettext=yes
20200 else
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_cv_lib_intl_dgettext=no
20206 rm -f conftest.err conftest.$ac_objext \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20210 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20211 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20212 if test $ac_cv_lib_intl_dgettext = yes; then
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_LIBINTL 1
20215 _ACEOF
20217 LIBS="-lintl $LIBS"
20222 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20223 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
20224 if test "${emacs_cv_localtime_cache+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227 if test x$ac_cv_func_tzset = xyes; then
20228 if test "$cross_compiling" = yes; then
20229 # If we have tzset, assume the worst when cross-compiling.
20230 emacs_cv_localtime_cache=yes
20231 else
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h. */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238 #include <time.h>
20239 extern char **environ;
20240 unset_TZ ()
20242 char **from, **to;
20243 for (to = from = environ; (*to = *from); from++)
20244 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20245 to++;
20247 char TZ_GMT0[] = "TZ=GMT0";
20248 char TZ_PST8[] = "TZ=PST8";
20249 main()
20251 time_t now = time ((time_t *) 0);
20252 int hour_GMT0, hour_unset;
20253 if (putenv (TZ_GMT0) != 0)
20254 exit (1);
20255 hour_GMT0 = localtime (&now)->tm_hour;
20256 unset_TZ ();
20257 hour_unset = localtime (&now)->tm_hour;
20258 if (putenv (TZ_PST8) != 0)
20259 exit (1);
20260 if (localtime (&now)->tm_hour == hour_GMT0)
20261 exit (1);
20262 unset_TZ ();
20263 if (localtime (&now)->tm_hour != hour_unset)
20264 exit (1);
20265 exit (0);
20267 _ACEOF
20268 rm -f conftest$ac_exeext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>&5
20271 ac_status=$?
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20276 ac_status=$?
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 emacs_cv_localtime_cache=no
20280 else
20281 echo "$as_me: program exited with status $ac_status" >&5
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ( exit $ac_status )
20286 emacs_cv_localtime_cache=yes
20288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20290 else
20291 # If we lack tzset, report that localtime does not cache TZ,
20292 # since we can't invalidate the cache if we don't have tzset.
20293 emacs_cv_localtime_cache=no
20296 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20297 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
20298 if test $emacs_cv_localtime_cache = yes; then
20300 cat >>confdefs.h <<\_ACEOF
20301 #define LOCALTIME_CACHE 1
20302 _ACEOF
20306 if test "x$HAVE_TIMEVAL" = xyes; then
20308 for ac_func in gettimeofday
20310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20311 echo "$as_me:$LINENO: checking for $ac_func" >&5
20312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20313 if eval "test \"\${$as_ac_var+set}\" = set"; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h. */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20324 #define $ac_func innocuous_$ac_func
20326 /* System header to define __stub macros and hopefully few prototypes,
20327 which can conflict with char $ac_func (); below.
20328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20329 <limits.h> exists even on freestanding compilers. */
20331 #ifdef __STDC__
20332 # include <limits.h>
20333 #else
20334 # include <assert.h>
20335 #endif
20337 #undef $ac_func
20339 /* Override any gcc2 internal prototype to avoid an error. */
20340 #ifdef __cplusplus
20341 extern "C"
20343 #endif
20344 /* We use char because int might match the return type of a gcc2
20345 builtin and then its argument prototype would still apply. */
20346 char $ac_func ();
20347 /* The GNU C library defines this for functions which it implements
20348 to always fail with ENOSYS. Some functions are actually named
20349 something starting with __ and the normal name is an alias. */
20350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20351 choke me
20352 #else
20353 char (*f) () = $ac_func;
20354 #endif
20355 #ifdef __cplusplus
20357 #endif
20360 main ()
20362 return f != $ac_func;
20364 return 0;
20366 _ACEOF
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>conftest.er1
20370 ac_status=$?
20371 grep -v '^ *+' conftest.er1 >conftest.err
20372 rm -f conftest.er1
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest$ac_exeext'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 eval "$as_ac_var=yes"
20389 else
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 eval "$as_ac_var=no"
20395 rm -f conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20400 if test `eval echo '${'$as_ac_var'}'` = yes; then
20401 cat >>confdefs.h <<_ACEOF
20402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20403 _ACEOF
20406 done
20408 if test $ac_cv_func_gettimeofday = yes; then
20409 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20410 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
20411 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414 cat >conftest.$ac_ext <<_ACEOF
20415 /* confdefs.h. */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 #ifdef TIME_WITH_SYS_TIME
20422 #include <sys/time.h>
20423 #include <time.h>
20424 #else
20425 #ifdef HAVE_SYS_TIME_H
20426 #include <sys/time.h>
20427 #else
20428 #include <time.h>
20429 #endif
20430 #endif
20432 main ()
20434 struct timeval time;
20435 gettimeofday (&time, 0);
20437 return 0;
20439 _ACEOF
20440 rm -f conftest.$ac_objext
20441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20442 (eval $ac_compile) 2>conftest.er1
20443 ac_status=$?
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
20449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest.$ac_objext'
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20458 ac_status=$?
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 emacs_cv_gettimeofday_two_arguments=yes
20462 else
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 emacs_cv_gettimeofday_two_arguments=no
20468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20470 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20471 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20472 if test $emacs_cv_gettimeofday_two_arguments = no; then
20474 cat >>confdefs.h <<\_ACEOF
20475 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20476 _ACEOF
20482 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20483 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20484 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20485 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h. */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494 #include <sys/types.h>
20495 #include <$ac_cv_struct_tm>
20499 main ()
20501 static struct tm ac_aggr;
20502 if (ac_aggr.tm_zone)
20503 return 0;
20505 return 0;
20507 _ACEOF
20508 rm -f conftest.$ac_objext
20509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20510 (eval $ac_compile) 2>conftest.er1
20511 ac_status=$?
20512 grep -v '^ *+' conftest.er1 >conftest.err
20513 rm -f conftest.er1
20514 cat conftest.err >&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } &&
20517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; } &&
20523 { ac_try='test -s conftest.$ac_objext'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_cv_member_struct_tm_tm_zone=yes
20530 else
20531 echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20534 cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h. */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 #include <sys/types.h>
20541 #include <$ac_cv_struct_tm>
20545 main ()
20547 static struct tm ac_aggr;
20548 if (sizeof ac_aggr.tm_zone)
20549 return 0;
20551 return 0;
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20556 (eval $ac_compile) 2>conftest.er1
20557 ac_status=$?
20558 grep -v '^ *+' conftest.er1 >conftest.err
20559 rm -f conftest.er1
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } &&
20563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try='test -s conftest.$ac_objext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_cv_member_struct_tm_tm_zone=yes
20576 else
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20580 ac_cv_member_struct_tm_tm_zone=no
20582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20586 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20587 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20588 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20590 cat >>confdefs.h <<_ACEOF
20591 #define HAVE_STRUCT_TM_TM_ZONE 1
20592 _ACEOF
20597 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20599 cat >>confdefs.h <<\_ACEOF
20600 #define HAVE_TM_ZONE 1
20601 _ACEOF
20603 else
20604 echo "$as_me:$LINENO: checking for tzname" >&5
20605 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20606 if test "${ac_cv_var_tzname+set}" = set; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609 cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h. */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615 #include <time.h>
20616 #ifndef tzname /* For SGI. */
20617 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20618 #endif
20621 main ()
20623 atoi(*tzname);
20625 return 0;
20627 _ACEOF
20628 rm -f conftest.$ac_objext conftest$ac_exeext
20629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20630 (eval $ac_link) 2>conftest.er1
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } &&
20637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639 (eval $ac_try) 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest$ac_exeext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20646 ac_status=$?
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_cv_var_tzname=yes
20650 else
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_cv_var_tzname=no
20656 rm -f conftest.err conftest.$ac_objext \
20657 conftest$ac_exeext conftest.$ac_ext
20659 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20660 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20661 if test $ac_cv_var_tzname = yes; then
20663 cat >>confdefs.h <<\_ACEOF
20664 #define HAVE_TZNAME 1
20665 _ACEOF
20671 if test "$ac_cv_func_gettimeofday" = yes; then
20672 echo "$as_me:$LINENO: checking for struct timezone" >&5
20673 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20674 if test "${emacs_cv_struct_timezone+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 else
20677 cat >conftest.$ac_ext <<_ACEOF
20678 /* confdefs.h. */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 #include <sys/time.h>
20685 main ()
20687 struct timezone tz;
20689 return 0;
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20694 (eval $ac_compile) 2>conftest.er1
20695 ac_status=$?
20696 grep -v '^ *+' conftest.er1 >conftest.err
20697 rm -f conftest.er1
20698 cat conftest.err >&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
20701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20704 ac_status=$?
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try='test -s conftest.$ac_objext'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; }; then
20713 if test "$cross_compiling" = yes; then
20714 emacs_cv_struct_timezone=yes
20715 else
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h. */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20723 #ifdef TIME_WITH_SYS_TIME
20724 #include <sys/time.h>
20725 #include <time.h>
20726 #else
20727 #ifdef HAVE_SYS_TIME_H
20728 #include <sys/time.h>
20729 #else
20730 #include <time.h>
20731 #endif
20732 #endif
20733 main () {
20734 struct timeval time;
20735 struct timezone dummy;
20736 exit (gettimeofday (&time, &dummy));
20738 _ACEOF
20739 rm -f conftest$ac_exeext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20741 (eval $ac_link) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 emacs_cv_struct_timezone=yes
20751 else
20752 echo "$as_me: program exited with status $ac_status" >&5
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20756 ( exit $ac_status )
20757 emacs_cv_struct_timezone=no
20759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 emacs_cv_struct_timezone=no
20767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20769 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20770 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20773 ok_so_far=yes
20774 echo "$as_me:$LINENO: checking for socket" >&5
20775 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20776 if test "${ac_cv_func_socket+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20778 else
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h. */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20785 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20787 #define socket innocuous_socket
20789 /* System header to define __stub macros and hopefully few prototypes,
20790 which can conflict with char socket (); below.
20791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20792 <limits.h> exists even on freestanding compilers. */
20794 #ifdef __STDC__
20795 # include <limits.h>
20796 #else
20797 # include <assert.h>
20798 #endif
20800 #undef socket
20802 /* Override any gcc2 internal prototype to avoid an error. */
20803 #ifdef __cplusplus
20804 extern "C"
20806 #endif
20807 /* We use char because int might match the return type of a gcc2
20808 builtin and then its argument prototype would still apply. */
20809 char socket ();
20810 /* The GNU C library defines this for functions which it implements
20811 to always fail with ENOSYS. Some functions are actually named
20812 something starting with __ and the normal name is an alias. */
20813 #if defined (__stub_socket) || defined (__stub___socket)
20814 choke me
20815 #else
20816 char (*f) () = socket;
20817 #endif
20818 #ifdef __cplusplus
20820 #endif
20823 main ()
20825 return f != socket;
20827 return 0;
20829 _ACEOF
20830 rm -f conftest.$ac_objext conftest$ac_exeext
20831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20832 (eval $ac_link) 2>conftest.er1
20833 ac_status=$?
20834 grep -v '^ *+' conftest.er1 >conftest.err
20835 rm -f conftest.er1
20836 cat conftest.err >&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); } &&
20839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; } &&
20845 { ac_try='test -s conftest$ac_exeext'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 ac_cv_func_socket=yes
20852 else
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 ac_cv_func_socket=no
20858 rm -f conftest.err conftest.$ac_objext \
20859 conftest$ac_exeext conftest.$ac_ext
20861 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20862 echo "${ECHO_T}$ac_cv_func_socket" >&6
20863 if test $ac_cv_func_socket = yes; then
20865 else
20866 ok_so_far=no
20869 if test $ok_so_far = yes; then
20870 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20871 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20872 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20873 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20876 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20877 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20878 else
20879 # Is the header compilable?
20880 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20881 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20882 cat >conftest.$ac_ext <<_ACEOF
20883 /* confdefs.h. */
20884 _ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 $ac_includes_default
20889 #include <netinet/in.h>
20890 _ACEOF
20891 rm -f conftest.$ac_objext
20892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20893 (eval $ac_compile) 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest.$ac_objext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_header_compiler=yes
20913 else
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20917 ac_header_compiler=no
20919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20921 echo "${ECHO_T}$ac_header_compiler" >&6
20923 # Is the header present?
20924 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20925 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <netinet/in.h>
20933 _ACEOF
20934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20936 ac_status=$?
20937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } >/dev/null; then
20942 if test -s conftest.err; then
20943 ac_cpp_err=$ac_c_preproc_warn_flag
20944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20945 else
20946 ac_cpp_err=
20948 else
20949 ac_cpp_err=yes
20951 if test -z "$ac_cpp_err"; then
20952 ac_header_preproc=yes
20953 else
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_header_preproc=no
20959 rm -f conftest.err conftest.$ac_ext
20960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20961 echo "${ECHO_T}$ac_header_preproc" >&6
20963 # So? What about this header?
20964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20965 yes:no: )
20966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20967 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20969 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20970 ac_header_preproc=yes
20972 no:yes:* )
20973 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20974 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20976 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20978 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20979 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20980 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20981 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20982 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20983 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20984 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20986 cat <<\_ASBOX
20987 ## ------------------------------------------ ##
20988 ## Report this to the AC_PACKAGE_NAME lists. ##
20989 ## ------------------------------------------ ##
20990 _ASBOX
20992 sed "s/^/$as_me: WARNING: /" >&2
20994 esac
20995 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20996 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20997 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000 ac_cv_header_netinet_in_h=$ac_header_preproc
21002 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21003 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
21006 if test $ac_cv_header_netinet_in_h = yes; then
21008 else
21009 ok_so_far=no
21014 if test $ok_so_far = yes; then
21015 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21016 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21017 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21018 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21021 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21022 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21023 else
21024 # Is the header compilable?
21025 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21026 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 $ac_includes_default
21034 #include <arpa/inet.h>
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21038 (eval $ac_compile) 2>conftest.er1
21039 ac_status=$?
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
21045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest.$ac_objext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_header_compiler=yes
21058 else
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21062 ac_header_compiler=no
21064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21066 echo "${ECHO_T}$ac_header_compiler" >&6
21068 # Is the header present?
21069 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21070 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h. */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <arpa/inet.h>
21078 _ACEOF
21079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } >/dev/null; then
21087 if test -s conftest.err; then
21088 ac_cpp_err=$ac_c_preproc_warn_flag
21089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21090 else
21091 ac_cpp_err=
21093 else
21094 ac_cpp_err=yes
21096 if test -z "$ac_cpp_err"; then
21097 ac_header_preproc=yes
21098 else
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ac_header_preproc=no
21104 rm -f conftest.err conftest.$ac_ext
21105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21106 echo "${ECHO_T}$ac_header_preproc" >&6
21108 # So? What about this header?
21109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21110 yes:no: )
21111 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21112 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21113 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21114 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21115 ac_header_preproc=yes
21117 no:yes:* )
21118 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21119 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21121 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21123 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21125 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21126 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21127 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21129 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21131 cat <<\_ASBOX
21132 ## ------------------------------------------ ##
21133 ## Report this to the AC_PACKAGE_NAME lists. ##
21134 ## ------------------------------------------ ##
21135 _ASBOX
21137 sed "s/^/$as_me: WARNING: /" >&2
21139 esac
21140 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21141 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
21142 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145 ac_cv_header_arpa_inet_h=$ac_header_preproc
21147 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21148 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
21151 if test $ac_cv_header_arpa_inet_h = yes; then
21153 else
21154 ok_so_far=no
21159 if test $ok_so_far = yes; then
21161 cat >>confdefs.h <<\_ACEOF
21162 #define HAVE_INET_SOCKETS 1
21163 _ACEOF
21168 for ac_header in sys/ioctl.h
21170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21172 echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21179 else
21180 # Is the header compilable?
21181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21183 cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h. */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 $ac_includes_default
21190 #include <$ac_header>
21191 _ACEOF
21192 rm -f conftest.$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
21201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; } &&
21207 { ac_try='test -s conftest.$ac_objext'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; }; then
21213 ac_header_compiler=yes
21214 else
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_header_compiler=no
21220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21222 echo "${ECHO_T}$ac_header_compiler" >&6
21224 # Is the header present?
21225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21227 cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h. */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 #include <$ac_header>
21234 _ACEOF
21235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21237 ac_status=$?
21238 grep -v '^ *+' conftest.er1 >conftest.err
21239 rm -f conftest.er1
21240 cat conftest.err >&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } >/dev/null; then
21243 if test -s conftest.err; then
21244 ac_cpp_err=$ac_c_preproc_warn_flag
21245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21246 else
21247 ac_cpp_err=
21249 else
21250 ac_cpp_err=yes
21252 if test -z "$ac_cpp_err"; then
21253 ac_header_preproc=yes
21254 else
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_header_preproc=no
21260 rm -f conftest.err conftest.$ac_ext
21261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21262 echo "${ECHO_T}$ac_header_preproc" >&6
21264 # So? What about this header?
21265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21266 yes:no: )
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21271 ac_header_preproc=yes
21273 no:yes:* )
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21287 cat <<\_ASBOX
21288 ## ------------------------------------------ ##
21289 ## Report this to the AC_PACKAGE_NAME lists. ##
21290 ## ------------------------------------------ ##
21291 _ASBOX
21293 sed "s/^/$as_me: WARNING: /" >&2
21295 esac
21296 echo "$as_me:$LINENO: checking for $ac_header" >&5
21297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 else
21301 eval "$as_ac_Header=\$ac_header_preproc"
21303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21308 cat >>confdefs.h <<_ACEOF
21309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21310 _ACEOF
21314 done
21317 if test -f /usr/lpp/X11/bin/smt.exp; then
21319 cat >>confdefs.h <<\_ACEOF
21320 #define HAVE_AIX_SMT_EXP 1
21321 _ACEOF
21325 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21326 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
21327 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21328 echo "$as_me:$LINENO: result: yes" >&5
21329 echo "${ECHO_T}yes" >&6
21331 cat >>confdefs.h <<\_ACEOF
21332 #define HAVE_DEV_PTMX 1
21333 _ACEOF
21335 else
21336 echo "$as_me:$LINENO: result: no" >&5
21337 echo "${ECHO_T}no" >&6
21340 echo "$as_me:$LINENO: checking for pid_t" >&5
21341 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21342 if test "${ac_cv_type_pid_t+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345 cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h. */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h. */
21351 $ac_includes_default
21353 main ()
21355 if ((pid_t *) 0)
21356 return 0;
21357 if (sizeof (pid_t))
21358 return 0;
21360 return 0;
21362 _ACEOF
21363 rm -f conftest.$ac_objext
21364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21365 (eval $ac_compile) 2>conftest.er1
21366 ac_status=$?
21367 grep -v '^ *+' conftest.er1 >conftest.err
21368 rm -f conftest.er1
21369 cat conftest.err >&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } &&
21372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21374 (eval $ac_try) 2>&5
21375 ac_status=$?
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; } &&
21378 { ac_try='test -s conftest.$ac_objext'
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; }; then
21384 ac_cv_type_pid_t=yes
21385 else
21386 echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 ac_cv_type_pid_t=no
21391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21393 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21394 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21395 if test $ac_cv_type_pid_t = yes; then
21397 else
21399 cat >>confdefs.h <<_ACEOF
21400 #define pid_t int
21401 _ACEOF
21407 for ac_header in unistd.h vfork.h
21409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21411 echo "$as_me:$LINENO: checking for $ac_header" >&5
21412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21418 else
21419 # Is the header compilable?
21420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21422 cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h. */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 $ac_includes_default
21429 #include <$ac_header>
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21433 (eval $ac_compile) 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
21440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; } &&
21446 { ac_try='test -s conftest.$ac_objext'
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; }; then
21452 ac_header_compiler=yes
21453 else
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_header_compiler=no
21459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21461 echo "${ECHO_T}$ac_header_compiler" >&6
21463 # Is the header present?
21464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h. */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <$ac_header>
21473 _ACEOF
21474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21476 ac_status=$?
21477 grep -v '^ *+' conftest.er1 >conftest.err
21478 rm -f conftest.er1
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } >/dev/null; then
21482 if test -s conftest.err; then
21483 ac_cpp_err=$ac_c_preproc_warn_flag
21484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21485 else
21486 ac_cpp_err=
21488 else
21489 ac_cpp_err=yes
21491 if test -z "$ac_cpp_err"; then
21492 ac_header_preproc=yes
21493 else
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 ac_header_preproc=no
21499 rm -f conftest.err conftest.$ac_ext
21500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21501 echo "${ECHO_T}$ac_header_preproc" >&6
21503 # So? What about this header?
21504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21505 yes:no: )
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21510 ac_header_preproc=yes
21512 no:yes:* )
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21526 cat <<\_ASBOX
21527 ## ------------------------------------------ ##
21528 ## Report this to the AC_PACKAGE_NAME lists. ##
21529 ## ------------------------------------------ ##
21530 _ASBOX
21532 sed "s/^/$as_me: WARNING: /" >&2
21534 esac
21535 echo "$as_me:$LINENO: checking for $ac_header" >&5
21536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540 eval "$as_ac_Header=\$ac_header_preproc"
21542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21547 cat >>confdefs.h <<_ACEOF
21548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21549 _ACEOF
21553 done
21557 for ac_func in fork vfork
21559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21560 echo "$as_me:$LINENO: checking for $ac_func" >&5
21561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21562 if eval "test \"\${$as_ac_var+set}\" = set"; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 else
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h. */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21573 #define $ac_func innocuous_$ac_func
21575 /* System header to define __stub macros and hopefully few prototypes,
21576 which can conflict with char $ac_func (); below.
21577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21578 <limits.h> exists even on freestanding compilers. */
21580 #ifdef __STDC__
21581 # include <limits.h>
21582 #else
21583 # include <assert.h>
21584 #endif
21586 #undef $ac_func
21588 /* Override any gcc2 internal prototype to avoid an error. */
21589 #ifdef __cplusplus
21590 extern "C"
21592 #endif
21593 /* We use char because int might match the return type of a gcc2
21594 builtin and then its argument prototype would still apply. */
21595 char $ac_func ();
21596 /* The GNU C library defines this for functions which it implements
21597 to always fail with ENOSYS. Some functions are actually named
21598 something starting with __ and the normal name is an alias. */
21599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21600 choke me
21601 #else
21602 char (*f) () = $ac_func;
21603 #endif
21604 #ifdef __cplusplus
21606 #endif
21609 main ()
21611 return f != $ac_func;
21613 return 0;
21615 _ACEOF
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618 (eval $ac_link) 2>conftest.er1
21619 ac_status=$?
21620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
21625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; } &&
21631 { ac_try='test -s conftest$ac_exeext'
21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633 (eval $ac_try) 2>&5
21634 ac_status=$?
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); }; }; then
21637 eval "$as_ac_var=yes"
21638 else
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 eval "$as_ac_var=no"
21644 rm -f conftest.err conftest.$ac_objext \
21645 conftest$ac_exeext conftest.$ac_ext
21647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21649 if test `eval echo '${'$as_ac_var'}'` = yes; then
21650 cat >>confdefs.h <<_ACEOF
21651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21652 _ACEOF
21655 done
21657 if test "x$ac_cv_func_fork" = xyes; then
21658 echo "$as_me:$LINENO: checking for working fork" >&5
21659 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21660 if test "${ac_cv_func_fork_works+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663 if test "$cross_compiling" = yes; then
21664 ac_cv_func_fork_works=cross
21665 else
21666 cat >conftest.$ac_ext <<_ACEOF
21667 /* By Ruediger Kuhlmann. */
21668 #include <sys/types.h>
21669 #if HAVE_UNISTD_H
21670 # include <unistd.h>
21671 #endif
21672 /* Some systems only have a dummy stub for fork() */
21673 int main ()
21675 if (fork() < 0)
21676 exit (1);
21677 exit (0);
21679 _ACEOF
21680 rm -f conftest$ac_exeext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682 (eval $ac_link) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_cv_func_fork_works=yes
21692 else
21693 echo "$as_me: program exited with status $ac_status" >&5
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ( exit $ac_status )
21698 ac_cv_func_fork_works=no
21700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21703 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21704 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21706 else
21707 ac_cv_func_fork_works=$ac_cv_func_fork
21709 if test "x$ac_cv_func_fork_works" = xcross; then
21710 case $host in
21711 *-*-amigaos* | *-*-msdosdjgpp*)
21712 # Override, as these systems have only a dummy fork() stub
21713 ac_cv_func_fork_works=no
21716 ac_cv_func_fork_works=yes
21718 esac
21719 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21720 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21722 ac_cv_func_vfork_works=$ac_cv_func_vfork
21723 if test "x$ac_cv_func_vfork" = xyes; then
21724 echo "$as_me:$LINENO: checking for working vfork" >&5
21725 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21726 if test "${ac_cv_func_vfork_works+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 else
21729 if test "$cross_compiling" = yes; then
21730 ac_cv_func_vfork_works=cross
21731 else
21732 cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h. */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 /* Thanks to Paul Eggert for this test. */
21739 #include <stdio.h>
21740 #include <stdlib.h>
21741 #include <sys/types.h>
21742 #include <sys/stat.h>
21743 #include <sys/wait.h>
21744 #if HAVE_UNISTD_H
21745 # include <unistd.h>
21746 #endif
21747 #if HAVE_VFORK_H
21748 # include <vfork.h>
21749 #endif
21750 /* On some sparc systems, changes by the child to local and incoming
21751 argument registers are propagated back to the parent. The compiler
21752 is told about this with #include <vfork.h>, but some compilers
21753 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21754 static variable whose address is put into a register that is
21755 clobbered by the vfork. */
21756 static void
21757 #ifdef __cplusplus
21758 sparc_address_test (int arg)
21759 # else
21760 sparc_address_test (arg) int arg;
21761 #endif
21763 static pid_t child;
21764 if (!child) {
21765 child = vfork ();
21766 if (child < 0) {
21767 perror ("vfork");
21768 _exit(2);
21770 if (!child) {
21771 arg = getpid();
21772 write(-1, "", 0);
21773 _exit (arg);
21779 main ()
21781 pid_t parent = getpid ();
21782 pid_t child;
21784 sparc_address_test (0);
21786 child = vfork ();
21788 if (child == 0) {
21789 /* Here is another test for sparc vfork register problems. This
21790 test uses lots of local variables, at least as many local
21791 variables as main has allocated so far including compiler
21792 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21793 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21794 reuse the register of parent for one of the local variables,
21795 since it will think that parent can't possibly be used any more
21796 in this routine. Assigning to the local variable will thus
21797 munge parent in the parent process. */
21798 pid_t
21799 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21800 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21801 /* Convince the compiler that p..p7 are live; otherwise, it might
21802 use the same hardware register for all 8 local variables. */
21803 if (p != p1 || p != p2 || p != p3 || p != p4
21804 || p != p5 || p != p6 || p != p7)
21805 _exit(1);
21807 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21808 from child file descriptors. If the child closes a descriptor
21809 before it execs or exits, this munges the parent's descriptor
21810 as well. Test for this by closing stdout in the child. */
21811 _exit(close(fileno(stdout)) != 0);
21812 } else {
21813 int status;
21814 struct stat st;
21816 while (wait(&status) != child)
21818 exit(
21819 /* Was there some problem with vforking? */
21820 child < 0
21822 /* Did the child fail? (This shouldn't happen.) */
21823 || status
21825 /* Did the vfork/compiler bug occur? */
21826 || parent != getpid()
21828 /* Did the file descriptor bug occur? */
21829 || fstat(fileno(stdout), &st) != 0
21833 _ACEOF
21834 rm -f conftest$ac_exeext
21835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21836 (eval $ac_link) 2>&5
21837 ac_status=$?
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ac_cv_func_vfork_works=yes
21846 else
21847 echo "$as_me: program exited with status $ac_status" >&5
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 ( exit $ac_status )
21852 ac_cv_func_vfork_works=no
21854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21857 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21858 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21861 if test "x$ac_cv_func_fork_works" = xcross; then
21862 ac_cv_func_vfork_works=$ac_cv_func_vfork
21863 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21864 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21867 if test "x$ac_cv_func_vfork_works" = xyes; then
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_WORKING_VFORK 1
21871 _ACEOF
21873 else
21875 cat >>confdefs.h <<\_ACEOF
21876 #define vfork fork
21877 _ACEOF
21880 if test "x$ac_cv_func_fork_works" = xyes; then
21882 cat >>confdefs.h <<\_ACEOF
21883 #define HAVE_WORKING_FORK 1
21884 _ACEOF
21889 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21890 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21891 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21892 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894 cat >conftest.$ac_ext <<_ACEOF
21895 /* confdefs.h. */
21896 _ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21900 #include <langinfo.h>
21902 main ()
21904 char* cs = nl_langinfo(CODESET);
21906 return 0;
21908 _ACEOF
21909 rm -f conftest.$ac_objext conftest$ac_exeext
21910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21911 (eval $ac_link) 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } &&
21918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920 (eval $ac_try) 2>&5
21921 ac_status=$?
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); }; } &&
21924 { ac_try='test -s conftest$ac_exeext'
21925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21927 ac_status=$?
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; }; then
21930 emacs_cv_langinfo_codeset=yes
21931 else
21932 echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 emacs_cv_langinfo_codeset=no
21937 rm -f conftest.err conftest.$ac_objext \
21938 conftest$ac_exeext conftest.$ac_ext
21941 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21942 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21943 if test $emacs_cv_langinfo_codeset = yes; then
21945 cat >>confdefs.h <<\_ACEOF
21946 #define HAVE_LANGINFO_CODESET 1
21947 _ACEOF
21951 echo "$as_me:$LINENO: checking for size_t" >&5
21952 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21953 if test "${ac_cv_type_size_t+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956 cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h. */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21964 main ()
21966 if ((size_t *) 0)
21967 return 0;
21968 if (sizeof (size_t))
21969 return 0;
21971 return 0;
21973 _ACEOF
21974 rm -f conftest.$ac_objext
21975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21976 (eval $ac_compile) 2>conftest.er1
21977 ac_status=$?
21978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } &&
21983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try='test -s conftest.$ac_objext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_cv_type_size_t=yes
21996 else
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22000 ac_cv_type_size_t=no
22002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22004 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22005 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22006 if test $ac_cv_type_size_t = yes; then
22008 cat >>confdefs.h <<_ACEOF
22009 #define HAVE_SIZE_T 1
22010 _ACEOF
22016 echo "$as_me:$LINENO: checking for mbstate_t" >&5
22017 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
22018 if test "${ac_cv_type_mbstate_t+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h. */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 $ac_includes_default
22028 # include <wchar.h>
22030 main ()
22032 mbstate_t x; return sizeof x;
22034 return 0;
22036 _ACEOF
22037 rm -f conftest.$ac_objext
22038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22039 (eval $ac_compile) 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } &&
22046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; } &&
22052 { ac_try='test -s conftest.$ac_objext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 ac_cv_type_mbstate_t=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_cv_type_mbstate_t=no
22065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22067 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22068 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
22069 if test $ac_cv_type_mbstate_t = yes; then
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_MBSTATE_T 1
22073 _ACEOF
22075 else
22077 cat >>confdefs.h <<\_ACEOF
22078 #define mbstate_t int
22079 _ACEOF
22083 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22084 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
22085 if test "${emacs_cv_c_restrict+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 void fred (int *restrict x);
22096 main ()
22100 return 0;
22102 _ACEOF
22103 rm -f conftest.$ac_objext
22104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22105 (eval $ac_compile) 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } &&
22112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; } &&
22118 { ac_try='test -s conftest.$ac_objext'
22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22120 (eval $ac_try) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
22124 emacs_cv_c_restrict=yes
22125 else
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 cat >conftest.$ac_ext <<_ACEOF
22130 /* confdefs.h. */
22131 _ACEOF
22132 cat confdefs.h >>conftest.$ac_ext
22133 cat >>conftest.$ac_ext <<_ACEOF
22134 /* end confdefs.h. */
22135 void fred (int *__restrict x);
22137 main ()
22141 return 0;
22143 _ACEOF
22144 rm -f conftest.$ac_objext
22145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22146 (eval $ac_compile) 2>conftest.er1
22147 ac_status=$?
22148 grep -v '^ *+' conftest.er1 >conftest.err
22149 rm -f conftest.er1
22150 cat conftest.err >&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } &&
22153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; } &&
22159 { ac_try='test -s conftest.$ac_objext'
22160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161 (eval $ac_try) 2>&5
22162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; }; then
22165 emacs_cv_c_restrict=__restrict
22166 else
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22170 emacs_cv_c_restrict=no
22172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22176 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22177 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
22178 case "$emacs_cv_c_restrict" in
22179 yes) emacs_restrict=restrict;;
22180 no) emacs_restrict="";;
22181 *) emacs_restrict="$emacs_cv_c_restrict";;
22182 esac
22183 if test "$emacs_restrict" != __restrict; then
22185 cat >>confdefs.h <<_ACEOF
22186 #define __restrict $emacs_restrict
22187 _ACEOF
22191 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22192 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
22193 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196 cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h. */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 void fred (int x[__restrict]);
22204 main ()
22208 return 0;
22210 _ACEOF
22211 rm -f conftest.$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>conftest.er1
22214 ac_status=$?
22215 grep -v '^ *+' conftest.er1 >conftest.err
22216 rm -f conftest.er1
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try='test -s conftest.$ac_objext'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22229 ac_status=$?
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 emacs_cv_c_restrict_arr=yes
22233 else
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 emacs_cv_c_restrict_arr=no
22239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22241 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22242 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
22243 if test "$emacs_cv_c_restrict_arr" = yes; then
22245 cat >>confdefs.h <<\_ACEOF
22246 #define __restrict_arr __restrict
22247 _ACEOF
22253 # Set up the CFLAGS for real compilation, so we can substitute it.
22254 CFLAGS="$REAL_CFLAGS"
22255 CPPFLAGS="$REAL_CPPFLAGS"
22257 #### Find out which version of Emacs this is.
22258 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22259 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22260 if test x"${version}" = x; then
22261 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22262 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22263 { (exit 1); exit 1; }; }
22266 ### Specify what sort of things we'll be editing into Makefile and config.h.
22267 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22303 cat >>confdefs.h <<_ACEOF
22304 #define EMACS_CONFIGURATION "${canonical}"
22305 _ACEOF
22308 cat >>confdefs.h <<_ACEOF
22309 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22310 _ACEOF
22313 cat >>confdefs.h <<_ACEOF
22314 #define config_machfile "${machfile}"
22315 _ACEOF
22318 cat >>confdefs.h <<_ACEOF
22319 #define config_opsysfile "${opsysfile}"
22320 _ACEOF
22323 cat >>confdefs.h <<_ACEOF
22324 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22325 _ACEOF
22328 cat >>confdefs.h <<_ACEOF
22329 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22330 _ACEOF
22333 cat >>confdefs.h <<_ACEOF
22334 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22335 _ACEOF
22338 cat >>confdefs.h <<_ACEOF
22339 #define UNEXEC_SRC ${UNEXEC_SRC}
22340 _ACEOF
22343 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22345 cat >>confdefs.h <<\_ACEOF
22346 #define HAVE_X_WINDOWS 1
22347 _ACEOF
22350 if test "${USE_X_TOOLKIT}" != "none" ; then
22352 cat >>confdefs.h <<\_ACEOF
22353 #define USE_X_TOOLKIT 1
22354 _ACEOF
22357 if test "${HAVE_X11}" = "yes" ; then
22359 cat >>confdefs.h <<\_ACEOF
22360 #define HAVE_X11 1
22361 _ACEOF
22364 if test "${HAVE_XFREE386}" = "yes" ; then
22366 cat >>confdefs.h <<\_ACEOF
22367 #define HAVE_XFREE386 1
22368 _ACEOF
22371 if test "${HAVE_MENUS}" = "yes" ; then
22373 cat >>confdefs.h <<\_ACEOF
22374 #define HAVE_MENUS 1
22375 _ACEOF
22378 if test "${GNU_MALLOC}" = "yes" ; then
22380 cat >>confdefs.h <<\_ACEOF
22381 #define GNU_MALLOC 1
22382 _ACEOF
22385 if test "${REL_ALLOC}" = "yes" ; then
22387 cat >>confdefs.h <<\_ACEOF
22388 #define REL_ALLOC 1
22389 _ACEOF
22397 #### Report on what we decided to do.
22398 #### Report GTK as a toolkit, even if it doesn't use Xt.
22399 #### It makes printing result more understandable as using GTK sets
22400 #### toolkit_scroll_bars to yes by default.
22401 if test "${HAVE_GTK}" = "yes"; then
22402 USE_X_TOOLKIT=GTK
22405 echo "
22406 Configured for \`${canonical}'.
22408 Where should the build process find the source code? ${srcdir}
22409 What operating system and machine description files should Emacs use?
22410 \`${opsysfile}' and \`${machfile}'
22411 What compiler should emacs be built with? ${CC} ${CFLAGS}
22412 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22413 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22414 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22415 What window system should Emacs use? ${window_system}
22416 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22418 if test -n "${x_includes}"; then
22419 echo " Where do we find X Windows header files? ${x_includes}"
22420 else
22421 echo " Where do we find X Windows header files? Standard dirs"
22423 if test -n "${x_libraries}"; then
22424 echo " Where do we find X Windows libraries? ${x_libraries}"
22425 else
22426 echo " Where do we find X Windows libraries? Standard dirs"
22429 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22430 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22431 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22432 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22433 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22434 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22435 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22436 echo
22438 if test $USE_XASSERTS = yes; then
22439 echo " Compiling with asserts turned on."
22440 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22441 echo
22446 # Remove any trailing slashes in these variables.
22447 test "${prefix}" != NONE &&
22448 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22449 test "${exec_prefix}" != NONE &&
22450 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22452 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22453 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22454 ## from Makefile.c can correctly provide the arg `-traditional' to the
22455 ## C preprocessor.
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h. */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 yes..yes
22464 _ACEOF
22465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22466 $EGREP "yes..yes" >/dev/null 2>&1; then
22467 CPP_NEED_TRADITIONAL=no
22468 else
22469 CPP_NEED_TRADITIONAL=yes
22471 rm -f conftest*
22474 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"
22475 ac_config_commands="$ac_config_commands default"
22476 cat >confcache <<\_ACEOF
22477 # This file is a shell script that caches the results of configure
22478 # tests run on this system so they can be shared between configure
22479 # scripts and configure runs, see configure's option --config-cache.
22480 # It is not useful on other systems. If it contains results you don't
22481 # want to keep, you may remove or edit it.
22483 # config.status only pays attention to the cache file if you give it
22484 # the --recheck option to rerun configure.
22486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22488 # following values.
22490 _ACEOF
22492 # The following way of writing the cache mishandles newlines in values,
22493 # but we know of no workaround that is simple, portable, and efficient.
22494 # So, don't put newlines in cache variables' values.
22495 # Ultrix sh set writes to stderr and can't be redirected directly,
22496 # and sets the high bit in the cache file unless we assign to the vars.
22498 (set) 2>&1 |
22499 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22500 *ac_space=\ *)
22501 # `set' does not quote correctly, so add quotes (double-quote
22502 # substitution turns \\\\ into \\, and sed turns \\ into \).
22503 sed -n \
22504 "s/'/'\\\\''/g;
22505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22508 # `set' quotes correctly as required by POSIX, so do not add quotes.
22509 sed -n \
22510 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22512 esac;
22514 sed '
22515 t clear
22516 : clear
22517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22518 t end
22519 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22520 : end' >>confcache
22521 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22522 if test -w $cache_file; then
22523 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22524 cat confcache >$cache_file
22525 else
22526 echo "not updating unwritable cache $cache_file"
22529 rm -f confcache
22531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22532 # Let make expand exec_prefix.
22533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22537 # trailing colons and then remove the whole line if VPATH becomes empty
22538 # (actually we leave an empty line to preserve line numbers).
22539 if test "x$srcdir" = x.; then
22540 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22541 s/:*\$(srcdir):*/:/;
22542 s/:*\${srcdir}:*/:/;
22543 s/:*@srcdir@:*/:/;
22544 s/^\([^=]*=[ ]*\):*/\1/;
22545 s/:*$//;
22546 s/^[^=]*=[ ]*$//;
22550 DEFS=-DHAVE_CONFIG_H
22552 ac_libobjs=
22553 ac_ltlibobjs=
22554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22555 # 1. Remove the extension, and $U if already installed.
22556 ac_i=`echo "$ac_i" |
22557 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22558 # 2. Add them.
22559 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22560 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22561 done
22562 LIBOBJS=$ac_libobjs
22564 LTLIBOBJS=$ac_ltlibobjs
22568 : ${CONFIG_STATUS=./config.status}
22569 ac_clean_files_save=$ac_clean_files
22570 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22571 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22572 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22573 cat >$CONFIG_STATUS <<_ACEOF
22574 #! $SHELL
22575 # Generated by $as_me.
22576 # Run this file to recreate the current configuration.
22577 # Compiler output produced by configure, useful for debugging
22578 # configure, is in config.log if it exists.
22580 debug=false
22581 ac_cs_recheck=false
22582 ac_cs_silent=false
22583 SHELL=\${CONFIG_SHELL-$SHELL}
22584 _ACEOF
22586 cat >>$CONFIG_STATUS <<\_ACEOF
22587 ## --------------------- ##
22588 ## M4sh Initialization. ##
22589 ## --------------------- ##
22591 # Be Bourne compatible
22592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22593 emulate sh
22594 NULLCMD=:
22595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22596 # is contrary to our usage. Disable this feature.
22597 alias -g '${1+"$@"}'='"$@"'
22598 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22599 set -o posix
22601 DUALCASE=1; export DUALCASE # for MKS sh
22603 # Support unset when possible.
22604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22605 as_unset=unset
22606 else
22607 as_unset=false
22611 # Work around bugs in pre-3.0 UWIN ksh.
22612 $as_unset ENV MAIL MAILPATH
22613 PS1='$ '
22614 PS2='> '
22615 PS4='+ '
22617 # NLS nuisances.
22618 for as_var in \
22619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22621 LC_TELEPHONE LC_TIME
22623 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22624 eval $as_var=C; export $as_var
22625 else
22626 $as_unset $as_var
22628 done
22630 # Required to use basename.
22631 if expr a : '\(a\)' >/dev/null 2>&1; then
22632 as_expr=expr
22633 else
22634 as_expr=false
22637 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22638 as_basename=basename
22639 else
22640 as_basename=false
22644 # Name of the executable.
22645 as_me=`$as_basename "$0" ||
22646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22647 X"$0" : 'X\(//\)$' \| \
22648 X"$0" : 'X\(/\)$' \| \
22649 . : '\(.\)' 2>/dev/null ||
22650 echo X/"$0" |
22651 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22652 /^X\/\(\/\/\)$/{ s//\1/; q; }
22653 /^X\/\(\/\).*/{ s//\1/; q; }
22654 s/.*/./; q'`
22657 # PATH needs CR, and LINENO needs CR and PATH.
22658 # Avoid depending upon Character Ranges.
22659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22662 as_cr_digits='0123456789'
22663 as_cr_alnum=$as_cr_Letters$as_cr_digits
22665 # The user is always right.
22666 if test "${PATH_SEPARATOR+set}" != set; then
22667 echo "#! /bin/sh" >conf$$.sh
22668 echo "exit 0" >>conf$$.sh
22669 chmod +x conf$$.sh
22670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22671 PATH_SEPARATOR=';'
22672 else
22673 PATH_SEPARATOR=:
22675 rm -f conf$$.sh
22679 as_lineno_1=$LINENO
22680 as_lineno_2=$LINENO
22681 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22682 test "x$as_lineno_1" != "x$as_lineno_2" &&
22683 test "x$as_lineno_3" = "x$as_lineno_2" || {
22684 # Find who we are. Look in the path if we contain no path at all
22685 # relative or not.
22686 case $0 in
22687 *[\\/]* ) as_myself=$0 ;;
22688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22689 for as_dir in $PATH
22691 IFS=$as_save_IFS
22692 test -z "$as_dir" && as_dir=.
22693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22694 done
22697 esac
22698 # We did not find ourselves, most probably we were run as `sh COMMAND'
22699 # in which case we are not to be found in the path.
22700 if test "x$as_myself" = x; then
22701 as_myself=$0
22703 if test ! -f "$as_myself"; then
22704 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22705 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22706 { (exit 1); exit 1; }; }
22708 case $CONFIG_SHELL in
22710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22711 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22713 IFS=$as_save_IFS
22714 test -z "$as_dir" && as_dir=.
22715 for as_base in sh bash ksh sh5; do
22716 case $as_dir in
22718 if ("$as_dir/$as_base" -c '
22719 as_lineno_1=$LINENO
22720 as_lineno_2=$LINENO
22721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22722 test "x$as_lineno_1" != "x$as_lineno_2" &&
22723 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22724 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22725 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22726 CONFIG_SHELL=$as_dir/$as_base
22727 export CONFIG_SHELL
22728 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22729 fi;;
22730 esac
22731 done
22732 done
22734 esac
22736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22737 # uniformly replaced by the line number. The first 'sed' inserts a
22738 # line-number line before each line; the second 'sed' does the real
22739 # work. The second script uses 'N' to pair each line-number line
22740 # with the numbered line, and appends trailing '-' during
22741 # substitution so that $LINENO is not a special case at line end.
22742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22743 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22744 sed '=' <$as_myself |
22745 sed '
22747 s,$,-,
22748 : loop
22749 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22750 t loop
22751 s,-$,,
22752 s,^['$as_cr_digits']*\n,,
22753 ' >$as_me.lineno &&
22754 chmod +x $as_me.lineno ||
22755 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22756 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22757 { (exit 1); exit 1; }; }
22759 # Don't try to exec as it changes $[0], causing all sort of problems
22760 # (the dirname of $[0] is not the place where we might find the
22761 # original and so on. Autoconf is especially sensible to this).
22762 . ./$as_me.lineno
22763 # Exit status is that of the last command.
22764 exit
22768 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22769 *c*,-n*) ECHO_N= ECHO_C='
22770 ' ECHO_T=' ' ;;
22771 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22772 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22773 esac
22775 if expr a : '\(a\)' >/dev/null 2>&1; then
22776 as_expr=expr
22777 else
22778 as_expr=false
22781 rm -f conf$$ conf$$.exe conf$$.file
22782 echo >conf$$.file
22783 if ln -s conf$$.file conf$$ 2>/dev/null; then
22784 # We could just check for DJGPP; but this test a) works b) is more generic
22785 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22786 if test -f conf$$.exe; then
22787 # Don't use ln at all; we don't have any links
22788 as_ln_s='cp -p'
22789 else
22790 as_ln_s='ln -s'
22792 elif ln conf$$.file conf$$ 2>/dev/null; then
22793 as_ln_s=ln
22794 else
22795 as_ln_s='cp -p'
22797 rm -f conf$$ conf$$.exe conf$$.file
22799 if mkdir -p . 2>/dev/null; then
22800 as_mkdir_p=:
22801 else
22802 test -d ./-p && rmdir ./-p
22803 as_mkdir_p=false
22806 as_executable_p="test -f"
22808 # Sed expression to map a string onto a valid CPP name.
22809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22811 # Sed expression to map a string onto a valid variable name.
22812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22815 # IFS
22816 # We need space, tab and new line, in precisely that order.
22817 as_nl='
22819 IFS=" $as_nl"
22821 # CDPATH.
22822 $as_unset CDPATH
22824 exec 6>&1
22826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22827 # report actual input values of CONFIG_FILES etc. instead of their
22828 # values after options handling. Logging --version etc. is OK.
22829 exec 5>>config.log
22831 echo
22832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22833 ## Running $as_me. ##
22834 _ASBOX
22835 } >&5
22836 cat >&5 <<_CSEOF
22838 This file was extended by $as_me, which was
22839 generated by GNU Autoconf 2.59. Invocation command line was
22841 CONFIG_FILES = $CONFIG_FILES
22842 CONFIG_HEADERS = $CONFIG_HEADERS
22843 CONFIG_LINKS = $CONFIG_LINKS
22844 CONFIG_COMMANDS = $CONFIG_COMMANDS
22845 $ $0 $@
22847 _CSEOF
22848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22849 echo >&5
22850 _ACEOF
22852 # Files that config.status was made for.
22853 if test -n "$ac_config_files"; then
22854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22857 if test -n "$ac_config_headers"; then
22858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22861 if test -n "$ac_config_links"; then
22862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22865 if test -n "$ac_config_commands"; then
22866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22869 cat >>$CONFIG_STATUS <<\_ACEOF
22871 ac_cs_usage="\
22872 \`$as_me' instantiates files from templates according to the
22873 current configuration.
22875 Usage: $0 [OPTIONS] [FILE]...
22877 -h, --help print this help, then exit
22878 -V, --version print version number, then exit
22879 -q, --quiet do not print progress messages
22880 -d, --debug don't remove temporary files
22881 --recheck update $as_me by reconfiguring in the same conditions
22882 --file=FILE[:TEMPLATE]
22883 instantiate the configuration file FILE
22884 --header=FILE[:TEMPLATE]
22885 instantiate the configuration header FILE
22887 Configuration files:
22888 $config_files
22890 Configuration headers:
22891 $config_headers
22893 Configuration commands:
22894 $config_commands
22896 Report bugs to <bug-autoconf@gnu.org>."
22897 _ACEOF
22899 cat >>$CONFIG_STATUS <<_ACEOF
22900 ac_cs_version="\\
22901 config.status
22902 configured by $0, generated by GNU Autoconf 2.59,
22903 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22905 Copyright (C) 2003 Free Software Foundation, Inc.
22906 This config.status script is free software; the Free Software Foundation
22907 gives unlimited permission to copy, distribute and modify it."
22908 srcdir=$srcdir
22909 INSTALL="$INSTALL"
22910 _ACEOF
22912 cat >>$CONFIG_STATUS <<\_ACEOF
22913 # If no file are specified by the user, then we need to provide default
22914 # value. By we need to know if files were specified by the user.
22915 ac_need_defaults=:
22916 while test $# != 0
22918 case $1 in
22919 --*=*)
22920 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22921 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22922 ac_shift=:
22925 ac_option=$1
22926 ac_optarg=$2
22927 ac_shift=shift
22929 *) # This is not an option, so the user has probably given explicit
22930 # arguments.
22931 ac_option=$1
22932 ac_need_defaults=false;;
22933 esac
22935 case $ac_option in
22936 # Handling of the options.
22937 _ACEOF
22938 cat >>$CONFIG_STATUS <<\_ACEOF
22939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22940 ac_cs_recheck=: ;;
22941 --version | --vers* | -V )
22942 echo "$ac_cs_version"; exit 0 ;;
22943 --he | --h)
22944 # Conflict between --help and --header
22945 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22946 Try \`$0 --help' for more information." >&5
22947 echo "$as_me: error: ambiguous option: $1
22948 Try \`$0 --help' for more information." >&2;}
22949 { (exit 1); exit 1; }; };;
22950 --help | --hel | -h )
22951 echo "$ac_cs_usage"; exit 0 ;;
22952 --debug | --d* | -d )
22953 debug=: ;;
22954 --file | --fil | --fi | --f )
22955 $ac_shift
22956 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22957 ac_need_defaults=false;;
22958 --header | --heade | --head | --hea )
22959 $ac_shift
22960 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22961 ac_need_defaults=false;;
22962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22964 ac_cs_silent=: ;;
22966 # This is an error.
22967 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22968 Try \`$0 --help' for more information." >&5
22969 echo "$as_me: error: unrecognized option: $1
22970 Try \`$0 --help' for more information." >&2;}
22971 { (exit 1); exit 1; }; } ;;
22973 *) ac_config_targets="$ac_config_targets $1" ;;
22975 esac
22976 shift
22977 done
22979 ac_configure_extra_args=
22981 if $ac_cs_silent; then
22982 exec 6>/dev/null
22983 ac_configure_extra_args="$ac_configure_extra_args --silent"
22986 _ACEOF
22987 cat >>$CONFIG_STATUS <<_ACEOF
22988 if \$ac_cs_recheck; then
22989 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22990 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22993 _ACEOF
22995 cat >>$CONFIG_STATUS <<_ACEOF
22997 # INIT-COMMANDS section.
23000 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23002 _ACEOF
23006 cat >>$CONFIG_STATUS <<\_ACEOF
23007 for ac_config_target in $ac_config_targets
23009 case "$ac_config_target" in
23010 # Handling of arguments.
23011 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23012 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23013 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23014 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23015 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23016 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23017 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23018 "lispref/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23019 "lispintro/Makefile" ) CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23020 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23021 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23022 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23023 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23024 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23025 { (exit 1); exit 1; }; };;
23026 esac
23027 done
23029 # If the user did not use the arguments to specify the items to instantiate,
23030 # then the envvar interface is used. Set only those that are not.
23031 # We use the long form for the default assignment because of an extremely
23032 # bizarre bug on SunOS 4.1.3.
23033 if $ac_need_defaults; then
23034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23036 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23039 # Have a temporary directory for convenience. Make it in the build tree
23040 # simply because there is no reason to put it here, and in addition,
23041 # creating and moving files from /tmp can sometimes cause problems.
23042 # Create a temporary directory, and hook for its removal unless debugging.
23043 $debug ||
23045 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23046 trap '{ (exit 1); exit 1; }' 1 2 13 15
23049 # Create a (secure) tmp directory for tmp files.
23052 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23053 test -n "$tmp" && test -d "$tmp"
23054 } ||
23056 tmp=./confstat$$-$RANDOM
23057 (umask 077 && mkdir $tmp)
23058 } ||
23060 echo "$me: cannot create a temporary directory in ." >&2
23061 { (exit 1); exit 1; }
23064 _ACEOF
23066 cat >>$CONFIG_STATUS <<_ACEOF
23069 # CONFIG_FILES section.
23072 # No need to generate the scripts if there are no CONFIG_FILES.
23073 # This happens for instance when ./config.status config.h
23074 if test -n "\$CONFIG_FILES"; then
23075 # Protect against being on the right side of a sed subst in config.status.
23076 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23077 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23078 s,@SHELL@,$SHELL,;t t
23079 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23080 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23081 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23082 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23083 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23084 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23085 s,@exec_prefix@,$exec_prefix,;t t
23086 s,@prefix@,$prefix,;t t
23087 s,@program_transform_name@,$program_transform_name,;t t
23088 s,@bindir@,$bindir,;t t
23089 s,@sbindir@,$sbindir,;t t
23090 s,@libexecdir@,$libexecdir,;t t
23091 s,@datadir@,$datadir,;t t
23092 s,@sysconfdir@,$sysconfdir,;t t
23093 s,@sharedstatedir@,$sharedstatedir,;t t
23094 s,@localstatedir@,$localstatedir,;t t
23095 s,@libdir@,$libdir,;t t
23096 s,@includedir@,$includedir,;t t
23097 s,@oldincludedir@,$oldincludedir,;t t
23098 s,@infodir@,$infodir,;t t
23099 s,@mandir@,$mandir,;t t
23100 s,@build_alias@,$build_alias,;t t
23101 s,@host_alias@,$host_alias,;t t
23102 s,@target_alias@,$target_alias,;t t
23103 s,@DEFS@,$DEFS,;t t
23104 s,@ECHO_C@,$ECHO_C,;t t
23105 s,@ECHO_N@,$ECHO_N,;t t
23106 s,@ECHO_T@,$ECHO_T,;t t
23107 s,@LIBS@,$LIBS,;t t
23108 s,@MAINT@,$MAINT,;t t
23109 s,@build@,$build,;t t
23110 s,@build_cpu@,$build_cpu,;t t
23111 s,@build_vendor@,$build_vendor,;t t
23112 s,@build_os@,$build_os,;t t
23113 s,@host@,$host,;t t
23114 s,@host_cpu@,$host_cpu,;t t
23115 s,@host_vendor@,$host_vendor,;t t
23116 s,@host_os@,$host_os,;t t
23117 s,@CC@,$CC,;t t
23118 s,@CFLAGS@,$CFLAGS,;t t
23119 s,@LDFLAGS@,$LDFLAGS,;t t
23120 s,@CPPFLAGS@,$CPPFLAGS,;t t
23121 s,@ac_ct_CC@,$ac_ct_CC,;t t
23122 s,@EXEEXT@,$EXEEXT,;t t
23123 s,@OBJEXT@,$OBJEXT,;t t
23124 s,@LN_S@,$LN_S,;t t
23125 s,@CPP@,$CPP,;t t
23126 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23127 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23128 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23129 s,@RANLIB@,$RANLIB,;t t
23130 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23131 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
23132 s,@GZIP_PROG@,$GZIP_PROG,;t t
23133 s,@EGREP@,$EGREP,;t t
23134 s,@LIBSOUND@,$LIBSOUND,;t t
23135 s,@SET_MAKE@,$SET_MAKE,;t t
23136 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23137 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
23138 s,@GTK_LIBS@,$GTK_LIBS,;t t
23139 s,@ALLOCA@,$ALLOCA,;t t
23140 s,@liblockfile@,$liblockfile,;t t
23141 s,@LIBOBJS@,$LIBOBJS,;t t
23142 s,@NEED_SETGID@,$NEED_SETGID,;t t
23143 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
23144 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
23145 s,@GETOPT_H@,$GETOPT_H,;t t
23146 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
23147 s,@version@,$version,;t t
23148 s,@configuration@,$configuration,;t t
23149 s,@canonical@,$canonical,;t t
23150 s,@srcdir@,$srcdir,;t t
23151 s,@lispdir@,$lispdir,;t t
23152 s,@locallisppath@,$locallisppath,;t t
23153 s,@lisppath@,$lisppath,;t t
23154 s,@x_default_search_path@,$x_default_search_path,;t t
23155 s,@etcdir@,$etcdir,;t t
23156 s,@archlibdir@,$archlibdir,;t t
23157 s,@docdir@,$docdir,;t t
23158 s,@bitmapdir@,$bitmapdir,;t t
23159 s,@gamedir@,$gamedir,;t t
23160 s,@gameuser@,$gameuser,;t t
23161 s,@c_switch_system@,$c_switch_system,;t t
23162 s,@c_switch_machine@,$c_switch_machine,;t t
23163 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
23164 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
23165 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
23166 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
23167 s,@machfile@,$machfile,;t t
23168 s,@opsysfile@,$opsysfile,;t t
23169 s,@carbon_appdir@,$carbon_appdir,;t t
23170 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23171 CEOF
23173 _ACEOF
23175 cat >>$CONFIG_STATUS <<\_ACEOF
23176 # Split the substitutions into bite-sized pieces for seds with
23177 # small command number limits, like on Digital OSF/1 and HP-UX.
23178 ac_max_sed_lines=48
23179 ac_sed_frag=1 # Number of current file.
23180 ac_beg=1 # First line for current file.
23181 ac_end=$ac_max_sed_lines # Line after last line for current file.
23182 ac_more_lines=:
23183 ac_sed_cmds=
23184 while $ac_more_lines; do
23185 if test $ac_beg -gt 1; then
23186 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23187 else
23188 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23190 if test ! -s $tmp/subs.frag; then
23191 ac_more_lines=false
23192 else
23193 # The purpose of the label and of the branching condition is to
23194 # speed up the sed processing (if there are no `@' at all, there
23195 # is no need to browse any of the substitutions).
23196 # These are the two extra sed commands mentioned above.
23197 (echo ':t
23198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23199 if test -z "$ac_sed_cmds"; then
23200 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23201 else
23202 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23204 ac_sed_frag=`expr $ac_sed_frag + 1`
23205 ac_beg=$ac_end
23206 ac_end=`expr $ac_end + $ac_max_sed_lines`
23208 done
23209 if test -z "$ac_sed_cmds"; then
23210 ac_sed_cmds=cat
23212 fi # test -n "$CONFIG_FILES"
23214 _ACEOF
23215 cat >>$CONFIG_STATUS <<\_ACEOF
23216 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23218 case $ac_file in
23219 - | *:- | *:-:* ) # input from stdin
23220 cat >$tmp/stdin
23221 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23223 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23225 * ) ac_file_in=$ac_file.in ;;
23226 esac
23228 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23229 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23231 X"$ac_file" : 'X\(//\)[^/]' \| \
23232 X"$ac_file" : 'X\(//\)$' \| \
23233 X"$ac_file" : 'X\(/\)' \| \
23234 . : '\(.\)' 2>/dev/null ||
23235 echo X"$ac_file" |
23236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23238 /^X\(\/\/\)$/{ s//\1/; q; }
23239 /^X\(\/\).*/{ s//\1/; q; }
23240 s/.*/./; q'`
23241 { if $as_mkdir_p; then
23242 mkdir -p "$ac_dir"
23243 else
23244 as_dir="$ac_dir"
23245 as_dirs=
23246 while test ! -d "$as_dir"; do
23247 as_dirs="$as_dir $as_dirs"
23248 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23250 X"$as_dir" : 'X\(//\)[^/]' \| \
23251 X"$as_dir" : 'X\(//\)$' \| \
23252 X"$as_dir" : 'X\(/\)' \| \
23253 . : '\(.\)' 2>/dev/null ||
23254 echo X"$as_dir" |
23255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23257 /^X\(\/\/\)$/{ s//\1/; q; }
23258 /^X\(\/\).*/{ s//\1/; q; }
23259 s/.*/./; q'`
23260 done
23261 test ! -n "$as_dirs" || mkdir $as_dirs
23262 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23264 { (exit 1); exit 1; }; }; }
23266 ac_builddir=.
23268 if test "$ac_dir" != .; then
23269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23270 # A "../" for each directory in $ac_dir_suffix.
23271 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23272 else
23273 ac_dir_suffix= ac_top_builddir=
23276 case $srcdir in
23277 .) # No --srcdir option. We are building in place.
23278 ac_srcdir=.
23279 if test -z "$ac_top_builddir"; then
23280 ac_top_srcdir=.
23281 else
23282 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23283 fi ;;
23284 [\\/]* | ?:[\\/]* ) # Absolute path.
23285 ac_srcdir=$srcdir$ac_dir_suffix;
23286 ac_top_srcdir=$srcdir ;;
23287 *) # Relative path.
23288 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23289 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23290 esac
23292 # Do not use `cd foo && pwd` to compute absolute paths, because
23293 # the directories may not exist.
23294 case `pwd` in
23295 .) ac_abs_builddir="$ac_dir";;
23297 case "$ac_dir" in
23298 .) ac_abs_builddir=`pwd`;;
23299 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23300 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23301 esac;;
23302 esac
23303 case $ac_abs_builddir in
23304 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23306 case ${ac_top_builddir}. in
23307 .) ac_abs_top_builddir=$ac_abs_builddir;;
23308 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23309 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23310 esac;;
23311 esac
23312 case $ac_abs_builddir in
23313 .) ac_abs_srcdir=$ac_srcdir;;
23315 case $ac_srcdir in
23316 .) ac_abs_srcdir=$ac_abs_builddir;;
23317 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23318 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23319 esac;;
23320 esac
23321 case $ac_abs_builddir in
23322 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23324 case $ac_top_srcdir in
23325 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23326 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23327 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23328 esac;;
23329 esac
23332 case $INSTALL in
23333 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23334 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23335 esac
23337 # Let's still pretend it is `configure' which instantiates (i.e., don't
23338 # use $as_me), people would be surprised to read:
23339 # /* config.h. Generated by config.status. */
23340 if test x"$ac_file" = x-; then
23341 configure_input=
23342 else
23343 configure_input="$ac_file. "
23345 configure_input=$configure_input"Generated from `echo $ac_file_in |
23346 sed 's,.*/,,'` by configure."
23348 # First look for the input files in the build tree, otherwise in the
23349 # src tree.
23350 ac_file_inputs=`IFS=:
23351 for f in $ac_file_in; do
23352 case $f in
23353 -) echo $tmp/stdin ;;
23354 [\\/$]*)
23355 # Absolute (can't be DOS-style, as IFS=:)
23356 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23357 echo "$as_me: error: cannot find input file: $f" >&2;}
23358 { (exit 1); exit 1; }; }
23359 echo "$f";;
23360 *) # Relative
23361 if test -f "$f"; then
23362 # Build tree
23363 echo "$f"
23364 elif test -f "$srcdir/$f"; then
23365 # Source tree
23366 echo "$srcdir/$f"
23367 else
23368 # /dev/null tree
23369 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23370 echo "$as_me: error: cannot find input file: $f" >&2;}
23371 { (exit 1); exit 1; }; }
23372 fi;;
23373 esac
23374 done` || { (exit 1); exit 1; }
23376 if test x"$ac_file" != x-; then
23377 { echo "$as_me:$LINENO: creating $ac_file" >&5
23378 echo "$as_me: creating $ac_file" >&6;}
23379 rm -f "$ac_file"
23381 _ACEOF
23382 cat >>$CONFIG_STATUS <<_ACEOF
23383 sed "$ac_vpsub
23384 $extrasub
23385 _ACEOF
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23388 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23389 s,@configure_input@,$configure_input,;t t
23390 s,@srcdir@,$ac_srcdir,;t t
23391 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23392 s,@top_srcdir@,$ac_top_srcdir,;t t
23393 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23394 s,@builddir@,$ac_builddir,;t t
23395 s,@abs_builddir@,$ac_abs_builddir,;t t
23396 s,@top_builddir@,$ac_top_builddir,;t t
23397 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23398 s,@INSTALL@,$ac_INSTALL,;t t
23399 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23400 rm -f $tmp/stdin
23401 if test x"$ac_file" != x-; then
23402 mv $tmp/out $ac_file
23403 else
23404 cat $tmp/out
23405 rm -f $tmp/out
23408 done
23409 _ACEOF
23410 cat >>$CONFIG_STATUS <<\_ACEOF
23413 # CONFIG_HEADER section.
23416 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23417 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23419 # ac_d sets the value in "#define NAME VALUE" lines.
23420 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23421 ac_dB='[ ].*$,\1#\2'
23422 ac_dC=' '
23423 ac_dD=',;t'
23424 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23425 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23426 ac_uB='$,\1#\2define\3'
23427 ac_uC=' '
23428 ac_uD=',;t'
23430 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23432 case $ac_file in
23433 - | *:- | *:-:* ) # input from stdin
23434 cat >$tmp/stdin
23435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23439 * ) ac_file_in=$ac_file.in ;;
23440 esac
23442 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23443 echo "$as_me: creating $ac_file" >&6;}
23445 # First look for the input files in the build tree, otherwise in the
23446 # src tree.
23447 ac_file_inputs=`IFS=:
23448 for f in $ac_file_in; do
23449 case $f in
23450 -) echo $tmp/stdin ;;
23451 [\\/$]*)
23452 # Absolute (can't be DOS-style, as IFS=:)
23453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23454 echo "$as_me: error: cannot find input file: $f" >&2;}
23455 { (exit 1); exit 1; }; }
23456 # Do quote $f, to prevent DOS paths from being IFS'd.
23457 echo "$f";;
23458 *) # Relative
23459 if test -f "$f"; then
23460 # Build tree
23461 echo "$f"
23462 elif test -f "$srcdir/$f"; then
23463 # Source tree
23464 echo "$srcdir/$f"
23465 else
23466 # /dev/null tree
23467 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23468 echo "$as_me: error: cannot find input file: $f" >&2;}
23469 { (exit 1); exit 1; }; }
23470 fi;;
23471 esac
23472 done` || { (exit 1); exit 1; }
23473 # Remove the trailing spaces.
23474 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23476 _ACEOF
23478 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23479 # `conftest.undefs', that substitutes the proper values into
23480 # config.h.in to produce config.h. The first handles `#define'
23481 # templates, and the second `#undef' templates.
23482 # And first: Protect against being on the right side of a sed subst in
23483 # config.status. Protect against being in an unquoted here document
23484 # in config.status.
23485 rm -f conftest.defines conftest.undefs
23486 # Using a here document instead of a string reduces the quoting nightmare.
23487 # Putting comments in sed scripts is not portable.
23489 # `end' is used to avoid that the second main sed command (meant for
23490 # 0-ary CPP macros) applies to n-ary macro definitions.
23491 # See the Autoconf documentation for `clear'.
23492 cat >confdef2sed.sed <<\_ACEOF
23493 s/[\\&,]/\\&/g
23494 s,[\\$`],\\&,g
23495 t clear
23496 : clear
23497 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23498 t end
23499 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23500 : end
23501 _ACEOF
23502 # If some macros were called several times there might be several times
23503 # the same #defines, which is useless. Nevertheless, we may not want to
23504 # sort them, since we want the *last* AC-DEFINE to be honored.
23505 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23506 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23507 rm -f confdef2sed.sed
23509 # This sed command replaces #undef with comments. This is necessary, for
23510 # example, in the case of _POSIX_SOURCE, which is predefined and required
23511 # on some systems where configure will not decide to define it.
23512 cat >>conftest.undefs <<\_ACEOF
23513 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23514 _ACEOF
23516 # Break up conftest.defines because some shells have a limit on the size
23517 # of here documents, and old seds have small limits too (100 cmds).
23518 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23519 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23520 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23521 echo ' :' >>$CONFIG_STATUS
23522 rm -f conftest.tail
23523 while grep . conftest.defines >/dev/null
23525 # Write a limited-size here document to $tmp/defines.sed.
23526 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23527 # Speed up: don't consider the non `#define' lines.
23528 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23529 # Work around the forget-to-reset-the-flag bug.
23530 echo 't clr' >>$CONFIG_STATUS
23531 echo ': clr' >>$CONFIG_STATUS
23532 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23533 echo 'CEOF
23534 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23535 rm -f $tmp/in
23536 mv $tmp/out $tmp/in
23537 ' >>$CONFIG_STATUS
23538 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23539 rm -f conftest.defines
23540 mv conftest.tail conftest.defines
23541 done
23542 rm -f conftest.defines
23543 echo ' fi # grep' >>$CONFIG_STATUS
23544 echo >>$CONFIG_STATUS
23546 # Break up conftest.undefs because some shells have a limit on the size
23547 # of here documents, and old seds have small limits too (100 cmds).
23548 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23549 rm -f conftest.tail
23550 while grep . conftest.undefs >/dev/null
23552 # Write a limited-size here document to $tmp/undefs.sed.
23553 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23554 # Speed up: don't consider the non `#undef'
23555 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23556 # Work around the forget-to-reset-the-flag bug.
23557 echo 't clr' >>$CONFIG_STATUS
23558 echo ': clr' >>$CONFIG_STATUS
23559 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23560 echo 'CEOF
23561 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23562 rm -f $tmp/in
23563 mv $tmp/out $tmp/in
23564 ' >>$CONFIG_STATUS
23565 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23566 rm -f conftest.undefs
23567 mv conftest.tail conftest.undefs
23568 done
23569 rm -f conftest.undefs
23571 cat >>$CONFIG_STATUS <<\_ACEOF
23572 # Let's still pretend it is `configure' which instantiates (i.e., don't
23573 # use $as_me), people would be surprised to read:
23574 # /* config.h. Generated by config.status. */
23575 if test x"$ac_file" = x-; then
23576 echo "/* Generated by configure. */" >$tmp/config.h
23577 else
23578 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23580 cat $tmp/in >>$tmp/config.h
23581 rm -f $tmp/in
23582 if test x"$ac_file" != x-; then
23583 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23584 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23585 echo "$as_me: $ac_file is unchanged" >&6;}
23586 else
23587 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23589 X"$ac_file" : 'X\(//\)[^/]' \| \
23590 X"$ac_file" : 'X\(//\)$' \| \
23591 X"$ac_file" : 'X\(/\)' \| \
23592 . : '\(.\)' 2>/dev/null ||
23593 echo X"$ac_file" |
23594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23596 /^X\(\/\/\)$/{ s//\1/; q; }
23597 /^X\(\/\).*/{ s//\1/; q; }
23598 s/.*/./; q'`
23599 { if $as_mkdir_p; then
23600 mkdir -p "$ac_dir"
23601 else
23602 as_dir="$ac_dir"
23603 as_dirs=
23604 while test ! -d "$as_dir"; do
23605 as_dirs="$as_dir $as_dirs"
23606 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23608 X"$as_dir" : 'X\(//\)[^/]' \| \
23609 X"$as_dir" : 'X\(//\)$' \| \
23610 X"$as_dir" : 'X\(/\)' \| \
23611 . : '\(.\)' 2>/dev/null ||
23612 echo X"$as_dir" |
23613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23615 /^X\(\/\/\)$/{ s//\1/; q; }
23616 /^X\(\/\).*/{ s//\1/; q; }
23617 s/.*/./; q'`
23618 done
23619 test ! -n "$as_dirs" || mkdir $as_dirs
23620 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23621 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23622 { (exit 1); exit 1; }; }; }
23624 rm -f $ac_file
23625 mv $tmp/config.h $ac_file
23627 else
23628 cat $tmp/config.h
23629 rm -f $tmp/config.h
23631 done
23632 _ACEOF
23633 cat >>$CONFIG_STATUS <<\_ACEOF
23636 # CONFIG_COMMANDS section.
23638 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23639 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23640 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23641 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23642 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23643 X"$ac_dest" : 'X\(//\)[^/]' \| \
23644 X"$ac_dest" : 'X\(//\)$' \| \
23645 X"$ac_dest" : 'X\(/\)' \| \
23646 . : '\(.\)' 2>/dev/null ||
23647 echo X"$ac_dest" |
23648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23650 /^X\(\/\/\)$/{ s//\1/; q; }
23651 /^X\(\/\).*/{ s//\1/; q; }
23652 s/.*/./; q'`
23653 { if $as_mkdir_p; then
23654 mkdir -p "$ac_dir"
23655 else
23656 as_dir="$ac_dir"
23657 as_dirs=
23658 while test ! -d "$as_dir"; do
23659 as_dirs="$as_dir $as_dirs"
23660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23662 X"$as_dir" : 'X\(//\)[^/]' \| \
23663 X"$as_dir" : 'X\(//\)$' \| \
23664 X"$as_dir" : 'X\(/\)' \| \
23665 . : '\(.\)' 2>/dev/null ||
23666 echo X"$as_dir" |
23667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23669 /^X\(\/\/\)$/{ s//\1/; q; }
23670 /^X\(\/\).*/{ s//\1/; q; }
23671 s/.*/./; q'`
23672 done
23673 test ! -n "$as_dirs" || mkdir $as_dirs
23674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23676 { (exit 1); exit 1; }; }; }
23678 ac_builddir=.
23680 if test "$ac_dir" != .; then
23681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23682 # A "../" for each directory in $ac_dir_suffix.
23683 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23684 else
23685 ac_dir_suffix= ac_top_builddir=
23688 case $srcdir in
23689 .) # No --srcdir option. We are building in place.
23690 ac_srcdir=.
23691 if test -z "$ac_top_builddir"; then
23692 ac_top_srcdir=.
23693 else
23694 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23695 fi ;;
23696 [\\/]* | ?:[\\/]* ) # Absolute path.
23697 ac_srcdir=$srcdir$ac_dir_suffix;
23698 ac_top_srcdir=$srcdir ;;
23699 *) # Relative path.
23700 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23701 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23702 esac
23704 # Do not use `cd foo && pwd` to compute absolute paths, because
23705 # the directories may not exist.
23706 case `pwd` in
23707 .) ac_abs_builddir="$ac_dir";;
23709 case "$ac_dir" in
23710 .) ac_abs_builddir=`pwd`;;
23711 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23712 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23713 esac;;
23714 esac
23715 case $ac_abs_builddir in
23716 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23718 case ${ac_top_builddir}. in
23719 .) ac_abs_top_builddir=$ac_abs_builddir;;
23720 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23721 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23722 esac;;
23723 esac
23724 case $ac_abs_builddir in
23725 .) ac_abs_srcdir=$ac_srcdir;;
23727 case $ac_srcdir in
23728 .) ac_abs_srcdir=$ac_abs_builddir;;
23729 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23730 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23731 esac;;
23732 esac
23733 case $ac_abs_builddir in
23734 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23736 case $ac_top_srcdir in
23737 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23738 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23739 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23740 esac;;
23741 esac
23744 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23745 echo "$as_me: executing $ac_dest commands" >&6;}
23746 case $ac_dest in
23747 default )
23749 ### Make the necessary directories, if they don't exist.
23750 for dir in etc lisp ; do
23751 test -d ${dir} || mkdir ${dir}
23752 done
23754 # Build src/Makefile from ${srcdir}/src/Makefile.c
23755 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23756 # This must be done after src/config.h is built, since we rely on that file.
23758 # Now get this: Some word that is part of the ${srcdir} directory name
23759 # or the ${configuration} value might, just might, happen to be an
23760 # identifier like `sun4' or `i386' or something, and be predefined by
23761 # the C preprocessor to some helpful value like 1, or maybe the empty
23762 # string. Needless to say consequent macro substitutions are less
23763 # than conducive to the makefile finding the correct directory.
23764 undefs="`echo $top_srcdir $configuration $canonical |
23765 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23766 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23769 echo creating src/epaths.h
23770 ${MAKE-make} epaths-force
23772 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23773 # `..' to `. .' unless invoked with -traditional
23775 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
23776 CPPFLAGS="$CPPFLAGS -traditional"
23779 echo creating lib-src/Makefile
23780 ( cd lib-src
23781 rm -f junk.c junk1.c junk2.c
23782 sed -e '/start of cpp stuff/q' \
23783 < Makefile.c > junk1.c
23784 sed -e '1,/start of cpp stuff/d'\
23785 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23786 < Makefile.c > junk.c
23787 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23788 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23789 cat junk1.c junk2.c > Makefile.new
23790 rm -f junk.c junk1.c junk2.c
23791 chmod 444 Makefile.new
23792 mv -f Makefile.new Makefile
23795 echo creating src/Makefile
23796 ( cd src
23797 rm -f junk.c junk1.c junk2.c
23798 sed -e '/start of cpp stuff/q' \
23799 < Makefile.c > junk1.c
23800 sed -e '1,/start of cpp stuff/d'\
23801 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23802 < Makefile.c > junk.c
23803 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
23804 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23805 cat junk1.c junk2.c > Makefile.new
23806 rm -f junk.c junk1.c junk2.c
23807 chmod 444 Makefile.new
23808 mv -f Makefile.new Makefile
23811 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23812 echo creating src/.gdbinit
23813 echo source $srcdir/src/.gdbinit > src/.gdbinit
23816 # This is how we know whether to re-run configure in certain cases.
23817 touch src/config.stamp
23820 esac
23821 done
23822 _ACEOF
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23826 { (exit 0); exit 0; }
23827 _ACEOF
23828 chmod +x $CONFIG_STATUS
23829 ac_clean_files=$ac_clean_files_save
23832 # configure is writing to config.log, and then calls config.status.
23833 # config.status does its own redirection, appending to config.log.
23834 # Unfortunately, on DOS this fails, as config.log is still kept open
23835 # by configure, so config.status won't be able to write to it; its
23836 # output is simply discarded. So we exec the FD to /dev/null,
23837 # effectively closing config.log, so it can be properly (re)opened and
23838 # appended to by config.status. When coming back to configure, we
23839 # need to make the FD available again.
23840 if test "$no_create" != yes; then
23841 ac_cs_success=:
23842 ac_config_status_args=
23843 test "$silent" = yes &&
23844 ac_config_status_args="$ac_config_status_args --quiet"
23845 exec 5>/dev/null
23846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23847 exec 5>>config.log
23848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23849 # would make configure fail if this is the last instruction.
23850 $ac_cs_success || { (exit 1); exit 1; }